开发者

changing scaling_governor on android device

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜