[warning] Notificationmanager reports isNotificationPolicyAccessGranted to be false
[warning] the system-wide limit for number of open cameras has been reached,and more devices cannot be opened until previous instances are closed
[error] unable to check for cameras
通过和对方工程师沟通是要固件里面移除camera
Index: android/frameworks/base/services/core/java/com/android/server/notification/NotificationManagerService.java
===================================================================
--- android/frameworks/base/services/core/java/com/android/server/notification/NotificationManagerService.java
+++ android/frameworks/base/services/core/java/com/android/server/notification/NotificationManagerService.java
@@ -1738,6 +1738,9 @@
@Override
public boolean isNotificationPolicyAccessGranted(String pkg) {
+ if (pkg.contains("xxxx")) {
+ return true;
+ }
return checkPolicyAccess(pkg);
}
Index: android/frameworks/native/data/etc/android.hardware.camera.external.xml
===================================================================
--- android/frameworks/native/data/etc/android.hardware.camera.external.xml
+++ android/frameworks/native/data/etc/android.hardware.camera.external.xml
@@ -17,6 +17,6 @@
<!-- This is the standard set of features for a Android device that can support
an external camera being connected to it. -->
<permissions>
- <feature name="android.hardware.camera.any" />
- <feature name="android.hardware.camera.external" />
+ <!-- <feature name="android.hardware.camera.any" />
+ <feature name="android.hardware.camera.external" />-->
</permissions>
Index: android/frameworks/native/data/etc/android.hardware.camera.xml
===================================================================
--- android/frameworks/native/data/etc/android.hardware.camera.xml
+++ android/frameworks/native/data/etc/android.hardware.camera.xml
@@ -16,6 +16,6 @@
<!-- This is the standard set of features for a non auto-focus camera. -->
<permissions>
- <feature name="android.hardware.camera.any" />
- <feature name="android.hardware.camera" />
+ <!-- <feature name="android.hardware.camera.any" />
+ <feature name="android.hardware.camera" />-->
</permissions>
Index: android/frameworks/native/data/etc/android.hardware.camera.full.xml
===================================================================
--- android/frameworks/native/data/etc/android.hardware.camera.full.xml
+++ android/frameworks/native/data/etc/android.hardware.camera.full.xml
@@ -16,8 +16,8 @@
<!-- This is the set of features required for a full-capability camera2 device -->
<permissions>
- <feature name="android.hardware.camera.any" />
+ <!--<feature name="android.hardware.camera.any" />
<feature name="android.hardware.camera.level.full" />
<feature name="android.hardware.camera.capability.manual_sensor" />
- <feature name="android.hardware.camera.capability.manual_post_processing" />
+ <feature name="android.hardware.camera.capability.manual_post_processing" />-->
</permissions>
Index: android/frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml
===================================================================
--- android/frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml
+++ android/frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml
@@ -17,8 +17,8 @@
<!-- This is the standard set of features for a camera with a flash. Note
that this currently requires having auto-focus as well. -->
<permissions>
- <feature name="android.hardware.camera.any" />
+ <!--<feature name="android.hardware.camera.any" />
<feature name="android.hardware.camera" />
<feature name="android.hardware.camera.autofocus" />
- <feature name="android.hardware.camera.flash" />
+ <feature name="android.hardware.camera.flash" />-->
</permissions>
Index: android/frameworks/native/data/etc/android.hardware.camera.manual_postprocessing.xml
===================================================================
--- android/frameworks/native/data/etc/android.hardware.camera.manual_postprocessing.xml
+++ android/frameworks/native/data/etc/android.hardware.camera.manual_postprocessing.xml
@@ -16,6 +16,6 @@
<!-- This is the set of features required for a camera2 device that supports manual postprocessing capability -->
<permissions>
- <feature name="android.hardware.camera.any" />
- <feature name="android.hardware.camera.capability.manual_post_processing" />
+ <!--<feature name="android.hardware.camera.any" />
+ <feature name="android.hardware.camera.capability.manual_post_processing" />-->
</permissions>
Index: android/frameworks/native/data/etc/android.hardware.camera.front.xml
===================================================================
--- android/frameworks/native/data/etc/android.hardware.camera.front.xml
+++ android/frameworks/native/data/etc/android.hardware.camera.front.xml
@@ -16,6 +16,6 @@
<!-- This is the standard set of features for a front facing camera. -->
<permissions>
- <feature name="android.hardware.camera.any" />
- <feature name="android.hardware.camera.front" />
+ <!--<feature name="android.hardware.camera.any" />
+ <feature name="android.hardware.camera.front" />-->
</permissions>
Index: android/frameworks/native/data/etc/android.hardware.camera.manual_sensor.xml
===================================================================
--- android/frameworks/native/data/etc/android.hardware.camera.manual_sensor.xml
+++ android/frameworks/native/data/etc/android.hardware.camera.manual_sensor.xml
@@ -16,6 +16,6 @@
<!-- This is the set of features required for a camera2 device that supports manual sensor capability-->
<permissions>
- <feature name="android.hardware.camera.any" />
- <feature name="android.hardware.camera.capability.manual_sensor" />
+ <!--<feature name="android.hardware.camera.any" />
+ <feature name="android.hardware.camera.capability.manual_sensor" />-->
</permissions>
Index: android/frameworks/native/data/etc/android.hardware.camera.autofocus.xml
===================================================================
--- android/frameworks/native/data/etc/android.hardware.camera.autofocus.xml
+++ android/frameworks/native/data/etc/android.hardware.camera.autofocus.xml
@@ -16,7 +16,7 @@
<!-- This is the standard set of features for an auto-focus camera. -->
<permissions>
- <feature name="android.hardware.camera.any" />
+ <!--<feature name="android.hardware.camera.any" />
<feature name="android.hardware.camera" />
- <feature name="android.hardware.camera.autofocus" />
+ <feature name="android.hardware.camera.autofocus" />-->
</permissions>
Index: android/frameworks/native/data/etc/android.hardware.camera.raw.xml
===================================================================
--- android/frameworks/native/data/etc/android.hardware.camera.raw.xml
+++ android/frameworks/native/data/etc/android.hardware.camera.raw.xml
@@ -16,6 +16,6 @@
<!-- This is the set of features required for a camera2 device that supports raw sensor output -->
<permissions>
- <feature name="android.hardware.camera.any" />
- <feature name="android.hardware.camera.capability.raw" />
+ <!-- <feature name="android.hardware.camera.any" />
+ <feature name="android.hardware.camera.capability.raw" />-->
</permissions>
Index: android/frameworks/native/data/etc/handheld_core_hardware.xml
===================================================================
--- android/frameworks/native/data/etc/handheld_core_hardware.xm
+++ android/frameworks/native/data/etc/handheld_core_hardware.xml
@@ -24,7 +24,7 @@
-->
<permissions>
<feature name="android.hardware.audio.output" />
- <feature name="android.hardware.camera" />
+ <!--<feature name="android.hardware.camera" />-->
<feature name="android.hardware.location" />
<feature name="android.hardware.location.network" />
<feature name="android.hardware.sensor.compass" />
Index: android/device/softwinner/common/config/tablet_core_hardware.xml
===================================================================
--- android/device/softwinner/common/config/tablet_core_hardware.xml
+++ android/device/softwinner/common/config/tablet_core_hardware.xml
@@ -36,7 +36,9 @@
<feature name="android.hardware.touchscreen" />
<feature name="android.hardware.touchscreen.multitouch" />
<feature name="android.hardware.touchscreen.multitouch.distinct" />
+ <!--
<feature name="android.hardware.microphone" />
+ -->
<feature name="android.hardware.screen.portrait" />
<feature name="android.hardware.screen.landscape" />
Index: android/device/softwinner/common/hardware/camera/HALCameraFactory.cpp
===================================================================
--- android/device/softwinner/common/hardware/camera/HALCameraFactory.cpp
+++ android/device/softwinner/common/hardware/camera/HALCameraFactory.cpp
@@ -360,7 +360,8 @@
int HALCameraFactory::get_number_of_cameras(void)
{
- return gEmulatedCameraFactory.getCameraHardwareNum();
+ return 0;
+ //return gEmulatedCameraFactory.getCameraHardwareNum();
}
int HALCameraFactory::get_camera_info(int camera_id,
Index: android/device/softwinner/astar-M789/configs/camera.cfg
===================================================================
--- android/device/softwinner/astar-M789/configs/camera.cfg
+++ android/device/softwinner/astar-M789/configs/camera.cfg
@@ -18,7 +18,7 @@
;-------------------------------------------------------------------------------
; 1 for single camera, 2 for double camera
;-------------------------------------------------------------------------------
-number_of_camera = 2
+number_of_camera = 0
;-------------------------------------------------------------------------------
; CAMERA_FACING_BACK
网友评论