summaryrefslogtreecommitdiff
path: root/shell_and_utilities
Commit message (Collapse)AuthorAgeFilesLines
* Update shell_and_utilities docs for T.Elliott Hughes2022-03-051-2/+35
| | | | Change-Id: I5a1aedebe558ad8deafb13933df437b6bb9eb2f2
* Invert history.Elliott Hughes2022-03-031-161/+163
| | | | | | Change logs are usually easier to read when the newest stuff is at the top... Change-Id: I6ec76e96a6def88e3594949567b4afb397835d7d
* libprocessgroup/tools: Add settaskprofile command-line toolSuren Baghdasaryan2021-11-091-0/+1
| | | | | | | | | | Add a command-line tool to apply task profile(s) to a given thread. Test: taskprofile $pid ProcessCapacityHigh; grep cpuset /proc/$pid/cgroup Test: taskprofile $pid ProcessCapacityNormal; grep cpuset /proc/$pid/cgroup Bug: 204808810 Signed-off-by: Suren Baghdasaryan <surenb@google.com> Change-Id: I1c13731f7a9a1161f36e27436ee104964aacbfd0
* Add exfat utilities for mkfs and fsckDaniel Rosenberg2021-06-111-0/+2
| | | | | | Bug: 171854784 Test: Builds, Large sdcards formated as exfat if kernel supports it Change-Id: Ie56b17f55f5027fdf714002b4c307603809fb707
* [LSC] Add LOCAL_LICENSE_KINDS to system/coreBob Badour2021-02-191-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added SPDX-license-identifier-Apache-2.0 to: bootstat/Android.bp cli-test/Android.bp code_coverage/Android.bp cpio/Android.bp debuggerd/crasher/Android.bp debuggerd/proto/Android.bp diagnose_usb/Android.bp fs_mgr/libdm/Android.bp fs_mgr/libfiemap/Android.bp fs_mgr/liblp/Android.bp fs_mgr/libsnapshot/Android.bp fs_mgr/libstorage_literals/Android.bp fs_mgr/libvbmeta/Android.bp fs_mgr/tests/Android.bp fs_mgr/tools/Android.bp gatekeeperd/Android.bp healthd/Android.bp healthd/testdata/Android.bp init/Android.bp init/Android.mk init/sysprop/Android.bp init/test_kill_services/Android.bp init/test_service/Android.bp libappfuse/Android.bp libasyncio/Android.bp libbinderwrapper/Android.bp libcrypto_utils/Android.bp libcrypto_utils/tests/Android.bp libdiskconfig/Android.bp libgrallocusage/Android.bp libkeyutils/mini_keyctl/Android.bp libmodprobe/Android.bp libnetutils/Android.bp libpackagelistparser/Android.bp libprocessgroup/Android.bp libprocessgroup/cgrouprc/Android.bp libprocessgroup/cgrouprc_format/Android.bp libprocessgroup/profiles/Android.bp libprocessgroup/setup/Android.bp libqtaguid/Android.bp libsparse/Android.bp libstats/push_compat/Android.bp libsuspend/Android.bp libsync/Android.bp libsystem/Android.bp libsysutils/Android.bp libusbhost/Android.bp libutils/Android.bp libvndksupport/Android.bp libvndksupport/tests/Android.bp llkd/Android.bp llkd/tests/Android.bp property_service/libpropertyinfoparser/Android.bp property_service/libpropertyinfoserializer/Android.bp property_service/property_info_checker/Android.bp qemu_pipe/Android.bp reboot/Android.bp rootdir/Android.bp rootdir/Android.mk rootdir/avb/Android.bp rootdir/avb/Android.mk run-as/Android.bp sdcard/Android.bp set-verity-state/Android.bp shell_and_utilities/Android.bp storaged/Android.bp toolbox/Android.bp trusty/apploader/Android.bp trusty/confirmationui/Android.bp trusty/confirmationui/fuzz/Android.bp trusty/coverage/Android.bp trusty/fuzz/Android.bp trusty/fuzz/test/Android.bp trusty/gatekeeper/Android.bp trusty/gatekeeper/fuzz/Android.bp trusty/keymaster/Android.bp trusty/keymaster/fuzz/Android.bp trusty/libtrusty/Android.bp trusty/libtrusty/tipc-test/Android.bp trusty/secure_dpu/Android.bp trusty/storage/interface/Android.bp trusty/storage/lib/Android.bp trusty/storage/proxy/Android.bp trusty/storage/tests/Android.bp trusty/utils/spiproxyd/Android.bp trusty/utils/trusty-ut-ctrl/Android.bp usbd/Android.bp watchdogd/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD to: debuggerd/Android.bp fastboot/Android.bp libkeyutils/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD SPDX-license-identifier-MIT to: libcutils/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-MIT to: fs_mgr/Android.bp fs_mgr/libfs_avb/Android.bp trusty/Android.bp trusty/utils/rpmb_dev/Android.bp Added SPDX-license-identifier-BSD to: fastboot/fuzzy_fastboot/Android.bp Bug: 68860345 Bug: 151177513 Bug: 151953481 Test: m all Exempt-From-Owner-Approval: janitorial work Change-Id: Id740a7d2884556081fdb68876584b25eb95e1bef
* Revert "[LSC] Add LOCAL_LICENSE_KINDS to system/core"Elliott Hughes2021-02-161-9/+0
| | | | | | | | This reverts commit 187b7d19504ca8bdcbc6217c06a117017b4c6287. Reason for revert: system/core is multiple projects, not one. Change-Id: I790ea41741f8cd9b8b6db2f59a49e71fb0958fd6
* [LSC] Add LOCAL_LICENSE_KINDS to system/coreBob Badour2021-02-161-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added SPDX-license-identifier-Apache-2.0 to: bootstat/Android.bp cli-test/Android.bp code_coverage/Android.bp cpio/Android.bp debuggerd/crasher/Android.bp debuggerd/proto/Android.bp diagnose_usb/Android.bp fs_mgr/libdm/Android.bp fs_mgr/libfiemap/Android.bp fs_mgr/liblp/Android.bp fs_mgr/libsnapshot/Android.bp fs_mgr/libstorage_literals/Android.bp fs_mgr/libvbmeta/Android.bp fs_mgr/tests/Android.bp fs_mgr/tools/Android.bp gatekeeperd/Android.bp healthd/Android.bp healthd/testdata/Android.bp init/Android.bp init/Android.mk init/sysprop/Android.bp init/test_kill_services/Android.bp init/test_service/Android.bp libappfuse/Android.bp libasyncio/Android.bp libbinderwrapper/Android.bp libcrypto_utils/Android.bp libcrypto_utils/tests/Android.bp libdiskconfig/Android.bp libgrallocusage/Android.bp libkeyutils/mini_keyctl/Android.bp libmodprobe/Android.bp libnetutils/Android.bp libpackagelistparser/Android.bp libprocessgroup/Android.bp libprocessgroup/cgrouprc/Android.bp libprocessgroup/cgrouprc_format/Android.bp libprocessgroup/profiles/Android.bp libprocessgroup/setup/Android.bp libqtaguid/Android.bp libsparse/Android.bp libstats/push_compat/Android.bp libsuspend/Android.bp libsync/Android.bp libsystem/Android.bp libsysutils/Android.bp libusbhost/Android.bp libutils/Android.bp libvndksupport/Android.bp libvndksupport/tests/Android.bp llkd/Android.bp llkd/tests/Android.bp property_service/libpropertyinfoparser/Android.bp property_service/libpropertyinfoserializer/Android.bp property_service/property_info_checker/Android.bp qemu_pipe/Android.bp reboot/Android.bp rootdir/Android.bp rootdir/Android.mk rootdir/avb/Android.bp rootdir/avb/Android.mk run-as/Android.bp sdcard/Android.bp set-verity-state/Android.bp shell_and_utilities/Android.bp storaged/Android.bp toolbox/Android.bp trusty/apploader/Android.bp trusty/confirmationui/Android.bp trusty/confirmationui/fuzz/Android.bp trusty/coverage/Android.bp trusty/fuzz/Android.bp trusty/fuzz/test/Android.bp trusty/gatekeeper/Android.bp trusty/gatekeeper/fuzz/Android.bp trusty/keymaster/Android.bp trusty/keymaster/fuzz/Android.bp trusty/libtrusty/Android.bp trusty/libtrusty/tipc-test/Android.bp trusty/secure_dpu/Android.bp trusty/storage/interface/Android.bp trusty/storage/lib/Android.bp trusty/storage/proxy/Android.bp trusty/storage/tests/Android.bp trusty/utils/spiproxyd/Android.bp trusty/utils/trusty-ut-ctrl/Android.bp usbd/Android.bp watchdogd/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD to: debuggerd/Android.bp fastboot/Android.bp libkeyutils/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD SPDX-license-identifier-MIT to: Android.bp libcutils/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-MIT to: fs_mgr/Android.bp fs_mgr/libfs_avb/Android.bp trusty/utils/rpmb_dev/Android.bp Added SPDX-license-identifier-BSD to: fastboot/fuzzy_fastboot/Android.bp Bug: 68860345 Bug: 151177513 Bug: 151953481 Test: m all Exempt-From-Owner-Approval: janitorial work Change-Id: I5bd81adb5cdcf2b4dd4141b204eb430ff526af8f
* Status update for shell and utilities.Elliott Hughes2021-02-031-43/+76
| | | | | | | I've also made it a bit more visible where stuff was added. Test: gittiles Change-Id: Ifbe66aec776b52d9c0be5b627f7e7d16fd88ef17
* Add shell_and_utilities_vendor_ramdiskYifan Hong2020-10-281-0/+10
| | | | | | Test: build it Bug: 156098440 Change-Id: I8dbddd57e5569d5db969b83ae77a36f839806583
* Use the "marketing names" for Q and R.Elliott Hughes2020-10-211-2/+2
| | | | | | | Even though they're numbers. Test: treehugger Change-Id: I0872853c98eacdd789fc83f59de82334e1e82ab9
* Add the rough toybox version numbers to the docs.Elliott Hughes2020-08-061-6/+6
| | | | | | Bug: https://github.com/landley/toybox/issues/230 Test: treehugger Change-Id: I007cb2fd5fc4b2258394e7472c12df4acb25ebcc
* shell_and_utilities_recovery: Fix required dependenciesYo Chiang2020-06-101-1/+1
| | | | | | | | | | | TARGET module shell_and_utilities_recovery requires non-existent: unzip.recovery This should be referring to the "ziptool" module. "unzip" is a symlink installed by "ziptool". Bug: 7456955 Test: TH; boot/ramdisk/system/bin/ziptool installed in /boot partition Change-Id: Ib9edf9c17b4dfdebdb8719fb7b9244fca6133f6d
* Update shell_and_utilities docs for R.Elliott Hughes2020-01-161-15/+18
| | | | Change-Id: I4db2aea050f101d2594242336d0413662fd2f0f3
* shell-and-utilities: add bc.Elliott Hughes2019-12-111-0/+1
| | | | | | | We accidentally dropped this when it moved out of toybox. Test: treehugger Change-Id: I7bc0fc2d3fe3822232531465d2c13d306381c4ef
* libziparchive: add zipinfo(1).Elliott Hughes2019-10-251-1/+1
| | | | | | | | Useful for debugging and hermetic builds. (Various places in the build check to see that a file was stored uncompressed.) Test: manual Change-Id: I127e5689cd493ab06739b765beed50912dc9cc1d
* Include ldd in /system/bin.Elliott Hughes2019-07-251-0/+1
| | | | | Test: `which ldd` Change-Id: I68a2e5402a82f22e7b715ab3d8ac2c09296b4376
* grep is now toybox grep.Elliott Hughes2019-07-091-1/+1
| | | | | Test: N/A Change-Id: I8e5070ff3d8f709c53047680c0a0b1123d81cd63
* toolbox: drop NetBSD grep for toybox grep.Elliott Hughes2019-07-081-3/+0
| | | | | Test: toybox grep tests Change-Id: Ifb99980cc4d0a4d843a82671b2e2eaad67829e5c
* toolbox: add setprop, start, and stopTom Cherry2019-06-061-0/+29
| | | | | | | | | | | | | | | | | | Move these from toybox as they're Android specific and more easily maintained here. A few changes during the conversion: * Report error in setprop if value is not a UTF8 string; this would previously fail only after attempting to set the property * Inform users to check dmesg for further failure messages for all three programs * Only start/stop zygote_secondary if the device is not single arch Bug: 117321744 Bug: 133901248 Test: setprop works, start and stop work on single and multi-arch. Change-Id: Id2194cf2b65221bde38aff91f0e86b33edb37f42
* introduce auditctl and use it to configure SELinux throttlingNick Kralevich2019-04-091-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In an effort to ensure that our development community does not introduce new code without corresponding SELinux changes, Android closely monitors the number of SELinux denials which occur during boot. This monitoring occurs both in treehugger, as well as various dashboards. If SELinux denials are dropped during early boot, this could result in non-determinism for the various SELinux treehugger tests. Introduce /system/bin/auditctl. This tool, model after https://linux.die.net/man/8/auditctl , allows for configuring the throttling rate for the kernel auditing system. Remove any throttling from early boot. This will hopefully reduce treehugger flakiness by making denial generation more predictible during early boot. Reapply the throttling at boot complete, to avoid denial of service attacks against the auditing subsystem. Delete pre-existing unittests for logd / SELinux integration. It's intended that all throttling decisions be made in the kernel, and shouldn't be a concern of logd. Bug: 118815957 Test: Perform an operation which generates lots of SELinux denials, and count how many occur before and after the time period. Change-Id: I6c787dbdd4a28208dc854b543e1727ae92e5eeed
* install mini-keyctl to /system/binXiaoyong Zhou2019-01-311-0/+1
| | | | | | | | This CL installs mini-keyctl for fsverity Bug: 112038861 Test: build, flash and check mini-keyctl is properly installed. Change-Id: Ib3adc1b7c92cae28caf72544987c7f3f23eafbbc
* Add setuid/setgid capabilities to simpleperf_app_runner.Yabin Cui2019-01-221-0/+1
| | | | | | | | | | Also add simpleperf_app_runner in shell utilities. Bug: 118835348 Test: build and boot. Test: run simpleperf_app_runner manually. Change-Id: I538503dabfa8ff192f4b3029206a62613eacdf32
* Add simpleperf in system shell utilities.Yabin Cui2019-01-171-0/+1
| | | | | | | | This is to ship simpleperf on user device. Bug: 118835348 Test: build. Change-Id: Ice37fc672d4d273fff67b3ffe49f2e83929fdc9f
* Update shell documentation for the current state of master.Elliott Hughes2018-12-051-36/+32
| | | | | Test: N/A Change-Id: I6efdd73ef44f376820f471dcfcd8005aa1e79cb0
* Make unzip available.Elliott Hughes2018-09-041-0/+2
| | | | | | Bug: N/A Test: N/A Change-Id: I7f7a2e5d494536e5eb5f5e8744af224f31351c15
* Move back to BSD grep, and make it available for recovery too.Elliott Hughes2018-08-011-0/+1
| | | | | | | Bug: http://b/111849261 Bug: https://bugs.exim.org/show_bug.cgi?id=2294 Test: manual Change-Id: Ia4f67b9f803c4f039d170f6d015a1bd2bb0ef23d
* Restore tcpdump.Elliott Hughes2018-07-271-0/+1
| | | | | | | | | tcpdump accidentally fell off the device when its Android.mk was converted to Android.bp. Bug: http://b/111654811 Test: builds Change-Id: Ia49a6722b47c9017b6e573cb88f7a93f3d95db5d
* Revert "Switch to PCRE grep."Elliott Hughes2018-07-261-3/+1
| | | | | | | | | | | | 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 "Split shell_and_utilities into partition parts."Anton Hansson2018-06-211-8/+29
|\
| * Split shell_and_utilities into partition parts.Anton Hansson2018-06-201-8/+29
| | | | | | | | | | | | | | | | | | | | This allows a product to selectively include binaries for the partitions relevant to it. For example, mainline will only include the system copies. Bug: 80410283 Test: make Change-Id: I1d1d62a3c8afff19cd45388adc323587f5043243
* | shell_and_utilities: update README.md.Elliott Hughes2018-06-201-1/+3
|/ | | | | | Bug: N/A Test: N/A Change-Id: I972e6e06b0eedc9a16420ba8360258cfaf2d1c57
* Merge "newfs_msdos: switch to external/newfs_msdos."Treehugger Robot2018-06-201-0/+1
|\
| * newfs_msdos: switch to external/newfs_msdos.Elliott Hughes2018-06-131-0/+1
| | | | | | | | | | | | Bug: http://b/29899852 Test: builds Change-Id: Iecd80d0c64cb5eec4c76ba4bce775508ee45df49
* | Shared libs are supported in recovery modeJiyong Park2018-06-101-0/+3
|/ | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Update shell and utilities doc on the use of dd and grep.Tao Bao2018-06-081-5/+3
| | | | | | | | We have moved away from BSD dd and grep, which is also shown in the section for Android Q. Test: N/A Change-Id: I13484879e697a1cf2c8b82d7e28a167cb34c00fa
* Update shell and utilities docs.Elliott Hughes2018-05-031-24/+24
| | | | | | | | For both P and Q. Bug: N/A Test: N/A Change-Id: I85572bd71871a30c5e6761e098c0d4c63563e873
* Switch to PCRE grep.Elliott Hughes2018-04-231-2/+2
| | | | | | Bug: http://b/77150016 Test: boots, manual testing Change-Id: I377ca42ed9783edcceab4daabe43e993ef74e837
* Document the switch to toybox dd.Elliott Hughes2018-04-211-0/+26
| | | | | | Bug: N/A Test: N/A Change-Id: Ia1fd8a14ceb9d9e8661804a126b3818cc066b0ff
* Build /vendor/bin/logwrapper too.Elliott Hughes2018-04-111-0/+2
| | | | | | Bug: https://issuetracker.google.com/77284669 Test: builds Change-Id: Iaafc856f2a7441d318f7b9376caa6629e02a8e23
* Reland: Add getprop to toolboxTom Cherry2018-01-101-8/+8
| | | | | | | | | | 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
* Add toolbox to vendorTom Cherry2018-01-091-0/+1
| | | | | | | In preparation for adding getprop to toolbox Test: toolbox is present in vendor Change-Id: I8f2f7f8359902e84c14cc0c4adf349475d1d7aa7
* Revert "Add getprop to toolbox"Tom Cherry2018-01-091-8/+8
| | | | | | This reverts commit c73497e17a1f0be9afd6903f58dea3ea5b01be08. Change-Id: Id6b84c86781a6ad7b675c10f142c3daa4117ec46
* Add getprop to toolboxTom Cherry2018-01-081-8/+8
| | | | | | | | | | 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
* | Always build awk.Elliott Hughes2017-12-042-1/+30
|/ | | | | | Bug: http://b/69117476 Test: builds Change-Id: I93590e942fa78d7e472f032181f72b87c57bc387
* Update shell and utilities docs for O.Elliott Hughes2017-09-131-18/+27
| | | | | | Bug: N/A Test: N/A Change-Id: I9e5acdcdd124e9d7907fe6fa51a3be290262be69
* Remove reference to deleted gzip moduleColin Cross2017-07-061-1/+0
| | | | | | | | | The gzip module was removed and replaced with an implementation in toybox. Remove the required modules reference. Bug: 63400769 Change-Id: I032d7ddc59105b3c6fb87084983266655772756a Test: m -j checkbuild
* Add building and installing of grep for vendor.Erik Staats2017-06-151-0/+1
| | | | | | | 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
* shell_and_utils: add vendor shell and toybox targetsSandeep Patil2017-05-221-0/+3
| | | | | | | | Bug: 36463595 Test: Build and boot. Change-Id: I245d1755546fa597e941badce251c2e8293e998e Signed-off-by: Sandeep Patil <sspatil@google.com>