commit | 1f4d95296acf34a93128332441782a80c10845b4 | [log] [tgz] |
---|---|---|
author | David 'Digit' Turner <digit@google.com> | Tue Mar 02 18:05:23 2010 -0800 |
committer | David 'Digit' Turner <digit@google.com> | Wed Mar 17 11:02:08 2010 -0700 |
tree | 2b8cf38a4716b2c622c564d3a7da82022cdaf9c9 | |
parent | 5fc070be8593f39f5140ab63fb6f5eccceb1dc83 [diff] |
Add 'run-as' command implementation as set-uid program. Typical usage is 'run-as <package-name> <command>' to run <command> in the data directory, and the user id, of <package-name> if, and only if <package-name> is the name of an installed and debuggable application. This relies on the /data/system/packages.list file generated by the PackageManager service. BEWARE: This is intended to be available on production devices !