summaryrefslogtreecommitdiffstats
path: root/cmds
Commit message (Collapse)AuthorAgeFilesLines
...
| | * | | | | | | am 56b7d562: Merge "Add support for playing audio during bootanimation" into ↵Mike Lockwood2014-10-065-18/+421
| | |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | lmp-dev * commit '56b7d562af4dd0e7bd04163fe9a86a801fcff1fe': Add support for playing audio during bootanimation
| | * \ \ \ \ \ \ \ am 75c33d9d: Merge "Adds the ability to start a user in background" into lmp-devAlexandra Gherghina2014-09-301-1/+17
| | |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '75c33d9d04d8c0a9884a70077681261b57c7833c': Adds the ability to start a user in background
| | * \ \ \ \ \ \ \ \ am 7fa90f6a: Merge "bootanimation: allow animation to specify background ↵Jesse Hall2014-09-262-3/+43
| | |\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | color" into lmp-dev * commit '7fa90f6ae5c04d96b3210a45898d1e7a8f5ef8e6': bootanimation: allow animation to specify background color
| | * \ \ \ \ \ \ \ \ \ am 23df1c46: Merge "Allow null queues to be set in MediaSession" into lmp-devRoboErik2014-09-251-1/+2
| | |\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '23df1c46b768bb2a1363b6f671b0d0c4879538b7': Allow null queues to be set in MediaSession
| | * \ \ \ \ \ \ \ \ \ \ am c840e31d: am fa436298: Merge "Broadcast an intent to mediascanner after ↵Marco Nelissen2014-09-221-1/+20
| | |\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | executing screencap" * commit 'c840e31d0ee772373b1be7469b7bfbe28715d52e': Broadcast an intent to mediascanner after executing screencap
* | | \ \ \ \ \ \ \ \ \ \ \ am 9647bdd9: am 70bbbd32: Merge "More flexible intent extra parsing." into ↵Daniel Sandler2014-11-051-4/+19
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | |_|_|_|_|_|_|_|_|_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | lmp-mr1-dev * commit '9647bdd97ec7fda804244bde195ca10219726e89': More flexible intent extra parsing.
| * | | | | | | | | | | | | Merge "More flexible intent extra parsing." into lmp-mr1-devDaniel Sandler2014-11-051-4/+19
| |\ \ \ \ \ \ \ \ \ \ \ \ \
| | * | | | | | | | | | | | | More flexible intent extra parsing.Daniel Sandler2014-10-291-4/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Specifically, --ei (int extras) and --eia (int[] extras) now use Integer.decode(), which means they accept negative integers, base-16 integers formatted as #NNN and 0xNNN, and base-8 integers formatted as 0NNN. Additionally, --ez (boolean extras) can now be specified as "true", "false", "t", "f", or an integer (any nonzero treated as true). The previous behavior, based on Boolean.valueOf(), would silently assign false if you managed to get the spelling of "true" wrong. Change-Id: I058254e907308006d403b5b7866c86bcaa03d8d3
* | | | | | | | | | | | | | | am 984cf41a: Merge "Have Pm return the correct code" into lmp-mr1-devEvan Charlton2014-10-311-147/+185
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | automerge: e8b451d * commit 'e8b451dd123b96252026992be3c96c9c577b4245': Have Pm return the correct code
| * | | | | | | | | | | | | | Have Pm return the correct codeEvan Charlton2014-10-311-147/+185
| |/ / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the command fails, have Pm return a nonzero exit code. Bug: 18085950 Change-Id: I3de1b8f69aa8f44b2e2109864c1aa093e3b82141
| * | | | | | | | | | | | | Link sigchain to main executableDmitriy Ivanov2014-10-162-2/+32
| | |_|_|_|_|_|_|_|/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also export necessary symbols to preempt calls from libart.so Bug: 15345057 Bug: 15426766 (cherry picked from commit 96e0cfa721925550b1cc39cdfd6084a878e6ffe2) Change-Id: I0930d96edde7dc0636e8d50d7c778f099237f748
* | | | | | | | | | | | | am 09a7d324: am 388dbd28: Merge "Include <time.h> for clock_nanosleep."Elliott Hughes2014-10-211-4/+1
|\ \ \ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '09a7d324ef15dab7f7bea72aa16b1585285cadf1': Include <time.h> for clock_nanosleep.
| * | | | | | | | | | | | Merge "Include <time.h> for clock_nanosleep."Elliott Hughes2014-10-211-4/+1
| |\ \ \ \ \ \ \ \ \ \ \ \ | | |_|_|_|_|_|_|_|_|_|/ / | |/| | | | | | | | | | |
| | * | | | | | | | | | | Include <time.h> for clock_nanosleep.Elliott Hughes2014-10-211-4/+1
| | | |_|_|_|_|_|_|_|/ / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: If3098fa03003bce5d06d60e9129c10cce3c850bb
* | | | | | | | | | | | am 9be7db6e: am 952dd924: Merge "Switch to libsigchain.a"Dmitriy Ivanov2014-10-212-27/+7
|\ \ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '9be7db6e3bc374efd9dcff744deab92148e20dbd': Switch to libsigchain.a
| * | | | | | | | | | | Switch to libsigchain.aDmitriy Ivanov2014-10-202-27/+7
| |/ / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use LOCAL_WHOLE_STATIC_LIBRARIES to instruct static linker to export symbols from the static library. Change-Id: I465806dcffc777a682523f74ae6f7ab61aaa6962
* | | | | | | | | | | am d1e735ef: am ed583f5e: Merge "Link sigchain to main executable"Dmitriy Ivanov2014-10-142-2/+32
|\ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'd1e735ef547c1720aa5bb56a446afbb7a8652599': Link sigchain to main executable
| * | | | | | | | | | Link sigchain to main executableDmitriy Ivanov2014-10-092-2/+32
| | |_|/ / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also export necessary symbols to preempt calls from libart.so Bug: 15345057 Bug: 15426766 Change-Id: If0b7f59a59824e30aa0c33dad76c7a44932180de
* | | | | | | | | | am 8f6928f1: am e61e68d0: am 18d2d51e: am 7ea69880: Merge "Improve some ↵Dianne Hackborn2014-10-101-5/+3
|\ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | docs, fix some debugging." into lmp-dev * commit '8f6928f1399620ce432b82d046912e2030d6511c': Improve some docs, fix some debugging.
| * | | | | | | | | Improve some docs, fix some debugging.Dianne Hackborn2014-10-091-5/+3
| | |_|_|_|_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add docs to Binder, Messenger, ResultReceier to explain their relation (or lack there-of) to process lifecycle. - Clarify some aspects of process lifecycle for services. - Fix help text of am command. - Fix per-package dumping of battery stats to not include history. - Fix per-package dumping of proc stats to only include aggregated and current stats and fix some formatting. - Fix per-process dumping of meminfo to have an option to interpret the input as a package, so including all processes that are running code of that package. - Fix top-level per-package debug output to correctly include all of these improvements and give them a little more time (10s) to complete for timing out. Change-Id: I2a04c0f862bd47b08329443d722345a13ad9b6e2
* | | | | | | | | am 500913ee: am cf1e5c39: am cf61b3f6: am 3910f53c: Merge "bootanimation: ↵Mike Lockwood2014-10-101-0/+3
|\ \ \ \ \ \ \ \ \ | |/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tweak parameters for pcm_open for playing boot sounds." into lmp-dev * commit '500913ee002eb8a6a418732f3a6d7549ac046eaf': bootanimation: Tweak parameters for pcm_open for playing boot sounds.
| * | | | | | | | bootanimation: Tweak parameters for pcm_open for playing boot sounds.Mike Lockwood2014-10-071-0/+3
| | |_|_|_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Set start_threshold and avail_min to 1/4th period size and stop_threshold to INT_MAX Change-Id: I0a3aac18533709daa86a024cdd6a32086410723a
* | | | | | | | am 66c009eb: am bb68c263: am 3df6b76c: am 56b7d562: Merge "Add support for ↵Mike Lockwood2014-10-075-18/+421
|\ \ \ \ \ \ \ \ | |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | playing audio during bootanimation" into lmp-dev * commit '66c009ebfe5b31aa1f176d4856d95f5daad6079d': Add support for playing audio during bootanimation
| * | | | | | | Add support for playing audio during bootanimationMike Lockwood2014-10-035-18/+421
| | |_|_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The bootanimation daemon will play 16 bit WAV files contained in bootanimation.zip For this to work, the bootanimation.zip must contain an audio_conf.txt file, which contains parameters to be used for the tinyalsa pcm_open call as well as mixer parameters to set before attempting to play the sound. If the bootanimation finds an audio_conf.txt file, then it will look for a file named "audio.wav" in each of the part subdirectories. If audio.wav is found, it will play that WAV file starting at the beginning of that part. The code for this is based on the tinyplay utility in tinyalsa. The audio_conf.txt and must begin with the following header: card=<ALSA card number> device=<ALSA device number> period_size=<period size> period_count=<period count> This header is followed by zero or more mixer settings, each with the format: mixer "<name>" = <value list> Since mixer names can contain spaces, the name must be enclosed in double quotes. The values in the value list can be integers, booleans (represented by 0 or 1) or strings for enum values. Finally I should mention that this change is not the right approach. Instead of going straight to ALSA we should be using the mediaserver instead. But mediaserver isn't ready in time due to interactions with the system server, and there isn't time to fix this for the current release. We need to fix that for the next one. Bug: 17674304 Change-Id: Ic391ade61c941d0a24f4d64fe005ac9375a23fa9
* | | | | | | am 8292b033: am a266670a: am d7275ae2: am 75c33d9d: Merge "Adds the ability ↵Alexandra Gherghina2014-10-011-1/+17
|\ \ \ \ \ \ \ | |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to start a user in background" into lmp-dev * commit '8292b0331e21af8786791067e92009e949448f3f': Adds the ability to start a user in background
| * | | | | | Adds the ability to start a user in backgroundAlexandra Gherghina2014-09-291-1/+17
| | |_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | Bug: 15900074 Change-Id: I03b278f8e7a4618ea56a5f1935cfba34beb45981
* | | | | | am f295b675: am 9a2eafc1: am 12297705: am 7fa90f6a: Merge "bootanimation: ↵Jesse Hall2014-09-262-3/+43
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | allow animation to specify background color" into lmp-dev * commit 'f295b675239892c8637d3ad48777226314be2de1': bootanimation: allow animation to specify background color
| * | | | | bootanimation: allow animation to specify background colorJesse Hall2014-09-252-3/+43
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some OEMs want to have a bootanimation (or parts of it) displayed on a color other than black. They currently just use full-screen frames for that, which wastes lots of memory and bandwidth. This change allows each part of the animation to specify a background color that will be applied outside of the frame images; if unspecified the background will be black as it is now. Bug: 16635599 Change-Id: Ibf008fc75c5aad891c86ba9e4ec0879b7a61b8bd
* | | | | am 5e8f023d: am a59c7f03: am dff59b8b: am 23df1c46: Merge "Allow null queues ↵RoboErik2014-09-261-1/+2
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | to be set in MediaSession" into lmp-dev * commit '5e8f023dc17788a18bc5640a42baaf2bec609745': Allow null queues to be set in MediaSession
| * | | | Allow null queues to be set in MediaSessionRoboErik2014-09-241-1/+2
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | Also add some test code for it to OneMedia. bug:17593962 Change-Id: I074e2bb0329d9a97f623e4309bb7dada157b8324
* | | | am c840e31d: am fa436298: Merge "Broadcast an intent to mediascanner after ↵Marco Nelissen2014-09-221-1/+20
|\ \ \ \ | |/ / / |/| / / | |/ / | | | | | | | | | executing screencap" * commit 'c840e31d0ee772373b1be7469b7bfbe28715d52e': Broadcast an intent to mediascanner after executing screencap
| * | Merge "Broadcast an intent to mediascanner after executing screencap"Marco Nelissen2014-09-221-1/+20
| |\ \
| | * | Broadcast an intent to mediascanner after executing screencapUmair Khan2014-06-121-1/+20
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PS2: Fix for spaces in file names After doing screencap /sdcard/test.png in shell the screenshot is captured but the gallery is not updated. So we should broadcast the intent android.intent.action.MEDIA_SCANNER_SCAN_FILE for the image to show up in gallery. Change-Id: I8e384865082c717842d70d376d5828d74a2ad780 Signed-off-by: Umair Khan <omerjerk@gmail.com>
| * | Change /dalvik-cache to be owned by root.Alex Light2014-08-281-3/+3
| |/ | | | | | | | | | | Bug: 16875245 Change-Id: I29a70215a2207bc4e0db02ab751d32a68edf4b66
| * Add an --abi argument to "pm install"Narayan Kamath2014-06-031-3/+27
| | | | | | | | | | | | | | | | This allows callers to force an install to a particular ABI. This is intended only for testing (and CTS) and is not meant for usage by the installer package. Change-Id: Icb1528c0cd35b1aa9323386cb35ff4aaba374fcb
* | Merge "Make dpm command output more test friendly" into lmp-devEsteban Talavera2014-09-181-3/+3
|\ \
| * | Make dpm command output more test friendlyEsteban Talavera2014-09-181-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added 'Success' at the beginning of the command output every time it didn't fail, so that we can easily check the output in tests. The command is brand new, only used by us on CTS tests, so this shouldn't break anybody. Bug: 17312478 Change-Id: Ie67bf5b2f44e658e7009e5bd87f8cb81be515584
* | | Merge "Fix issue #17536024: The am start's wait option doesn't..." into lmp-devDianne Hackborn2014-09-171-0/+4
|\ \ \ | |/ / |/| |
| * | Fix issue #17536024: The am start's wait option doesn't...Dianne Hackborn2014-09-171-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ...give time in some cases This switch to multiple stacks broke the check to determine if it should actually wait for a new activity to be shown. The new check now also requires that the top activity be resumed, which means we may get some false positives where we decide to wait and shouldn't, but that is better than consistently not deciding to wait in some cases when we should. (And we will always finish waiting then next time something becomes visible). Also add another time, which is how long it took from the startActivity call to return with the result. And fix when we decide to report that we are done so that, in the case where we are bringing an existing activity to the foreground, we don't wait until its animation is complete. Change-Id: Id38ca0070f04e7bf8c73e131fb055808553a0e2f
* | | Add 'adb dpm' subcommand to set profile ownerEsteban Talavera2014-09-162-14/+51
|/ / | | | | | | | | | | | | | | | | Required for GTS tests. Needed to relax the restriction that only root user can run 'pm create-user' as GTS tests can't get root permissions. Bug: 17312478 Change-Id: I1841286ddf51756c73018c087a5f29afeb5b9f15
* | Merge "Whoops, wait around for pm result." into lmp-devJeff Sharkey2014-09-151-1/+5
|\ \
| * | Whoops, wait around for pm result.Jeff Sharkey2014-09-151-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | poll() returns immediately; we want to take() to wait for the result to actually arrive. Bug: 17510699 Change-Id: I87669e79e9941480fed33e4cc8a38de793d59e90
* | | Set device admin on dpm set-device-owner commandEsteban Talavera2014-09-151-9/+26
|/ / | | | | | | | | Bug: 17312478 Change-Id: I4ef730a97d603352eda77f04a2b00fa97c2be662
* | Merge "Bring install and install-multiple into parity." into lmp-devJeff Sharkey2014-09-121-16/+22
|\ \
| * | Bring install and install-multiple into parity.Jeff Sharkey2014-09-111-16/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This ensures that both are using (almost) identical logic when deciding what installs to proceed with. Installs from "pm" for all users now run as OWNER, and rely solely on INSTALL_ALL_USERS to express intent. This keeps install session notifications simple. Since installer UID can vary from installer package name, start persisting the UID. Also parse some missing flags for install sessions. Bug: 17469392 Change-Id: I6d89b1a787aa2024cc4bebf6b9c29317c358e147
* | | Merge "Add new adb dpm (= DevicePolicyManager) command" into lmp-devEsteban Talavera2014-09-125-0/+288
|\ \ \
| * | | Add new adb dpm (= DevicePolicyManager) commandEsteban Talavera2014-09-125-0/+288
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds new adb command to execute DevicePolicyManager tasks. First subcommand allows us to set a device owner on a provisioned device (provided no accounts are associated with the device). This is required as GTS tests run on provisioned devices. We plan to add more subcomands required for new GTS tests, such as the ability to create a managed profile. Bug: 17312478, 17316711 Change-Id: I2613178ea82a6c6268e7f8012e74c4a852fea0d4
* | | | Merge "Clean entire arg block when setting process name." into lmp-devJeff Brown2014-09-111-9/+20
|\ \ \ \ | |_|/ / |/| | |
| * | | Clean entire arg block when setting process name.Jeff Brown2014-09-111-9/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When Android processes fork from Zygote, we rewrite the command line with a new name, eg. "system_server". When we do this, we should fill the entire block with zeros to remove corrupted argument information that may otherwise remain in the /proc/<pid>/cmdline buffer and be seen in tools and stack dumps. Fixed an issue where VM options could be overwritten after setting the nice name if the name was too long. Bug: 17474152 Change-Id: Ie6cf9ed7752a04300a340e26cd6812bb35c59e1b
* | | | Merge "Apply cross-user restrictions to Shell" into lmp-devAmith Yamasani2014-09-111-1/+1
|\ \ \ \ | |_|/ / |/| | |