Skip to content

Instantly share code, notes, and snippets.

@neuthral
Created March 14, 2026 14:29
Show Gist options
  • Select an option

  • Save neuthral/e3a518dc554363115c12e559b1e4234c to your computer and use it in GitHub Desktop.

Select an option

Save neuthral/e3a518dc554363115c12e559b1e4234c to your computer and use it in GitHub Desktop.
[android hacks] running commands from an array in bash
#!/bin/bash
tabs=(
"adb shell settings put system rakuten_denwa 0"
"adb shell settings put system send_security_reports 0"
"adb shell settings put secure send_action_app_error 0"
"adb shell settings put global activity_starts_logging_enabled 0"
"adb shell cmd power set-fixed-performance-mode-enabled true"
"adb shell settings put global package_verifier_user_consent -1"
"adb shell settings put global sem_enhanced_cpu_responsiveness 1"
"adb shell settings put system multicore_packet_scheduler 1"
"adb shell settings put global ram_expand_size 0 default"
"adb shell settings put global ram_expand_size_list 0"
"adb shell settings put global zram_enabled 0"
"adb shell settings put system k2hd_effect 1"
"adb shell setprop debug.force-opengl 1"
"adb shell setprop debug.hwc.force_gpu_vsync 1"
#adb forward tcp:1080 tcp:1080
#inspectsocks 127.0.0.1 1080
)
for t in "${tabs[@]}"; do
eval "$t" && echo "$t"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment