Home
last modified time | relevance | path

Searched refs:shell (Results 1 – 25 of 187) sorted by relevance

12345678

/system/sepolicy/private/
Dshell.te1 typeattribute shell coredomain, mlstrustedsubject;
3 # allow shell input injection
4 allow shell uhid_device:chr_file rw_file_perms;
7 allow shell debugfs_tracing_debug:dir r_dir_perms;
8 allow shell debugfs_tracing:dir r_dir_perms;
9 allow shell debugfs_tracing:file rw_file_perms;
10 allow shell debugfs_trace_marker:file getattr;
11 allow shell atrace_exec:file rx_file_perms;
14 allow shell debugfs_tracing_debug:file rw_file_perms;
18 allow shell config_gz:file r_file_perms;
[all …]
Dvendor_shell.te4 # Use fd from shell when vendor_shell is started from shell
5 allow vendor_shell shell:fd use;
7 # adbd: allow `adb shell /vendor/bin/sh` and `adb shell` then `/vendor/bin/sh`
Dincident.te6 domain_auto_trans(shell, incident_exec, incident)
9 # allow incident access to stdout from its parent shell.
10 allow incident shell:fd use;
13 # /data/data/com.android.shell/files/bugreports/tmp_incident_report
36 # only allow incident being called by shell or dumpstate
37 neverallow { domain -su -shell -incident -dumpstate} incident_exec:file { execute execute_no_trans …
Dincident_helper.te9 allow incident_helper { shell incident incidentd dumpstate }:fd use;
10 allow incident_helper { shell incident incidentd dumpstate }:fifo_file { getattr read write };
13 # only allow incidentd and shell to call incident_helper
14 neverallow { domain -incidentd -incident_helper -shell } incident_helper_exec:file { execute execut…
Dsimpleperf_app_runner.te3 domain_auto_trans(shell, simpleperf_app_runner_exec, simpleperf_app_runner)
5 # run simpleperf_app_runner in adb shell.
7 allow simpleperf_app_runner shell:fd use;
32 allow simpleperf_app_runner shell:fifo_file { read write };
34 # simpleperf_app_runner checks shell data paths.
35 # simpleperf_app_runner passes shell data fds.
Drunas.te3 # ndk-gdb invokes adb shell run-as.
4 domain_auto_trans(shell, runas_exec, runas)
9 allow runas shell:fd use;
10 allow runas shell:fifo_file { read write };
11 allow runas shell:unix_stream_socket { read write };
Dadbd.te8 domain_auto_trans(adbd, shell_exec, shell)
15 # When 'adb shell' is executed in recovery mode, adbd explicitly
16 # switches into shell domain using setcon() because the shell executable
17 # is not labeled as shell but as rootfs.
19 domain_trans(adbd, rootfs, shell)
20 allow adbd shell:process dyntransition;
30 # Do not sanitize the environment or open fds of the shell. Allow signaling
32 allow adbd shell:process { noatsecure signal };
34 # Set UID and GID to shell. Set supplementary groups.
201 # their own domain. Allows propagating termination of "adb shell perfetto ..."
[all …]
/system/extras/tests/ext4/
Dandroid_emmc_perf_tests.sh22 if ! adb shell true >/dev/null 2>&1
27 HARDWARE=`adb shell getprop ro.hardware | tr -d "\r"`
87 adb shell stop
88 adb shell stop sdcard
89 adb shell stop ril-daemon
90 adb shell stop media
91 adb shell stop drm
92 adb shell stop keystore
93 adb shell stop tf_daemon
94 adb shell stop bluetoothd
[all …]
/system/sepolicy/microdroid/system/private/
Dshell.te1 typeattribute shell coredomain;
4 allow shell rootfs:dir r_dir_perms;
7 allow shell shell_data_file:dir create_dir_perms;
8 allow shell shell_data_file:file create_file_perms;
9 allow shell shell_data_file:file rx_file_perms;
10 allow shell shell_data_file:lnk_file create_file_perms;
12 allow shell devpts:chr_file rw_file_perms;
13 allow shell tty_device:chr_file rw_file_perms;
14 allow shell console_device:chr_file rw_file_perms;
16 r_dir_file(shell, system_file)
[all …]
Dadbd.te5 domain_auto_trans(adbd, shell_exec, shell)
14 # Do not sanitize the environment or open fds of the shell. Allow signaling
16 allow adbd shell:process { noatsecure signal };
18 # Set UID and GID to shell. Set supplementary groups.
42 # Connect to shell and use a socket transferred from it.
44 allow adbd shell:unix_stream_socket { read write shutdown };
45 allow adbd shell:fd use;
Dstatsd.te8 # Allow executing files on system, such as running a shell or running:
17 # Allow 'adb shell cmd' to upload configs and download output.
20 allow statsd shell:fifo_file { getattr read write };
/system/extras/app-launcher/
Dapp-launcher.sh116 $adb shell "echo performance > /sys/devices/system/cpu/cpu$i/cpufreq/scaling_g\
118 $adb shell "echo 2499000 > /sys/devices/system/cpu/cpu$i/cpufreq/scaling_max_fr\
137 $adb shell "echo performance > /sys/devices/system/cpu/cpu$i/cpufreq/scaling_governor"
138 $adb shell "echo 1833000 > /sys/devices/system/cpu/cpu$i/cpufreq/scaling_max_freq"
146 $adb shell 'echo performance > /sys/class/kgsl/kgsl-3d0/devfreq/governor'
147 $adb shell 'echo 624000000 > /sys/class/kgsl/kgsl-3d0/devfreq/max_freq'
151 $adb shell 'echo 0 > /sys/devices/system/cpu/cpu0/online'
152 $adb shell 'echo 0 > /sys/devices/system/cpu/cpu1/online'
153 $adb shell 'echo 0 > /sys/devices/system/cpu/cpu2/online'
154 $adb shell 'echo 0 > /sys/devices/system/cpu/cpu3/online'
[all …]
DREADME72 adb shell 'simpleperf stat -a am start -W -n com.android.chrome/com.google.android.apps.chrome.Main'
73 adb shell 'am force-stop com.android.chrome'
76 adb shell 'simpleperf stat -a am start -W -n com.google.android.GoogleCamera/com.android.camera.Cam…
77 adb shell 'am force-stop com.google.android.GoogleCamera'
80 adb shell 'simpleperf stat -a am start -W -n com.google.android.apps.maps/com.google.android.maps.M…
81 adb shell 'am force-stop com.google.android.apps.maps'
84 adb shell 'am start -W -n com.google.android.youtube/com.google.android.apps.youtube.app.WatchWhile…
85 adb shell 'am force-stop com.google.android.youtube'
/system/extras/profcollectd/
Dprofcollectd.rc6 group root shell wakelock
11 mkdir /data/misc/profcollectd 0770 shell shell
12 mkdir /data/misc/profcollectd/trace 0770 shell shell
13 mkdir /data/misc/profcollectd/output 0770 shell shell
14 mkdir /data/misc/profcollectd/report 0770 shell shell
20 exec_background - root shell -- /system/bin/profcollectctl reset
/system/media/audio_utils/tests/
Dbuild_and_run_all_unit_tests.sh24 adb shell /system/bin/fdtostring_tests
29 adb shell /system/bin/primitives_tests
33 adb shell /system/bin/power_tests
37 adb shell /system/bin/channels_tests
41 adb shell /system/bin/string_tests
45 adb shell /system/bin/format_tests
49 adb shell /system/bin/simplelog_tests
53 adb shell /system/bin/statistics_tests
57 adb shell /system/bin/timestampverifier_tests
61 adb shell /system/bin/variadic_tests
[all …]
Dbuild_and_run_biquad_filter.sh25 adb shell mkdir -p $testdir
31 adb shell $testdir/biquad_filter -ch:$ch $testdir/sinesweepraw.raw \
38 adb shell cmp $testdir/sinesweep_2.raw \
43 adb shell rm -r $testdir
/system/extras/ioblame/
Dioblame.sh38 model=`adb shell getprop ro.product.name`
89 …block_device=`adb shell 'find /dev/block/platform -name by-name | xargs ls -l' | grep system | awk…
97 DISKSTATS=`adb shell 'cat /proc/diskstats' | fgrep -w $block_device `
106 adb shell 'mount -o remount,background_gc=off /data'
107 …F2FS_GC_SEGMENTS_BEFORE=`adb shell 'cat /sys/kernel/debug/f2fs/status' | grep segments | egrep 'da…
113 DISKSTATS=`adb shell 'cat /proc/diskstats' | fgrep -w $block_device `
122 …F2FS_GC_SEGMENTS_AFTER=`adb shell 'cat /sys/kernel/debug/f2fs/status' | grep segments | egrep 'dat…
123 adb shell 'mount -o remount,background_gc=on /data'
160 …tracepoint_exists=`adb shell 'if [ -d /sys/kernel/debug/tracing/events/f2fs ]; then echo 0; else e…
165 adb shell 'echo 0 > /sys/kernel/debug/tracing/tracing_on'
[all …]
/system/extras/ANRdaemon/
DANRdaemon_get_trace.sh12 PID=$(adb $DEVICE shell "ps | grep anrd")
20 adb $DEVICE shell "kill -s SIGUSR1 $PID"
22 TRACE_FILE=$(adb $DEVICE shell "ls $TRACE_DIR \
26 adb $DEVICE shell "lsof -p $PID" | grep $TRACE_FILE > /dev/null
30 adb $DEVICE shell "lsof -p $PID" | grep "$TRACE_FILE" > /dev/null
/system/extras/ioshark/
Dcollect-straces-ftraces.sh128 adb shell "echo 1 > /sys/kernel/debug/tracing/events/f2fs/f2fs_dataread_start/enable"
129 adb shell "echo 1 > /sys/kernel/debug/tracing/tracing_on"
134 adb shell "echo 0 > /sys/kernel/debug/tracing/events/f2fs/f2fs_dataread_start/enable"
135 adb shell "echo 0 > /sys/kernel/debug/tracing/tracing_on"
166 adb shell 'ps' | grep zygote > zygote_pids
173 adb shell "date +%s > /data/local/tmp/trace.begin ; strace -p $pid1,$pid2 -o /data/local/tmp/trace …
174 adb shell "cat /sys/kernel/debug/tracing/trace_pipe" > fstrace &
180 adb shell 'monkey -p com.android.alarmclock -p com.android.chrome -p com.android.calculator -p com.…
192 adb shell 'cd /data/local/tmp ; tar cvf trace.tar trace.*'
/system/nfc/src/fuzzers/
Dfuzz.sh24 adb shell rm -rf /$FUZZ_DIR/corpus /$FUZZ_DIR/crashes /$FUZZ_DIR/gcov
25 adb shell mkdir -p /$FUZZ_DIR/corpus /$FUZZ_DIR/crashes /$FUZZ_DIR/gcov
42 adb shell mkdir -p /$FUZZ_DIR/corpus /$FUZZ_DIR/crashes /$FUZZ_DIR/gcov
43 …adb shell LD_LIBRARY_PATH=/system/lib64/vndk-29 GCOV_PREFIX=/$FUZZ_DIR/gcov GCOV_PREFIX_STRIP=3 /$…
52 adb shell rm -rf /$FUZZ_DIR/corpus /$FUZZ_DIR/crashes /$FUZZ_DIR/gcov
53 adb shell mkdir -p /$FUZZ_DIR/corpus /$FUZZ_DIR/crashes /$FUZZ_DIR/gcov
108 adb shell mkdir -p /$FUZZ_DIR
133 …adb shell LD_LIBRARY_PATH=/system/lib64/vndk-29 gdbserver64 remote:5039 /$FUZZ_DIR/$FUZZER_NAME $F…
/system/chre/tools/
Dtodo_checker.py67 shell=True,
95 repo_path = ' ' + subprocess.check_output(git_repo_path_cmd, shell=True,
102 grep_result = subprocess.check_output(grep_shell_cmd, shell=True,
135 shell=True,
157 diff_result = subprocess.check_output(commit_contents_cmd, shell=True,
/system/extras/tests/workloads/
Dpwrtest.sh132 adb shell mkdir -p $devdir
147 adb shell mkdir -p $stdest
162 echo enabled Cores $(adb shell "cat /sys/devices/system/cpu/online")
188 (adb shell "cd $devdir && nohup $cmdline > test.out") &
197 set -- $(adb shell ps | tr "\r" " " | grep "$processName")
199 adb shell kill $2
219 adb shell settings put global airplane_mode_on $setting
220 adb shell am broadcast -a android.intent.action.AIRPLANE_MODE --ez state $mode
256 adb shell ln -s /data/benchmarktest/hwuimacro/$HWUIMACRO $devdir/$HWUIMACRO
292 adb shell "cd $devdir && ./systemapps.sh -A -T -i 1"
[all …]
/system/libufdt/tests/
DverifyDTBO.sh18 boot_suffix=$(adb wait-for-device shell getprop ro.boot.slot_suffix)
31 overlay_idx=$(adb shell cat /proc/bootconfig \
34 …overlay_idx=$(adb shell cat /proc/cmdline | grep -o "androidboot.dtbo_idx=[^ ]*" | cut -d "=" -f 2)
/system/chre/build/variant/
Dgoogle_x86_linux.mk37 TARGET_CFLAGS += $(shell pkg-config --cflags tclap)
38 TARGET_CFLAGS += $(shell pkg-config --cflags sndfile)
43 TARGET_BIN_LDFLAGS += $(shell pkg-config --libs sndfile)
/system/apex/apexd/apexd_testdata/
Dtest_apex_service.rc3 user shell
4 group shell

12345678