Jump to content

Need help to make apk


Recommended Posts

Guest davidevinavil
Posted

Hi all, I've succesfully compiled a JB kernel with undervolt control take from Doomlord source, but it's a bit annoyng to do this so I'm asking help to build an apk that run those command:

echo -25 > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels to undervolt cpu

echo +25 > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels to overvolt cpu

I'm completely newbie in building apk so would be nice if someone help me...

New kernel is coming soon

  • 2 weeks later...
Guest Spacecaker
Posted

cant you make this in a init.d script

This is for CPU and governors

as init.d script

maybe u can modify this with the UV and OV codes ?

#!/system/bin/sh

###########################

# CPU governor #

# Default: ondemand #

###########################

echo "ondemand" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

###########################

# CPU frequency #

# Default: 600 ~ 1552 #

# Min freq.: 600 #

# Max freq.: 1500 #

###########################

echo 600000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq

echo 1500000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq

###########################

# Scheduler #

# Default: sio #

###########################

echo "sio" > /sys/block/mmcblk0/queue/scheduler

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.