summaryrefslogtreecommitdiffstats
path: root/toolbox
Commit message (Collapse)AuthorAgeFilesLines
* Fix ps <process name>Dmitriy Ivanov2014-11-031-1/+1
| | | | | | | | Use /proc/pid/cmdline instead of /proc/pid/stat to filter process by name. Bug: 8638853 Change-Id: I469f55186e0d8b93311438cc8a1d0f73834f3fb5
* Fix top for very large VSS.Elliott Hughes2014-10-081-17/+30
| | | | | Bug: 17913995 Change-Id: Ib8359345f3194780ae50019292c2746eb21a7612
* Fix a typo in ioctl usage message.Elliott Hughes2014-10-061-1/+1
| | | | Change-Id: I850dd9995a8ad6cb1f606cca2f57d7dbba2f40ed
* bionic has O_RSYNC now.Elliott Hughes2014-09-231-3/+0
| | | | Change-Id: Idad77b6ddc0abe270edff773bb0316d30b9f894d
* Build the optional 'r' tool separately.Elliott Hughes2014-08-282-5/+11
| | | | | | | | | You can't use $(TARGET_BUILD_VARIANT) to change how a module is built like this makefile used to. Change-Id: Ie6a274cab9a77eb2376a9494e9c17aae8ba0ee0b Signed-off-by: Olivier Fourdan <olivier.fourdan@intel.com> Signed-off-by: Guilhem IMBERTON <guilhem.imberton@intel.com>
* Remove duplication from sendevent.c.Elliott Hughes2014-08-251-42/+4
| | | | Change-Id: I402e68f843e9673e1c02e4f84f4832380c0e91ac
* Add BSD false(1) and true(1).Elliott Hughes2014-08-223-2/+109
| | | | | Bug: 17000769 Change-Id: I6b218b4c2ba3f57d344f60af7a25c45f07091d64
* Refresh toolbox.Elliott Hughes2014-07-2450-2089/+5901
| | | | | | | | | | Use more upstream NetBSD, and update those things that were already NetBSD. Note that unlike bionic, the upstream-netbsd directory isn't pristine; we have changes marked by __ANDROID__. Bug: 16493461 Change-Id: I99762bfe02caa0945ea4a184670888a4b5435a1d
* Merge "Switch to NetBSD's kill(1)."Elliott Hughes2014-07-223-154/+272
|\
| * Switch to NetBSD's kill(1).Elliott Hughes2014-07-223-154/+272
| | | | | | | | Change-Id: Idd1635673e01758b5a7d34f1fdfbb695296c6164
* | Merge "Fix cp(1) for files in /proc."Elliott Hughes2014-07-222-12/+12
|\ \
| * | Fix cp(1) for files in /proc.Elliott Hughes2014-07-222-12/+12
| |/ | | | | | | | | | | | | Also modernize the Android-specific hacks. Bug: https://code.google.com/p/android/issues/detail?id=70793 Change-Id: I2aebcd2ff10ca2466017379d87f5fabdb77c05e2
* | Stop and start netd explicitly for "adb shell stop/start".Sreeram Ramachandran2014-07-192-0/+2
|/ | | | | | | | | | | | netd is supposed to be restarted when the zygote is restarted (see the "onrestart" section for "service zygote" in init.zygote*.rc). But this only works if you send a restart command (say via "ctl.restart"). "stop && start" != "restart". It seems ingrained in developers to do "stop && start", so we don't have much hope of convincing everyone to switch to "adb shell restart", even if we did add such a toolbox command. Bug: 15855807 Change-Id: I387fe86600f4a2862abc3a05a2ef9a1e7374e21d
* Fix build.Christopher Ferris2014-07-101-1/+1
| | | | Change-Id: Ied4adacde94ee10deb30647156f07d46a38fbe1f
* Sync with upstream grep.Elliott Hughes2014-07-104-19/+19
| | | | Change-Id: Ie1da2e95ee7e3513afb87f357be983dc80cd1515
* fix duplicated grep usage printingRocky Zhang2014-07-111-1/+0
| | | | | Change-Id: I579d2046f96ba8ae9fd0bf8f36e2e2f64da622ea Signed-off-by: Rocky Zhang <zhangyan.hit@gmail.com>
* Fix %llx to PRIx64 in nandread.c.Elliott Hughes2014-06-251-17/+18
| | | | Change-Id: I541d1f4efac3c91d1a26f60735c72e799490fcc9
* Use inet_ntoa to display ipaddr and mask valuesBhanu Chetlapalli2014-06-181-14/+8
| | | | | Signed-off-by: Chris Dearman <chris@mips.com> Change-Id: Iee72a6b987e4ec1c720e925b59e9e2631ae978e5
* Add mknod utility to system/core/toolboxSujith Ramakrishnan2014-06-112-0/+96
| | | | Change-Id: I46586cba83ecb8095721be8ffad9e386d4698e4a
* Getevent: make sure the monotonic timestamp is displayed; warning cleanup.Sasha Levitskiy2014-06-111-4/+10
| | | | | Change-Id: I6c500ab55470155ddf692fe5f655bdd575f195f5 Signed-off-by: Sasha Levitskiy <sanek@google.com>
* toolbox: Add nohup commandGlenn Kasten2014-06-112-0/+27
| | | | | Change-Id: I2f7d9934b54d98886d7a6205ea122d9ce91066ec Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* Switch md5 over to openssl rather than libc.Elliott Hughes2014-06-092-68/+66
| | | | | | | | | It doesn't make any sense for the C library to contain private stuff that's only used by toolbox. Rather than move that stuff out of bionic and into here, let's just use the same MD5 implementation the rest of the system's using. Change-Id: Ia1c73164124094b532af3453b90c4bd1ebfdaa24
* Remove unnecessary #includes of <sys/atomics.h>.Elliott Hughes2014-05-221-2/+0
| | | | | Bug: 14903517 Change-Id: I5b0a418dd982f1a2fd90609b12bd8364f7f34996
* toolbox: fix x86 buildGreg Hackmann2014-05-211-2/+2
| | | | | Change-Id: Iadedae749b31adb1310fa50a68b2dc19097c3654 Signed-off-by: Greg Hackmann <ghackmann@google.com>
* toolbox: fix buildGreg Hackmann2014-05-212-3/+3
| | | | | Change-Id: I4d37ae4ad19620f77e37b739fb1248b712b3f986 Signed-off-by: Greg Hackmann <ghackmann@google.com>
* Merge "toolbox: turn on -Werror"Mark Salyzyn2014-05-2127-84/+58
|\
| * toolbox: turn on -WerrorMark Salyzyn2014-05-1427-84/+58
| | | | | | | | | | | | | | | | | | - Deal with some signedness issues - Deal with some size issues - Deal with NULL pointer issues - Deal with some -Wunused issues Change-Id: I1479dd90d690084491bae3475f2c547833519a57
* | Merge ""stop" / "start must apply to the secondary zygote as well."Narayan Kamath2014-05-152-0/+2
|\ \
| * | "stop" / "start must apply to the secondary zygote as well.Narayan Kamath2014-05-132-0/+2
| |/ | | | | | | | | | | | | | | | | Would've been nice if we could use the sys property observer to start and stop all services in a service class but service classes do not appear to be fully supported. Change-Id: Iaf17a2dbcf913c4c646bc1e8e13adee9f952c45e
* | Merge "ps: add flag to show ABI"Kenny Root2014-05-151-4/+47
|\ \
| * | ps: add flag to show ABIKenny Root2014-05-141-4/+47
| |/ | | | | | | | | | | | | Allow us to easily identify the 32/64 bitness of the process. Yes, I know this is not technically an ABI, but it seemed close enough! Change-Id: Ia03a17fd74d61e7619911cb26b3dd7d82b62930c
* | Clean up some unnecessary system_properties cruft.Elliott Hughes2014-05-141-3/+0
|/ | | | | Bug: 14970171 Change-Id: I6f54c35e265b849be914120f795c9f8e0cec34bb
* Merge "Fix top(1) SIGPIPE behavior."Elliott Hughes2014-04-192-12/+17
|\
| * Fix top(1) SIGPIPE behavior.Elliott Hughes2014-04-182-12/+17
| | | | | | | | | | Bug: 14166609 Change-Id: I4aad1e0db2e875735405d094fb0d1a36862b5b19
* | Fix buffer overflow in syren utilitynks2014-04-131-2/+6
| | | | | | | | | | | | | | | | | | | | Patch for https://code.google.com/p/android/issues/detail?id=68268 A length check for the argv[2] was added in order to prevent buffer overflow. Also replace strcpy with strlcpy. Signed-off-by: nks <nks@sixserv.org> Change-Id: If65b83e9b658315c672e684f64e3ae00e69fac31
* | Move date off the non-portable bionic32 'strtotimeval'.Elliott Hughes2014-04-071-4/+34
|/ | | | Change-Id: Ib706d3a536c409810cfbc47270448c6375314506
* toolbox: ls: 64 bit compile warningsMark Salyzyn2014-03-141-3/+3
| | | | Change-Id: Ia538c7177f8d5cf2c1f0efb5b575da6527c13968
* toolbox: schedtop 64 bit build issueMark Salyzyn2014-03-131-15/+13
| | | | Change-Id: I77b8ca2c32b9ff33abb6acadae47f0ab47b47907
* fix: making lsof show devies and loaded .so file names correctlyDmitriy Ivanov2014-03-041-1/+1
| | | | Change-Id: I4b6f2e0015f8cfa18400fa4bd08460a07e29a51b
* Declare (and simplify) uid_from_user.Elliott Hughes2014-02-283-12/+41
| | | | | | | | | uid_from_user doesn't need to cope with numeric ids in the BSD code like it did with the old Android code; the caller now handles those. Also explain what SUPPORT_DOT is for. Change-Id: I185c9f02b7039795069aa30545563b8a6ef54cd5
* Merge "Switch to BSD chown (for -R, primarily)."Elliott Hughes2014-03-013-69/+354
|\
| * Switch to BSD chown (for -R, primarily).Elliott Hughes2014-02-283-69/+354
| | | | | | | | Change-Id: I45381b8a04f4cb651123a2d43860418e06df6e65
* | Fix grep -f.Elliott Hughes2014-02-281-2/+0
|/ | | | | | bionic has getline now. Change-Id: I5e4ee137768ab3113dbe8a07406fa39f4b6546af
* Remove unused #includes of <asm/page.h>.Elliott Hughes2014-02-243-3/+0
| | | | | | (<asm/page.h> is going away.) Change-Id: Id0d7ad0eb791cd47490c48458f9f8a6468ddf5c9
* Add -D option to restorecon for relabeling /data/data.Stephen Smalley2014-02-181-2/+5
| | | | | | | This depends on change I137588013ed1750315702c0dbe088ce3e4a29e83. Change-Id: I5a4fef9affd6cddf98d72dc9d54899be25741779 Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
* Merge "Convert all selinux_android_restorecon and _setfilecon calls to new API."Nick Kralevich2014-02-121-1/+1
|\
| * Convert all selinux_android_restorecon and _setfilecon calls to new API.Stephen Smalley2014-02-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | libselinux selinux_android_restorecon API is changing to the more general interface with flags and dropping the older variants. Also get rid of the old, no longer used selinux_android_setfilecon API and rename selinux_android_setfilecon2 to it as it is the only API in use. Change-Id: I1e71ec398ccdc24cac4ec76f1b858d0f680f4925 Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
* | Remove a pre-uapi hack from nandread.Elliott Hughes2014-02-071-4/+0
|/ | | | | | We only have uapi headers now. Change-Id: I2c02e10bb3bba4006579772f3ab2a18c2df7535d
* Unify toolbox restorecon and libselinux restorecon implementations.Stephen Smalley2014-02-061-92/+15
| | | | | | | | | | | | | | | | Extend the libselinux restorecon implementation to allow reuse by the toolbox restorecon command. This simply requires adding support for the nochange (-n) and verbose (-v) options to the libselinux functions and rewriting the toolbox restorecon command to use the libselinux functions. Also add a force (-F) option to support forcing a restorecon_recursive even if the restorecon_last attribute matches the current file_contexts hash so that we can continue to force a restorecon via the toolbox command for testing or when we know something else has changed (e.g. for when we support relabeling /data/data and package information has changed). Change-Id: I92bb3259790a7195ba56a5e9555c3b6c76ceb862 Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
* Fix 'r' for LP64.Elliott Hughes2014-01-171-25/+31
| | | | Change-Id: I8332a0a8045a70b3992fe34b0b9e334a721265a9