summaryrefslogtreecommitdiffstats
path: root/cmds
Commit message (Collapse)AuthorAgeFilesLines
* Add missing <sys/file.h> include for flock.Elliott Hughes2015-02-161-0/+1
| | | | Change-Id: I5c9bb4aa74d8a36d44e086bbcb5d60876727ce4c
* Remove -z option.Christopher Ferris2015-02-093-49/+8
| | | | | | | | | | | This option doesn't work with the current selinux protections and doesn't serve much of a purpose. You can get the same results running this: dumpstate | gzip > /data/local/tmp/dump.txt.gz Bug: 19271141 Change-Id: Icc76200df33dc708e30c556ec8a0f393f995fe7c
* Add better timeout mechanism for running commands.Christopher Ferris2015-02-031-18/+69
| | | | Change-Id: I60fc9e7d59c3e0e4b8b2f69f79c6903240bfd131
* Add missing includes.Elliott Hughes2015-01-292-0/+2
| | | | Change-Id: I1dad32ab459c25063a70cf52100a29d00fea3a90
* Switch dumpstate to "ip link list".Elliott Hughes2015-01-281-1/+2
| | | | Change-Id: Ia1db51c866890f09fbd4316764dea5982554598f
* Merge "Move atrace from the obsolete bzero to memset."Elliott Hughes2015-01-251-1/+2
|\
| * Move atrace from the obsolete bzero to memset.Elliott Hughes2015-01-251-1/+2
| | | | | | | | | | | | (This file wasn't including <strings.h> for bzero or <string.h> for memset.) Change-Id: Icef0e0dbfd36ebd21058cfd8c747e0a17aee8308
* | Refactor of the bugreport code.Christopher Ferris2015-01-233-57/+94
|/ | | | | | | | | | | | | Implemented these changes: - Make this code C++. - Avoid hangs by adding a timeout. - Add the necessary TEMP_FAILURE_RETRY calls. - Restructure the code a bit. Bug: 18800936 Change-Id: Iba9f86a4c7beee4f0f36e51234855f4c0834db47
* Use the timeout stack dump functions.Christopher Ferris2015-01-151-5/+13
| | | | | | | | | | | | Use the native stack dumping functions that allows time outs. If debuggerd locks up, before a bugreport would hang forever. Now it will timeout properly and still get all of the other information. Bug: 18766581 (cherry picked from commit 457731f69e3106b5aae8fc04f9565af1d875876c) Change-Id: I39e8e9c60209e3ef9efac795fedb8e1edce2bd3e
* Fix message when a command times out.Christopher Ferris2015-01-091-1/+1
| | | | | | The previous version printed out the nanoseconds elapsed, not seconds. Change-Id: I10f6d7bf7b7a4647658313ed83781fda6fd744a5
* Installd: Disallow relocation for decryptionneo.chae2015-01-071-15/+24
| | | | | | | | | | | | | | | | When decrypting a device, a tmpfs is temporarily mounted as /data, the size of which is usually small. When the zygote, system server and necessary apps are brought up, they will be compiled into the tmpfs. If the system image contains prebuilts, they will be relocated instead of compiled. This is unnecessary. In this special situation it is acceptable to run out of the prebuilt oat files without relocation, which can save space in the tmpfs. This patch ensures that apps are not being relocated. Change-Id: I42bfb7e3039574b7e4f2772e0d395f093d59ed1b Signed-off-by: Hyangseok Chae <neo.chae@lge.com>
* Installd: Swap file for dex2oatAndreas Gampe2014-12-181-3/+59
| | | | | | | | | | | Add swap file support for dex2oat to installd. Only use in low-memory mode. Bug: 18596910 (cherry picked from commit f68ce4de7fcfcc090af7985972b304eed7dbaf63) Change-Id: I131448f3907115054a592af73db86d2b9257ea33
* Installd: Remove dalvik pathsAndreas Gampe2014-12-151-42/+4
| | | | | | Dalvik is dead. Dexopt is dead. Change-Id: I9ff6b638a3e2c52ae7aec33d7b08a7bee012854f
* Mark 2 unused paramters as suchBernhard Rosenkränzer2014-11-231-2/+2
| | | | | | | Mark 2 unused paramters to prevent clang from erroring out Change-Id: Ifc9b4a5b820bd6318e9259e737e708d25fdb174b Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
* Merge "Fix installd command line parser"Mike Lockwood2014-11-211-1/+3
|\
| * Fix installd command line parserSerguei Katkov2014-11-051-1/+3
| | | | | | | | | | | | | | | | Parser does not take into account that the last argument can be empty. In this case it will skip end of line marker and continue parsing. Change-Id: I2d029a69ed22cef497893e592ff3275ced97f85f Signed-off-by: Serguei Katkov <serguei.i.katkov@intel.com>
* | Merge "Kill INCLUDE_SYS_MOUNT_FOR_STATFS."Elliott Hughes2014-11-201-1/+1
|\ \
| * | Kill INCLUDE_SYS_MOUNT_FOR_STATFS.Elliott Hughes2014-11-201-1/+1
| | | | | | | | | | | | Change-Id: I692179cae9d476dd5a0b5fa92813b61934dd7c87
* | | Add an installd command to mark the end of boot.Narayan Kamath2014-11-193-1/+23
|/ / | | | | | | | | | | | | | | bug: 18280671 (cherry picked from commit b1a6c2f95a455aa2829340fcc8d233493855f4d4) Change-Id: I97542875ffff1b68ab324e9b04fb9266c82633cc
* | Add support for dalvik.vm.isa.<instruction set>.variantIan Rogers2014-11-081-0/+12
| | | | | | | | | | Bug: 18056890 Change-Id: Ia266fa9f2a79158ced82016106aa1cd2529259c9
* | am 60fd3fee: Migrate CA certificates to all usersRobin Lee2014-10-153-35/+144
|\ \ | | | | | | | | | | | | * commit '60fd3feecab4336d964ca8e31c7c3220e1afb558': Migrate CA certificates to all users
| * | Migrate CA certificates to all usersRobin Lee2014-10-153-35/+144
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Copies the /data/misc/keychain/cacert-* directories to all users on the device, whereas previously they were simply copied to user 0. This is a shallow copy so anything that wasn't supposed to be there will disappear. Bug: 17811821 Change-Id: Iae5909ab8d5efdb83c9c8fdf0e10ab7060d022cc
* | | am a91968fd: Merge "Accept socket connection before tracing." into lmp-devChristopher Ferris2014-10-021-3/+7
|\ \ \ | |/ / | | | | | | | | | * commit 'a91968fd099378d1673c7443be16adcb97ee40af': Accept socket connection before tracing.
| * | Accept socket connection before tracing.Christopher Ferris2014-10-011-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sometimes dumping threads takes a long time and bugreport times out. This change will cause us to accept the bugreport socket connection before dumping threads and should avoid the failed to connect to dumpstate service problems we've seen. Bug: 17758374 Change-Id: I80afa0353cf1c340873f481a8d1d7faffff54120
* | | am cde4b13a: Merge "Allow more than one dex2oat extra option"Narayan Kamath2014-10-011-5/+38
|\ \ \ | | |/ | |/| | | | | | | * commit 'cde4b13a12a0bc8a7bd031f5d5c1b2b2bdd13335': Allow more than one dex2oat extra option
| * | Allow more than one dex2oat extra optionYevgeny Rouban2014-09-171-5/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | All extra options are provided as one argument to dex2oat. The patch splits all options to individual ones. Change-Id: Ied65bb9cf38b114611e88a8d5d86305021700d0b Signed-off-by: Serguei Katkov <serguei.i.katkov@intel.com> Signed-off-by: Yevgeny Rouban <yevgeny.y.rouban@intel.com>
* | | am d9485403: Merge "Include the VPN server IP address in the VPN state ↵Lorenzo Colitti2014-09-231-25/+7
|\ \ \ | | |/ | |/| | | | | | | | | | | | | file." into lmp-dev * commit 'd94854030c76fc4ee4126ca1707a76fbd1f29126': Include the VPN server IP address in the VPN state file.
| * | Include the VPN server IP address in the VPN state file.Lorenzo Colitti2014-09-191-25/+7
| | | | | | | | | | | | | | | | | | | | | | | | This will be used by LegacyVpnRunner to create a throw route pointing at it. Bug: 17462989 Change-Id: I3ebf0cec726dd12b2c57ba5d66775f8c02b25b70
* | | am e1e3d278: Merge "Clean cruft out of makefiles."Dan Albert2014-09-121-3/+1
|\ \ \ | | |/ | |/| | | | | | | * commit 'e1e3d278549eb6389eb0b5fa3f13a4ac079a55a2': Clean cruft out of makefiles.
| * | Clean cruft out of makefiles.Dan Albert2014-09-111-3/+1
| | | | | | | | | | | | | | | | | | | | | Cleans up manual uses of stlport and bionic (and removes uses of private bionic headers). Change-Id: I157309d702e59152adfa3450939082248ae4c043
* | | resolved conflicts for merge of 07c9557f to lmp-dev-plus-aospDan Albert2014-09-123-28/+25
|\ \ \ | |/ / | | | | | | Change-Id: Ic212ab2ee90b1cc7db7203210b047c870bb5c476
| * | Fix warnings on unused variables and parameters.Chih-Hung Hsieh2014-09-113-28/+25
| | | | | | | | | | | | | | | BUG: 17474723 Change-Id: If40f5e765090cfb970e4129b78b1e74cf8bad217
| * | Use time() instead of clock() for timeouts.Christopher Ferris2014-09-091-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The clock() function returns the processor time used by the process. This is not a good timeout mechanism since the code is suspended most of the time waiting for the forked process to finish. Replace with the time() function. Bug: 17154069 (cherry picked from commit 89d4949f86f4f7b6710e951afefad186c667fd6e) Change-Id: I42f0f24ee53ef99955fd482a1089e39d491f3bd5
* | | am 70b9e6c8: Merge "Make dumpstate vibrate immediately." into lmp-devJeff Brown2014-09-122-44/+57
|\ \ \ | | |/ | |/| | | | | | | * commit '70b9e6c8f3221bbbeefc85c70746541a5b318afc': Make dumpstate vibrate immediately.
| * | Make dumpstate vibrate immediately.Jeff Brown2014-09-112-44/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, the vibration was not performed until after stacks were gathered which takes a long time. Moved the vibration to happen earlier so we provide better user feedback for the three-button salute when collecting a bug report. Deleted some dead code for playing begin/end sounds. Improved the timing measurement code to help track down why bug reports are so slow. (They take over a minute now which can cause us to lose valuable diagnostic information.) Bug: 17474152 Change-Id: Iac73f7993d7dc85196aad96f459b22fd4a710f94
* | | am 5ef471c5: Merge "Use time() instead of clock() for timeouts." into lmp-devChristopher Ferris2014-09-091-4/+4
|\ \ \ | |/ / | | | | | | | | | * commit '5ef471c5f986a52c681a29856c38f72127cdf8ac': Use time() instead of clock() for timeouts.
| * | Merge "Use time() instead of clock() for timeouts." into lmp-devChristopher Ferris2014-09-091-4/+4
| |\ \
| | * | Use time() instead of clock() for timeouts.Christopher Ferris2014-09-091-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The clock() function returns the processor time used by the process. This is not a good timeout mechanism since the code is suspended most of the time waiting for the forked process to finish. Replace with the time() function. Bug: 17154069 Change-Id: Ib383329f9db269445d71a100553b08e71fddda3f
* | | | am 464e539c: Merge "Add new system APK locations." into lmp-devJeff Sharkey2014-09-094-16/+36
|\ \ \ \ | |/ / / | | | | | | | | | | | | * commit '464e539cd3e931aaca99a67d0addc6d68bd96b3d': Add new system APK locations.
| * | | Add new system APK locations.Jeff Sharkey2014-09-094-16/+36
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | Add /system/priv-app and /oem/app paths to system paths. Also allow rmdex on system apps, and quietly ignore when it was already removed. Also relax logging when clearing code cache, since it's optional. Bug: 17205122 Change-Id: I4fc4d0f63a3596937c4defbd64e1f8a1c563f02d
| * | Remove obsolete prunedexcacheAlex Light2014-08-283-55/+0
| | | | | | | | | | | | | | | | | | | | | | | | Bug: 16875245 (cherry picked from commit 5f727f86942a188354c028356f1167794fdc8655) Change-Id: I06e14c405aa4af295795982c1d236be3cb00e893
* | | am 51eec3b9: Merge "Fix relabeling of secondary user package directories."Nick Kralevich2014-09-081-1/+1
|\ \ \ | | |/ | |/| | | | | | | * commit '51eec3b98788039afc5fd7ffe76612c7f8d9b39c': Fix relabeling of secondary user package directories.
| * | Fix relabeling of secondary user package directories.Stephen Smalley2014-09-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | When relabeling secondary user package directories, we need to use the uid of the directory rather than the primary package UID; otherwise, levelFrom=user will not work correctly. Change-Id: I0d76ec6ec6fe56a566023ca5e1398efdf28fc81e Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
* | | am 8c1642ad: Merge "Remove obsolete prunedexcache"Brian Carlstrom2014-08-293-55/+0
|\ \ \ | |/ / | | | | | | | | | * commit '8c1642ad4ea8fbeb7d03f30e5f50e03c28d40065': Remove obsolete prunedexcache
| * | Remove obsolete prunedexcacheAlex Light2014-08-283-55/+0
| | | | | | | | | | | | | | | Bug: 16875245 Change-Id: I06e14c405aa4af295795982c1d236be3cb00e893
| * | Add vm_safe_mode to dexopt.Calin Juravle2014-08-273-10/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The flag enforces interpret-only flag for dex2oat. Bug: 12457423 (cherry picked from commit b1efac103523efccbe671e76cc0eaaeab810415b) (cherry picked from commit 97477d203eaf0c3235bbe2415356f20a0431cada) Change-Id: I215339527e998b24e274c8df42a5024839e6a9fa
| * | Pass isa features flag to dex2oat.Calin Juravle2014-08-261-8/+21
| | | | | | | | | | | | | | | | | | | | | | | | Bug: 16716262 (cherry picked from commit 8fc7315a67fdbf9b56cc6fa061f0773be2223a81) Change-Id: I3cb1d82604612bc7212bcbdeef685bc05b695b6a
| * | Fix validation of system paths in installd.Calin Juravle2014-08-222-27/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | System apps are now installed under their own directory (system_app_dir/app_dir/app.apk). The new path doesn't pass installd validation because of obsolete checks which verify that the path does not contain subdirectories past the system_app_dir. The CL fixes the validation to accept at most on subdirectory. Bug: 17109858 (cherry picked from commit c597b6dd895dbb2b28c757ce7a2651b3cdc9b00c) Change-Id: Ic5f15d1864c6af9f4c4b07dc27244ebbb521ad5e
| * | Allow apk path to contain one subdirectory.Calin Juravle2014-08-222-26/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the current directory layout this prevented rm_dex and move_dex commands to validate the apk path and thus cleaning up resources. Bug: 16888084 (cherry picked from commit fd88ff2edd954117e36372fb095b6f5f35aad0e3) Change-Id: I1002529b0c35852c67540d3165d1444523460592
| * | Disable verification based on vold.decrypt. [frameworks/native]Brian Carlstrom2014-08-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Bug: 15165413 (cherry picked from commit e18987efb5e39ca1bed15527b7b82bde55c99669) Change-Id: Ie55ef400c9d1f231b3be64248c756ac798a11ffe