| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is more sensible than the previous behaviour of grepping stdin,
and matches newer GNU grep behaviour.
PR: 216307
Submitted by: Kyle Evans <kevans91 at ksu.edu>
Reviewed by: cem, emaste, ngie
Relnotes: Yes
Differential Revision: https://reviews.freebsd.org/
Change-Id: I9dc42c4105c35c42c6b195c880c70f4398852886
|
|
|
|
|
|
|
|
|
|
|
| |
Like the regular fgetln(), grep_fgetln() doesn't NUL-terminate the
string, which regexec() doesn't like. ASan just gained the ability to
intercept regexec(), which is why we didn't find this previously.
Bug: http://b/129089665
Test: adb shell grep -R /system -e "abc"
Test: toybox grep tests
Change-Id: Id707cea66a873b83bd763a3dcdf726ac7d062ce0
|
|
|
|
|
|
|
|
| |
No significant changes, but this does get rid of our local modifications.
Bug: http://b/129089665
Test: builds
Change-Id: Ie6e3cc2198c302fc998fe6fcf027661e5dca88f0
|
|
|
|
|
|
|
|
|
|
| |
Make "r" package available for /vendor, so that we can easily add:
PRODUCT_PACKAGES_DEBUG += r.vendor
in device/google/<device>/device.mk
Change-Id: I46c23a85c95444083b8e4b68961c541d9af9b216
|
|
|
|
|
|
|
|
|
|
|
|
| |
So that the getevent output can be redirected and still be responsive
when events occur.
A good example is when using 'adb shell getevent' command, this latter
would only display the events when the buffer is full. With this patch
as soon as an event is received/printed, it is flushed to stdout.
Change-Id: I77eee96ed1aa59bf8d82f17eab666976ce966def
Signed-off-by: Gary Bisson <gbisson@essential.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
No need to open the device read write. Just open it read-only.
This is a partial redo of
https://android-review.googlesource.com/c/platform/system/core/+/334583
which was reverted in
https://android-review.googlesource.com/c/platform/system/core/+/342483
Bug: 30861057
Test: ran getevent, saw correct output, played with device
Change-Id: I426efd68f39dcd97d3ee23c13ed1a9ed96cb4c2e
|
|
|
|
|
|
|
| |
Bug: http://b/111849261
Bug: https://bugs.exim.org/show_bug.cgi?id=2294
Test: manual
Change-Id: Ia4f67b9f803c4f039d170f6d015a1bd2bb0ef23d
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|\ |
|
| |
| |
| |
| |
| |
| | |
Bug: http://b/29899852
Test: builds
Change-Id: Iecd80d0c64cb5eec4c76ba4bce775508ee45df49
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
For potential use with build/make/tools/fat16copy.py
Bug: 63035155
Test: mmma system/core/toolbox; newfs_msdos
Change-Id: I8ad50b8c181fc4ec21e191ec9fea8e9aa11d2d9b
|
|
|
|
|
|
| |
Bug: http://b/77150016
Test: boots, manual testing
Change-Id: I377ca42ed9783edcceab4daabe43e993ef74e837
|
|
|
|
|
|
| |
Bug: N/A
Test: builds
Change-Id: Id80364241434abfc216149b4ce7440cef700abef
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
32-bit devices still exist...
Bug: http://b/72335947
Test: builds
Change-Id: Ia644640f19ad9d9160554e3fe329b3ce8e585c66
|
|
|
|
|
|
| |
Bug: 70858511
Test: Return property types correctly
Change-Id: I506582d88c12a7f52d699635a41b24de4bc80289
|
|
|
|
|
|
|
|
|
|
| |
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
|
|\ |
|
| |
| |
| |
| |
| |
| |
| | |
In preparation for adding getprop to toolbox
Test: toolbox is present in vendor
Change-Id: I8f2f7f8359902e84c14cc0c4adf349475d1d7aa7
|
|/
|
|
|
|
| |
Bug: N/A
Test: builds
Change-Id: Ia08465799854a85da59c9fb9f5448aab11f81887
|
|
|
|
|
|
| |
This reverts commit c73497e17a1f0be9afd6903f58dea3ea5b01be08.
Change-Id: Id6b84c86781a6ad7b675c10f142c3daa4117ec46
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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 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
|
|\ |
|
| |
| |
| |
| |
| |
| | |
Bug: N/A
Test: N/A
Change-Id: Ie785058c0f5eb9b4086c98ccba6e63e3ed411b65
|
|/
|
|
|
|
|
|
|
| |
Disables integer overflow sanitization in grep on integer sanitized
builds.
Bug: 30969751
Test: Compiles.
Change-Id: I2668ef6f2261a86f17d2a0f04d5ec7a3c0336ff1
|
|
|
|
|
|
|
|
|
| |
This utility is always useful during device bringup, so let's bring it
back for debug builds.
This reverts commit 8a475f7e4ae72db0a6cfe31ab46f588e89e0fc34.
Change-Id: Ic4041afe538663f1e201ee1341dee247ab0d5ba2
|
|\ |
|
| |
| |
| |
| |
| |
| |
| | |
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
|
|/
|
|
|
|
| |
Bug: N/A
Test: builds
Change-Id: I4f2f615720639cb6ec4ac8a6b08c5907008f98ee
|
|
|
|
|
|
| |
Bug: 37512442
Test: links
Change-Id: I98b2b463a69b065eff2bea562ce6be50f8a12341
|
|
|
|
|
|
| |
Bug: http://b/36653902
Test: ran toybox tests
Change-Id: If0f858121fa29b49fe85c3c21eacd8d5c55fb57b
|
|
|
|
|
|
| |
Bug: http://b/36653902
Test: ran tests
Change-Id: Ibda577ba1d2aea5c4796eb632edd4c6d5e50592e
|
|
|
|
|
|
|
| |
This reverts commit 344e929e6d8cc2925e55d7f72262002fcc181f52.
Bug: 35301292
Change-Id: Ib6805c986c0aa88d14652de59ad4602b1cce8b56
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
/dev/mem has been turned off on all Android kernels (b/19549480). This
utility cannot be used.
Test: android compiles.
Change-Id: I500021f224febb15dd8bfe6e1f6e5c398fe6f552
|
|
|
|
|
|
|
| |
This is a "shouldn't happen" case.
Test: make WITH_TIDY=1 mmma system/core/toolbox
Change-Id: I51e44e17837b03d6df6f8c4c3e1aeab8253e094d
|
|
|
|
|
|
|
| |
free img
Test: make WITH_TIDY=1 mmma system/core/toolbox
Change-Id: I2f8feff0eddca763ee4e7fc9867480af60c8a911
|
|
|
|
|
|
| |
Bug: http://b/32019064
Test: builds
Change-Id: I18a1d816d63b64601485045070851f32d44e85eb
|
|
|
|
| |
Change-Id: I460b240c9cec0b0e966ab81ea6fdb0deb61c21bc
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
|/
|
|
| |
Change-Id: Ifd918a40616ec55fd3e782423fba67e0183bb8f3
|
|
|
|
|
|
| |
Bug: http://b/29250988
Change-Id: Ic2d0514fcdbe26526e87bc681b71efcc90eda678
Test: still builds.
|
|
|
|
| |
Change-Id: I42d792e79ed51fcc3c89f77d039d39417ead03c3
|
|
|
|
| |
Change-Id: I625fad2c45a02bbc39125a4a10def8d74dd32cf7
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
Bug: 28705665
Change-Id: Ice67cebb8c42538f8fb9cf1756678f41a9d68a31
|