测试机型:小米8,miui 12.0.3 稳定版(从相册选择图片功能OK,oppo、华为手机测试打开相机也OK)
AndroidManifest.xml添加过权限:
<uses-permission android:name="android.permission.CAMERA"/>
<uses-feature android:name="android.hardware.Camera"/>
manifest.json中勾选过对应App权限配置。
/ android打包配置 /
"android" : {
"permissions" : [
"<uses-feature android:name=\"android.hardware.camera\"/>",
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
"<uses-permission android:name=\"android.permission.CAMERA\"/>",
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
"<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
"<uses-permission android:name=\"android.permission.VIBRATE\"/>",
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>"
]
},
提示的log如下:
E/libc: Access denied finding property "camera.aux.packagelist"
E/libc: Access denied finding property "camera.aux.packagelist"
E/libc: Access denied finding property "camera.aux.packagelist"
Access denied finding property "vendor.camera.hal1.packagelist"
有遇到并解决过的朋友吗?
五毛
已解决,感谢
2021-03-29 15:47
小明upupup (作者)
翻了所有的文档,唯独把这个注意事项漏了,谢谢层主
2021-03-29 19:30
z***@sina.com
感谢楼主!
2021-10-18 09:31