mirror of
https://codeberg.org/timelimit/timelimit-android.git
synced 2025-10-03 09:49:25 +02:00
Remove delegations before transfering device owner permission
This commit is contained in:
parent
5760f548f6
commit
21d3db791d
1 changed files with 1 additions and 0 deletions
|
@ -121,6 +121,7 @@ class AndroidDeviceOwnerApi(
|
|||
|
||||
if (dryRun) return
|
||||
|
||||
devicePolicyManager.setDelegatedScopes(componentName, packageName, emptyList())
|
||||
devicePolicyManager.transferOwnership(componentName, targetComponentName, null)
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue