The following ADB command is not working on Android 11 devices
adb -d shell "am start -a android.media.action.IMAGE_CAPTURE" -W
Results in
Starting: Intent { act=android.media.action.IMAGE_CAPTURE }
Error: Activity not started, unknown error code 102
It seems to be related to the changes in Android 11, see Android 11 (R) return empty list when querying intent for ACTION_IMAGE_CAPTURE and the solution mentioned here is to add this to manifest
<queries>
<intent>
<action android:name="android.media.action.IMAGE_CAPTURE" />
</intent>
</queries>
Is there any equivalent for this in ADB?
from ADB unable to start IMAGE_CAPTURE intent activity on Android 11
No comments:
Post a Comment