summaryrefslogtreecommitdiffstats
path: root/cmds
Commit message (Collapse)AuthorAgeFilesLines
* 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
* am 8098af6e: am 7c5be65f: Merge "Rename \'mkuser\' command to \'mkuserconfig\'"Robin Lee2014-07-093-5/+5
|\ | | | | | | | | * commit '8098af6ea29e9d28a6314d12963cef3107de9c18': Rename 'mkuser' command to 'mkuserconfig'
| * am 7c5be65f: Merge "Rename \'mkuser\' command to \'mkuserconfig\'"Robin Lee2014-07-093-5/+5
| |\ | | | | | | | | | | | | * commit '7c5be65f2819bf0328715bc405483788dd7a81f2': Rename 'mkuser' command to 'mkuserconfig'
| | * Merge "Rename 'mkuser' command to 'mkuserconfig'"Robin Lee2014-07-043-5/+5
| | |\
| | | * Rename 'mkuser' command to 'mkuserconfig'Robin Lee2014-06-103-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | Brings the name more in line with what it actually does. Change-Id: I0adb14deb1a035abdbe51714356bd0c94ccf04c5
* | | | am d441dbc6: am cbb9d0d7: Merge "Make dex2oat heap size product configurable ↵Brian Carlstrom2014-07-092-31/+40
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | [frameworks/native]" * commit 'd441dbc6436dbf8cb13f0b784c7d16f022b7586e': Make dex2oat heap size product configurable [frameworks/native]
| * | | am cbb9d0d7: Merge "Make dex2oat heap size product configurable ↵Brian Carlstrom2014-07-092-31/+40
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | | | | [frameworks/native]" * commit 'cbb9d0d74008e460963a3c3094f654c50a04a295': Make dex2oat heap size product configurable [frameworks/native]
| | * | Merge "Make dex2oat heap size product configurable [frameworks/native]"Brian Carlstrom2014-07-072-31/+40
| | |\ \
| | | * | Make dex2oat heap size product configurable [frameworks/native]Brian Carlstrom2014-07-082-31/+40
| | | | | | | | | | | | | | | | | | | | | | | | | Bug: 15919420 Change-Id: I0e629ff4f7541f0dde7380e0dbc8dab1c13df7bd
* | | | | resolved conflicts for merge of 928e05b1 to masterSreeram Ramachandran2014-07-093-4/+25
|\ \ \ \ \ | |/ / / / | | | | | | | | | | Change-Id: I1d1e623a1f95baa4375a87242ce71ea789884649
| * | | | am 0d2bee0c: Merge "Dump all the correct routing tables."Sreeram Ramachandran2014-07-093-4/+25
| |\ \ \ \ | | |/ / / | | | | | | | | | | | | | | | * commit '0d2bee0c0baec56ec98867d7e044602097525248': Dump all the correct routing tables.
| | * | | Dump all the correct routing tables.Sreeram Ramachandran2014-07-083-4/+25
| | |/ / | | | | | | | | | | | | | | | | | | | | The list of tables is maintained in /data/misc/net/rt_tables by netd. Change-Id: I55475c08c5e43bcf61af916210e680c47480ac32
* | | | resolved conflicts for merge of 1aa9565c to masterNick Kralevich2014-07-071-48/+1
|\ \ \ \ | |/ / / | | | | | | | | Change-Id: I30582926ab2d2e2b97cb95aaedcd54ba51832aba
| * | | am f9cfae24: Merge "Remove inline access control in service_manager."Nick Kralevich2014-07-071-42/+1
| |\ \ \ | | |/ / | | | | | | | | | | | | * commit 'f9cfae24123bae199a07bee2dd1c307906c6e6d0': Remove inline access control in service_manager.
| | * | Merge "Remove inline access control in service_manager."Nick Kralevich2014-07-021-42/+1
| | |\ \
| | | * | Remove inline access control in service_manager.Riley Spahn2014-06-261-42/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove the hardcoded tuples of UIDs and the services that each is allowed to register. We will rely only on permissions from SELinux. Change-Id: I1c44555a6e274814282398865b30ee938f40dabb
| * | | | am a5726eb9: Merge "Use current max product dalvik.vm.heapsize as default ↵Brian Carlstrom2014-06-271-1/+8
| |\ \ \ \ | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | dex2oat heap size" * commit 'a5726eb954588bd27ffa55a5193e7c0f8bd9eac3': Use current max product dalvik.vm.heapsize as default dex2oat heap size
| | * | | Use current max product dalvik.vm.heapsize as default dex2oat heap sizeBrian Carlstrom2014-06-271-1/+8
| | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 15919420 (cherry picked from commit 3aa138617b42b87069dbac0b441bd14dca2d8609) Change-Id: I569ba111c6163e94dd1b09b21ef374f05d263e72
* | | | Use current max product dalvik.vm.heapsize as default dex2oat heap sizeBrian Carlstrom2014-06-271-1/+8
| | | | | | | | | | | | | | | | | | | | Bug: 15919420 Change-Id: I7ea3bbfe787026f272e50690ab3b84f894600191
* | | | GLConsumer: Stop using default constructor paramsDan Stoza2014-06-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removes the dependency on default constructor parameters for GLConsumer so that a different constructor prototype can safely be added. Change-Id: I0da924bbd4c141edbf305598c1be8bc575654680
* | | | am 9bc8c62e: am 357df19b: Merge "Exclude subdirectories when pruning the dex ↵Narayan Kamath2014-06-243-8/+29
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | cache." * commit '9bc8c62ea4d86d948af7a2aade8b0b5502a84b6a': Exclude subdirectories when pruning the dex cache.
| * | | am 357df19b: Merge "Exclude subdirectories when pruning the dex cache."Narayan Kamath2014-06-243-8/+29
| |\ \ \ | | |/ / | | | | | | | | | | | | * commit '357df19b14b8387a480ed68dd6ea92eeb1aa4edc': Exclude subdirectories when pruning the dex cache.
| | * | Merge "Exclude subdirectories when pruning the dex cache."Narayan Kamath2014-06-243-8/+29
| | |\ \
| | | * | Exclude subdirectories when pruning the dex cache.Narayan Kamath2014-06-203-8/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This requires a companion package manager change to prune each instruction specific dex cache individually. bug: 15677279 Change-Id: I5891981512bde20e49bff65b1842c28886f2b177
* | | | | am 724473b3: am 71f9956a: Merge "Fix obsolete argument name"Brian Carlstrom2014-06-171-1/+1
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | * commit '724473b359d63bf707bd1fe04abdc82edc5fd22d': Fix obsolete argument name
| * | | | am 71f9956a: Merge "Fix obsolete argument name"Brian Carlstrom2014-06-171-1/+1
| |\ \ \ \ | | |/ / / | | | | | | | | | | | | | | | * commit '71f9956a23885e64626828a1afa8c512e29be8cc': Fix obsolete argument name
| | * | | Merge "Fix obsolete argument name"Brian Carlstrom2014-06-171-1/+1
| | |\ \ \ | | | |/ / | | |/| |
| | | * | Fix obsolete argument nameBrian Carlstrom2014-06-161-1/+1
| | | | | | | | | | | | | | | | | | | | Change-Id: I8030f055ee49dc86d4592f36791edddfc0d60a31
* | | | | am 395a6a64: am 8c9bcff8: Merge "Add an installd command to prune dex files."Narayan Kamath2014-06-164-12/+54
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | * commit '395a6a642dc3f7c2fe99080bbfcb31a20cb2fba9': Add an installd command to prune dex files.
| * | | | am 8c9bcff8: Merge "Add an installd command to prune dex files."Narayan Kamath2014-06-164-12/+54
| |\ \ \ \ | | |/ / / | | | | | | | | | | | | | | | * commit '8c9bcff892ae30897a971c3b97305e70db5b5bd3': Add an installd command to prune dex files.
| | * | | Merge "Add an installd command to prune dex files."Narayan Kamath2014-06-104-12/+54
| | |\ \ \ | | | |/ / | | |/| |
| | | * | Add an installd command to prune dex files.Narayan Kamath2014-06-104-12/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a straightforward port of logic from PackageManagerService#pruneDexFiles. bug: 14407732 Change-Id: I892cff027ddcbb1a4fb37a7af5ecf1697049a188
* | | | | Merge "Merge kwd to master"Wink Saville2014-06-121-0/+2
|\ \ \ \ \
| * | | | | Merge kwd to masterWink Saville2014-06-111-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Idb607c0aa32f80fe4fe1539aedea7a221e9e7f04
* | | | | | am f40c1fe5: am 3dd3de03: Merge "installd: change profile files to 0660"Nick Kralevich2014-06-121-29/+6
|\ \ \ \ \ \ | | |/ / / / | |/| | | | | | | | | | | | | | | | * commit 'f40c1fe5ae6afb9ce1fb179c3b0686d22ca98469': installd: change profile files to 0660
| * | | | | am 3dd3de03: Merge "installd: change profile files to 0660"Nick Kralevich2014-06-121-29/+6
| |\ \ \ \ \ | | | |/ / / | | |/| | | | | | | | | | | | | | | * commit '3dd3de03de17546d785ed2a741fc645c1a0fcad5': installd: change profile files to 0660
| | * | | | installd: change profile files to 0660Nick Kralevich2014-06-121-29/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Profiling information leaks data about how people interact with apps, so we don't want the data to be available to other apps. Only the app and system_server need access. Don't create the /data/dalvik-cache/profiles directory. init.rc does it for us now. Change-Id: Ic1b44009faa30d704855e97631006c4b990a4ad3
* | | | | | am 9f12f80d: am 18c9394c: Merge "Add SELinux checks when adding a service."Nick Kralevich2014-06-122-7/+85
|\ \ \ \ \ \ | |/ / / / / | | | / / / | |_|/ / / |/| | | | * commit '9f12f80d4af350789a64f5c30531ce790d9b6ea3': Add SELinux checks when adding a service.
| * | | | am 18c9394c: Merge "Add SELinux checks when adding a service."Nick Kralevich2014-06-122-7/+85
| |\ \ \ \ | | |/ / / | | | | | | | | | | | | | | | * commit '18c9394ce1a4869eb5cf91eece02a4e944e2eebc': Add SELinux checks when adding a service.
| | * | | Add SELinux checks when adding a service.Riley Spahn2014-06-122-7/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a MAC check to the svc_can_register function in service_manager. The types are defined in external/sepolicy/service.te and the mapping from service names is defined in external/sepolicy/service_contexts. Currently uses the property context backend to parse the contexts file. Bug: 12909011 Change-Id: I5d90a614263c60571c7c70c2882e6fa929911ca5
* | | | | am 17e1d2ca: am 7281ca65: Merge "Pass --top-k-profile-threshold to dex2oat ↵Calin Juravle2014-06-111-16/+38
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | if available." * commit '17e1d2ca97a711ab539044912bb985a10ccbc9fd': Pass --top-k-profile-threshold to dex2oat if available.
| * | | | am 7281ca65: Merge "Pass --top-k-profile-threshold to dex2oat if available."Calin Juravle2014-06-111-16/+38
| |\ \ \ \ | | |/ / / | | | | | | | | | | | | | | | * commit '7281ca65d00171b846497abca357a005a401e16b': Pass --top-k-profile-threshold to dex2oat if available.