Sign in to follow this  
davidevinavil

Need help to make apk

Recommended Posts

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

Share this post


Link to post
Share on other sites
aropop    0

If you know how to code java it's not that hard at all,

http://stackoverflow.com/questions/6802810/running-shell-commands-from-app-rooted

Just make an app with a button that executes these commands in the script from the link.

If don't know how to make apps I could look into it but it's really not that hard if you know how to code ;)

Greetz Aropop

Share this post


Link to post
Share on other sites
Spacecaker    72

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

Share this post


Link to post
Share on other sites

If you know how to code java it's not that hard at all,

http://stackoverflow.com/questions/6802810/running-shell-commands-from-app-rooted

Just make an app with a button that executes these commands in the script from the link.

If don't know how to make apps I could look into it but it's really not that hard if you know how to code ;)

Greetz Aropop

I don't know java at all..

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

MoDaCo is part of the MoDaCo.network, © Paul O'Brien 2002-2016. MoDaCo uses IntelliTxt technology.