diff options
| author | Dianne Hackborn <hackbod@google.com> | 2013-01-17 17:47:37 -0800 |
|---|---|---|
| committer | Dianne Hackborn <hackbod@google.com> | 2013-01-18 13:02:26 -0800 |
| commit | d8e1dbb6bc1fbaf4f2e38c3ba92ced94270deaac (patch) | |
| tree | 5f6d8b2c0e66c99289ae085cb6a6a3be168eb000 /core/java/android/content/Context.java | |
| parent | f25febf01453733e8bdd1ac241ecd9d3bcbef475 (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/Context.java')
| -rw-r--r-- | core/java/android/content/Context.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/java/android/content/Context.java b/core/java/android/content/Context.java index 14f28470a7d3..f7c28b666398 100644 --- a/core/java/android/content/Context.java +++ b/core/java/android/content/Context.java @@ -418,6 +418,9 @@ public abstract class Context { /** Return the name of this application's package. */ public abstract String getPackageName(); + /** @hide Return the name of the base context this context is derived from. */ + public abstract String getBasePackageName(); + /** Return the full application info for this context's package. */ public abstract ApplicationInfo getApplicationInfo(); |
