summaryrefslogtreecommitdiff
path: root/core/java/android/content/ContextWrapper.java
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2013-01-17 17:47:37 -0800
committerDianne Hackborn <hackbod@google.com>2013-01-18 13:02:26 -0800
commitd8e1dbb6bc1fbaf4f2e38c3ba92ced94270deaac (patch)
tree5f6d8b2c0e66c99289ae085cb6a6a3be168eb000 /core/java/android/content/ContextWrapper.java
parentf25febf01453733e8bdd1ac241ecd9d3bcbef475 (diff)
Rework ParceledListSlice to be much easier to use.
Take advantage of this to return better information about packages filtered by permissions -- include the permissions they have in the requested array. Also fix issue #8026793 (Contact picture shows default pic while searching for a contact in qsb) by using the base package name of the Context when reporting the app name of an operation. Otherwise you could make a resource-only context for another application and do calls through that and get reported as the wrong app. Change-Id: I5e0488bf773acea5a3d22f245641828e1a106fb8
Diffstat (limited to 'core/java/android/content/ContextWrapper.java')
-rw-r--r--core/java/android/content/ContextWrapper.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/java/android/content/ContextWrapper.java b/core/java/android/content/ContextWrapper.java
index 6a61884787c8..b63f45ea6a78 100644
--- a/core/java/android/content/ContextWrapper.java
+++ b/core/java/android/content/ContextWrapper.java
@@ -135,6 +135,12 @@ public class ContextWrapper extends Context {
return mBase.getPackageName();
}
+ /** @hide */
+ @Override
+ public String getBasePackageName() {
+ return mBase.getBasePackageName();
+ }
+
@Override
public ApplicationInfo getApplicationInfo() {
return mBase.getApplicationInfo();