summaryrefslogtreecommitdiffstats
path: root/cmds
Commit message (Collapse)AuthorAgeFilesLines
* Add 'fullbackup' to bmgr's usage statementChristopher Tate2014-06-241-4/+11
| | | | | | | | Also make it handle the list of packages to be backed up as a single multiple-app argument to fullTransportBackup() rather than N calls each backing up one app. Change-Id: I9fe4d5caca54fafef70ffe9af4c26e3941dc5d26
* stop using (deprecated) SkBitmap::ConfigMike Reed2014-06-201-5/+6
| | | | Change-Id: Ic75b5fc6996578e9d95bd3a220439ec1541d7c3b
* Remove some more old code and fix Media commandRoboErik2014-06-191-61/+105
| | | | | | | | | Removes some more hidden apis from AudioService/Manager. This also fixes up Media.java to support commands for the new service to help with debugging. Also fixes a couple bugs that were found while fixing up Media. Change-Id: I68e4aa80a4de430b98236aafc883664b9432c62b
* Support multiple resource tables with same packageAdam Lesinski2014-06-183-159/+184
| | | | | | | | | | | | | | | | | | | | In order to support APK split features, the resource table needs to support loading multiple resource tables with the same package but potentially new set of type IDs. This adds some complexity as the type ID space changes from dense and ordered to potentially sparse. A ByteBucketArray is used to store the type IDs in a memory efficient way that allows for fast retrieval. In addition, the IDMAP format has changed. We no longer need random access to the type data, since we store the types differently. However, random access to entries of a given type is still required. Change-Id: If6f5be680b405b368941d9c1f2b5d2ddca964160
* Plumb split APKs into public API.Jeff Sharkey2014-06-171-0/+8
| | | | | | | | | | | Introduces new ApplicationInfo fields to surface zero or more split APKs for an application. Splice these APKs into both the class loader and resource system. Cleaner building of these paths. Run dexopt() on all split APKs found after a parse, and populate into ApplicationInfo. Change-Id: I4a376bf4492d84ea95aafa866e106ea43a43e492
* Change am get-config command to use ABI string arrayAdam Lesinski2014-06-171-5/+2
| | | | | | | | There is a list of supported ABIs in android.os.Build which is ordered by preference. This is a more flexible list to use instead of 2 fixed ABIs. Change-Id: I6aa3b39b5ffa888ed83a870b937e18328dd6de39
* New command to get device configAdam Lesinski2014-06-161-2/+29
| | | | Change-Id: I7172a3a150fd83e2382ca3e4e4a0188758189f14
* Implement full data backup through transportChristopher Tate2014-06-152-1/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | Currently no timed/scheduled full-data backup operations are performed by the OS, but the plumbing is now in place and can be tested using 'adb shell bmgr fullbackup pkg [pkg2 pkg3 ...]'. The LocalTransport test transport implementation has been augmented to support the new full-data backup API as well. In addition, 'adb backup' now takes the -compress/-nocompress command line options to control whether the resulting archive is compressed before leaving the device. Previously the archive was always compressed. (The default is still to compress, as it will usually reduce the archive size considerably.) Internally, the core implementation of gathering the full backup data stream from the target application has been refactored into an "engine" component that is shared by both 'adb backup' and the transport-oriented full backup task. The archive file header generation, encryption, and compression logic are now factored out of the engine itself instead of being hardwired into the data handling. Bug 15329632 Change-Id: I4a044faa4070d684ef457bd3e11771198cdf557c
* am 6d758619: Merge "Implement control of auto power save mode." into ↵Dianne Hackborn2014-06-121-2/+32
|\ | | | | | | | | | | | | lmp-preview-dev * commit '6d758619d90a0dda7f1136dcd44d0ac02cdada7e': Implement control of auto power save mode.
| * Implement control of auto power save mode.Dianne Hackborn2014-06-111-2/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Follow the setting for auto power save mode in both battery service and battery UI. Default level is 15 when setting is not set; otherwise it is whatever the setting gives, with 0 meaning auto battery save is off. Change how we define the "turn off warn" level to be an adjustment from the warn level, so we can have a good value for whatever auto setting is set. Fix power manager to never go in to power save mode when plugged in, even if the user has manually turned it on. Add new delete option to settings command, because I needed it for testing. Change-Id: I512b691df84399d50b8e751fd50732c6093ebe85
* | Merge "Add an --abi argument to "pm install""Narayan Kamath2014-06-031-3/+27
|\ \
| * | 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. bug: 14453227 (cherry picked from commit 6431d11cd420536aaa9d93ae510a3151ccc4df1d) Change-Id: I85d4f8785deea02a6a4d3cb0b05e6ef8bf64826b
* | | Merge "Read data from stdin/stdout to follow adb change."Jeff Sharkey2014-06-021-4/+3
|\ \ \
| * | | Read data from stdin/stdout to follow adb change.Jeff Sharkey2014-05-291-4/+3
| | |/ | |/| | | | | | | Change-Id: I29ee5e05a538c6836f18b9cc9331c74f41936b29
* | | am f7871c31: am b9b31f4b: am bd4d3203: Merge "Support an ABI flag for ↵Narayan Kamath2014-05-301-2/+29
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | instrumentation." * commit 'f7871c31469c6245c1b232a15104704f7481103c': Support an ABI flag for instrumentation.
| * | am b9b31f4b: am bd4d3203: Merge "Support an ABI flag for instrumentation."Narayan Kamath2014-05-301-2/+29
| |\ \ | | | | | | | | | | | | | | | | * commit 'b9b31f4b8eda123e7b544d1a0fa886576064adca': Support an ABI flag for instrumentation.
| | * \ am bd4d3203: Merge "Support an ABI flag for instrumentation."Narayan Kamath2014-05-301-2/+29
| | |\ \ | | | | | | | | | | | | | | | | | | | | * commit 'bd4d320344833ce67dad3a4e10a61d0502a81d0e': Support an ABI flag for instrumentation.
| | | * | Support an ABI flag for instrumentation.Narayan Kamath2014-05-161-2/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allows us to choose what ABI a process uses when launching it with "adb shell am instrument", for eg. adb shell am instrument --abi arm64-v8a component/runner Note that we only perform very basic validation of the ABI. In general, there is no guarantee that the app will launch with the instruction set we choose, for eg. if it has native libraries that are for a different ABI. bug: 14453227 Change-Id: Ifb7e89b53675080dc87941091ee5ac360f218d7f
* | | | | Merge "SurfaceFlinger: Add sourceCrop to screenshot"Dan Stoza2014-05-281-1/+1
|\ \ \ \ \
| * | | | | SurfaceFlinger: Add sourceCrop to screenshotDan Stoza2014-05-231-1/+1
| | |_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds a sourceCrop Rect parameter to screenshot commands, which allows clients to capture only a portion of the screen instead of the whole screen. Bug: 15137922 Change-Id: I629447573cd34ffb96334cde7ba02490b9ea06d8
* | | | | Add ability to uninstall per user to adb shell pm.Kenny Guy2014-05-231-6/+43
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Default is still uninstall for all users, but if --user is passed in it will just uninstall for that user. For system apps if --user is supplied it will uninstall rather than revert to the current system version. Change-Id: If1be0f78f01391f7ac6b53150dfeeccd0c002899
* | | | am 1810927a: am eabc93db: am c4c08803: Merge "app_process: change ↵Narayan Kamath2014-05-151-2/+5
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | app_process a symlink of primary version" * commit '1810927a9b8f6d2597d18c0e77389b4a6fcb5118': app_process: change app_process a symlink of primary version
| * | | am eabc93db: am c4c08803: Merge "app_process: change app_process a symlink ↵Narayan Kamath2014-05-151-2/+5
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | | | | of primary version" * commit 'eabc93db1020be4b71f0db7d5b5d3a7991f3c264': app_process: change app_process a symlink of primary version
| | * | am c4c08803: Merge "app_process: change app_process a symlink of primary ↵Narayan Kamath2014-05-151-2/+5
| | |\ \ | | | |/ | | | | | | | | | | | | | | | | | | | | version" * commit 'c4c08803a8cc090aa27720e97df342231e8433af': app_process: change app_process a symlink of primary version
| | | * app_process: change app_process a symlink of primary versionYongqin Liu2014-05-141-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change app_process to be a symlink to the primary version and have app_process32/app_process64 be the 32-bit/64-bit versions respectively. This will make it possible to use the primary zygote for am/pm commands and other scripts that use app_process and don't need a specific zygote. Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org> Change-Id: Ibef545994eb95ddc82101c95df613ad1d06345e6
| * | | am c8a045d4: am 41f40581: Merge "Fix x86 build in app_process."Narayan Kamath2014-05-011-1/+1
| |\ \ \ | | |/ / | | | | | | | | | | | | * commit 'c8a045d451522adab5226b0063f3a15d34542bf7': Fix x86 build in app_process.
| | * | am 41f40581: Merge "Fix x86 build in app_process."Narayan Kamath2014-05-011-1/+1
| | |\ \ | | | |/ | | | | | | | | | | | | * commit '41f40581ee0284660d30be8ef28f6bf721c4ce10': Fix x86 build in app_process.
| | | * Fix x86 build in app_process.Narayan Kamath2014-05-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Look for __i386__ and not __x86__. (cherry picked from commit 47d526217b3fd0d17ba751c66d25cfaf1c6ed7cd) Change-Id: I848ba351c378e59ab6744ca1983ae4463ae75ba4
| * | | am ff34f6fa: am 27b03e62: Merge "Create arch specific cache dirs during ↵Narayan Kamath2014-05-011-0/+42
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | | | | zygote startup." * commit 'ff34f6faaad21f5f72decc0b6a0bbde8dab68e29': Create arch specific cache dirs during zygote startup.
| | * | am 27b03e62: Merge "Create arch specific cache dirs during zygote startup."Narayan Kamath2014-05-011-0/+42
| | |\ \ | | | |/ | | | | | | | | | | | | * commit '27b03e6272479ed82762a4a5d6e4be4f26c1ed58': Create arch specific cache dirs during zygote startup.
| | | * Create arch specific cache dirs during zygote startup.Narayan Kamath2014-05-011-0/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The runtime expects them to exist before it's launched. The boot image / art files are created during the first zygote launch. (cherry picked from commit da738713e4e2120a324e8ab6fd11aa0e54a3c66e) Change-Id: I7472aa25c16a1cf95791af2bdf80ed0d73123872
* | | | Enabling internal msg apisRobert Greenwalt2014-05-142-26/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | NetworkFactory and NetworkAgent. First trying with wifi and getting rid of WifiStateTracker. Conflicts: api/current.txt services/core/java/com/android/server/ConnectivityService.java Change-Id: I7f0ec13d7d8988b32f3c6dc71f72012f3349fe02
* | | | am 516130cc: am dbbf431b: am d0f7f418: Merge "Freeing frame map"Narayan Kamath2014-04-302-6/+10
|\ \ \ \ | |/ / / | | | | | | | | | | | | * commit '516130ccb1841afb6ef154c28269d91594925429': Freeing frame map
| * | | am dbbf431b: am d0f7f418: Merge "Freeing frame map"Narayan Kamath2014-04-302-6/+10
| |\ \ \ | | |/ / | | | | | | | | | | | | * commit 'dbbf431b289bb7a01b43db3412ecab00abe18362': Freeing frame map
| | * | am d0f7f418: Merge "Freeing frame map"Narayan Kamath2014-04-302-6/+10
| | |\ \ | | | |/ | | | | | | | | | | | | * commit 'd0f7f41828493b0679e908f7bb3ed3b8e838c463': Freeing frame map
| | | * Freeing frame mapMykola Kondratenko2014-04-302-6/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | FileMap memory is never released until application exit Release it now as the texture is already loaded and the memory used for the packed resource can be released. Change-Id: Id08a1e466337b3a0179684eb6a444e18147ee343
| | * | Merge commit '0b62467b142b61ee1e449ba958ba37dfd961ef56' into HEADBill Yi2014-04-291-6/+13
| | |\ \ | | | |/ | | |/|
| | | * am e4360c8e: am 4308a523: Merge "bootanimation: build 32-bit if 64-bit gl ↵Colin Cross2014-03-201-0/+3
| | | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | libraries are not available" * commit 'e4360c8e14d1ea362fb1d13b7a5c9bf003f3be00': bootanimation: build 32-bit if 64-bit gl libraries are not available
| | | * \ am 0dccb02b: am 19fc55e1: Merge "build app_process64 on 64-bit targets"Colin Cross2014-03-201-0/+22
| | | |\ \ | | | | | | | | | | | | | | | | | | | | | | | | * commit '0dccb02b9fd714af1db91e4ba3ca0b0da4e563c1': build app_process64 on 64-bit targets
| | | * \ \ am 01de2432: am 24d8fa73: Merge "frameworks/base: move idmap from ↵Dianne Hackborn2014-03-076-0/+1056
| | | |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | frameworks/native" * commit '01de243263d347f2ac13a239d67d41817e34df33': frameworks/base: move idmap from frameworks/native
* | | | | | | Fix x86 build in app_process.Narayan Kamath2014-04-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Look for __i386__ and not __x86__. Change-Id: Iffa3709f9d0c96cce17f3183a6f036a78eccc787
* | | | | | | Merge "Create arch specific cache dirs during zygote startup."Narayan Kamath2014-04-301-0/+42
|\ \ \ \ \ \ \
| * | | | | | | Create arch specific cache dirs during zygote startup.Narayan Kamath2014-04-301-0/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The runtime expects them to exist before it's launched. The boot image / art files are created during the first zygote launch. Change-Id: I5ed0ad4854dc7785246344c8f6eaf54e560feb7d
* | | | | | | | am ab583454: am 1866e5dc: am af40649e: Merge "Set NO_NEW_PRIVS on zygote init"Nick Kralevich2014-04-291-0/+10
|\ \ \ \ \ \ \ \ | |/ / / / / / / |/| / / / / / / | |/ / / / / / | | | | | | | * commit 'ab5834545da906f1a150672ead825c28a2e1f82a': Set NO_NEW_PRIVS on zygote init
| * | | | | | am 1866e5dc: am af40649e: Merge "Set NO_NEW_PRIVS on zygote init"Nick Kralevich2014-04-291-0/+10
| |\ \ \ \ \ \ | | |/ / / / / | | | | | | | | | | | | | | | | | | | | | * commit '1866e5dc8bb04b58a67e54f66cb4ec22e878667d': Set NO_NEW_PRIVS on zygote init
| | * | | | | Set NO_NEW_PRIVS on zygote initNick Kralevich2014-04-291-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When app_process/zygote starts, make sure PR_SET_NO_NEW_PRIVS is set. This prevents zygote spawned apps from acquiring new privileges on exec. In particular, this allows the CTS test android.os.cts.SecurityFeaturesTest#testNoNewPrivs() to pass if ART is set as the default runtime. Change-Id: I81139cda999c7b1430242561aad28f566e9b6da0
* | | | | | | Allow custom wallpaper and boot animation.Jeff Sharkey2014-04-281-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add new "ro.config.wallpaper" and "ro.config.wallpaper_component" properties which may be defined outside of the bundled framework resources. Falls back to bundled resources when properties are undefined. Also look for boot animation under OEM partition. Bug: 13340779 Change-Id: Ibdc9935dbdaae3319bf63b40573de0503d82ae67
* | | | | | | Initial implementation of new voice interaction API.Dianne Hackborn2014-04-241-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This gives a basic working implementation of a persist running service that can start a voice interaction when it wants, with the target activity(s) able to go through the protocol to interact with it. It may even work when the screen is off by putting the activity manager in the correct state to act like the screen is on. Includes a sample app that is a voice interation service and also has an activity it can launch. Now that I have this initial implementation, I think I want to rework some aspects of the API. Change-Id: I7646d0af8fb4ac768c63a18fe3de43f8091f60e9
* | | | | | | am 56cc5ba7: am 8d47f23e: am dbb0de21: Merge "Fix a typo in an assertion."Elliott Hughes2014-04-241-1/+1
|\ \ \ \ \ \ \ | |/ / / / / / | | | | | | | | | | | | | | | | | | | | | * commit '56cc5ba79bdf75a73281dc73f13169a409d96c28': Fix a typo in an assertion.
| * | | | | | am 8d47f23e: am dbb0de21: Merge "Fix a typo in an assertion."Elliott Hughes2014-04-241-1/+1
| |\ \ \ \ \ \ | | |/ / / / / | | | | | | | | | | | | | | | | | | | | | * commit '8d47f23e43760dcbf051aaeffff668c3c6340276': Fix a typo in an assertion.