Ashok Jeev
Ashok Jeev

Reputation: 737

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 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??

Upvotes: 0

Views: 1560

Answers (1)

sarnold
sarnold

Reputation: 104020

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

Upvotes: 1

Related Questions