summaryrefslogtreecommitdiffstats
path: root/cmds
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
|\ \
| * | Modify how USB connections are handled.Nick Kralevich2015-05-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Introduce a new "charger only" mode. In this mode, MTP is disabled, and no file transfers can occur. * Make charger only mode the default. * Modify "persist.sys.usb.config" so it now only holds the adb status. * Make the USB settings non-persistent. Unplugging the USB connection will reset the device back to "charger only" mode. * Fixup wording per UI guidelines. TODO: Re-implement MDM restrictions for USB / MTP access controls. Bug: 18905620 Change-Id: I99a50d9132a81e98187f431166fd9fef4d437e4f
* | | Merge "Determine if we have adoptable disks." into mnc-devJeff Sharkey2015-05-131-1/+11
|\ \ \ | |/ / |/| / | |/
| * Determine if we have adoptable disks.Jeff Sharkey2015-05-131-1/+11
| | | | | | | | | | Bug: 19993667 Change-Id: I9b21b05736c22d34ca22f5ad6e1a6ebec440cfb6
* | Merge "New "sm" shell tool to call StorageManager." into mnc-devJeff Sharkey2015-05-135-0/+390
|\ \ | |/
| * New "sm" shell tool to call StorageManager.Jeff Sharkey2015-05-125-0/+390
| | | | | | | | | | | | | | | | | | | | | | | | Surface basic StorageManager commands through shell tool, like simple listing of disks and volumes, and commands like mounting and partitioning. The output is designed to be parsed by host-side testing tools, instead of relying on fragile dumpsys parsing. Bug: 19993667 Change-Id: I993e92ecf57996678965945f0ae648b392a77ea2
* | Add permission meta-state flags to support grant/revoke permission policy.Svet Ganov2015-05-111-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We now maintain a mata-state with each permission in the form of flags specyfying the policy for this permission. This enables support of the following use cases: 1. The user denies a permission with prejudice in which case an app cannot request the permission at runtime. If an app requests such a permssion it gets a denial unless the user grants the permission from settings. 2. A legacy app with disabled app-ops being upgraded to support runtime permissions. The disabled app ops are converted to permission revocations. The app ops manager is a part of the activity manger which sits on top of the package manager, hence the latter cannot have a dependency on the former. To avoid this the package installer which is the global permission managment authority marks the permission as revoked on upgrade and the package manager revokes it on upgrade. 3. A device policy fixing a permission in a granted or revoked state. This additional information is folded in the meta-state flags and neither apps can request such permissions if revoked not the user can change the permission state in the UI. Change-Id: I443e8a7bb94bfcb4ff6003d158e1408c26149811
* | Merge "Rename *AppIdle to *AppInactive per api-council" into mnc-devAmith Yamasani2015-05-111-12/+12
|\ \ | |/ |/|
| * Rename *AppIdle to *AppInactive per api-councilAmith Yamasani2015-05-081-12/+12
| | | | | | | | | | | | | | Change to setAppInactive and isAppInactive in a few places. Bug: 20823737 Change-Id: Ie57dbc0dd2842e771bb5fd9f69b8041aacaa005c