diff options
author | Jeff Sharkey <jsharkey@android.com> | 2013-09-05 18:11:45 -0700 |
---|---|---|
committer | Jeff Sharkey <jsharkey@android.com> | 2013-09-06 08:08:18 -0700 |
commit | 911d7f411f36f2279aae44c89ff1d33a29140046 (patch) | |
tree | 98cdcb6ae4f9720b2096f252c8c0fe1d0726f56a /api/current.txt | |
parent | a61dc8e03e6e863005b3a4629ca8f3801d33d3c4 (diff) | |
download | frameworks_base-911d7f411f36f2279aae44c89ff1d33a29140046.zip frameworks_base-911d7f411f36f2279aae44c89ff1d33a29140046.tar.gz frameworks_base-911d7f411f36f2279aae44c89ff1d33a29140046.tar.bz2 |
Provide calling package to ContentProviders.
The calling package is important for ContentProviders that want to
grant Uri permissions as a side effect of operations, so offer it
through a new API. Validates the provided package against the
calling UID before returning.
Bug: 10626527
Change-Id: I7277880eebbd48444c024bcf5f69199133cd59e4
Diffstat (limited to 'api/current.txt')
-rw-r--r-- | api/current.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/api/current.txt b/api/current.txt index fa29b8f..1443bee 100644 --- a/api/current.txt +++ b/api/current.txt @@ -3172,6 +3172,7 @@ package android.app { public class AppOpsManager { method public int checkOp(int, int, java.lang.String); method public int checkOpNoThrow(int, int, java.lang.String); + method public void checkPackage(int, java.lang.String); method public void finishOp(int, int, java.lang.String); method public void finishOp(int); method public int noteOp(int, int, java.lang.String); @@ -5624,6 +5625,7 @@ package android.content { method public android.os.Bundle call(java.lang.String, java.lang.String, android.os.Bundle); method public abstract int delete(android.net.Uri, java.lang.String, java.lang.String[]); method public void dump(java.io.FileDescriptor, java.io.PrintWriter, java.lang.String[]); + method public final java.lang.String getCallingPackage(); method public final android.content.Context getContext(); method public final android.content.pm.PathPermission[] getPathPermissions(); method public final java.lang.String getReadPermission(); |