summaryrefslogtreecommitdiffstats
path: root/cmds/content
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2013-01-14 17:38:02 -0800
committerDianne Hackborn <hackbod@google.com>2013-01-16 12:11:01 -0800
commit35654b61e8fe7bc85afcb076ddbb590d51c5865f (patch)
tree0f42a90b4deaa0156d84df5d79b78cd6f2ac8807 /cmds/content
parent8a8b047f2d28f6b2d728731a7e71eeaf16f89700 (diff)
downloadframeworks_base-35654b61e8fe7bc85afcb076ddbb590d51c5865f.zip
frameworks_base-35654b61e8fe7bc85afcb076ddbb590d51c5865f.tar.gz
frameworks_base-35654b61e8fe7bc85afcb076ddbb590d51c5865f.tar.bz2
More work on App Ops service.
Implemented reading and writing state to retain information across boots, API to retrieve state from it, improved location manager interaction to monitor both coarse and fine access and only note operations when location data is being delivered back to app (not when it is just registering to get the data at some time in the future). Also implement tracking of read/write ops on contacts and the call log. This involved tweaking the content provider protocol to pass over the name of the calling package, and some infrastructure in the ContentProvider transport to note incoming calls with the app ops service. The contacts provider and call log provider turn this on for themselves. This also implements some of the mechanics of being able to ignore incoming provider calls... all that is left are some new APIs for the real content provider implementation to be involved with providing the correct behavior for query() (return an empty cursor with the right columns) and insert() (need to figure out what URI to return). Change-Id: I36ebbcd63dee58264a480f3d3786891ca7cbdb4c
Diffstat (limited to 'cmds/content')
-rw-r--r--cmds/content/src/com/android/commands/content/Content.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/cmds/content/src/com/android/commands/content/Content.java b/cmds/content/src/com/android/commands/content/Content.java
index 4baea77..2ae2071 100644
--- a/cmds/content/src/com/android/commands/content/Content.java
+++ b/cmds/content/src/com/android/commands/content/Content.java
@@ -358,7 +358,7 @@ public class Content {
@Override
public void onExecute(IContentProvider provider) throws Exception {
- provider.insert(mUri, mContentValues);
+ provider.insert(null, mUri, mContentValues);
}
}
@@ -372,7 +372,7 @@ public class Content {
@Override
public void onExecute(IContentProvider provider) throws Exception {
- provider.delete(mUri, mWhere, null);
+ provider.delete(null, mUri, mWhere, null);
}
}
@@ -389,7 +389,7 @@ public class Content {
@Override
public void onExecute(IContentProvider provider) throws Exception {
- Cursor cursor = provider.query(mUri, mProjection, mWhere, null, mSortOrder, null);
+ Cursor cursor = provider.query(null, mUri, mProjection, mWhere, null, mSortOrder, null);
if (cursor == null) {
System.out.println("No result found.");
return;
@@ -451,7 +451,7 @@ public class Content {
@Override
public void onExecute(IContentProvider provider) throws Exception {
- provider.update(mUri, mContentValues, mWhere, null);
+ provider.update(null, mUri, mContentValues, mWhere, null);
}
}