diff options
Diffstat (limited to 'prepare-device.sh')
-rwxr-xr-x | prepare-device.sh | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/prepare-device.sh b/prepare-device.sh index 4730d8e..8a32fc7 100755 --- a/prepare-device.sh +++ b/prepare-device.sh @@ -35,8 +35,8 @@ then adb wait-for-device adb devices echo "Disable A57 cluster" - adb -s $IPADDR:5555 shell "echo 0 > /sys/devices/system/cpu/cpu4/online" - adb -s $IPADDR:5555 shell "echo 0 > /sys/devices/system/cpu/cpu5/online" + adb -s $IPADDR:5555 shell "echo 0 > /sys/devices/system/cpu/cpu4/online | su" + adb -s $IPADDR:5555 shell "echo 0 > /sys/devices/system/cpu/cpu5/online | su" fi if [ $1 == 'a57_only' ] @@ -50,10 +50,10 @@ then adb wait-for-device adb devices echo "Disable A53 cluster" - adb -s $IPADDR:5555 shell "echo 0 > /sys/devices/system/cpu/cpu0/online" - adb -s $IPADDR:5555 shell "echo 0 > /sys/devices/system/cpu/cpu1/online" - adb -s $IPADDR:5555 shell "echo 0 > /sys/devices/system/cpu/cpu2/online" - adb -s $IPADDR:5555 shell "echo 0 > /sys/devices/system/cpu/cpu3/online" + adb -s $IPADDR:5555 shell "echo 0 > /sys/devices/system/cpu/cpu0/online | su" + adb -s $IPADDR:5555 shell "echo 0 > /sys/devices/system/cpu/cpu1/online | su" + adb -s $IPADDR:5555 shell "echo 0 > /sys/devices/system/cpu/cpu2/online | su" + adb -s $IPADDR:5555 shell "echo 0 > /sys/devices/system/cpu/cpu3/online | su" fi if [ $1 == 'hmp' ] |