summaryrefslogtreecommitdiffstats
path: root/cmds/content
Commit message (Collapse)AuthorAgeFilesLines
* Add 'read' subcommand to the 'content' tool.John Spurlock2014-04-151-0/+61
| | | | | | | | Access raw content exposed by content provider openFile uris. Bug:14079104 Change-Id: I9ef0e19f9354fa12408df1583b211a8d8a2e9fdb
* sqlite integer fields are longMarco Nelissen2014-01-081-1/+1
| | | | Change-Id: I350ccfe91af707cfc234bead9341d68b55623d7b
* am f7497c9e: am 755205ad: Merge "Fix spelling error ↵Kenny Root2013-02-261-1/+1
|\ | | | | | | | | | | | | s/SORT_OREDER/SORT_ORDER/ in "content --help"" * commit 'f7497c9e551dd3bcbb7438211f5022cc6341c527': Fix spelling error s/SORT_OREDER/SORT_ORDER/ in "content --help"
| * Fix spelling error s/SORT_OREDER/SORT_ORDER/ in "content --help"Martin Olsson2013-02-261-1/+1
| | | | | | | | | | Change-Id: I8f869c9d2243ae8ff414399b7d6835c7ca74d500 Signed-off-by: Martin Olsson <martin@minimum.se>
* | Use BUILD_PREBUILT to install the shell scriptYing Wang2013-02-191-24/+6
| | | | | | | | | | | | NOTICE files will be picked up automatically. Change-Id: Ia4938aff013f1c010cbbfceacf5685722c86c39a
* | Implement support for method calls in the `content` tool.Daniel Sandler2013-01-291-0/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | $ content call --uri content://com.example --method methodname [--arg optional_string_arg] [--extra name:s:foo --extra value:i:0] The URI is just used to resolve the provider. --extra has the same syntax as --bind. Change-Id: I98cb89f0174a00e7c29ca0d8c8d809d453de3623
* | More work on App Ops service.Dianne Hackborn2013-01-161-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Fix typoMarco Nelissen2012-11-011-1/+1
|/ | | | Change-Id: I8c3797fb2d343ec6f25765fba49ac097e816d1cf
* Allow acquiring ContentProviders across users.Jeff Sharkey2012-09-211-19/+37
| | | | | | | | | | | | | Otherwise services like SystemUI will always open content://-style Uris as USER_OWNER. Surfaces through createPackageContextAsUser() which points all ContentResolver operations towards a given user. Start using in RemoteViews, so that Notifications correctly resolve image Uris to the sending user. Also add user support for "content" shell tool. Bug: 7202982 Change-Id: I8cb7fb8a812e825bb0b5833799dba87055ff8699
* Update to allow passing empty string in a binding.Svetoslav Ganov2012-02-291-5/+10
| | | | Change-Id: Ia16bd5dc78da1f5c8e52070d9c0e8431744224e8
* Fixing the content build file to include the command on user builds.Svetoslav Ganov2012-02-221-2/+0
| | | | Change-Id: Ic4a1627eff869702d04c81dcb9a877c74ed65f2a
* Fixing the build.Svetoslav Ganov2012-02-161-0/+4
| | | | Change-Id: I9ba599adea16b68c3c3af166a2845979624aef80
* Adding shell commands for modifying content.Svetoslav Ganov2012-02-155-0/+668
1. Added methods to the ActivityManagerService remote interface that allow accessing content providers outside of an application. These methods are guarded by an internal signature protected permission which is given to the shell user. This enables a shell program to access content providers. 2. Implemented a shell command that takes as input as standart fagls with values and manipulates content via the content provider mechanism. Change-Id: I2943f8b59fbab33eb623458fa01ea61a077b9845