Merge "Block calls to canAdminGrantSensorsPermissions on parent" into sc-dev am: 77cad7c3d9

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13518736

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: If5e32386b10a29b08739a46ab3d03abe0dfadea3
This commit is contained in:
TreeHugger Robot
2021-02-09 15:57:24 +00:00
committed by Automerger Merge Worker

View File

@@ -13328,6 +13328,7 @@ public class DevicePolicyManager {
* @return true if the app can grant device sensors-related permissions, false otherwise.
*/
public boolean canAdminGrantSensorsPermissions() {
throwIfParentInstance("canAdminGrantSensorsPermissions");
return canAdminGrantSensorsPermissionsForUser(myUserId());
}