-
Notifications
You must be signed in to change notification settings - Fork 272
Root commands
This is a small collection of useful root commands. "root" means that you can't use them if your phone is not rooted, so don't try one if you don't know what I'm speaking about.
These commands are very comfortable if used with as Aliases.
su -c "svc wifi enable/disable"
su -c "svc data enable/disable"
su -c "settings put global airplane_mode_on 1 && su -c am broadcast -a android.intent.action.AIRPLANE_MODE"
su -c "settings put global airplane_mode_on 0 && su -c am broadcast -a android.intent.action.AIRPLANE_MODE"
su -c "dumpsys batterystats --reset"
su -c "service call statusbar 1"
su -c "service call notification 1"
su -c "input keyevent KEYCODE_MEDIA_NEXT"
su -c "input keyevent KEYCODE_MEDIA_PREVIOUS"
su -c "input keyevent KEYCODE_MEDIA_STOP"
su -c "input keyevent KEYCODE_MEDIA_PAUSE"
su -c "am broadcast -a net.dinglisch.android.tasker.ACTION_TASK --es task_name 'Task name'"
(I'm using two type of quotes here: single to delimit the task name, double to delimit the entire command)
su -c "svc power shutdown"
su -c "svc power reboot"
su -c "svc power reboot recovery"
su -c "settings put system accelerometer_rotation 1"
su -c "settings put system accelerometer_rotation 0"
su -c "settings put system user_rotation 0"
su -c "settings put system user_rotation 1"
su -c "settings put system user_rotation 2"
su -c "settings put system user_rotation 3"
su -c "settings put global low_power 1"
su -c "settings put global low_power 0"
Francesco Andreuzzi, Italy, [email protected]