summaryrefslogtreecommitdiffstats
path: root/cmds
Commit message (Collapse)AuthorAgeFilesLines
...
* | am 53cab935: am 1fc747d2: am 5a25a63d: Merge "Installd: Pass debuggable flag"Andreas Gampe2015-03-103-9/+23
|\ \ | |/ | | | | | | * commit '53cab935d54b6ca013c6a236e09d9160a6aa7f54': Installd: Pass debuggable flag
| * am 5a25a63d: Merge "Installd: Pass debuggable flag"Andreas Gampe2015-03-103-9/+23
| |\ | | | | | | | | | | | | * commit '5a25a63de2693177b15817fb19b684ca7bfec582': Installd: Pass debuggable flag
| | * Installd: Pass debuggable flagAndreas Gampe2015-03-093-9/+23
| | | | | | | | | | | | | | | | | | Pass the debuggable flag from the package manager to dex2oat. Change-Id: Id17ec72babe2ee88713a0d274eff86508de30666
* | | am f11b58f2: am fcf1689c: am 5fec7915: Merge "service_manager: reorder ↵Nick Kralevich2015-03-051-16/+14
|\ \ \ | |/ / | | | | | | | | | | | | | | | permission checks for find" * commit 'f11b58f296039a0bf90336e4c38c014f11542092': service_manager: reorder permission checks for find
| * | am 5fec7915: Merge "service_manager: reorder permission checks for find"Nick Kralevich2015-03-051-16/+14
| |\ \ | | |/ | | | | | | | | | * commit '5fec79156d749322dcc0376da1d6cf4d9ee9ccf4': service_manager: reorder permission checks for find
| | * service_manager: reorder permission checks for findNick Kralevich2015-03-051-16/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reorder the find permission checks. This avoids generating misleading SELinux denials when a service doesn't exist, or when a service is prohibited to isolated apps. The original reason for structuring the code this way is explained in https://android-review.googlesource.com/#/c/100530/4/cmds/servicemanager/service_manager.c@172 The concern at the time was to avoid leaking a situation where a caller could probe for the existance of a service. This turns out to be unnecessary. The same return value is used for both a permission denied and a service not found. The only side effect is the generation of an SELinux audit log, which likely won't be accessible to the calling application. Change-Id: I9760e1821ed16102fa5f9bec07f8c34944565be9
* | | resolved conflicts for merge of 04e13acd to masterChristopher Ferris2015-02-263-39/+108
|\ \ \ | |/ / | | | | | | Change-Id: I9bbc9907a5cbde8b374398493bc0dc6b056ea734
| * | am 9d68ed0e: Merge "Add timeout for dump_file."Christopher Ferris2015-02-263-39/+85
| |\ \ | | |/ | | | | | | | | | * commit '9d68ed0ecd3a101c13a163cfe730b13b1564b442': Add timeout for dump_file.
| | * Merge "Add timeout for dump_file."Christopher Ferris2015-02-263-39/+85
| | |\
| | | * Add timeout for dump_file.Christopher Ferris2015-02-253-39/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It turns out dump_file is used on a number of /proc and system files. In one case, the read of a file stalled and caused a bugreport to hang forever. It's still possible if there is a kernel bug that this could stall forever, but less likely. Also, change the return type of nanotime to uint64_t. Testing: - Created a named fifo and verified that dump_file fails with a timeout. - Created a large /data/anr/traces.txt to verify that large files still dump properly and that the additional NONBLOCK parameter doesn't cause a problem. - Created a dummy /data/tombstones/tombstone_00 to verify that the dump of these files still works. - Compared a dump using the old dumpstate to the new dumpstate to verify nothing obviously different. Bug: 19117030 Change-Id: I0d3dd27583c853cdaccd2fd278748cb5f9ccd4fb
* | | | resolved conflicts for merge of d6c8ae9c to masterMark Salyzyn2015-02-261-0/+4
|\ \ \ \ | |/ / / | | | | | | | | Change-Id: I3cbb6ed0958b4328aca1798c7fe6080c31555a3a
| * | | am bb67beca: Merge "dumpstate: add pstore read"Mark Salyzyn2015-02-261-0/+4
| |\ \ \ | | |/ / | | | | | | | | | | | | * commit 'bb67beca35e7d570ede193a316a92022fbc2f810': dumpstate: add pstore read
| | * | dumpstate: add pstore readMark Salyzyn2015-02-261-0/+4
| | |/ | | | | | | | | | | | | | | | | | | | | | Call logcat -L to pull any LAST Android logs. If the kernel is not configured for PSTORE and PSTORE_PMSG, the hopes are the empty content will pressure vendors to slice up and configure support. Change-Id: I5fddfa1e0f59f24fccc30b257ba68af8a8cf8640
| * | Merge commit '26cc3d0b67ff4daf31eaeed0ecd87b391978aadb' into HEADBill Yi2015-02-193-12/+39
| |\ \ | | |/ | |/|
* | | Merge "Remove unnecessary settings state dump."Svetoslav2015-02-183-48/+0
|\ \ \
| * | | Remove unnecessary settings state dump.Svetoslav2015-02-173-48/+0
| | |/ | |/| | | | | | | | | | | | | | | | The settings provider now implements dump, hance special dump code is no longer needed. Change-Id: I93af3f6acac4ac70d6bbf569d2348cb16b8c0946
* | | am 75b81aee: Merge "Add missing <sys/file.h> include for flock."Elliott Hughes2015-02-171-0/+1
|\ \ \ | |/ / |/| / | |/ | | * commit '75b81aee3830d0a8c7c10e3ca7f1652543dbbaca': Add missing <sys/file.h> include for flock.
| * Add missing <sys/file.h> include for flock.Elliott Hughes2015-02-161-0/+1
| | | | | | | | Change-Id: I5c9bb4aa74d8a36d44e086bbcb5d60876727ce4c
* | am 8511b3ae: Merge "Remove -z option."Christopher Ferris2015-02-103-49/+8
|\ \ | |/ | | | | | | * commit '8511b3ae5eb42810f97f7c3e993d7f80d3393b83': Remove -z option.
| * 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
* | am 50ad67e4: Merge "Add better timeout mechanism for running commands."Christopher Ferris2015-02-041-18/+69
|\ \ | |/ | | | | | | * commit '50ad67e4ce6b07b5f5f4649ace81ed9a8b2c2eac': Add better timeout mechanism for running commands.
| * Add better timeout mechanism for running commands.Christopher Ferris2015-02-031-18/+69
| | | | | | | | Change-Id: I60fc9e7d59c3e0e4b8b2f69f79c6903240bfd131
* | am 51bfedd8: Merge "Add missing includes."Elliott Hughes2015-01-302-0/+2
|\ \ | |/ | | | | | | * commit '51bfedd821c79ae34ee1caffd9ae958faa71ecec': Add missing includes.
| * Add missing includes.Elliott Hughes2015-01-292-0/+2
| | | | | | | | Change-Id: I1dad32ab459c25063a70cf52100a29d00fea3a90
* | am 0e17a265: Merge "Switch dumpstate to "ip link list"."Elliott Hughes2015-01-281-1/+2
|\ \ | |/ | | | | | | * commit '0e17a265f5e8bf233a3e3b74fc03ada3dc467bed': Switch dumpstate to "ip link list".
| * Switch dumpstate to "ip link list".Elliott Hughes2015-01-281-1/+2
| | | | | | | | Change-Id: Ia1db51c866890f09fbd4316764dea5982554598f
* | am 346329b7: Merge "Move atrace from the obsolete bzero to memset."Elliott Hughes2015-01-251-1/+2
|\ \ | |/ | | | | | | * commit '346329b7a70b594895be0aec5dc00f9f4108b533': Move atrace from the obsolete bzero to memset.
| * 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
* | | am c0e10c6f: Merge "Refactor of the bugreport code."Christopher Ferris2015-01-233-57/+94
|\ \ \ | |/ / | | | | | | | | | * commit 'c0e10c6f03eaa126aeb745e0b209ad0b219ade6e': Refactor of the bugreport code.
| * | 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
* | am 457731f6: Use the timeout stack dump functions.Christopher Ferris2015-01-151-5/+13
|\ \ | | | | | | | | | | | | * commit '457731f69e3106b5aae8fc04f9565af1d875876c': Use the timeout stack dump functions.
| * | Use the timeout stack dump functions.Christopher Ferris2015-01-141-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 Change-Id: I85053b8dcfe6224e2b64b4d8f7f2ef448b3cda34
| * | Fix message when a command times out.Christopher Ferris2015-01-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The previous version printed out the nanoseconds elapsed, not seconds. Bug: 18766581 (cherry picked from commit 67c5a8af9ed128d8bb56d4723303aef6f0a4500f) Change-Id: Icbaaee83a92767694fd98e3c790f36f4d24681b0
| * | Installd: Swap file for dex2oatAndreas Gampe2014-12-181-5/+61
| | | | | | | | | | | | | | | | | | | | | | | | Add swap file support for dex2oat to installd. Only use in low-memory mode. Bug: 18596910 Change-Id: I131448f3907115054a592af73db86d2b9257ea33
* | | am 4f9bfffe: Merge "Fix message when a command times out."Christopher Ferris2015-01-121-1/+1
|\ \ \ | | |/ | |/| | | | | | | * commit '4f9bfffe23d40fdaabe91ea7c7691e52800edb79': Fix message when a command times out.
| * | 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
* | | am 96e4409e: Merge "Installd: Disallow relocation for decryption"Andreas Gampe2015-01-071-15/+24
|\ \ \ | |/ / | | | | | | | | | * commit '96e4409e8c38b1d79285eca9886d44ff850b5748': Installd: Disallow relocation for decryption
| * | 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>
* | | am d3255076: Merge "Installd: Swap file for dex2oat"Andreas Gampe2014-12-221-3/+59
|\ \ \ | |/ / | | | | | | | | | * commit 'd325507698d8379e431a8c8fefcfafe59956bd88': Installd: Swap file for dex2oat
| * | 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
* | | am 1be4021c: Merge "Installd: Remove dalvik paths"Andreas Gampe2014-12-161-42/+4
|\ \ \ | |/ / | | | | | | | | | * commit '1be4021c2a867c7e067a3c5b937a054f0eb7817f': Installd: Remove dalvik paths
| * | 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>
* | | am e8a4dce8: Merge "Work on issue #18486438: Reduce size of bugreport ↵Dianne Hackborn2014-11-251-3/+0
|\ \ \ | | |/ | |/| | | | | | | | | | | | | output" into lmp-mr1-dev * commit 'e8a4dce8169ba5fdcd86a5fc29aa6986de1711b0': Work on issue #18486438: Reduce size of bugreport output
| * | Merge "Work on issue #18486438: Reduce size of bugreport output" into ↵Dianne Hackborn2014-11-241-3/+0
| |\ \ | | | | | | | | | | | | lmp-mr1-dev
| | * | Work on issue #18486438: Reduce size of bugreport outputDianne Hackborn2014-11-211-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | Don't put packages.xml in to the output. Change-Id: I88a682866365886506a003a64deb4a29c16ba21c
* | | | am e4c7ec84: Merge "atrace: make fs-specific sysfs entries optional" into ↵Greg Hackmann2014-11-211-8/+8
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | lmp-mr1-dev * commit 'e4c7ec847d83edfb54c215f3ab6093efeb17a586': atrace: make fs-specific sysfs entries optional
| * | | atrace: make fs-specific sysfs entries optionalGreg Hackmann2014-11-201-8/+8
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | The availability of these sysfs entries will vary based on the kernel's supported filesystems, so don't block the disk category if some of them are missing. Bug: 18467498 Change-Id: I96200f1b5cf3f1a8fa8186602552adc96ddffc04 Signed-off-by: Greg Hackmann <ghackmann@google.com>