summaryrefslogtreecommitdiffstats
path: root/cmds
Commit message (Collapse)AuthorAgeFilesLines
* extend svc command to control NFC stateGuang Zhu2015-09-152-1/+87
| | | | Change-Id: I599e4000fa17384089410e63b3150f25aa9458f7
* am e62421f1: Merge "Teach Pm about the "always ask" link-handling state" ↵Chris Tate2015-08-261-0/+1
|\ | | | | | | | | | | | | into mnc-dev * commit 'e62421f1fbc1ea44e7737989e134fdf9fc1ec4cc': Teach Pm about the "always ask" link-handling state
| * Teach Pm about the "always ask" link-handling stateChristopher Tate2015-08-251-0/+1
| | | | | | | | | | | | Bug 23511867 Change-Id: I74b3c8222a7d22541a96b698edd1a175d378e48f
* | Do not start with a black frame in bootanimationJorim Jaggi2015-08-181-5/+0
|/ | | | | Bug: 23128307 Change-Id: I0ec044f983c1c30960be046e43a882c63205dc5f
* Merge "Allow debugging only for apps forked from zygote" into mnc-devSebastien Hertz2015-08-181-2/+2
|\
| * Allow debugging only for apps forked from zygoteSebastien Hertz2015-08-101-2/+2
| | | | | | | | | | | | | | | | | | | | When starting the runtime from app_process, we only pass JDWP options if starting zygote. It prevents from opening a JDWP connection in non-zygote programs while Android apps (forked from zygote) remain debuggable. Bug: 23050463 Change-Id: If8ea719063a65db4cdeed69a838b52e87b078b08
* | Make "Ask every time" actually work that wayChristopher Tate2015-08-131-1/+6
|/ | | | | | | | | | | ..in link-opening behavior. If a candidate is marked as "ask every time," then the user is guaranteed to get a disambiguation prompt including that candidate even when some other candidate app is in the "always prefer this over a browser" state. Bug 23147746 Change-Id: I904d8697a992b3f16f32b1c1b49c2bf9424c7137
* Add a command to register SIM Phone account.Roshan Pius2015-07-281-0/+24
| | | | | | | | | Phone accounts with SIM_SUBSCRIPTION capabiltiy needs system permission. Hence adding a command to add sunc phone accounts for CTS testing of remote connections. BUG: 20303674 Change-Id: Ieb7349f906ec8209776ffbe39ed3633f01ba1e7c
* use findProcess instead of getProcessJohn Reck2015-07-241-1/+1
| | | | | Bug: 22701182 Change-Id: I2ec56c55c49401f2f213bbd318e867fd73b37672
* Add a wm command to dismiss the keyguard.Tim Kilbourn2015-07-231-1/+10
| | | | | | | | If the user has a screen lock, the user is prompted to authenticate. Otherwise the keyguard is dismissed. Bug: 22694837 Change-Id: I783fc6f08fb21977aa4f1e884b0a4354a3154805
* Merge "More info to support CTS, fix reconcile bug." into mnc-devJeff Sharkey2015-07-221-2/+13
|\
| * More info to support CTS, fix reconcile bug.Jeff Sharkey2015-07-221-2/+13
| | | | | | | | | | | | | | | | | | Surface more details and commands for storage volumes to support CTS testing. Fix user reconciliation bug that skipped user setup on empty volumes. Bug: 22658804, 22633097 Change-Id: I4221312d1cce24d1f5a2c108095cf3cf471598ed
* | Merge "Support waiting for adb shell am stop-user to complete." into mnc-devKenny Guy2015-07-221-3/+43
|\ \
| * | Support waiting for adb shell am stop-user to complete.Kenny Guy2015-07-211-3/+43
| |/ | | | | | | | | | | | | | | Use stop user callback to wait for AM.stopUser to complete if -w flag is passed to adb shell am stop-user bug: 22599411 Change-Id: I8adbfdbb1ba69a88a67431da65f0a85035587c2d
* | Add 'pm' operation to set a package's app-linking stateChristopher Tate2015-07-201-0/+157
|/ | | | | | | | | | | | | | | | | | Set an app's state: pm set-app-link [--user USER_ID] PACKAGE {always|ask|never|undefined} Read an app's current state: pm get-app-link [--user USER_ID] PACKAGE The latter prints to stdout one of the strings usable as an argument to set-app-link. If an error is encountered, the string printed to stderr begins with "Error: ". Bug 19628527 Change-Id: I68b6dc24445917807345a8cf5baa2078490740af
* Improve tracking of screen on reasons.Dianne Hackborn2015-07-151-1/+1
| | | | | | | | | | | | | | | | | - New screen on app op to record the last time each app has caused the screen to be turned on. - New battery stats event that tells us the reason the screen has been asked to turn on. - Propagate out power manager API to specify the reason a caller is asking to have the screen turned on. Note that currently the window flag to turn the screen on bypasses much of this because it is being handled in the window manager by just directly telling the power manager to turn the screen on. To make this better we need a new API where it can specify who it is calling the API for. Change-Id: I667e56cb1f80508d054da004db667efbcc22e971
* Added sendBroadcastMultiplePermissions methodFyodor Kupolov2015-07-141-1/+3
| | | | | | | | | Added Context.sendBroadcastMultiplePermissions(Intent intent, String[] receiverPermissions) method, which allows an array of required permissions to be enforced. Bug: 21852542 Change-Id: I27c9130e8f004b428452501ebc8a36aabde1f343
* Add grant flag support to "install-create" verb.Jeff Sharkey2015-07-091-0/+2
| | | | | | | This matches the "install" behavior. Bug: 22331569 Change-Id: I07bfe067bd4be01fc92126750b0ff25a5c5ba5c9
* Merge "Add libhidcommand_jni.so to required module." into mnc-devSeigo Nonaka2015-07-081-0/+1
|\
| * Add libhidcommand_jni.so to required module.Seigo Nonaka2015-07-021-0/+1
| | | | | | | | | | | | | | | | To install libhidcommand_jni.so and hid command at the same time, set libhidcommand_jni as a required module of hid command. Bug: 22131060 Change-Id: I73ad1954eb73896425362a63fab0e63a61b9c0a0
* | Grant installer and verifier install permissions robustlySvetoslav2015-07-071-1/+4
| | | | | | | | | | | | bug:22248271 Change-Id: I3a47ae9a112ba7d88b421fcb5f9651d1168ba7a5
* | Teach receivers, activities, providers, and services app ops.Svet Ganov2015-07-011-1/+1
|/ | | | | | | | | | | | | Perform app op check in addition to the permisison check for all four paltform components - activities, content providers, broadcast receivers, services - if they are guarded by a permssion that has an associated app op. This ensures that legacy apps will behave correctly if the permission of the caller has been revoked, i.e. the app op for that permission was disabled. bug:22199666 Change-Id: Ia22d1c38d58b3cd6aabdc655cb7c7bddd85da7a2
* Fix issue #22023824: Download folder is not created in internal storageDianne Hackborn2015-06-261-0/+25
| | | | | | | | | | | The media provider and some other things need to be given storage access. Also, seems like we should give storage access to the camera app as well. And add a dump dump command that will dump data about a particular permission name. Change-Id: Idaaa9bba2ff4dc95290cf6d17e5df933df91e909
* Allow callers holding PACKAGE_USAGE_STATS permission to call ↵Adam Lesinski2015-06-241-1/+1
| | | | | | | ActivityManager#getPackageImportance() Bug:22055550 Change-Id: I1e732e95698daf44bcb223cafde3d3c22746d232
* Update surfaces secure flag on screen capture setting changeWale Ogunwale2015-06-231-3/+28
| | | | | | | | Also, added 'wm screen-capture [userId] [true|false]' command. Bug: 20934462 Change-Id: I14711003d7691fc4495428c12c9ff3457cd3773c
* Merge "Add new `hid` command." into mnc-devMichael Wright2015-06-2310-0/+1104
|\
| * Add new `hid` command.Michael Wright2015-06-1210-0/+1104
| | | | | | | | | | | | This allows the shell user to inject HID events. Change-Id: I37faff576299ff14092b61ed39f2a1c086f672a5
* | Merge "Add libwilhelm to app_process." into mnc-devChristopher Ferris2015-06-191-2/+11
|\ \
| * | Add libwilhelm to app_process.Christopher Ferris2015-06-171-2/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If an app exposes new/delete from a shared library, the libwilhelm shared library can wind up using the new from the app shared library, and the delete from libc++. It is completely legal for the app to export new/delete in this way, so in order to avoid this situation, preload libwilhelm in the zygote. This forces libwilhelm to always resolve the new/delete from libc++. This library cannot be added to android_runtime since libwilhelm has a shared library which depends on android_runtime. Bug: 21032018 Change-Id: Id89c196df62d98d62855a1421f397b75a7e990a9
* | | Fix issue #21814207 and issue #21814212 (alarm manager)Dianne Hackborn2015-06-172-3/+3
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #21814207: AlarmManager.setAndAllowWhileIdle should also allow wake locks. Introduce a whole new infrastructure for providing options when sending broadcasts, much like ActivityOptions. There is a single option right now, asking the activity manager to apply a tempory whitelist to each receiver of the broadcast. Issue #21814212: Need to allow configuration of alarm manager parameters The various alarm manager timing configurations are not modifiable through settings, much like DeviceIdleController. Also did a few tweaks in the existing DeviceIdleController impl. Change-Id: Ifd01013185acc4de668617b1e46e78e30ebed041
* | ZipFileRO: Use precise widths for zip file types.Narayan Kamath2015-06-173-8/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | getEntryInfo crashes on 64-bit devices because "long" types were being passed int pointers (that pointed to a stack frame) that were reinterpret_cast'ed to long* (sigh.). To fix this issue once and for all, use types with explicitly defined widths. This change also removes some dead invariant checking from Asset.cpp instead of cleaning it up. Note that we've introduced a wart in NativeLibraryHelper, where we need to deal with zlib's uLong type, which is "at least 32 bits wide". bug: 21622286 Change-Id: Iae675a9601db7aae03a8b80b40321d2cc1d97f50
* | Better systrace slices for application startup.Narayan Kamath2015-06-161-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change adds three new timeslices : - PostFork : As soon as possible after the app forks from the zygote. Can be used in conjunction with the system_server "Start proc:" event to derive an upper bound on fork() and zygote overhead. - RuntimeInit & ActivityThreadMain for ZygoteInit#runtimeInit and ActivityThread#main. ActivityThread#handleBindApplication and higher level functions are already well instrumented in systrace. handleBindApplication should occur immediately after ActivityThread#main. Note that we use the Activity manager tag to make it easier to correlate these new events with surrounding events (Start proc and handleBindApplication) that are already using the AM tag. bug: 21632700 Change-Id: Ibc01f1721f962c913f3c02a51763b6feb1eb6a4d
* | Add adb shell telecom get-system-dialerYorke Lee2015-06-111-2/+13
| | | | | | | | | | Bug: 20303674 Change-Id: I7ce52e94c434846c262f2d6cc6d41992e259b45f
* | Merge "Added new options (--eial, --elal, --efal, and --esal) to pass ↵Felipe Leme2015-06-101-2/+56
|\ \ | | | | | | | | | multiple extras as ArrayList instead of Array. BUG: 21757911 Change-Id: I7e2a9c81ad4606a8aba90ea4820ba0732a1c8749 modified: src/com/android/commands/am/Am.java On branch handles_array_list Changes to be committed: modified: src/com/android/commands/am/Am.java" into mnc-dev
| * | Added new options (--eial, --elal, --efal, and --esal) to pass multiple ↵Felipe Leme2015-06-101-2/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | extras as ArrayList instead of Array. BUG: 21757911 Change-Id: I7e2a9c81ad4606a8aba90ea4820ba0732a1c8749 modified: src/com/android/commands/am/Am.java On branch handles_array_list Changes to be committed: modified: src/com/android/commands/am/Am.java
* | | Merge "screencap: Rotate images when display is rotated" into mnc-devDan Stoza2015-06-101-1/+28
|\ \ \ | |/ / |/| |
| * | screencap: Rotate images when display is rotatedDan Stoza2015-06-091-1/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | Changes screencap to read the display rotation and use it when capturing the screenshot so that the output image is oriented correctly. Bug: 8433742 Change-Id: I0f7db422399985a1ff17da3faa946ff0943e58f7
* | | Flags to select storage volume for app installs.Jeff Sharkey2015-06-091-0/+10
|/ / | | | | | | | | | | | | | | | | Remote callers can now provide the "--install-location" value from the APK to help select a location, or they can explicitly force a volume by UUID. Bug: 21676789 Change-Id: Iefc92d770a851fc33e37edbf259fdb8df2b14ae5
* | Merge "Adding am send-trim-memory command" into mnc-devStefan Kuhne2015-06-051-5/+62
|\ \
| * | Adding am send-trim-memory commandStefan Kuhne2015-06-051-5/+62
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds a send-trim-memory command to the ActivityManager to allow for better debugging&testing. The command is adb shell am send-trim-memory [--user <USER_ID>] <PROCESS> <LEVEL> whereas LEVEL can be one of the following: [HIDDEN|RUNNING_MODERATE|BACKGROUND|RUNNING_LOW|MODERATE| RUNNING_CRITICAL|COMPLETE] Bug: 21633189 Change-Id: I7a41ce02c3c9043ffd3e5aaa791f7b7306a9de49
* | Add phone permissions to ShellYorke Lee2015-06-031-2/+2
| | | | | | | | | | | | | | | | | | These are needed for adb shell telecom commands to work on non-eng builds. Also fix a couple of typos in telecom documentation. Change-Id: Ia219ff78f5d65878e43e6b9216f979185495ce7f
* | Add adb shell command to register/unregister phone accountsYorke Lee2015-06-031-7/+37
| | | | | | | | | | Bug: 21583012 Change-Id: I3fd525259860fd9e0f9fda5b77cbb9ee7bfab6ca
* | Allow default dialer changes and phone account enable/disable via ADBYorke Lee2015-06-025-0/+345
|/ | | | | | | | | | | | | | | | | Add commands accessible via adb shell that can be used for CTS tests without the need for adb root *set-phone-account-enabled *set-phone-account-disabled *set-default-dialer *get-default-dialer Modify enablePhoneAccount/setDefaultDialer to indicate success. Remove now unused functionality in ProtectedEnableAccountPreferenceActivity and ProtectedChangeDefaultDialerActivity. Bug: 21583012 Change-Id: I542d145cc969334c004b8344fbbb01f278256f9d
* Merge "Clean up calls to Rect.intersect()" into mnc-devDoris Liu2015-05-282-4/+11
|\
| * Clean up calls to Rect.intersect()Doris Liu2015-05-282-4/+11
| | | | | | | | | | | | | | | | | | | | This CL checks for the return value for Rect.intersect() for whether there is actually an intersection before taking the return intersected rect. In the case of no intersection (Rect.intersect() returns false), an empty rect will be used as the intersection. bug: 7368679 Change-Id: Ibda3bfd662f8ca83cb5662748d9be250243b72b2
* | Update asan/app_process.Evgenii Stepanov2015-05-281-3/+5
|/ | | | | | | Build both 32 and 64-bit versions and don't limit it to eng. Change-Id: I5d6cc8005291100d5fe0f1385e8a0b4ba5f4d630 (cherry picked from commit e740b17d2400ed0db17d1f7fce4f052bbbf808ab)
* Merge changes from topic 'bench' into mnc-devJeff Sharkey2015-05-151-2/+10
|\ | | | | | | | | | | * changes: Command to change force adoptable state. Initial pass at storage benchmarks.
| * Command to change force adoptable state.Jeff Sharkey2015-05-151-2/+10
| | | | | | | | | | | | | | | | Since user builds can't setprop, add an explicit "sm" verb to change the force adoptable state. Bug: 21191915 Change-Id: I719d9b18c1a98c97442a5ddb1cc5512e8e4d3d3f
* | Fix grant/revoke to act on owner by default and log invalid user id.Svet Ganov2015-05-141-1/+1
| | | | | | | | | | | | bug:21163229 Change-Id: I66d0cc130b37b5752ed06afc73259ed41bfb7830
* | Merge "Modify how USB connections are handled." into mnc-devNick Kralevich2015-05-131-1/+1
|\ \