N noeleon Active Member Licensed User Longtime User Jul 23, 2021 #1 Starting in Android 11 the cameras can no longer be disabled by admin apps. Is there another way to do it?
Starting in Android 11 the cameras can no longer be disabled by admin apps. Is there another way to do it?
Erel B4X founder Staff member Licensed User Longtime User Jul 25, 2021 #2 noeleon said: Starting in Android 11 the cameras can no longer be disabled by admin apps. Click to expand... More information please. Is this a documented change? Upvote 0
noeleon said: Starting in Android 11 the cameras can no longer be disabled by admin apps. Click to expand... More information please. Is this a documented change?
N noeleon Active Member Licensed User Longtime User Jul 25, 2021 #3 https://developer.android.com/reference/android/app/admin/DevicePolicyManager The calling device admin must have requested DeviceAdminInfo#USES_POLICY_DISABLE_CAMERA to be able to call this method; if it has not, a security exception will be thrown. Note, this policy type is deprecated for legacy device admins since Build.VERSION_CODES.Q. On Android Build.VERSION_CODES.Q devices, legacy device admins targeting SDK version Build.VERSION_CODES.P or below can still call this API to disable camera, while legacy device admins targeting SDK version Build.VERSION_CODES.Q will receive a SecurityException. Starting from Android Build.VERSION_CODES.R, requests to disable camera from legacy device admins targeting SDK version Build.VERSION_CODES.P or below will be silently ignored. Upvote 0
https://developer.android.com/reference/android/app/admin/DevicePolicyManager The calling device admin must have requested DeviceAdminInfo#USES_POLICY_DISABLE_CAMERA to be able to call this method; if it has not, a security exception will be thrown. Note, this policy type is deprecated for legacy device admins since Build.VERSION_CODES.Q. On Android Build.VERSION_CODES.Q devices, legacy device admins targeting SDK version Build.VERSION_CODES.P or below can still call this API to disable camera, while legacy device admins targeting SDK version Build.VERSION_CODES.Q will receive a SecurityException. Starting from Android Build.VERSION_CODES.R, requests to disable camera from legacy device admins targeting SDK version Build.VERSION_CODES.P or below will be silently ignored.
Erel B4X founder Staff member Licensed User Longtime User Jul 26, 2021 #4 Device admin deprecation | Android Enterprise | Google for Developers developers.google.com It looks like there is no alternative way to disable the cameras. Upvote 0
Device admin deprecation | Android Enterprise | Google for Developers developers.google.com It looks like there is no alternative way to disable the cameras.