summaryrefslogtreecommitdiffstats
path: root/cmds
Commit message (Collapse)AuthorAgeFilesLines
* Allow silent package install for device owner.Benjamin Franz2015-04-071-1/+2
| | | | | | | | | Allow the device owner to silently install and remove packages using the PackageInstaller APIs. Show notifications to the user after the installation / deletion was successful. Bug: 19422461 Change-Id: I0506e18c510efd9d04c4aea9b60a37456e689615
* Installing packages to expanded storage.Jeff Sharkey2015-04-061-2/+53
| | | | | | | | | | | | | | | | | | | | | | | | PackageManager now offers to load/unload packages when expanded volumes are mounted/unmounted. Expanded storage volumes are still treated as FLAG_EXTERNAL_STORAGE from a public API point-of-view, but this change starts treating the INSTALL_EXTERNAL flag as exclusively meaning ASEC containers. Start tracking the UUID of the volume where a package is installed, giving us a quick way to find relevant packages. When resolving an install location, look across all expanded volumes and pick the one with the largest free space. When upgrading an existing package, continue preferring the existing volume. PackageInstaller now knows how to stage on these volumes. Add new movePackage() variant that accepts a target volume UUID as destination, it will eventually move data too. Expose this move command through "pm" command for testing. Automount expanded volumes when they appear. Bug: 19993667 Change-Id: I9ca2aa328b9977d34e8b3e153db4bea8b8d6f8e3
* Merge "Update command line usage for pm"Amith Yamasani2015-04-061-1/+1
|\
| * Update command line usage for pmAmith Yamasani2015-04-061-1/+1
| | | | | | | | | | | | Include the --user flag. Change-Id: Id2a2bc73f4b7392e308c5946eeb42b21426a1bfd
* | Various fixes and improvements...Dianne Hackborn2015-04-041-2/+2
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #19912529: VI: VoiceInteractor callback ClassCastException Fix to use correct argument. Issue #19912636: VI: Documentation for VoiceInteractionSession.onBackPressed Added documentation. Issue #19912703: VI: VoiceInteractionSession NPE on Abort Request Maybe fix this -- don't crash if there is no active session. Issue #19953731: VI: Add value index to... ...android.app.VoiceInteractor.PickOptionRequest.Option There is now an optional index integer that can be associated with every Option object. Issue #19912635: VI: Behavior of startActivity when in voice... ...interaction is unexpected We now forcibly finish the current voice interaction task whenever another activity takes focus from it. Issue #20066569: Add API to request heap dumps New ActivityManager API to set the pss limit to generate heap dumps. Also added app ops for assist receiving structure and screenshot data, so that we can track when it does these things. Change-Id: I688d4ff8f0bd0b8b9e3390a32375b4bb7875c1a1
* am 1c329e85: am 855998d0: am c90a4418: Merge "idmap: scan missing include ↵Mark Salyzyn2015-04-011-2/+3
|\ | | | | | | | | | | | | for sys/stat.h" * commit '1c329e856a1a7cdef6e55ee0269837a234631f75': idmap: scan missing include for sys/stat.h
| * idmap: scan missing include for sys/stat.hMark Salyzyn2015-04-011-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | scan.cpp gets sys/stat.h inherited from private/android_filesystem_config.h it should not rely on this in the future. The intent is to move fs_config function into libcutils and thus deprecate any need for sys/stat.h in this include file. Bug: 19908228 Change-Id: If547e86513b06c536972138ae571c3d9c714ffe9
* | am fa037c65: am f942e36a: am 5218065d: Merge "app_main missing include for ↵Mark Salyzyn2015-04-011-5/+6
|\ \ | |/ | | | | | | | | | | sys/stat.h" * commit 'fa037c65d37b911024d597415beea3a9368a6fb5': app_main missing include for sys/stat.h
| * app_main missing include for sys/stat.hMark Salyzyn2015-04-011-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | app_main.c gets sys/stat.h inherited from private/android_filesystem_config.h it should not rely on this in the future. The intent is to move fs_config function into libcutils and thus deprecate any need for sys/stat.h in this include file. Bug: 19908228 Change-Id: I477b825e582742113f849aaa1df50c41e496b6f6
* | Add --sampling to am profile startJohn Reck2015-03-261-2/+5
| | | | | | | | Change-Id: I00dfdef6a7ac61ab4ce16fefe1ddc5554ace0c88
* | Add install option to grant all runtime permissions.Svet Ganov2015-03-241-0/+3
| | | | | | | | Change-Id: I72ba67a72025646a3d53611621b0353d3a86677c
* | Runtime permissions: per user permission tracking.Svetoslav2015-03-231-6/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before all permissions were granted at install time at once, so the user was persented with an all or nothing choice. In the new runtime permissions model all dangarous permissions (nomal are always granted and signature one are granted if signatures match) are not granted at install time and the app can request them as necessary at runtime. Before, all granted permission to an app were identical for all users as granting is performed at install time. However, the new runtime model allows the same app running under two different users to have different runtime permission grants. This change refactors the permissions book keeping in the package manager to enable per user permission tracking. The change also adds the app facing APIs for requesting runtime permissions. Change-Id: Icbf2fc2ced15c42ca206c335996206bd1a4a4be5
* | SkStream is no longer a ref counted object.Leon Scroggins III2015-03-121-10/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With https://codereview.chromium.org/849103004/, SkStream is no longer ref counted. Change callers that currently unref() SkStreams to one of either: - delete the stream - pass ownership of the stream screencap.cpp: Call EncodeData directly, bypassing SkDynamicMemoryWStream and SkBitmap. Utils.cpp: Write directly to an SkData, and then use that to construct a new SkStream. Cherry-pick of a change that originally landed in master-skia and is dependent on a skia merge (ag/655422). Change-Id: Idc99ad7d5a70c893dc012d59915216f301ab3c9d
* | Add new debug feature to automatically create heap dumps.Dianne Hackborn2015-03-061-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Not yet working, unless you turn off SELinux enforcing. We need to update SElinux to allow the system process to give apps access to /data/system/heapdump/javaheap.bin. Currently watching can only be enabled through the shell, such as: adb shell am set-watch-heap com.android.systemui 1024 The last number is the process pss size in bytes, so this is asking us to warn if it goes about 1K which will be all the time. Change-Id: I2089e5db2927afca0bf01a363c6247ee5dcb26e8
* | Add a list verb to the settings cmd.John Spurlock2015-03-051-2/+48
| | | | | | | | Change-Id: I8a203eefced3431085fd1981b1d120baab2cb77a
* | Content and settings shell commands passing invalid calling package.Svetoslav2015-03-022-8/+42
| | | | | | | | Change-Id: Ia80099ba0afba054b70511c0d95265ec303446e0
* | Remove unused imports in frameworks/base.John Spurlock2015-02-285-7/+0
| | | | | | | | Change-Id: I031443de83f93eb57a98863001826671b18f3b17
* | Added ActivityManager API and AM command to resize a task.Wale Ogunwale2015-02-241-28/+58
| | | | | | | | | | | | | | Also fixed issue with ActivityStackSupervisor.moveTaskToStackLocked() functionality not working correctly. Change-Id: Ia13f1e92a7c59ce6543c226533ac8ea623488290
* | am 287c53f4: am 76507a64: am 72dc62ea: Merge "Track removal of refcounts ↵Narayan Kamath2015-02-243-6/+6
|\ \ | |/ | | | | | | | | | | from FileMap." * commit '287c53f4a8bade1cb6c2dd2fe858da9c303e3e3d': Track removal of refcounts from FileMap.
| * am 72dc62ea: Merge "Track removal of refcounts from FileMap."Narayan Kamath2015-02-243-6/+6
| |\ | | | | | | | | | | | | * commit '72dc62ead214bdec5c46d42f4e859b139dba0a00': Track removal of refcounts from FileMap.
| | * Track removal of refcounts from FileMap.Narayan Kamath2015-02-233-6/+6
| | | | | | | | | | | | | | | | | | Use delete instead of release. Change-Id: I25c841b368aa9d51e9259399b94cafa2bbb7a076
| * | Merge commit '32acf753e8989766f67fd5300d3eb467f707cc79' into HEADBill Yi2015-02-1949-175/+9523
| |\ \ | | |/ | |/|
* | | am b1ea8a53: am 2aa2672d: am 627396ac: Merge "Add missing <sys/file.h> ↵Elliott Hughes2015-02-171-0/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | include for flock." * commit 'b1ea8a5316f9e439fd7608e1152c45aaf8f098ff': Add missing <sys/file.h> include for flock.
| * \ \ am 2aa2672d: am 627396ac: Merge "Add missing <sys/file.h> include for flock."Elliott Hughes2015-02-171-0/+1
| |\ \ \ | | |/ / | | | / | | |/ | |/| * commit '2aa2672dd8168ac2bbd9d01c31ff14fea226b089': Add missing <sys/file.h> include for flock.
| | * Add missing <sys/file.h> include for flock.Elliott Hughes2015-02-161-0/+1
| | | | | | | | | | | | Change-Id: I0c66c03aeb4df614f7880a830b95c40f43f804db
* | | Fixed bug in 'am stack split' command.Wale Ogunwale2015-02-121-2/+4
| | | | | | | | | | | | Change-Id: Id3efb65a3f9cbf3c223ea08d51e2028180bd5479
* | | Am command to split a stack.Wale Ogunwale2015-02-111-1/+67
| | | | | | | | | | | | Change-Id: Idf3a364fc3826f6fe92f55b5c83b16b380d62ff4
* | | Support for activity to opt-in/out of resizeable/multi-window support.Wale Ogunwale2015-02-021-6/+35
| | | | | | | | | | | | | | | Bug: 19178148 Change-Id: I5819a71cdc48e0af4add11a6d4a503ec5cbe5d63
* | | Show stacks underneath a resized stackTodd Kennedy2015-01-301-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | When a stack is resized, make sure any non-fullscreen stack beneath it becomes visible. This may mean additional activities are resumed in the process. Bug: 19083171 Change-Id: I5e7a3f82d76932ea2b9dbf0324ea183c42ee5496
* | | am f7049289: am 3812e68e: Merge "kill HAVE_PTHREADS."Yabin Cui2015-01-271-10/+2
|\ \ \ | |/ / | | | | | | | | | | | | | | | automerge: 3a10a67 * commit '3a10a672f05735be46256617b8a61cdb1e589008': kill HAVE_PTHREADS.
| * | am f7049289: am 3812e68e: Merge "kill HAVE_PTHREADS."Yabin Cui2015-01-271-10/+2
| |\ \ | | |/ | | | | | | | | | * commit 'f70492898b3efa3c5f480f195062fa6f293bc764': kill HAVE_PTHREADS.
| | * kill HAVE_PTHREADS.Yabin Cui2015-01-261-10/+2
| | | | | | | | | | | | | | | Bug: 19083585 Change-Id: Ib466949bb6cd6d1bbc4680e989f0f9fae62ca564
* | | Expose new binder call createStackOnDisplay()Todd Kennedy2015-01-201-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | Creates a new, empty ActivityStack on a display. Use the binder call to launch an activity on said stack. Bug: 19001243 Change-Id: I0f04e8f2703bcc706f58e75333869fb35f6b1ee9
* | | Merge "Update dpm command to follow --user convention."Sudheer Shanka2015-01-191-10/+8
|\ \ \
| * | | Update dpm command to follow --user convention.Sudheer Shanka2015-01-131-10/+8
| | | | | | | | | | | | | | | | | | | | Bug: 18426246 Change-Id: Ieacba15c4b4bfaf6ac325d20554ac91a1051ca4c
* | | | Rename the binder call createActivityContainerTodd Kennedy2015-01-151-1/+2
|/ / / | | | | | | | | | | | | | | | | | | Change the call to createVirtualActivityContainer to better describe what's actually being created with the call. Change-Id: Id3a32df19a5bb6740cbabcd65897349e9f2f2946
* | | am e5cb6a25: am bb845152: Merge "pm path needs to return 0 when it ↵Hui Shu2015-01-051-1/+1
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | succeeds." into lmp-mr1-dev automerge: 9bd1382 * commit '9bd1382f210732f406e497883dc8f4039f8d33d9': pm path needs to return 0 when it succeeds.
| * | am e5cb6a25: am bb845152: Merge "pm path needs to return 0 when it ↵Hui Shu2015-01-051-1/+1
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | succeeds." into lmp-mr1-dev * commit 'e5cb6a253afa8faffb85c73779a78c74aead23ae': pm path needs to return 0 when it succeeds.
| | * \ Merge "pm path needs to return 0 when it succeeds." into lmp-mr1-devHui Shu2015-01-051-1/+1
| | |\ \
| | | * | pm path needs to return 0 when it succeeds.Hui Shu2014-12-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | BUG: 18721587 Change-Id: I2136d1933e62a20645517d17c1365d214509de16
* | | | | Merge "Support quatation mark for text command"Jaewan Kim2015-01-051-1/+1
|\ \ \ \ \
| * | | | | Support quatation mark for text commandJaewan Kim2014-12-081-1/+1
| | |_|/ / | |/| | | | | | | | | | | | | Change-Id: If32daa593f5feb3b80b143faabd7e83511df2365
* | | | | am 1bafd01a: am 44a5a30a: Merge "Fix "pm list permissions" crash if resource ↵Narayan Kamath2014-12-291-1/+4
|\ \ \ \ \ | | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | string missing" automerge: 1cc57ab * commit '1cc57aba8128134f55b6d5e4f4800c51e3472828': Fix "pm list permissions" crash if resource string missing
| * | | | am 1bafd01a: am 44a5a30a: Merge "Fix "pm list permissions" crash if resource ↵Narayan Kamath2014-12-291-1/+4
| |\ \ \ \ | | | |_|/ | | |/| | | | | | | | | | | | | | | | | | | | | | string missing" * commit '1bafd01a3fc5f94e77d1c18e5a7dcdecddcaa47f': Fix "pm list permissions" crash if resource string missing
| | * | | Merge "Fix "pm list permissions" crash if resource string missing"Narayan Kamath2014-12-291-1/+4
| | |\ \ \
| | | * | | Fix "pm list permissions" crash if resource string missingDenver Coneybeare2014-06-181-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The "pm list permissions" command lists detailed information about each permission on the system, including its label and description, both of which can be stored as translatable resource strings in APK files. However, it is possible that the resource identifiers for these strings point to non-existent resources. When this happens, the loadText() method throws Resources.NotFoundException, causing the "pm" command to abort prematurely, simply printing "Killed" to stdout and a stack trace to logcat. This commit fixes the crash by explicitly catching the Resources.NotFoundException exception in loadText() and returning null if it is thrown. The loadText() method already has the potential to return null so none of its callers need be modified. This fixes the crash and simply shows "label:null" and/or "description:null" in the output if the string resource is missing. Change-Id: I92273399e1dac6029163750d004940ee1da67428
* | | | | | am e06184e4: Merge "Add mips64 support to app_process." automerge: 51bdc62Jeff Hao2014-12-181-1/+3
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | automerge: 093dad2 * commit '093dad2a47aed9f16fd4190af4b3070b49b982f1': Add mips64 support to app_process.
| * | | | | am e06184e4: Merge "Add mips64 support to app_process."Jeff Hao2014-12-181-1/+3
| |\ \ \ \ \ | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | automerge: 51bdc62 * commit '51bdc629f59b45fa64331e3c41ac35147ed4c7f6': Add mips64 support to app_process.
| | * | | | Add mips64 support to app_process.Douglas Leung2014-12-171-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ieb05a212606f02ebad119a0aea0ed92773ace214
* | | | | | Reapply: Add generated source dependency for Jack compilation.Guang Zhu2014-12-131-0/+1
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Original change: frameworks/testing 04af616aeba3a4e57b32092afe763981d1776dc8 Change reapplied due to source location move Bug: 18708851 Change-Id: I2c220194aa94af528767c123f6fa34b623ce73d4