summaryrefslogtreecommitdiffstats
path: root/test-runner
diff options
context:
space:
mode:
authorAdnan Begovic <adnan@cyngn.com>2016-05-18 14:12:12 -0700
committerGerrit Code Review <gerrit@cyanogenmod.org>2016-05-19 10:46:27 -0700
commitb7583ae4c856162aeac18f4169cfa1d06aa641a8 (patch)
treea9214f3827da9ccad3ebafa29f102a78ffa0ebd6 /test-runner
parent2da425ef6547df98e2c912fa42f295e83359ffaf (diff)
downloadframeworks_base-b7583ae4c856162aeac18f4169cfa1d06aa641a8.zip
frameworks_base-b7583ae4c856162aeac18f4169cfa1d06aa641a8.tar.gz
frameworks_base-b7583ae4c856162aeac18f4169cfa1d06aa641a8.tar.bz2
am: Handle unchecked activity starts for protected components.
Previously if you received a notification from a protected app, since AM would state that the calling package was also the target package, the protected apps implementation would allow you to launch into the application. Mitigate this by hooking into the unchecked activity start stack (pending intent launches) globally. Change-Id: I0371593ade9e4af2554962873d89a0f82a639b57 TICKET: PAELLA-216 FEIJ-160 FEIJ-177
Diffstat (limited to 'test-runner')
-rw-r--r--test-runner/src/android/test/mock/MockPackageManager.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/test-runner/src/android/test/mock/MockPackageManager.java b/test-runner/src/android/test/mock/MockPackageManager.java
index d3e2bfd..bd0a89a 100644
--- a/test-runner/src/android/test/mock/MockPackageManager.java
+++ b/test-runner/src/android/test/mock/MockPackageManager.java
@@ -904,7 +904,8 @@ public class MockPackageManager extends PackageManager {
* @hide
*/
@Override
- public boolean isComponentProtected(String callingPackage, ComponentName componentName) {
+ public boolean isComponentProtected(String callingPackage, int callingUid,
+ ComponentName componentName) {
throw new UnsupportedOperationException();
}