Block calls to canAdminGrantSensorsPermissions on parent
Throw if canAdminGrantSensorsPermissions is called on the parent profile instance. That would fix ManagedProfileTest#testParentProfileApiDisabled Bug: 179726587 Test: atest ManagedProfileTest#testParentProfileApiDisabled Change-Id: I7ff654674ad412ac9a9219a1a470b50da928ea10
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user