From 86c3e388dc1a483111af610d237204f4b575993d Mon Sep 17 00:00:00 2001 From: Raj Yengisetty Date: Fri, 14 Nov 2014 09:44:50 -0800 Subject: Protected apps Fix up protected apps filter. Move filtering to correct place (when querying providers, ResolveInfo.activityInfo is null), and port over commit 4dad4a4e84ec385a80ebfae91c4dcd03ec30c9d0 from cm-11.0. Protected Apps: do not filter components from the same UID pm: Use ArraySet instead of HashSet packagemanager: Use ArrayMap/ArraySet as per AOSP * To reduce memory consumption Change-Id: Ic690387cd21fdfa09ef5fb19bd3de9305050cf6e --- test-runner/src/android/test/mock/MockPackageManager.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test-runner') diff --git a/test-runner/src/android/test/mock/MockPackageManager.java b/test-runner/src/android/test/mock/MockPackageManager.java index 1ff621a..808498b 100644 --- a/test-runner/src/android/test/mock/MockPackageManager.java +++ b/test-runner/src/android/test/mock/MockPackageManager.java @@ -870,6 +870,13 @@ public class MockPackageManager extends PackageManager { public boolean isUpgrade() { throw new UnsupportedOperationException(); } + /** + * @hide + */ + @Override + public void setComponentProtectedSetting(ComponentName componentName, boolean newState) { + throw new UnsupportedOperationException(); + } /** * @hide -- cgit v1.1