I am trying to create an application that takes advantage of Dynamic
Voltage and Frequency Scaling (DVFS). My phone is rooted and I can
successfully scale my device with the following command:
psProc = Runtime.getRuntime().exec(new String[]{"su", "-c", "echo
300000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed"});
However, this command is executed frequently since it appears within
the repaint method of a game. I would like to execute "echo 300000 > /
sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed 300000", without
using "su", "-c", since switching to the root user may be slow. Can I
grant an entire application super user privileges before hand so that
I may omit "su", "-c", in my execution?
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en