Merge "Block calls to canAdminGrantSensorsPermissions on parent" into sc-dev

This commit is contained in:
TreeHugger Robot
2021-02-09 15:28:41 +00:00
committed by Android (Google) Code Review

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());
}