Loading src/com/android/settings/applications/AppInfoBase.java +8 −8 Original line number Diff line number Diff line Loading @@ -136,14 +136,14 @@ public abstract class AppInfoBase extends SettingsPreferenceFragment mPackageName = intent.getData().getSchemeSpecificPart(); } } if (!hasInteractAcrossUsersPermission()) { if (intent != null && intent.hasExtra(Intent.EXTRA_USER_HANDLE)) { mUserId = ((UserHandle) intent.getParcelableExtra(Intent.EXTRA_USER_HANDLE)) .getIdentifier(); if (mUserId != UserHandle.myUserId() && !hasInteractAcrossUsersFullPermission()) { Log.w(TAG, "Intent not valid."); finish(); return ""; } if (intent != null && intent.hasExtra(Intent.EXTRA_USER_HANDLE)) { mUserId = ((UserHandle) intent.getParcelableExtra( Intent.EXTRA_USER_HANDLE)).getIdentifier(); } else { mUserId = UserHandle.myUserId(); } Loading Loading @@ -171,7 +171,7 @@ public abstract class AppInfoBase extends SettingsPreferenceFragment } @VisibleForTesting protected boolean hasInteractAcrossUsersPermission() { protected boolean hasInteractAcrossUsersFullPermission() { Activity activity = getActivity(); if (!(activity instanceof SettingsActivity)) { return false; Loading tests/robotests/src/com/android/settings/applications/AppInfoWithHeaderTest.java +2 −2 Original line number Diff line number Diff line Loading @@ -250,7 +250,7 @@ public class AppInfoWithHeaderTest { } @Override protected boolean hasInteractAcrossUsersPermission() { protected boolean hasInteractAcrossUsersFullPermission() { return true; } Loading @@ -267,7 +267,7 @@ public class AppInfoWithHeaderTest { private static final class TestFragmentWithoutPermission extends TestFragment { @Override protected boolean hasInteractAcrossUsersPermission() { protected boolean hasInteractAcrossUsersFullPermission() { return false; } } Loading Loading
src/com/android/settings/applications/AppInfoBase.java +8 −8 Original line number Diff line number Diff line Loading @@ -136,14 +136,14 @@ public abstract class AppInfoBase extends SettingsPreferenceFragment mPackageName = intent.getData().getSchemeSpecificPart(); } } if (!hasInteractAcrossUsersPermission()) { if (intent != null && intent.hasExtra(Intent.EXTRA_USER_HANDLE)) { mUserId = ((UserHandle) intent.getParcelableExtra(Intent.EXTRA_USER_HANDLE)) .getIdentifier(); if (mUserId != UserHandle.myUserId() && !hasInteractAcrossUsersFullPermission()) { Log.w(TAG, "Intent not valid."); finish(); return ""; } if (intent != null && intent.hasExtra(Intent.EXTRA_USER_HANDLE)) { mUserId = ((UserHandle) intent.getParcelableExtra( Intent.EXTRA_USER_HANDLE)).getIdentifier(); } else { mUserId = UserHandle.myUserId(); } Loading Loading @@ -171,7 +171,7 @@ public abstract class AppInfoBase extends SettingsPreferenceFragment } @VisibleForTesting protected boolean hasInteractAcrossUsersPermission() { protected boolean hasInteractAcrossUsersFullPermission() { Activity activity = getActivity(); if (!(activity instanceof SettingsActivity)) { return false; Loading
tests/robotests/src/com/android/settings/applications/AppInfoWithHeaderTest.java +2 −2 Original line number Diff line number Diff line Loading @@ -250,7 +250,7 @@ public class AppInfoWithHeaderTest { } @Override protected boolean hasInteractAcrossUsersPermission() { protected boolean hasInteractAcrossUsersFullPermission() { return true; } Loading @@ -267,7 +267,7 @@ public class AppInfoWithHeaderTest { private static final class TestFragmentWithoutPermission extends TestFragment { @Override protected boolean hasInteractAcrossUsersPermission() { protected boolean hasInteractAcrossUsersFullPermission() { return false; } } Loading