summaryrefslogtreecommitdiffstats
path: root/cmds
Commit message (Collapse)AuthorAgeFilesLines
* [bootanimation] Drop user loadable bootanimation.zip abiltiy.Robert Craig2013-12-161-4/+0
| | | | | | | | | | | | A prior change removed the ability of the shell to push to /data/local. Because of this, the bootanimation code no longer supports users loading custom bootanimation.zip files. This patch drops the access attempt from the code. Change-Id: Ie30dd73699c8296be00dc6fbf14691e08baa6410 Signed-off-by: rpcraig <rpcraig@tycho.ncsc.mil>
* Don't try to set service.bootanim.exitNick Kralevich2013-12-111-3/+0
| | | | | | | | | | | | | init has never allowed the bootanimation code to set service.bootanim.exit, and has always generated the dmesg error message <3>[ 17.644615] init: sys_prop: permission denied uid:1003 name:service.bootanim.exit Since setting this property has no effect and never worked, delete the code which tries to do it. Change-Id: Idacc5467d85479a8cf974702af8895011be585ea
* Merge "Reimplement ZipFileRO in terms of libziparchive."Narayan Kamath2013-12-112-41/+60
|\
| * Reimplement ZipFileRO in terms of libziparchive.Narayan Kamath2013-12-092-41/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This lets us share zip archive processing code with both the runtime (Art, dalvik) and critical java code (StrictJarFile). This change also moves several utility methods to ZipUtils and dedups code across several zip inflation methods. One of the side effects of this change is that several processing loops are now O(n) instead of O(n^2). bug: 10193060 Change-Id: I3c7188496837a47246c4f342e45485a70fef3169
| * Merge commit 'b873a17ce7be0a9771c24999adca6964431728f6' into HEADThe Android Open Source Project2013-11-2214-494/+364
| |\ | | | | | | | | | Change-Id: I938755073e70602cc8f51ce9bd420fdcf870cecd
* | \ am 601fbc7a: am 24fe066e: Merge "Fix am argument ordering documentation." ↵Jeff Sharkey2013-11-141-1/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | into klp-dev * commit '601fbc7a82f325971905b6083e1c54776aa87a6d': Fix am argument ordering documentation.
| * | | Fix am argument ordering documentation.Jeff Sharkey2013-11-141-1/+1
| | | | | | | | | | | | | | | | | | | | Bug: 11690520 Change-Id: I84b10a6eb6e6404212ab9737e7cee1f1ad4d5309
* | | | am 8f592378: am 69920427: Merge "Fix a variety of small publicly-reported bugs."Elliott Hughes2013-10-291-2/+2
|\ \ \ \ | | |/ / | |/| / | |_|/ |/| | * commit '8f592378a1ea7f31d57253dc202f42707ef4da36': Fix a variety of small publicly-reported bugs.
| * | Fix a variety of small publicly-reported bugs.Elliott Hughes2013-10-291-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Possible NULL dereference in cmds/bootanimation/BootAnimation.cpp. https://code.google.com/p/android/issues/detail?id=61556 Missing fclose in core/jni/android_os_Debug.cpp. https://code.google.com/p/android/issues/detail?id=61546 Bad loop guards in core/jni/android_util_Process.cpp. https://code.google.com/p/android/issues/detail?id=61557 Assignment to wrong variable in libs/androidfw/AssetManager.cpp. https://code.google.com/p/android/issues/detail?id=61560 Missing delete[]s in libs/androidfw/ObbFile.cpp. https://code.google.com/p/android/issues/detail?id=61549 Leaks on error in tools/aapt/Images.cpp. https://code.google.com/p/android/issues/detail?id=61552 Two missing fclose calls in tools/aapt/Resource.cpp. https://code.google.com/p/android/issues/detail?id=61553 Missing fclose in tools/aidl/aidl.cpp. https://code.google.com/p/android/issues/detail?id=61554 Change-Id: I5820f3824e72d07a9acb776cf0af3e7443f5694a
* | | am 65d57713: am bacb5422: Merge "Also rely on enabled notification listeners ↵Jean-Michel Trivi2013-10-071-0/+5
|\ \ \ | | |/ | |/| | | | | | | | | | | | | for RemoteController registration" into klp-dev * commit '65d577139c8093f2a601069bbe05d2e622e0d340': Also rely on enabled notification listeners for RemoteController registration
| * | Also rely on enabled notification listeners for RemoteController registrationJean-Michel Trivi2013-10-041-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Registration of a RemoteController may succeed only if: - the caller has the MEDIA_CONTENT_CONTROL permission, - or if the RemoteController.OnClientUpdateListener it registers if one of the enabled notification listeners. For using the "enabled notification listener" functionality, the CL involved: - making OnClientUpdateListener an interface so a 3rd-party application may have its implementation extend NotificationListenerService, which is required for a listener to be enabled by the user. - add the concept of "enabled" status in an IRemoteControlDisplay, so a RemoteController (which encapsulates the IRemoteControlDisplay implementation) may be registered, but later temporarily disabled by the user, as a result of a user action in the security settings, or a user switch. - making MediaFocusControl, the component tied to AudioService, monitor changes in enabled notification listeners, and act upon enable/disable changes. Bug 8209392 Change-Id: Ia8dfa2156c65668b2b0d4ae92048005912652d84
* | | am 78466f3e: am 69aa2f8a: Merge "revert ADDR_COMPAT_LAYOUT workaround."Nick Kralevich2013-09-181-29/+0
|\ \ \ | |/ / |/| / | |/ | | * commit '78466f3eb59e804f9a6e770dbc8d764faa91ccb8': revert ADDR_COMPAT_LAYOUT workaround.
| * revert ADDR_COMPAT_LAYOUT workaround.Nick Kralevich2013-09-181-29/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | Stop working around bad applications by setting ADDR_COMPAT_LAYOUT. ADDR_COMPAT_LAYOUT is undesirable because it reduces the amount of address space available to an application. The Android emulator, in both 4.3 and 4.4, does not set ADDR_COMPAT_LAYOUT. Anyone needing to test their application on a version of Android without ADDR_COMPAT_LAYOUT can use the emulator and reproduce the failures. Change-Id: I8f753acc205798bd7f031026c7ece12d26de562c
* | Implement issue #10691359: Kill long-running processesDianne Hackborn2013-09-161-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We now have the activity manager kill long-running processes during idle maintanence. This involved adding some more information to the activity manager about the current memory state, so that it could know if it really should bother killing anything. While doing this, I also improved how we determine when memory is getting low by better ignoring cases where processes are going away for other reasons (such as now idle maintenance). We now won't raise our memory state if either a process is going away because we wanted it gone for another reason or the total number of processes is not decreasing. The idle maintanence killing also uses new per-process information about whether the process has ever gone into the cached state since the last idle maintenance, and the initial pss and current pss size over its run time. Change-Id: Iceaa7ffb2ad2015c33a64133a72a272b56dbad53
* | Add #! to 'am' shell scriptAndy McFadden2013-09-041-0/+2
| | | | | | | | | | | | | | | | Shell script needs to start with #! for exec(). Bug 10606037 Change-Id: I594da6f0433e838dcf5b45b991188ceaa52d9bd1
* | Fix check for default source in input commandMichael Wright2013-08-221-1/+1
| | | | | | | | Change-Id: I30b062e78c7d4de59a5530999e6332ba3053f7c9
* | Changes needed to support Skia at r10377.Derek Sollenberger2013-08-011-1/+1
| | | | | | | | Change-Id: Id1e1c8c5938ee1a33c6fa3caabd2c28e89243eb4
* | get rid of HAL pixelformats 5551 and 4444Mathias Agopian2013-07-261-2/+0
| | | | | | | | Change-Id: I6a6c4c656d80280eb85f90f99f35721ffca285df
* | get rid of PIXEL_FORMAT_A_8Mathias Agopian2013-07-251-2/+0
| | | | | | | | Change-Id: Ia750811f08ddebdd5818da211fd03d61b75f8e97
* | Add "adb shell am restart" command.Dianne Hackborn2013-07-231-0/+16
| | | | | | | | | | | | So you can restart the system without being root. Change-Id: I89770f497833ecbe2b69e3a0cfafae7ef472a9f5
* | Fix swipe end locationMichael Wright2013-07-221-1/+1
| | | | | | | | Change-Id: I997ca30dc5399b36e13516c4aeadbdf6fa357df7
* | Merge "Allow duration without source to be set for input commands"Michael Wright2013-07-191-76/+95
|\ \
| * | Allow duration without source to be set for input commandsMichael Wright2013-07-171-76/+95
| | | | | | | | | | | | Change-Id: Ib04badeddf0e9d6ff1b275da34ad259f59c1cbbd
* | | Remove dead code in system server initialization.Jeff Brown2013-07-156-392/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | System server always forks from Zygote so we no longer need the system_server executable which was probably broken anyhow. This makes the initialization sequence slightly more intelligible. Likewise, we don't need the GrimReaper anymore because init will automatically take care of restarting the system when the service manager dies. Change-Id: I02c88d9392f7c8133d9cde9d0d978da89ed80452
* | | Add stopservice command to amMarco Nelissen2013-07-111-0/+24
|/ / | | | | | | Change-Id: I639ad418750c0e1825b330b3bd56e5628926e7f1
* | Merge "Single-user restrictions"Amith Yamasani2013-06-261-0/+42
|\ \
| * | Single-user restrictionsAmith Yamasani2013-06-251-0/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduces a new "blocked" state for each package. This is used to temporarily disable an app via Settings->Restrictions. PIN creation and challenge activities for use by Settings and other apps. PIN is stored by the User Manager and it manages the interval for retry attempts across reboots. Change-Id: I4915329d1f72399bbcaf93a9ca9c0d2e69d098dd
* | | Fix a typoEvan Charlton2013-06-251-1/+1
|/ / | | | | | | | | | | s/will/while/ for the --no-window-animation explanation. Change-Id: Ia068809d385cc4f54f9603a8713a581fd4f59440
* | Add new API getStackBoxInfoCraig Mautner2013-06-171-3/+22
| | | | | | | | Change-Id: Ie2861e5e31bb3876cfe2d5c3d04ff58bb3955634
* | Add new API to retrieve a dumpsys of a single package.Dianne Hackborn2013-06-111-2/+21
| | | | | | | | | | | | | | | | Adds a platform API, and pm command. Fixes some issues with dumping per-package data in package manager, makes battery stats able to dump per-package state. Change-Id: I76ee6d059f0ba17f7a7061886792b1b716d46d2d
* | Convert API refs to StackBox from ActivityStack.Craig Mautner2013-05-241-5/+5
| | | | | | | | | | | | | | | | - Removed IActivityManager.getStacks() since getStackBoxes() is better. - Made createStacks operate relative to StackBox instead of TaskStack. - Made resizeStack into resizeStackBox. Change-Id: I7a0e1f4e34f399b4fd1180c60cc3989f9c2433f3
* | Add retrieval of StackBox info for more flexibilityCraig Mautner2013-05-241-10/+10
| | | | | | | | | | | | | | First step in permitting StackBoxes to be manipulated by user. Necessary for Configuration changes coming down. Change-Id: I4029926a35e4fdc59a5759fd9e4bae10bb308413
* | Log stack issues and start resize effort.Craig Mautner2013-05-131-0/+17
| | | | | | | | | | | | | | | | | | | | | | - Modify Am.java to accept 'stack resize' command. - Add logging for assigning home stack to non-home task to track down bug. And maybe fix bug. - Add template parameter to ArrayList. Change-Id: Ia73182afc20e9e4430ddadebae034cecb3798eec
* | Revert "Log stack issues and start resize effort."Guang Zhu2013-05-121-17/+0
| | | | | | | | | | | | Bug: 8935057 This reverts commit b0245edae86b5811ea743c0f4cea095488304b1a.
* | Log stack issues and start resize effort.Craig Mautner2013-05-121-0/+17
| | | | | | | | | | | | | | | | | | | | | | - Modify Am.java to accept 'stack resize' command. - Add logging for assigning home stack to non-home task to track down bug. And maybe fix bug. - Add template parameter to ArrayList. Change-Id: If904c3ead623464ff5863b7241c68c1b7573bcf4
* | Merge "surfaceflinger is now always running in its own process"Mathias Agopian2013-05-091-6/+0
|\ \
| * | surfaceflinger is now always running in its own processMathias Agopian2013-05-091-6/+0
| | | | | | | | | | | | Change-Id: I4e04e1aa181b3ebe661354edd0b8dbbfd7a623a6
* | | Merge "Cleanup some of the thread merging."Dianne Hackborn2013-05-091-4/+4
|\ \ \ | |/ / |/| |
| * | Cleanup some of the thread merging.Dianne Hackborn2013-05-071-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds an optimization for checking whether a looper is stuck, with a new Looper method to see if its thread is currently idle. This will allow us to put a large number of loopers in the monitor efficiently, since we generally won't have to do a context switch on each of them (since most looper threads spend most of their time idle waiting for work). Also change things so the system process's main thread is actually running on the main thread. Because Jeff asked for this, and who am I to argue? :) Change-Id: I12999e6f9c4b056c22dd652cb78c2453c391061f
* | | libutils clean-upMathias Agopian2013-05-071-1/+1
|/ / | | | | | | Change-Id: I11ee943da23a66828455a9770fc3c5ceb4bbcaa9
* | resolved conflicts for merge of a98b0ff8 to masterKenny Root2013-05-071-0/+23
|\ \ | |/ | | | | Change-Id: I1f4a952d360c48426e22a7772726b6867cc19771
| * am d43a71da: Merge "Help for the debugging help for issue #8734824." into ↵Dianne Hackborn2013-05-061-0/+23
| |\ | | | | | | | | | | | | | | | | | | jb-mr2-dev * commit 'd43a71dad80dfca65b0758f4333360516f6ad300': Help for the debugging help for issue #8734824.
| | * Help for the debugging help for issue #8734824.Dianne Hackborn2013-05-061-0/+23
| | | | | | | | | | | | | | | | | | | | | Add a new "hang" am command that lets you hang the system process. Useful for testing. Change-Id: Ice0fc52b49d80e5189f016108b03f9fd549b58a7
* | | resolved conflicts for merge of 485d7a31 to masterKenny Root2013-05-071-0/+12
|\ \ \ | |/ / | | | | | | Change-Id: I058e19af8732df44457bdc614ee810a642dc25e4
| * | am 5b88a2fd: Debugging help for issue #8734824: WATCHDOG KILLING SYSTEM PROCESSDianne Hackborn2013-05-061-0/+12
| |\ \ | | |/ | | | | | | | | | * commit '5b88a2fd7b77880f6e09ae4a1de509bebe28bc3a': Debugging help for issue #8734824: WATCHDOG KILLING SYSTEM PROCESS
| | * Debugging help for issue #8734824: WATCHDOG KILLING SYSTEM PROCESSDianne Hackborn2013-05-061-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | IActivityController has a new callback which the Watchdog calls when it detects that the system process is hung. This may be use full monkey. All hail the monkey! Also add a new private feature to Binder to be able to turn off all incoming dump() calls to a process. The watchdog uses this when it reports it is hung, so that if someone, say, wants to collect a bug report at this point they won't get stuck waiting for things that are all busted. Change-Id: Ib514d97451cf3b93f29e194c1954e29f948c13b1
| | * Don't set ADDR_COMPAT_LAYOUT on the emulatorNick Kralevich2013-04-251-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | Don't work around third party app bugs on the emulator. (cherry picked from commit fc17dc2548234461eb43ff83539ede4c9893a825) Change-Id: I35246c447de65ad4649b9aa3eb67194234fd6378
| * | resolved conflicts for merge of b3f66877 to jb-mr2-dev-plus-aospMichael Wright2013-04-291-7/+9
| |\ \ | | | | | | | | | | | | Change-Id: I4e3c1e1c5613284c60afc9ce6639624abe08df0d
* | | | Add longpress support to keyevent.Jeff Sharkey2013-04-291-8/+17
| | | | | | | | | | | | | | | | Change-Id: I578cb7dd910425ce07fbe56412a4dc2e0c379e65
* | | | Merge commit 'b3f66877' into afdmergeJeff Sharkey2013-04-291-7/+9
|\ \ \ \ | | |/ / | |/| | | | | | Change-Id: I319863cf23b2e6eacfa4508f7b111fba7b1cbc24