在某些情况下,当你板子上没有识别到摄像头时,会自动隐藏系统相机APP的情况, 只需修改如下地方,则不管有没有都不会隐藏相机APP
— a/android/packages/apps/Camera2/src/com/android/camera/DisableCameraReceiver.java +++ b/android/packages/apps/Camera2/src/com/android/camera/DisableCameraReceiver.java @@ -38,7 +38,7 @@ public class DisableCameraReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { // Disable camera-related activities if there is no camera.
@@ -50,7 +50,7 @@ public class DisableCameraReceiver extends BroadcastReceiver { }
// Disable this receiver so it won't run again.
-
disableComponent(context, "com.android.camera.DisableCameraReceiver");*/
} private boolean hasCamera() {
|