diff options
author | Adnan Begovic <adnan@cyngn.com> | 2016-01-19 16:13:21 -0800 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2016-01-22 15:28:25 -0800 |
commit | 5f31f27783f19a5cc4368eca3c8005d290a10247 (patch) | |
tree | ac50a148702ff5d913fe0e3ad07b9c8375b1711f /test-runner | |
parent | 35671166550919d7db37b2084ca2bc6d9595e71a (diff) | |
download | frameworks_base-5f31f27783f19a5cc4368eca3c8005d290a10247.zip frameworks_base-5f31f27783f19a5cc4368eca3c8005d290a10247.tar.gz frameworks_base-5f31f27783f19a5cc4368eca3c8005d290a10247.tar.bz2 |
fw: Fix protected apps implementation.
Currently a protected component could be accessed
from any other means other than the launcher, entirely
defeating its purpose. Instead, hook into the activity
stack supervisor and quelch attempts at invocation
of protected components.
This implementation also provides feedback to the user
on any attempt to start the component when its in a
protected state.
TICKET: CYNGNOS-84
Change-Id: Ib0165e7504adb08e21e9566c7394b37dffd280d4
Diffstat (limited to 'test-runner')
-rw-r--r-- | test-runner/src/android/test/mock/MockPackageManager.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test-runner/src/android/test/mock/MockPackageManager.java b/test-runner/src/android/test/mock/MockPackageManager.java index 7aacb23..d3e2bfd 100644 --- a/test-runner/src/android/test/mock/MockPackageManager.java +++ b/test-runner/src/android/test/mock/MockPackageManager.java @@ -891,6 +891,7 @@ public class MockPackageManager extends PackageManager { public boolean isUpgrade() { throw new UnsupportedOperationException(); } + /** * @hide */ @@ -903,6 +904,14 @@ public class MockPackageManager extends PackageManager { * @hide */ @Override + public boolean isComponentProtected(String callingPackage, ComponentName componentName) { + throw new UnsupportedOperationException(); + } + + /** + * @hide + */ + @Override public void installPackage(Uri packageURI, PackageInstallObserver observer, int flags, String installerPackageName) { throw new UnsupportedOperationException(); |