[Safer intents] Connectivity
To avoid implicit intents, make intents launch explicitly. Bug: 323061508 Test: build Change-Id: I44ff8a789d933f11ba7e68e52055575245276224
This commit is contained in:
@@ -70,7 +70,10 @@ object RequestPermissionHelper {
|
||||
private fun Context.isDisallowBluetooth() =
|
||||
if (userManager.hasUserRestriction(UserManager.DISALLOW_BLUETOOTH)) {
|
||||
devicePolicyManager.createAdminSupportIntent(UserManager.DISALLOW_BLUETOOTH)
|
||||
?.let { startActivity(it) }
|
||||
?.let {
|
||||
it.setPackage(packageName)
|
||||
startActivity(it)
|
||||
}
|
||||
true
|
||||
} else false
|
||||
|
||||
|
||||
Reference in New Issue
Block a user