开发者

changing scaling_governor on android device

开发者 https://www.devze.com 2023-02-07 10:08 出处:网络
hi guys im trying to change the scaling_governor on android device using this code String[] args = {\"/system/bin/echo us开发者_运维技巧erspace >\", \"/sys/devices/system/cpu/cpu0/cpufreq/scaling_

hi guys im trying to change the scaling_governor on android device using this code

String[] args = {"/system/bin/echo us开发者_运维技巧erspace >", "/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor"};
ProcessBuilder cmd1;  
cmd1 = new ProcessBuilder(args);

Process process = cmd1.start();

but nothing has changed :( what am i doing wrong??


Is your program running as root (euid == 0)?

The scaling governor is restricted to writing by only root:

-rw-r--r-- 1 root root 4096 2011-01-30 13:45 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
0

精彩评论

暂无评论...
验证码 换一张
取 消