summaryrefslogtreecommitdiffstats
path: root/cmds
Commit message (Collapse)AuthorAgeFilesLines
* 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
* | am b65b66cc: am 2224eac3: Merge "bootanimation: fix garbage line issue when ↵Chris Elliott2015-05-071-1/+4
|\ \ | |/ |/| | | | | | | | | screen height is odd." into lmp-mr1-modular-dev * commit 'b65b66ccc251371c817abe75176a73f84565410e': bootanimation: fix garbage line issue when screen height is odd.
| * am 2224eac3: Merge "bootanimation: fix garbage line issue when screen height ↵Chris Elliott2015-05-071-1/+4
| |\ | | | | | | | | | | | | | | | | | | is odd." into lmp-mr1-modular-dev * commit '2224eac30375a731f4ad38d6930dbc37b0855a0d': bootanimation: fix garbage line issue when screen height is odd.
| | * bootanimation: fix garbage line issue when screen height is odd.Chris Elliott2015-05-051-1/+4
| | | | | | | | | | | | | | | | | | bug:20032072 Change-Id: I784fb6f815b22c37dcd7354729aca346726196d9
* | | Migrate primary external storage.Jeff Sharkey2015-04-241-5/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Wire up through MountService to call down into vold. Watch for unsolicited events that report progress, including special value "82" that signals that copy has finished. We use this value to persist the volumeUuid in case of unexpected reboot, since it indicates the new volume is ready. Wire progress updates through existing callback pipeline. Update the volume mounting code to match against the persisted UUID when selecting the primary external storage. Bug: 19993667 Change-Id: Id46957610fb43517bbfbc368f29b7d430664590d
* | | Merge "Add ability to get and set idle state of apps"Amith Yamasani2015-04-241-0/+51
|\ \ \
| * | | Add ability to get and set idle state of appsAmith Yamasani2015-04-241-0/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add am shell command to set and get idle Add public API to check if an app is idle Bug: 20534955 Bug: 20493806 Change-Id: Ib48b3fe847c71f05ef3905563f6e903cf060c498
* | | | Package and storage movement callbacks.Jeff Sharkey2015-04-231-30/+15
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since package and primary storage movement can take quite awhile, we want to have SystemUI surface progress and allow the Settings app to be torn down while the movement proceeds in the background. Movement requests now return a unique ID that identifies an ongoing operation, and interested parties can observe ongoing progress and final status. Internally, progress and status are overloaded so the values 0-100 are progress, and any values outside that range are terminal status. Add explicit constants for special-cased volume UUIDs, and change the APIs to accept VolumeInfo to reduce confusion. Internally the UUID value "null" means internal storage, and "primary_physical" means the current primary physical volume. These values are used for both package and primary storage movement destinations. Persist the current primary storage location in MountService metadata, since it can be moved over time. Surface disk scanned events with separate volume count so we can determine when it's partitioned successfully. Also send broadcast to support TvSettings launching into adoption flow. Bug: 19993667 Change-Id: Ic8a4034033c3cb3262023dba4a642efc6795af10
* | | Always send volume UUID with installd commands.Jeff Sharkey2015-04-181-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | Since packages can be moved to other volumes, all relevant commands to installd now require an explicit volume UUID parameter. Bug: 20275577 Change-Id: Ie84f5bc43c7aada5800b8d71692c7928b42b965e
* | | am a26c8371: am 5682a23e: am fef8bcf9: Merge "Explicitly use clang."Dan Albert2015-04-171-0/+1
|\ \ \ | |/ / | | | | | | | | | * commit 'a26c83718004c7640827d86b0f6a0fdf33017751': Explicitly use clang.
| * | Explicitly use clang.Dan Albert2015-04-171-0/+1
| | | | | | | | | | | | | | | | | | This was implicitly enabled by using ASAN. Change-Id: I562402a8191e2a3ab3eefd43860fbe7c58d441d8
* | | Fail early when starting a background user activity.Wale Ogunwale2015-04-171-0/+5
| | | | | | | | | | | | | | | | | | | | | If it shouldn't be displayed for all users. Bug: 13507605 Change-Id: I8fe8e5a98759c1ca058cc7d222817f6d580ffa11
* | | Add support for disabling display scaling for development.Jeff Brown2015-04-151-4/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added two new options to the wm command. 1. Set the screen size based on dips rather than pixels using the current screen density. eg. adb shell wm size 320dpx320dp 2. Disable automatic scaling of the contents of the display. When combined with the previous command, this is useful for seeing how the UI would behave if the screen remained at its current density but changed physical size. eg. adb shell wm scaling off Bug: 19899223 Change-Id: I545f893ba4861494e995cf0457ebeba1050d28dc
* | | Fixes to idle alarm scheduling, package importance.Dianne Hackborn2015-04-141-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add new API to ask the activity manager what the current importance of a particular package name is (along with a few new useful importance levels). - Fix my last alarm manager change to actually execute the alarms we have now decided should run even while we are idle. Change-Id: I1f14712b4e390770d53b185c96a1b36f6aadd687
* | | 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