Jump to content


Photo

Need help to make apk

- - - - -

  • Please log in to reply
3 replies to this topic

#1
davidevinavil

davidevinavil

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,005 posts
  • Gender:Male
  • Location:Crevoladossola (VB)
  • Devices:Acer Liquid Metal
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

  • 0
If you like my work, offer me a beer

#2
aropop

aropop

    Newbie

  • Members
  • Pip
  • 10 posts
  • Devices:Acer S500
If you know how to code java it's not that hard at all,

http://stackoverflow...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

  • 0

#3
Spacecaker

Spacecaker

    Diehard

  • Members
  • PipPipPipPip
  • 480 posts
  • Gender:Male
  • Devices:Acer S500 CloudMobile
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

  • 0

#4
davidevinavil

davidevinavil

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,005 posts
  • Gender:Male
  • Location:Crevoladossola (VB)
  • Devices:Acer Liquid Metal

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

http://stackoverflow...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..

  • 0
If you like my work, offer me a beer




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users