[Safer intents] Settings misc
To avoid implicit intents, make intents launch explicitly. Test: build Bug: 323061508 Change-Id: Ie19cbceb89842a75a180898abcce81b63c18d46c
This commit is contained in:
@@ -555,7 +555,8 @@ public class UserSettings extends SettingsPreferenceFragment
|
||||
}
|
||||
|
||||
private void launchChooseLockscreen() {
|
||||
Intent chooseLockIntent = new Intent(DevicePolicyManager.ACTION_SET_NEW_PASSWORD);
|
||||
Intent chooseLockIntent = new Intent(DevicePolicyManager.ACTION_SET_NEW_PASSWORD)
|
||||
.setPackage(getContext().getPackageName());
|
||||
chooseLockIntent.putExtra(ChooseLockGeneric.ChooseLockGenericFragment.HIDE_INSECURE_OPTIONS,
|
||||
true);
|
||||
startActivityForResult(chooseLockIntent, REQUEST_CHOOSE_LOCK);
|
||||
|
Reference in New Issue
Block a user