summaryrefslogtreecommitdiff
path: root/cmds/cmd
AgeCommit message (Collapse)Author
2024-06-13Merge "libc++fs is part of libc++ now." into main Treehugger Robot
2024-06-13Remove unused -DXP_UNIX. Elliott Hughes
Change-Id: I76675d5e3be614bb22bed9e1d43fc6c51f09dbf3
2024-06-13libc++fs is part of libc++ now. Elliott Hughes
Change-Id: Id33075c352f6a50ec19fa3123c3e0753f0105150
2024-05-14cmd_fuzzer: Bug Fix Akhilesh Sanikop
Resolved timeout issue Test: ./cmd_fuzzer Bug: 335562493 Change-Id: I7737cd25dbd626cc5f27e732377b4519b7f9728c
2024-01-05Use operator<< with String16 rather than char16_t* Ryan Prichard
std::stringstream's operator<< overload for char16_t* is deleted after upgrading libc++ because it surprisingly outputs an address rather than string content. See wg21.link/p1423r3. Bug: 175635923 Test: m MODULES-IN-frameworks-native-cmds-cmd Change-Id: I90602eca166d5da347f7efba22f21bc1a5d38a11
2023-09-01Migrate from android::String path functions to std::filesystem Tomasz Wasilczyk
Bug: 295394788 Test: m checkbuild Change-Id: I7efdc32872d00c066b9a874d774e5ecdc5e53722
2023-08-23Use String8/16 c_str [cmds] Tomasz Wasilczyk
Bug: 295394788 Test: make checkbuild Change-Id: Id8123051a29da531838028bf8dbb4d74b77104a8
2023-03-23Updated fuzz_config in Android.bp file Ayushi Khopkar
Added new fields in fuzz_config like - hotlists, description, vector, service_privilege, users, fuzzed_code_usage, etc. Bug: 271384401 Test: Build cmd_fuzzer Change-Id: Ie6c879269e5c591e2e3c5ed18b606127607d146f
2021-10-01Merge "libbinder: split out PackageManagerNative aidl" Mohammad Islam
2021-09-15Replace security_context_t type ThiƩbaud Weksteen
security_context_t has been marked as deprecated in libselinux from version 3.2. Update to the `char*` type. Bug: 190808996 Test: m Change-Id: Icd8aa61b0f5981aeb0c605652e3fafd4670d78f3
2021-09-15libbinder: split out PackageManagerNative aidl Samiul Islam
Very few clients of libbinder use PackageManagerNative service, as such it's a waste to couple them together. Now, user of PackageManagerNative service need to add the corresponding aidl files as shared library. Bug: 183654927 Test: builds + presubmit Change-Id: Ic2562a3ba1d7d84ab6c9a3836976608a3aa0b2dd Merged-In: Ic2562a3ba1d7d84ab6c9a3836976608a3aa0b2dd (cherry picked from commit 43d554f3e48155cc97fcb4174927386f87203dc8)
2021-08-30[cmd_fuzzer] Depend on libutils.so instead of libutils.a Pirama Arumuga Nainar
Bug: http://b/197965342 libbinder.so, a dependency of cmd_fuzzer, also depends on libutils.so. If we include libutils.a when linking cmd_fuzzer, upstream's lld linker will unnecessarily fetch symbols from libutils.a to redefine undefined symbols from libbinder.so. Switching to libutils.so does not increase the closure of shared libraries needed for this test. Test: build with aosp/1809741 which has lld with the above behavior. Change-Id: Id11e1b95a968429b1406c65f51d2c70e197ae241
2021-08-02[LSC] Add LOCAL_LICENSE_KINDS to frameworks/native Bob Badour
Added SPDX-license-identifier-Apache-2.0 to: cmds/cmd/fuzzer/Android.bp Bug: 68860345 Bug: 151177513 Bug: 151953481 Test: m all Exempt-From-Owner-Approval: janitorial work Change-Id: I85a77883c074895c8ac3b42e0456ac2d8f2da295
2021-06-25Added cmd_fuzzer Aditya Wazir
Test: ./cmd_fuzzer Bug: 187131591 Change-Id: Iac91b398366135bd87074881d3800c535e1dfc5f
2021-02-15[LSC] Add LOCAL_LICENSE_KINDS to frameworks/native Bob Badour
Added SPDX-license-identifier-Apache-2.0 to: cmds/atrace/Android.bp cmds/bugreport/Android.bp cmds/bugreportz/Android.bp cmds/cmd/Android.bp cmds/dumpstate/Android.bp cmds/dumpsys/Android.bp cmds/dumpsys/tests/Android.bp cmds/flatland/Android.mk cmds/idlcli/Android.bp cmds/installd/Android.bp cmds/installd/tests/Android.bp cmds/ip-up-vpn/Android.mk cmds/lshal/Android.bp cmds/lshal/libprocpartition/Android.bp cmds/rawbu/Android.bp cmds/rss_hwm_reset/Android.bp cmds/service/Android.bp cmds/servicemanager/Android.bp cmds/surfacereplayer/Android.bp cmds/surfacereplayer/replayer/Android.bp libs/adbd_auth/Android.bp libs/android_runtime_lazy/Android.bp libs/arect/Android.bp libs/binder/Android.bp libs/binder/ndk/Android.bp libs/binder/ndk/tests/Android.bp libs/binder/parcel_fuzzer/Android.bp libs/binder/rust/Android.bp libs/binder/rust/tests/Android.bp libs/binder/tests/Android.bp libs/binder/tests/fuzzers/Android.bp libs/binderdebug/Android.bp libs/binderdebug/tests/Android.bp libs/binderthreadstate/1.0/Android.bp libs/binderthreadstate/Android.bp libs/bufferqueueconverter/Android.bp libs/cputimeinstate/Android.bp libs/diskusage/Android.bp libs/dumputils/Android.bp libs/fakeservicemanager/Android.bp libs/gralloc/types/Android.bp libs/gralloc/types/fuzzer/Android.bp libs/gralloc/types/tests/Android.bp libs/graphicsenv/Android.bp libs/gui/Android.bp libs/gui/sysprop/Android.bp libs/gui/tests/Android.bp libs/incidentcompanion/Android.bp libs/input/Android.bp libs/input/tests/Android.bp libs/math/Android.bp libs/math/tests/Android.bp libs/nativebase/Android.bp libs/nativedisplay/Android.bp libs/nativewindow/Android.bp libs/nativewindow/tests/Android.bp libs/renderengine/Android.bp libs/renderengine/tests/Android.bp libs/sensor/Android.bp libs/sensor/tests/Android.bp libs/sensorprivacy/Android.bp libs/ui/Android.bp libs/ui/tests/Android.bp libs/ui/tools/Android.bp libs/vibrator/Android.bp libs/vibrator/fuzzer/Android.bp libs/vr/libpdx/Android.bp libs/vr/libpdx/fuzz/Android.bp libs/vr/libvr_manager/Android.bp opengl/libs/Android.bp opengl/tests/EGLTest/Android.bp opengl/tests/fillrate/Android.bp opengl/tests/finish/Android.bp opengl/tests/gl2_basic/Android.bp opengl/tests/gl2_cameraeye/Android.bp opengl/tests/gl2_copyTexImage/Android.bp opengl/tests/gl2_java/Android.bp opengl/tests/gl2_jni/Android.bp opengl/tests/gl2_yuvtex/Android.bp opengl/tests/gl_jni/Android.bp opengl/tests/gl_perf/Android.bp opengl/tests/gl_perfapp/Android.bp opengl/tests/gl_yuvtex/Android.bp opengl/tests/gldual/Android.bp opengl/tests/gralloc/Android.bp opengl/tests/hwc/Android.bp opengl/tests/lib/Android.bp opengl/tests/lighting1709/Android.bp opengl/tests/linetex/Android.bp opengl/tests/swapinterval/Android.bp opengl/tests/testFramerate/Android.bp opengl/tests/testLatency/Android.bp opengl/tests/testPauseResume/Android.bp opengl/tests/testViewport/Android.bp opengl/tests/textures/Android.bp services/audiomanager/Android.bp services/automotive/display/Android.bp services/batteryservice/Android.bp services/displayservice/Android.bp services/gpuservice/Android.bp services/gpuservice/bpfprogs/Android.bp services/gpuservice/gpumem/Android.bp services/gpuservice/gpustats/Android.bp services/gpuservice/tests/unittests/Android.bp services/gpuservice/tracing/Android.bp services/inputflinger/Android.bp services/inputflinger/benchmarks/Android.bp services/inputflinger/dispatcher/Android.bp services/inputflinger/host/Android.bp services/inputflinger/reader/Android.bp services/inputflinger/reporter/Android.bp services/inputflinger/tests/Android.bp services/inputflinger/tests/fuzzers/Android.bp services/powermanager/Android.bp services/schedulerservice/Android.bp services/sensorservice/Android.bp services/sensorservice/hidl/Android.bp services/sensorservice/tests/Android.bp services/stats/Android.bp services/surfaceflinger/Android.bp services/surfaceflinger/CompositionEngine/Android.bp services/surfaceflinger/TimeStats/Android.bp services/surfaceflinger/TimeStats/timestatsproto/Android.bp services/surfaceflinger/layerproto/Android.bp services/surfaceflinger/sysprop/Android.bp services/surfaceflinger/tests/Android.bp services/surfaceflinger/tests/fakehwc/Android.bp services/surfaceflinger/tests/unittests/Android.bp services/surfaceflinger/tests/vsync/Android.bp services/surfaceflinger/tests/waitforvsync/Android.bp services/utils/Android.bp services/utils/tests/Android.bp services/vr/hardware_composer/Android.bp services/vr/virtual_touchpad/Android.bp vulkan/libvulkan/Android.bp vulkan/nulldrv/Android.bp vulkan/vkjson/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD SPDX-license-identifier-MIT SPDX-license-identifier-Unicode-DFS legacy_notice to: Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD SPDX-license-identifier-MIT legacy_notice to: opengl/Android.bp opengl/tests/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD legacy_notice to: libs/vr/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-MIT to: headers/Android.bp services/vr/Android.bp vulkan/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-MIT SPDX-license-identifier-Unicode-DFS to: cmds/surfacereplayer/proto/Android.bp libs/vr/libbroadcastring/Android.bp libs/vr/libbufferhub/Android.bp libs/vr/libbufferhubqueue/Android.bp libs/vr/libbufferhubqueue/benchmarks/Android.bp libs/vr/libbufferhubqueue/tests/Android.bp libs/vr/libdisplay/Android.bp libs/vr/libdvr/Android.bp libs/vr/libdvr/tests/Android.bp libs/vr/libdvrcommon/Android.bp libs/vr/libpdx_default_transport/Android.bp libs/vr/libpdx_uds/Android.bp libs/vr/libperformance/Android.bp libs/vr/libvrflinger/Android.bp libs/vr/libvrflinger/tests/Android.bp libs/vr/libvrsensor/Android.bp opengl/tests/configdump/Android.bp opengl/tests/filter/Android.bp opengl/tests/gl_basic/Android.bp opengl/tests/tritex/Android.bp services/vr/bufferhubd/Android.bp services/vr/hardware_composer/aidl/Android.bp Added SPDX-license-identifier-BSD SPDX-license-identifier-MIT legacy_notice to: opengl/tests/angeles/Android.bp Added SPDX-license-identifier-MIT to: services/vr/performanced/Android.bp Bug: 68860345 Bug: 151177513 Bug: 151953481 Test: m all Exempt-From-Owner-Approval: janitorial work Change-Id: Ib1de8cd7b87446de45d79db15cd90b93a591846d Merged-in: I61e7702e6b36f218bebc7c87853001861a92741e Merged-in: I9d9d5fb32033c08cfb517f6cfc0ecb4cf1eee2fe Merged-in: I10f45547b1161e3768a134b38bf40d77a3a82f09
2020-05-18Add flag to cmd for dynamic services Jon Spivack
When cmd is called with the -w flag, it will call ServiceManager::waitForService instead of checkService. This will make dynamic services start and block until they are ready for use. Bug: 149526916 Test: atest ApexRollbackTests (with and without this flag applied within for dynamic apexd) Change-Id: Iad0c3d7aa75e5830da10a84bd753d3011438259f Merged-In: Iad0c3d7aa75e5830da10a84bd753d3011438259f (cherry picked from commit 77f83368b1292557b70ff82b16a27a96ab424b04)
2020-01-23cmd: fix compile error in DEBUG Dominic Lemire
cmd is a std::string_view, not a char* Test: compile with #define DEBUG 1 Change-Id: If5950f526bd30c339d8d183a9dd1b48860095d1c
2019-01-07Expose cmd's functionality as a static library. Alex Buynytskyy
To be used in Android Binder Bridge binary (akk abb) to speed up Binder transactions via adb. Test: manual Change-Id: Ib8c15258cb32a79d4fedb798335ec0a00fe40723
2018-12-19Reverse-merging master to AOSP. Alex Buynytskyy
Original change: [cmds] Modernize codebase by replacing NULL with nullptr Fixes -Wzero-as-null-pointer-constant warning. Test: m Bug: 68236239 Change-Id: Iea8b2c9459916461d775d977e866c5d959267772
2018-11-16Convert bugreportz, cmd and performanced to Android.bp Dan Willemsen
See build/soong/README.md for more information. Test: m bugreportz cmd performanced Test: atest bugreportz_test Test: atest performance_service_tests (failed in the same way on cf before/after) Change-Id: I643176ec07773ab2efca4b04edc2af82b6395793
2018-05-25Revert "Only spawn one binder thread for cmd." Steven Moreland
This was being used as a work around for a static destructor issue that has been fixed. This reverts commit c21bc9afe403f52c189d2d6b79dedaf9dce6217b. Bug: 36066697 Bug: 77934844 Test: cmd still works Change-Id: Id13589c5c12de0a36b70b8d16216e21345eb986e
2017-12-05Use -Werror in frameworks/native/cmds/cmd Chih-Hung Hsieh
* Ignore return value of getfilecon? Bug: 66996870 Test: build with WITH_TIDY=1 Change-Id: I341e6047dbb5b49a92f69df74b073d2f54a7754d
2017-11-21Add more debugging to cmd. Dianne Hackborn
Test: manual Change-Id: Ibb6c6dd99446504452921cb148d64461a6f0ef85
2017-10-30Update shell open command to have a mode. Dianne Hackborn
We need to open files for reading sometimes, so now we can. Test: manual Change-Id: If089c1e7a4aac1d85784e070d2fccb04b9d84391
2017-08-07Change UniquePtr to std::unique_ptr Jiyong Park
UniquePtr.h in libnativehelper/include is deprecated and will be removed soon. Switching to the standard std::unique_ptr. Bug: 63686260 Test: builds, cmd works in the device. Change-Id: Ib008acd1dd7dba2305b0797c9dc7bab1aa747e7d
2017-05-11Only spawn one binder thread for cmd. Martijn Coenen
To work around race conditions in libbinder when spawning new threads while being shut down. Bug: 36066697 Test: cmd still works Change-Id: I71c8d1aac29a1bf65d54023a4ed39d943ad54c98
2016-10-17Finish implementation of "cmd". Dianne Hackborn
Now wait for result to come back and return it, and do some error checking and reporting for the IPC. Test: manual. Change-Id: Id8deb6cb3a363d0718af9e8faf2da4879ff6d27e
2016-10-10Add a little protection to prevent file opens when shell is done. Dianne Hackborn
Test: N/A Change-Id: I28b75fb67bc576dfb172ea431ab50e2b2c193ece
2016-09-29Introduce new command callback to shell. Dianne Hackborn
This introduces a new feature of the IBinder command protocol to allow the shell command implementation to call back into its caller to ask it to open files in the calling context. This is needed so that commands that have arguments specifying files can open those files as the calling shell, not the system (or whatever) process. Test: Manual Change-Id: Idd5b49ea21057864cc9cef816b3e4afbf01948fc
2015-10-14Temporary hack to get rid of new virtuals. Dianne Hackborn
Seems like it breaks some prebuilt binaries. Change-Id: Ia5e35beb4538364b2ab3618fbf21b2e9c9ee2363
2015-10-12Add new "shell command" feature to Binder objects. Dianne Hackborn
IBinder has a new common interface for sending shell commands to it. This can be implemented by system services to provide a shell interface to the service, without needing to have separate shell java code. Also add a new "cmd" command line tool, which invokes the shell command method on a system service. This is much like dumpsys, but for shell commands. Change-Id: I95dc80c881a28cefb76957ad4d4fd9b3ed9630df