summaryrefslogtreecommitdiffstats
path: root/cmds
Commit message (Collapse)AuthorAgeFilesLines
* 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
* 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
* | 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>
* Add an installd command to mark the end of boot.Narayan Kamath2014-11-103-0/+22
| | | | | | bug: 18280671 Change-Id: I6b3aeaf143ab3b78881f163ec5c17b9bf20172ed
* Merge "installd: Set priority to background for dexopting" into lmp-mr1-devIgor Murashkin2014-11-061-0/+5
|\
| * installd: Set priority to background for dexoptingIgor Murashkin2014-11-051-0/+5
| | | | | | | | | | | | | | | | This fixes jank caused by dex2oat while installing an application in the background. Bug: 17497551 Change-Id: I5a69b00c0fd76ae22a0d1adb242bef6c18a75743
* | dumpstate: report device uptime mmc performanceMark Salyzyn2014-11-041-0/+1
|/ | | | | Bug: 18085992 Change-Id: Ibc0a37d3d2649d1e6708d9357f37ed75f2cea121
* atrace: fix Sync Manager tracing preventing enabling of kernel sync tracingPatrick Auchter2014-10-271-1/+1
| | | | | | | | | | | Both Sync Manager tracing and kernel sync tracing were using "sync" to enable tracing and since Sync Manager was found first, this prevented enabling kernel sync tracing. To fix this, use "syncman" to enable Sync Manager tracing. Change-Id: Id3b799e01e5041c582cd752c8c40d3e36954f821 Signed-off-by: Iliyan Malchev <malchev@google.com>
* dumpstate: Add trusty version if driver is foundArve Hjønnevåg2014-10-161-0/+24
| | | | Change-Id: I7780ea8e1d777c222a73408f70d8a6d49dee1d92
* 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
* 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
* 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
* 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
* 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
* | 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
* Merge "Make clear data stricter." into lmp-devJeff Sharkey2014-08-271-6/+1
|\
| * Make clear data stricter.Jeff Sharkey2014-08-271-6/+1
| | | | | | | | | | | | | | | | It should nuke everything under the data directory. PMS will come around and generate the lib symlink after we're finished. Bug: 16739202 Change-Id: Ib70af2e1450e3bed6781fb497b9cc67e1e594c49
* | Set compiler filter flag to true when vmSafeMode is present.Calin Juravle2014-08-271-0/+1
|/ | | | | Bug: 12457423 Change-Id: I33345c5cce76681d8a6592ebae8c9f96a9f0f8bd
* Merge "Add vm_safe_mode to dexopt." into lmp-devCalin Juravle2014-08-263-10/+15
|\
| * Add vm_safe_mode to dexopt.Calin Juravle2014-08-263-10/+15
| | | | | | | | | | | | | | The flag enforces interpret-only flag for dex2oat. Bug: 12457423 Change-Id: Ifdafcc1afa32996577fa44c5682eeb58c79772ac
* | Merge "Pass isa features flag to dex2oat." into lmp-devCalin Juravle2014-08-261-8/+21
|\ \ | |/
| * Pass isa features flag to dex2oat.Calin Juravle2014-08-261-8/+21
| | | | | | | | | | Bug: 16716262 Change-Id: Ifbc3a1520bc177aa87855edb60c36346f24c77cd
* | Merge "Fix deadlock when killing adb bugreport" into lmp-devAndres Morales2014-08-252-2/+10
|\ \ | |/ |/|
| * Fix deadlock when killing adb bugreportAndres Morales2014-08-222-2/+10
| | | | | | | | | | | | | | | | | | Leave default signal handler (terminate) for parent process, add SIG_IGN as signal handler for children and let them go down when the parent gets SIGPIPE. Bug: 17109154 Change-Id: Id33db3e97a32f289eb2a9a1a0ca8acbe3dcd285d
* | 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 Change-Id: I13abb52c0016610ff436f6a26bb6b3b85dc4dfb0
* | Merge "Allow apk path to contain one subdirectory." into lmp-devCalin Juravle2014-08-222-26/+27
|\ \ | |/ |/|
| * Allow apk path to contain one subdirectory.Calin Juravle2014-08-202-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 Change-Id: Iba579d075a9c6d7de047e7ffef95441498257086
* | atrace: avoid unnecessary writes to trace_clockColin Cross2014-08-201-1/+46
|/ | | | | | | | | | | | | Writing to trace_clock erases the trace buffer, even if the value hasn't changed. This prevents use of --async_start and --async_dump to leave background tracing running and dump after an even that needs debugging, because --async_dump writes to trace_clock and resets the buffer before it can read it. Read and parse the current value from trace_clock before writing, and skip the write if the value isn't changing. Change-Id: Ia2ec5bb654fb0bd179771b511ff261731ba47dca
* atrace: add memory reclaim tracingColin Cross2014-08-181-0/+6
| | | | | | | Add "memreclaim" to trace direct reclaim, shrink slab cycles, and kswapd waking up and sleeping. Change-Id: I4cfb313820a3a9aa5a9d07a39c42db41c24304a6
* atrace: Add IRQ eventsDan Willemsen2014-08-181-0/+3
| | | | | | Add "irq" to trace irq and softirq events. Change-Id: I45356c2912a1fa130667ada7b21e9fb54ddcfba5
* Merge "Add trace tag for power management." into lmp-devJeff Brown2014-08-151-0/+3
|\
| * Add trace tag for power management.Jeff Brown2014-08-141-0/+3
| | | | | | | | | | | | | | Also added a couple of other existing missing tags in atrace. Bug: 17004602 Change-Id: I6f697a2a15922bd4695acfa203d45eaae40cd00e
* | Disable verification based on vold.decrypt. [frameworks/native]Brian Carlstrom2014-08-151-1/+1
|/ | | | | Bug: 15165413 Change-Id: Ie70bf4e1348b7b8b2454cf9b498b272416d61c34
* Use set_sched_policy to put dexopt operations in SP_BACKGROUND cgroupBrian Carlstrom2014-08-111-0/+5
| | | | | | | | Bug: 15927194 (cherry picked from commit 0378aaf257aee92539d30543914a50c4481c6a18) Change-Id: I462b5ac256c4d091ed4023cf4b97dd6a4abcaa5f
* Disable compilation based on vold.decrypt. [frameworks/native]Brian Carlstrom2014-08-061-1/+11
| | | | | | | | Bug: 15165413 (cherry picked from commit 538998f204d1e542e235de9e7ce18ef4dc68c9cc) Change-Id: Idae36efa1cb3fb99b51fa0a79b6bb037981d1c71
* Move from dalvik.vm.image-dex2oat-flags to dalvik.vm.dex2oat-filter ↵Brian Carlstrom2014-08-061-0/+12
| | | | | | | | | | | | [frameworks/native] This will allow us to conditionally change the compiler-filter based on other properties. Bug: 15165413 (cherry picked from commit cf51ba1360ee13459830a0502b0d454d0145544f) Change-Id: I6613c9710878d56ed8c121e0caded76a64430f76
* Make system use patchoat to relocate during runtime.Alex Light2014-08-063-22/+102
| | | | | | | | | | Make installd understand a patchoat directive and carry it out. Bug: 15358152 (cherry picked from commit 7365a10689df23334d245b211ce272502ad20669) Change-Id: Id84a15e626ddde63876914068d3d9aa037abc65b
* Improve network connectivity dumping.Lorenzo Colitti2014-07-311-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | 1. Explicitly dump IP addresses. Currently, some IP addresses are dumped using netcfg, but that only dumps the first IPv4 address on each interface. Instead, call ip -4 addr and ip -6 addr explicitly to dump all IPv4 and IPv6 addresses on the system. 2. Disable dumping /proc/net/{ipv6,}route, because: - We already dump all IPv4 and IPv6 routes in the tables that we use. - /proc/net/route is confusing because it only includes routes in the main table, which are all but unused. It's also in unreadable host-byte-order hex. - /proc/net/ipv6_route is confusing because it includes routes from all tables but does not say what table they are in. 3. Instead of dumping the contents of /proc/net/arp , use "ip -4 neigh show" and "ip -6 neigh show" to dump the neighbour caches for both IPv4 and IPv6. Bug: 16663736 Change-Id: Id3e509b877ab7b00eb2399b6a9868b12245da2f0
* Add dumping of tombstones to dumpstate.Christopher Ferris2014-07-233-11/+65
| | | | | | Dump only those tombstones modified within the last half an hour. Change-Id: I8ce836b2e19eba7a9c0c31a4f312f9a382526da7
* Always #include <sys/...>, not <linux/...>.Elliott Hughes2014-07-181-1/+1
| | | | | | (cherry picked from commit 1e4ee9afd2de12af98dbf476b73e2d43f605384c) Change-Id: Ie005774484f98bb33c8f867cddb778ac04a1d4ea
* Fix implicit declaration of function 'prctl' in installd.Elliott Hughes2014-07-181-1/+1
| | | | | | (cherry picked from commit ec535c5ba515f58791aa5044ba116d35a10a188e) Change-Id: I3da977d85ce544b23ff00934fdbd201d683e9210
* dumpstate: fix dumping traces for vm processes on 64-bitColin Cross2014-07-171-2/+2
| | | | | | | | | | | | dumpstate was not dumping any stack traces for vm processes because it was failing the string compare for /system/bin/app_process. 64-bit devices use app_process32 and app_process64 instead of app_process, and zygote64 alongside zygote. Change the string matching to be prefix matching. (cherry picked from commit 8eb25d552b07ffa799b7b61ad46d0109e7512741) Change-Id: I6b1568161fae278f0e6107990e5b750cf0ca902b
* Offer to delete code cache directories.Jeff Sharkey2014-07-153-1/+20
| | | | | Bug: 16187224 Change-Id: Ia860b051a34ffdfb4f6e0ea19f90cb73509c4eee
* Add MAC for remaining service_manager functionality.Riley Spahn2014-07-151-35/+75
| | | | | | | | | | | Add SELinux MAC for the list and find functionality to service_manager. By default the list action uses the service_manager_type attribute as its target object. (cherry picked from commit c67e6307cadb1f2cd876907c42d39b8374b93acd) Change-Id: Iaf14b21346822a6b544091a0f4a9949117934b9a
* dump bluedroid kernel status do not mergeMatthew Xie2014-07-141-0/+1
| | | | | Change-Id: I4617f770088f86ceda2caf58bd1fdae81b3e31df (cherry picked from commit ed3b9a09771a79b62fd4a5943d3845e7ceee6a34)
* service_manager: check binder passed lengthsNick Kralevich2014-07-141-13/+29
| | | | | | | | | | | | | 1) Pass length through to str8 function. 2) Fix implicit function definition warning. 3) Check for NULL from bio_get_string16 functions. Bug: 15886919 Bug: 15888753 (cherry picked from commit 7d42a3c31ba78a418f9bdde0e0ab951469f321b5) Change-Id: I1f826b88826561ea126d811c087ba30623141511