History log of /frameworks/base/cmds/content/src/com/android/commands/content/Content.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
ff17024e583b170312d82089fd358d278ce16c9a 19-Nov-2014 Dianne Hackborn <hackbod@google.com> Fix issue with call backs from media process.

All but a few lines of this is for issue #16013164, which allowed
apps to do some operations as the media uid by having it call
back to them to open a file. The problem here is with the tempory
identity stuff in the activity manager, allowing us to make the open
call as the original caller... ideally we should figure out a way
to just get rid of all of that, but the solution here is actually
easier (even though it doesn't look it) -- we now hand a token over
to the openFile() call that it can use when doing permission checks
to say "yes I would like the check to be against whoever is responsible
for the open". This allows us to do the uid remapping for only this
one specific set of permission checks, and nothing else.

Also fix issue #17487348: Isolated services can access system services
they shouldn't be able to. Don't send any system service IBinder objects
down for the first initialization of an isolated process.

Change-Id: I3c70e16e0899d7eef0bae458e83958b41ed2b75e
/frameworks/base/cmds/content/src/com/android/commands/content/Content.java
cee823e4d4d3a7217cbaf8fcdd10da7999881290 15-Apr-2014 John Spurlock <jspurlock@google.com> Add 'read' subcommand to the 'content' tool.

Access raw content exposed by content provider
openFile uris.

Bug:14079104
Change-Id: I9ef0e19f9354fa12408df1583b211a8d8a2e9fdb
/frameworks/base/cmds/content/src/com/android/commands/content/Content.java
8964cbbb508b21b5a1771644466e48d4a1247a9f 20-Dec-2013 Marco Nelissen <marcone@google.com> sqlite integer fields are long

Change-Id: I350ccfe91af707cfc234bead9341d68b55623d7b
/frameworks/base/cmds/content/src/com/android/commands/content/Content.java
c2235472dacd31aa30ffc13de2c29488c3b6c338 26-Feb-2013 Kenny Root <kroot@android.com> am f7497c9e: am 755205ad: Merge "Fix spelling error s/SORT_OREDER/SORT_ORDER/ in "content --help""

* commit 'f7497c9e551dd3bcbb7438211f5022cc6341c527':
Fix spelling error s/SORT_OREDER/SORT_ORDER/ in "content --help"
64d0b3f9186bfb41cd14203d11f34c6fe0121945 26-Feb-2013 Martin Olsson <martin@minimum.se> Fix spelling error s/SORT_OREDER/SORT_ORDER/ in "content --help"

Change-Id: I8f869c9d2243ae8ff414399b7d6835c7ca74d500
Signed-off-by: Martin Olsson <martin@minimum.se>
/frameworks/base/cmds/content/src/com/android/commands/content/Content.java
d2c0c1021e7da8b2a4d9a6e61d52766381fca23f 29-Jan-2013 Daniel Sandler <dsandler@android.com> Implement support for method calls in the `content` tool.

$ 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
/frameworks/base/cmds/content/src/com/android/commands/content/Content.java
35654b61e8fe7bc85afcb076ddbb590d51c5865f 15-Jan-2013 Dianne Hackborn <hackbod@google.com> 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
/frameworks/base/cmds/content/src/com/android/commands/content/Content.java
a4256d1d7b17b86a4446448f54ab9b443c3094f7 01-Nov-2012 Marco Nelissen <marcone@google.com> Fix typo

Change-Id: I8c3797fb2d343ec6f25765fba49ac097e816d1cf
/frameworks/base/cmds/content/src/com/android/commands/content/Content.java
6d51571835737c7502a2e111ee9dc2527ebad984 21-Sep-2012 Jeff Sharkey <jsharkey@android.com> Allow acquiring ContentProviders across users.

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
/frameworks/base/cmds/content/src/com/android/commands/content/Content.java
8486bc11baa717390796f2ebd55c7b2ae9294bb7 29-Feb-2012 Svetoslav Ganov <svetoslavganov@google.com> Update to allow passing empty string in a binding.

Change-Id: Ia16bd5dc78da1f5c8e52070d9c0e8431744224e8
/frameworks/base/cmds/content/src/com/android/commands/content/Content.java
25872aa3ef189ae5506a923398af11ce5eb1a9b9 04-Feb-2012 Svetoslav Ganov <svetoslavganov@google.com> Adding shell commands for modifying content.

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
/frameworks/base/cmds/content/src/com/android/commands/content/Content.java