在Android设备上更改scaling_governor
大家好,我尝试使用此代码更改 Android 设备上的scaling_governor
String[] args = {"/system/bin/echo userspace >", "/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor"};
ProcessBuilder cmd1;
cmd1 = new ProcessBuilder(args);
Process process = cmd1.start();
,但没有任何改变:(我做错了什么??
hi guys im trying to change the scaling_governor on android device using this code
String[] args = {"/system/bin/echo userspace >", "/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??
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的程序是否以
root
(euid == 0
) 身份运行?缩放调控器仅限于 root 写入:
Is your program running as
root
(euid == 0
)?The scaling governor is restricted to writing by only root: