summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Move back to BSD grep, and make it available for recovery too.Elliott Hughes2018-08-011-3/+22
| | | | | | | Bug: http://b/111849261 Bug: https://bugs.exim.org/show_bug.cgi?id=2294 Test: manual Change-Id: Ia4f67b9f803c4f039d170f6d015a1bd2bb0ef23d
* Revert "Switch to PCRE grep."Elliott Hughes2018-07-267-0/+2108
| | | | | | | | | | | | This reverts commit 90a018a87a605de6ad3550861143f1a5f7917570. Not a clean revert because things have changed slightly, and I'm sticking with the egrep/fgrep shell scripts for now. Bug: http://b/111849261 Bug: https://bugs.exim.org/show_bug.cgi?id=2294 Test: manual Change-Id: I72ae637c84f0eb1c2b5291db73ebff1628d54110
* Merge "newfs_msdos: switch to external/newfs_msdos."Treehugger Robot2018-06-206-2105/+16
|\
| * newfs_msdos: switch to external/newfs_msdos.Elliott Hughes2018-06-136-2105/+16
| | | | | | | | | | | | Bug: http://b/29899852 Test: builds Change-Id: Iecd80d0c64cb5eec4c76ba4bce775508ee45df49
* | Shared libs are supported in recovery modeJiyong Park2018-06-091-0/+1
|/ | | | | | | | | | | | | | | | | | | | | | | | | | adbd has been built as a static executable since the same binary was copied to the recovery partition where shared library is not supported. However, since we now support shared library in the recovery partition, adbd is built as a dynamic executable. In addition, the dependency from adbd to libdebuggerd_handler is removed as debuggerd is handled by the dynamic linker. A few more modules in /system/core are marked as recovery_available: true as they are transitive dependencies of the dynamic linker. This change also includes ld.config.recovery.txt which is the linker config file for the recovery mode. It is installed to /etc/ld.config.txt and contains linker namespace config for the dynamic binaries under /sbin. Bug: 63673171 Test: `adb reboot recovery; adb devices` shows the device ID Test: Select 'mount /system' in the recovery mode, then `adb shell`. $ lsof -p `pidof adbd` shows that libm.so, libc.so, etc. are loaded from the /lib directory. Change-Id: I363d5a787863f1677ee40afb5d5841321ddaae77
* Compile toolbox's newfs_msdos for the hostDan Willemsen2018-05-022-6/+22
| | | | | | | | For potential use with build/make/tools/fat16copy.py Bug: 63035155 Test: mmma system/core/toolbox; newfs_msdos Change-Id: I8ad50b8c181fc4ec21e191ec9fea8e9aa11d2d9b
* Switch to PCRE grep.Elliott Hughes2018-04-237-2127/+0
| | | | | | Bug: http://b/77150016 Test: boots, manual testing Change-Id: I377ca42ed9783edcceab4daabe43e993ef74e837
* Remove BSD dd.Elliott Hughes2018-04-2019-2898/+1
| | | | | | Bug: N/A Test: builds Change-Id: Id80364241434abfc216149b4ce7440cef700abef
* Lose dd to toybox.Elliott Hughes2018-04-201-1/+0
| | | | | | | | Just the symlink for now. If this sticks, I'll come back to remove the code. Bug: N/A Test: `toolbox dd --help` Change-Id: I9b967e9246f42db0d1f48d9d147c538d57fb3bc8
* Build toolbox with _FILE_OFFSET_BITS=64.Elliott Hughes2018-01-221-0/+1
| | | | | | | | 32-bit devices still exist... Bug: http://b/72335947 Test: builds Change-Id: Ia644640f19ad9d9160554e3fe329b3ce8e585c66
* getprop: add -T option to return a property's typeTom Cherry2018-01-121-20/+54
| | | | | | Bug: 70858511 Test: Return property types correctly Change-Id: I506582d88c12a7f52d699635a41b24de4bc80289
* Reland: Add getprop to toolboxTom Cherry2018-01-103-0/+133
| | | | | | | | | | Add a non-toybox version of getprop, so that we can interface with the new C++ PropertyInfoAreaFile class to return property context information. Bug: 36001741 Test: Compared toolbox getprop results with toybox getprop Change-Id: I4e90aa5b843cb5cfcbe85f05f23ae8e22729b26e
* Merge "Add toolbox to vendor"Tom Cherry2018-01-101-2/+15
|\
| * Add toolbox to vendorTom Cherry2018-01-091-2/+15
| | | | | | | | | | | | | | In preparation for adding getprop to toolbox Test: toolbox is present in vendor Change-Id: I8f2f7f8359902e84c14cc0c4adf349475d1d7aa7
* | Just check in tools.h.Elliott Hughes2018-01-092-7/+4
|/ | | | | | Bug: N/A Test: builds Change-Id: Ia08465799854a85da59c9fb9f5448aab11f81887
* Revert "Add getprop to toolbox"Tom Cherry2018-01-092-134/+1
| | | | | | This reverts commit c73497e17a1f0be9afd6903f58dea3ea5b01be08. Change-Id: Id6b84c86781a6ad7b675c10f142c3daa4117ec46
* Convert toolbox to Android.bpDan Willemsen2018-01-082-90/+71
| | | | | | | | | | | | | | This drops the *TOOLS automated logic, though since there are only three tools now, that seems less important. It would have been possible to implement that logic in a Go plugin, but that seems like a lot of overkill to fix a few duplicated entries. See build/soong/README.md for more information. Test: mmma system/core/toolbox Test: List of installed files is the same Test: input.h-labels.h and tools.h are the same Change-Id: I9753083c3f689e689e40001b998b39ad20509598
* Add getprop to toolboxTom Cherry2018-01-082-1/+135
| | | | | | | | | | Add a non-toybox version of getprop, so that we can interface with the new C++ PropertyInfoAreaFile class to return property context information. Bug: 36001741 Test: Compared toolbox getprop results with toybox getprop Change-Id: I5f98f9e895d0620a2d9686bc0608490e7d9c3120
* Merge "Add OWNERS."Elliott Hughes2017-12-071-0/+1
|\
| * Add OWNERS.Elliott Hughes2017-12-071-0/+1
| | | | | | | | | | | | Bug: N/A Test: N/A Change-Id: Ie785058c0f5eb9b4086c98ccba6e63e3ed411b65
* | Disable integer overflow sanitizer in grep.Ivan Lozano2017-12-041-0/+4
|/ | | | | | | | | Disables integer overflow sanitization in grep on integer sanitized builds. Bug: 30969751 Test: Compiles. Change-Id: I2668ef6f2261a86f17d2a0f04d5ec7a3c0336ff1
* Revert "delete toolbox/r.c"Chris Fries2017-11-022-0/+111
| | | | | | | | | This utility is always useful during device bringup, so let's bring it back for debug builds. This reverts commit 8a475f7e4ae72db0a6cfe31ab46f588e89e0fc34. Change-Id: Ic4041afe538663f1e201ee1341dee247ab0d5ba2
* Merge "Add building and installing of grep for vendor."Treehugger Robot2017-06-161-2/+16
|\
| * Add building and installing of grep for vendor.Erik Staats2017-06-151-2/+16
| | | | | | | | | | | | | | Bug: 38240024 Test: Verified that grep is installed in /vendor/bin. See details in testing done comment in https://android-review.googlesource.com/412061 . Change-Id: I06007014779310bc24c65f7343111c5217ba6ff0
* | Remove <sys/mtio.h> workaround.Elliott Hughes2017-06-141-1/+0
|/ | | | | | Bug: N/A Test: builds Change-Id: I4f2f615720639cb6ec4ac8a6b08c5907008f98ee
* libtoolbox_dd / grep: Android.mk -> bpYifan Hong2017-05-222-36/+44
| | | | | | Bug: 37512442 Test: links Change-Id: I98b2b463a69b065eff2bea562ce6be50f8a12341
* This code has moved to toybox proper.Elliott Hughes2017-05-042-271/+0
| | | | | | Bug: http://b/36653902 Test: ran toybox tests Change-Id: If0f858121fa29b49fe85c3c21eacd8d5c55fb57b
* Add a reasonably full implementation of gzip/gunzip/zcat.Elliott Hughes2017-04-102-0/+271
| | | | | | Bug: http://b/36653902 Test: ran tests Change-Id: Ibda577ba1d2aea5c4796eb632edd4c6d5e50592e
* Revert "Only allow system to write to existing input nodes."Michael Wright2017-02-211-1/+1
| | | | | | | This reverts commit 344e929e6d8cc2925e55d7f72262002fcc181f52. Bug: 35301292 Change-Id: Ib6805c986c0aa88d14652de59ad4602b1cce8b56
* Only allow system to write to existing input nodes.Michael Wright2017-02-091-1/+1
| | | | | | | | | | | | | This prevents the shell user from injecting input as if it were coming from an existing input device, which in turn makes it easier for malware / abuse analysis to detect when someone is injecting input via the command line vs a real user using a device. (cherrypick of 95637eb2a332b9a09914b1bf32c10fccfba4a175.) Bug: 30861057 Test: ran getevent, saw correct output, played with device Change-Id: Ib53eea1b7767f25510b5d36fe6109101a9fad8e0
* delete toolbox/r.cNick Kralevich2016-11-292-111/+0
| | | | | | | | /dev/mem has been turned off on all Android kernels (b/19549480). This utility cannot be used. Test: android compiles. Change-Id: I500021f224febb15dd8bfe6e1f6e5c398fe6f552
* toolbox: exit when failed to allocate buffer for ioctlTing-Yuan Huang2016-11-221-4/+3
| | | | | | | This is a "shouldn't happen" case. Test: make WITH_TIDY=1 mmma system/core/toolbox Change-Id: I51e44e17837b03d6df6f8c4c3e1aeab8253e094d
* toolbox: fix memory leakTing-Yuan Huang2016-11-151-0/+1
| | | | | | | free img Test: make WITH_TIDY=1 mmma system/core/toolbox Change-Id: I2f8feff0eddca763ee4e7fc9867480af60c8a911
* Rely on the platform -std default.Elliott Hughes2016-10-101-1/+0
| | | | | | Bug: http://b/32019064 Test: builds Change-Id: I18a1d816d63b64601485045070851f32d44e85eb
* Lose sendevent to toybox.Elliott Hughes2016-07-152-43/+0
| | | | Change-Id: I460b240c9cec0b0e966ab81ea6fdb0deb61c21bc
* Merge "Fix the generated getevent labels."Treehugger Robot2016-06-292-34/+35
|\
| * Fix the generated getevent labels.Elliott Hughes2016-06-292-34/+35
| | | | | | | | | | | | | | | | Some of the less-used stuff stayed behind in input.h, so we need to parse both files. Change-Id: Iff2b6e3fc4f5a6584169d12f16427b4f235da21a Test: manual inspection of the generated file.
* | Lose start/stop to toybox.Elliott Hughes2016-06-244-48/+0
|/ | | | Change-Id: Ifd918a40616ec55fd3e782423fba67e0183bb8f3
* Remove more obsolete MTD stuff.Elliott Hughes2016-06-242-288/+0
| | | | | | Bug: http://b/29250988 Change-Id: Ic2d0514fcdbe26526e87bc681b71efcc90eda678 Test: still builds.
* Lose log to toybox.Elliott Hughes2016-06-222-148/+0
| | | | Change-Id: I42d792e79ed51fcc3c89f77d039d39417ead03c3
* Lose top to toybox.Elliott Hughes2016-06-132-590/+0
| | | | Change-Id: I625fad2c45a02bbc39125a4a10def8d74dd32cf7
* Remove toolbox ioctl.Elliott Hughes2016-06-042-183/+0
| | | | | | | | | Let's remove this convenient tool for attacking buggy kernels and see if anyone with a legitimate use notices. I suspect most potential legitimate users write a short C program instead anyway. Bug: http://b/29128170 Change-Id: I14e8b8594902951fe0b94c9ce13baa2c4d7b9e6e
* Remove invalid uses of -l and -IDan Willemsen2016-06-011-1/+4
| | | | | | | | | | | | | LOCAL_LDLIBS should only be used with -l flags for NDK and some host libraries. Other uses should use LOCAL_SHARED_LIBRARIES. LOCAL_LDFLAGS should not contain -l entries, they should be in LOCAL_LDLIBS instead. LOCAL_CFLAGS should not contain -I entries, those should use LOCAL_C_INCLUDES instead. Change-Id: Ic901aa14651572ac682166becd4f0cd86baecc34
* Fix misc-macro-parentheses warnings in init and other core modules.Chih-Hung Hsieh2016-05-181-1/+1
| | | | | Bug: 28705665 Change-Id: Ice67cebb8c42538f8fb9cf1756678f41a9d68a31
* Lose ps to toybox.Elliott Hughes2016-05-042-341/+0
| | | | Change-Id: I890a453533e1b3066169738f55314f8813285c17
* toolbox ps: replace strcpy with snprintf.Elliott Hughes2016-04-301-1/+1
| | | | Change-Id: I0fdf9a8d5ab15bcff06cca3f3e7024ab76b219d9
* Merge "Add empty <util.h> to build BSD source."Treehugger Robot2016-04-291-0/+0
|\
| * Add empty <util.h> to build BSD source.Elliott Hughes2016-04-291-0/+0
| | | | | | | | | | | | | | Hopefully this will let us remove the empty file from bionic. It shouldn't be there because -- unlike BSD -- we don't actually have a libutil. Change-Id: I7e3042ca120aafa877709797866b52ac62675870
* | Fix 'ps.c' formatting.Jorge Lucangeli Obes2016-04-251-33/+32
| | | | | | | | | | | | | | | | | | | | | | Insert a space between 'if'/'while' and their clause. Also insert a space after ',' for arguments. This was done with clang-format. Bug: None Change-Id: I5315eba3d5d8ac68996a373dc7c8e1bc45165824
* | Fix 'ps --ppid'.Jorge Lucangeli Obes2016-04-251-0/+7
|/ | | | | | | | | Currently, 'ps' will segfault when called with '--ppid' and no argument. Make it return an error instead. Bug: 28383024 Change-Id: I71f2d1ba9502996ae75b17605234eb99ebb589f2