Loading AndroidManifest.xml +1 −0 Original line number Diff line number Diff line Loading @@ -1548,6 +1548,7 @@ android:excludeFromRecents="true" > <intent-filter android:priority="1"> <action android:name="android.app.action.SET_NEW_PASSWORD" /> <action android:name="android.app.action.SET_NEW_PARENT_PROFILE_PASSWORD" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter> <meta-data android:name="com.android.settings.PRIMARY_PROFILE_CONTROLLED" Loading src/com/android/settings/ChooseLockGeneric.java +14 −2 Original line number Diff line number Diff line Loading @@ -162,8 +162,20 @@ public class ChooseLockGeneric extends SettingsActivity { ENCRYPT_REQUESTED_DISABLED); } // Only take this argument into account if it belongs to the current profile. int targetUser = Utils.getSecureTargetUser( getActivity().getActivityToken(), UserManager.get(getActivity()), null, getActivity().getIntent().getExtras()).getIdentifier(); if (DevicePolicyManager.ACTION_SET_NEW_PARENT_PROFILE_PASSWORD.equals( getActivity().getIntent().getAction()) || !mLockPatternUtils.isSeparateProfileChallengeAllowed(targetUser)) { // Always use parent if explicitely requested or if profile challenge is not // supported mUserId = Utils.getSameOwnerUserId(getContext(), getArguments()); } else { mUserId = targetUser; } if (mPasswordConfirmed) { updatePreferencesOrFinish(); Loading Loading
AndroidManifest.xml +1 −0 Original line number Diff line number Diff line Loading @@ -1548,6 +1548,7 @@ android:excludeFromRecents="true" > <intent-filter android:priority="1"> <action android:name="android.app.action.SET_NEW_PASSWORD" /> <action android:name="android.app.action.SET_NEW_PARENT_PROFILE_PASSWORD" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter> <meta-data android:name="com.android.settings.PRIMARY_PROFILE_CONTROLLED" Loading
src/com/android/settings/ChooseLockGeneric.java +14 −2 Original line number Diff line number Diff line Loading @@ -162,8 +162,20 @@ public class ChooseLockGeneric extends SettingsActivity { ENCRYPT_REQUESTED_DISABLED); } // Only take this argument into account if it belongs to the current profile. int targetUser = Utils.getSecureTargetUser( getActivity().getActivityToken(), UserManager.get(getActivity()), null, getActivity().getIntent().getExtras()).getIdentifier(); if (DevicePolicyManager.ACTION_SET_NEW_PARENT_PROFILE_PASSWORD.equals( getActivity().getIntent().getAction()) || !mLockPatternUtils.isSeparateProfileChallengeAllowed(targetUser)) { // Always use parent if explicitely requested or if profile challenge is not // supported mUserId = Utils.getSameOwnerUserId(getContext(), getArguments()); } else { mUserId = targetUser; } if (mPasswordConfirmed) { updatePreferencesOrFinish(); Loading