summaryrefslogtreecommitdiffstats
path: root/toolbox
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Lose ls to toybox."Diogo Ferreira2015-12-172-0/+589
| | | | | | | | | | | | | | This reverts commit 3536bfb84271688b8eca6140453df7368131215c. Current cts and tradefed rely on toolbox ls output for file navigation and using toybox's causes the following tests to fail: com.android.cts.aadb.TestDeviceFuncTest#testSyncFiles_normal com.android.cts.aadb.TestDeviceFuncTest#testSyncFiles_extStorageVariable org.apache.harmony.tests.java.lang.ProcessTest#test_exitValue org.apache.harmony.tests.java.lang.ProcessTest#test_getErrorStream Change-Id: I121439e53a64df2abe9306262f1e742c408d82b5
* Lose df to toybox.Elliott Hughes2015-11-142-86/+0
| | | | Change-Id: I4c8e6c1071779914969cc7f5a80fe6248b508405
* Lose du to toybox.Elliott Hughes2015-11-142-371/+0
| | | | Change-Id: Ib240f74990274027258a454d3c63202791fcdb0b
* Lose lsof to toybox.Elliott Hughes2015-11-142-254/+0
| | | | Change-Id: I4b5e0c8c33f5b2dfd3db85628d9a657940978a10
* Lose ls to toybox.Elliott Hughes2015-11-142-589/+0
| | | | | Bug: http://b/23040458 Change-Id: I0e9f89b1169df409a38a2134ac2cb9edd0421be3
* Lose uptime to toybox.Elliott Hughes2015-11-142-88/+0
| | | | | | Let's see if anyone actually needs the non-POSIX information... Change-Id: I0bb63b3a81f6295d281a661bd941a26fef675598
* Remove watchprops.Elliott Hughes2015-11-142-93/+0
| | | | | | | | | Since watchprops would have to be rewritten anyway in the upcoming properties rewrite, there seems little point in rewriting it for toybox first. Let's see how many people actually use watchprops and decide whether it's worth the effort... Change-Id: I996e7209bc81633ee66602f09f130226336d9987
* Lose ionice and renice to toybox.Elliott Hughes2015-11-143-221/+0
| | | | Change-Id: I77264e70aeff5a2320ce178c8e7176b67b898bd9
* Switch to toybox mount(1).Elliott Hughes2015-11-142-361/+0
| | | | Change-Id: Ieda6e2bfbf5ea3e9a96f5facfded4c2a467e4a02
* toolbox: new applet restartChirayu Desai2015-10-302-0/+28
| | | | | | | - stop + start - for the lazy. Change-Id: Ie0ef0e27f5b7819a5575ece6b82c5813f4e38420
* Revert "Switch to toybox ls."Elliott Hughes2015-05-152-0/+589
| | | | | | | This reverts commit 9c94aa9982c562585c08c5f95569695ccc64f846. Change-Id: Ie2479ee4a0614e285ce8d57c727200a0381904e2 (cherry picked from commit 88f0f4b2b48ab5c685e91e1f23913cad97015bac)
* Switch to toybox ls.Elliott Hughes2015-05-152-589/+0
| | | | | | Bug: http://b/21171466 Change-Id: I3fa09db7ca43d337cbda60f10269e7607544982b (cherry picked from commit 9c94aa9982c562585c08c5f95569695ccc64f846)
* Improve toolbox SIGPIPE behavior.Elliott Hughes2015-04-252-6/+15
| | | | | | | | None of our tools -- except for top, which I'd fixed previously -- handles SIGPIE correctly. Let's just handle SIGPIPE in the driver. Bug: https://code.google.com/p/android/issues/detail?id=157920 Change-Id: I322ea411f53c71585a64118c217d54389f675d4e
* Move ls implementation detail into ls.Elliott Hughes2015-04-084-196/+107
| | | | | | | Also remove the unused generality, and remove a dependency on a linux/ header file when there's a sys/ one that's even better. Change-Id: If07608cc9ae2b7c2928ee2a9e33d20d63a9a8f45
* Lose getprop to toybox.Elliott Hughes2015-04-072-51/+0
| | | | Change-Id: I5188dbcc7e248b2fabade2d8d137610b4adb3164
* Lose setprop to toybox.Elliott Hughes2015-04-072-19/+0
| | | | Change-Id: Ic0fd9cfb70e117067f4ebc5e120dea4b5fe1d883
* Lose restorecon to toybox.Elliott Hughes2015-04-072-64/+0
| | | | Change-Id: I5460f46700011b7733a1d87a9049e828531627be
* Lose umount to toybox.Elliott Hughes2015-04-022-91/+0
| | | | Change-Id: Ide35731c37d70ccb38a5e84b7310434ce6c3aa6e
* Remove LOCAL_ADDITIONAL_DEPENDENCIES in cases where it's not needed.Elliott Hughes2015-04-021-4/+0
| | | | Change-Id: I720b8ef1050da45a7833adef8219b6acb2cf3a38
* toolbox: ioctl: fix signedness on ioctl_nrChris Fries2015-04-011-49/+96
| | | | | | | | | | | | | ioctl_nr is passed signed to the kernel, but many users refer to ioctl's in unsigned 32 bit notation. Let's use stroll to set it, to let people specify either negative numbers or large positive numbers. Also improve error reporting. Reported-By: Alex Piliev <ktnr74@motorola.com> Change-Id: I789434895b70b051d4d5c1a5db566a1925478ef0
* Lose route to toybox.Elliott Hughes2015-03-302-114/+0
| | | | Change-Id: If68fa6a691478921452ebd785bd35e3ba5a8470a
* toolbox: Fixed type mismatch for ioctl(BLKGETSIZE)Johan Redestig2015-03-301-1/+9
| | | | | | | ioctl(BLKGETSIZE) expects unsigned long (8 bytes on 64 bit environment). Change-Id: Ic0f1d48e1d4cb890dbf617b3eb6285425cdbf0d0
* Lose load_policy to toybox.Elliott Hughes2015-03-282-50/+0
| | | | Change-Id: I3ef3aab9eef8e07ee598e2559a316e2fccf7199b
* $ANDROID_BUILD_TOP isn't set for continuous builds.Elliott Hughes2015-03-251-1/+1
| | | | | | | Instead, take advantage of the fact that we'll be run from the root of the tree. Change-Id: I5ce6d1c9ae8d478748ab90c9d3cc8e665ae5859b
* Auto-generate the getevent labels from <linux/input.h>.Elliott Hughes2015-03-254-728/+120
| | | | | | | Now we only have to remember to update the kernel uapi headers, which we're pretty good at. Change-Id: If04eb8c50882fff5e5e2a5d72664f5d4c4c538b1
* Lose runcon to toybox.Elliott Hughes2015-03-232-29/+0
| | | | Change-Id: I0fa4a1907a9def4ba7dc1348f57299cd578fdf87
* Remove /dev/alarm cruft from uptime.Elliott Hughes2015-03-201-56/+21
| | | | | | | | | Our uptime is very different from the regular one, and usefully so, so this code will live on. Remove dead bits. Also fix the annoying "1 days" bug while I'm here. Change-Id: Ied5403ba96dcc5eddd4d386b59c6fcdea3209881
* Remove schedtop.Elliott Hughes2015-03-192-331/+0
| | | | | | This seems to have only been used before we had top(1). Change-Id: I6c3e5dad19754cf00a07161d2b93093dc0fe7c08
* Remove obsolete smd tool.Elliott Hughes2015-03-162-43/+0
| | | | | | | It's basically "echo" with a redirect, and it hasn't been touched since cupcake. Could be replaced with a shell script if need be. Change-Id: I75b663ea4be3d7cd9581faa6ef3979de28e68dfb
* Remove getsebool/setsebool from init and toolbox.Stephen Smalley2015-03-133-152/+0
| | | | | | | | | These were leftovers from the SELinux boolean support that was originally merged. Since Android prohibits SELinux policy booleans, we can just drop it. Change-Id: I02f646a7d8db65e153702205b082b87a73f60d73 Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
* am ed5b81c9: Merge "Fix LP32 build."Elliott Hughes2015-03-101-1/+2
|\ | | | | | | | | * commit 'ed5b81c9e59c0a6c618f43964a4a2639448c0686': Fix LP32 build.
| * Fix LP32 build.Elliott Hughes2015-03-091-1/+2
| | | | | | | | Change-Id: I66e084330e7a32eac639d06187e780ffa0ad7b14
* | am 9cce837d: Merge "Increase output width for wchan and pc on 64 bit targets."Elliott Hughes2015-03-101-5/+22
|\ \ | |/ | | | | | | * commit '9cce837d025d05a07a3b91cf23337a7b688c3eb9': Increase output width for wchan and pc on 64 bit targets.
| * Increase output width for wchan and pc on 64 bit targets.Chris Dearman2015-03-091-5/+22
| | | | | | | | | | | | | | Also switch wchan to the textual form, since most of us don't know kernel addresses off by heart. Change-Id: I8e28d910034d8171c5b994189b16114f80f38d2f
* | am 6385d626: Merge "Remove toolbox\'s obsolete \'wipe\' command."Elliott Hughes2015-03-072-177/+0
|\ \ | |/ | | | | | | * commit '6385d626a585017ec1fe4027f4faa79741f9d117': Remove toolbox's obsolete 'wipe' command.
| * Remove toolbox's obsolete 'wipe' command.Elliott Hughes2015-03-072-177/+0
| | | | | | | | | | | | | | | | | | | | It hasn't worked in some time (it removes /data/dalvik-cache, which is required by art), and if you're prepared to reboot (to let init put back all the directories a working system needs) there are other ways to wipe data (such as "fastboot format userdata reboot"). Bug: 19644330 Change-Id: Ib074ea21cc28409a506d66d75060bb4ad85539e2
* | am 830914a4: Merge "Lose touch to toybox."Elliott Hughes2015-02-102-116/+0
|\ \ | |/ | | | | | | * commit '830914a4b6c42d04004e2ec3ff38823f6be8c23f': Lose touch to toybox.
| * Lose touch to toybox.Elliott Hughes2015-02-092-116/+0
| | | | | | | | Change-Id: Id9646ff10870425fc4013aab6621a5f6a0c6e98e
* | am 051f369a: Merge "Build BSD grep separately from toolbox."Elliott Hughes2015-02-052-24/+23
|\ \ | |/ | | | | | | * commit '051f369a14a405dc6dbaf708dc51a21c5629bf88': Build BSD grep separately from toolbox.
| * Build BSD grep separately from toolbox.Elliott Hughes2015-02-042-24/+23
| | | | | | | | | | | | | | | | Also move the dd-only library code into the dd section (so a future maintainer will know to keep/remove them as a block) and fix the one build warning remaining. Change-Id: Ibf6b28ef05e4cbb70b9308b0f4387f5af5b7fa94
* | am 0114e124: Merge "Add ps --ppid."Elliott Hughes2015-01-301-0/+9
|\ \ | |/ | | | | | | * commit '0114e1243ad25cbb43dec33a3b0b267fe624fbfe': Add ps --ppid.
| * Add ps --ppid.Elliott Hughes2015-01-291-0/+9
| | | | | | | | | | | | Needed for a libcore test. Change-Id: Ia21ecf5f7bd8be7f1882d0014d7949d40f6841a5
* | am 06b4e982: Merge "Add missing <malloc.h> and <string.h> includes."Elliott Hughes2015-01-284-0/+4
|\ \ | |/ | | | | | | * commit '06b4e9826a33ddbdbddf7e74076ac29f9450414a': Add missing <malloc.h> and <string.h> includes.
| * Add missing <malloc.h> and <string.h> includes.Elliott Hughes2015-01-284-0/+4
| | | | | | | | Change-Id: Ia41756e607663d056e7d2fdd7ecbec7e5841a913
* | am ae79cb5a: Merge "Add missing <string.h> includes."Elliott Hughes2015-01-252-1/+3
|\ \ | |/ | | | | | | * commit 'ae79cb5a819bd5bbd86a3496141d45c22db8c86b': Add missing <string.h> includes.
| * Add missing <string.h> includes.Elliott Hughes2015-01-242-1/+3
| | | | | | | | Change-Id: I3d1ad54418f69f947e2d829d63b53d44581bfd86
* | am ce34551c: Merge "Lose id to toybox."Elliott Hughes2015-01-172-58/+0
|\ \ | |/ | | | | | | * commit 'ce34551ce6559fe97043a26e3df65396c91bdffc': Lose id to toybox.
| * Lose id to toybox.Elliott Hughes2015-01-162-58/+0
| | | | | | | | Change-Id: I0b92482d06055207e133112e74c58964c7ef0362
* | am 17e2f436: Merge "Lose cmp to toybox."Elliott Hughes2015-01-152-92/+0
|\ \ | |/ | | | | | | * commit '17e2f436f0da70673498482921a642c8917677aa': Lose cmp to toybox.
| * Lose cmp to toybox.Elliott Hughes2015-01-152-92/+0
| | | | | | | | Change-Id: Ib8b078565e4951f7621d21fbe3573bfcf2435879