Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/system/bin/sh
- busybox mount -o remount,rw /system
- devicecheck=$(grep ro.product.device= /system/build.prop | cut -d \= -f 2)
- processorcheck=$(grep ro.board.platform= /system/build.prop | cut -d \= -f 2)
- kernelcheck=$(uname -r)
- processorcheck ()
- { case $processorcheck in
- qsd8k)
- echo "First Gen Snapdragon"
- ;;
- msm7k)
- echo "Second Gen Snapdragon"
- ;;
- s5pc110)
- echo "Hummingbird"
- ;;
- esac
- }
- 1stgensnapdragon ()
- { if [ -e /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels_havs ]
- then
- while [ 1 ]; do
- vdd_levels=/sys/devices/system/cpu/cpu0/cpufreq/vdd_levels_havs
- echo " -This is a HAVS kernel-"
- echo
- echo
- echo "1) Read current voltages"
- echo "2) Lower voltages"
- echo "3) Raise voltages"
- echo "4) Stablize OC frequencies"
- echo "5) Reset voltages to kernel default (Requires reboot)"
- echo "6) Read init.d voltage file"
- echo "7) Current bugs"
- echo "8) Help"
- echo "9) Save changes"
- echo
- echo -n "Please choose an option, Enter to exit: "
- read option
- case $option in
- 1) cat $vdd_levels
- ;;
- 2) echo
- echo "1) Lower all voltages by 25mv"
- echo "2) Lower all voltages by 50mv"
- echo "3) Lower all voltages by 75mv"
- echo "4) Lower all voltages by 100mv"
- echo
- echo "5) Flash ExtremeMod"
- echo "6) Flash InsaneMod"
- echo "7) Set MIN voltages"
- echo "8) Lower MAX voltages by 25mv"
- echo
- echo "9) Custom voltages"
- echo
- echo -n "Please choose an option: "
- read option
- case $option in
- 1) echo "-25" "-25" > $vdd_levels
- echo "Voltages lowered by 25mv!"
- ;;
- 2) echo "-50" "-50" > $vdd_levels
- echo "Voltages lowered by 50mv!"
- ;;
- 3) echo "-75" "-75" > $vdd_levels
- echo "Voltages lowered by 75mv!"
- ;;
- 4) echo "-100" "-100" > $vdd_levels
- echo "Voltages lowered by 100mv!"
- ;;
- 5) echo "-100" "-100" > $vdd_levels
- echo "128000 825 875" > $vdd_levels
- echo "245000 825 875" > $vdd_levels
- echo "384000 825 875" > $vdd_levels
- echo "422400 825 875" > $vdd_levels
- echo "460800 825 875" > $vdd_levels
- echo "499200 825 900" > $vdd_levels
- echo "537600 825 925" > $vdd_levels
- echo "576000 825 975" > $vdd_levels
- echo "614400 825 975" > $vdd_levels
- echo "ExtremeMod applied!"
- ;;
- 6) echo "-100" "-100" > $vdd_levels
- echo "128000 800 850" > $vdd_levels
- echo "245000 800 850" > $vdd_levels
- echo "384000 800 850" > $vdd_levels
- echo "422400 800 850" > $vdd_levels
- echo "460800 800 875" > $vdd_levels
- echo "499200 800 875" > $vdd_levels
- echo "537600 800 900" > $vdd_levels
- echo "576000 800 950" > $vdd_levels
- echo "614400 800 950" > $vdd_levels
- echo "InsaneMod applied!"
- ;;
- 7) echo "Choices: 1) 800 2) 825 3) 850"
- echo -n "Please choose 1, 2, or 3: "
- read option
- case $option in
- 1) echo "-700" "-0" > $vdd_levels
- echo "800mv voltage floor set!"
- ;;
- 2) echo "-700" "-0" > $vdd_levels
- echo "+25" "-0" > $vdd_levels
- echo "825mv voltage floor set!"
- ;;
- 3) echo "-700" "-0" > $vdd_levels
- echo "+50" "-0" > $vdd_levels
- echo "850mv voltage floor set!"
- esac
- ;;
- 8) echo "-0" "-25" > $vdd_levels
- echo "MAX voltages lowered by 25mv!"
- echo
- echo "Issue this command again to lower MAX"
- echo "voltages another 25mv"
- ;;
- 9) echo "Coming soon!"
- ;;
- esac
- ;;
- 3) echo
- echo "1) Raise all voltages by 25mv"
- echo "2) Raise all voltages by 50mv"
- echo "3) Raise all voltages by 75mv"
- echo
- echo "4) Raise MAX voltages by 25mv"
- echo
- echo -n "Please choose an option: "
- read option
- case $option in
- 1) echo "+25" "+25" > $vdd_levels
- echo "Voltages raised by 25mv!"
- ;;
- 2) echo "+50" "+50" > $vdd_levels
- echo "Voltages raised by 50mv!"
- ;;
- 3) echo "+75" "+75" > $vdd_levels
- echo "Voltages raised by 75mv!"
- ;;
- 4) echo "-0" "+25" > $vdd_levels
- echo "MAX voltages raised by 25mv!"
- echo
- echo "Issue this command again to raise MAX"
- echo "voltages another 25mv"
- ;;
- esac
- ;;
- 4) echo "1036800 1350 1350" > $vdd_levels
- echo "1075200 1350 1350" > $vdd_levels
- echo "1113600 1350 1350" > $vdd_levels
- echo "1152000 1350 1350" > $vdd_levels
- echo "1190400 1350 1350" > $vdd_levels
- echo "1228800 1350 1350" > $vdd_levels
- echo "1267200 1350 1350" > $vdd_levels
- echo "Overclocked voltages stablized!"
- ;;
- 5) rm /system/etc/init.d/74havsvoltages
- echo "Voltages reset to kernel default!"
- echo "You must reboot to see changes!"
- echo
- echo "Choices: 1) Yes 2) No"
- echo -n "Do you want to reboot? "
- read option
- case $option in
- 1) reboot
- ;;
- 2) echo
- esac
- ;;
- 6) if [ -e /system/etc/init.d/74havsvoltages ]; then
- echo
- cat /system/etc/init.d/74havsvoltages
- echo
- else
- echo "no init.d file detected"
- echo "viperMOD is not activated"
- fi
- ;;
- 7) echo
- echo " Current Bugs"
- echo
- echo "-Custom voltages not yet supported"
- echo
- echo "-Did you find a bug? Please post in the respective"
- echo " XDA thread or email me at viperboy@tiamat-aosp.com"
- ;;
- 8) echo
- echo "This is a pretty self-explainatory script. Please"
- echo "just remember this is in BETA. There will be"
- echo "multiple RCs before a final release. Stay up to"
- echo "date by checking bit.ly/viperboy"
- ;;
- 9) if [ -e /system/etc/init.d/74havsvoltages ]; then
- rm -f /system/etc/init.d/74havsvoltages
- fi
- awk 'BEGIN {print "#!/system/bin/sh\n#created by -viperboy-\n"} { split ($1,first,":"); print "echo","\"" first[1],$2,$3"\"","> /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels_havs"}' /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels_havs >> /system/etc/init.d/74havsvoltages
- chmod 0777 /system/etc/init.d/74havsvoltages
- echo
- echo "init.d file created!"
- ;;
- *) busybox mount -o remount,ro /system
- echo "-----------------------"
- echo "Done!"
- echo
- echo "Any problem/suggestions/comments, please email me at"
- echo " viperboy@tiamat-aosp.com"
- exit
- ;;
- esac
- echo
- echo "Press Enter to go back to the main menu..."
- read key
- done
- elif [ -e /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels ]
- then
- while [ 1 ]; do
- vdd_levels=/sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
- echo " -This is an SVS kernel-"
- echo
- echo
- echo "1) Read current voltages"
- echo "2) Lower voltages"
- echo "3) Raise voltages"
- echo "4) Reset voltages to kernel default (Requires reboot)"
- echo "5) Read init.d voltage file"
- echo "6) Current bugs"
- echo "7) Help"
- echo "8) Save changes"
- echo
- echo -n "Please choose an option, Enter to exit: "
- read option
- case $option in
- 1) cat $vdd_levels
- ;;
- 2) echo
- echo "1) Lower voltages by 25mv"
- echo "2) Lower voltages by 50mv"
- echo "3) Lower voltages by 75mv"
- echo "4) Lower voltages by 100mv"
- echo
- echo "5) Custom voltages"
- echo
- echo -n "Please choose an option: "
- read option
- case $option in
- 1) echo "-25" > $vdd_levels
- echo "Voltages lowered by 25mv!"
- ;;
- 2) echo "-50" > $vdd_levels
- echo "Voltages lowered by 50mv!"
- ;;
- 3) echo "-75" > $vdd_levels
- echo "Voltages lowered by 75mv!"
- ;;
- 4) echo "-100" > $vdd_levels
- echo "Voltages lowered by 100mv!"
- ;;
- 5) echo "Coming soon!"
- ;;
- esac
- ;;
- 3) echo
- echo "1) Raise voltages by 25mv"
- echo "2) Raise voltages by 50mv"
- echo "3) Raise voltages by 75mv"
- echo
- echo -n "Please choose an option: "
- read option
- case $option in
- 1) echo "+25" > $vdd_levels
- echo "Voltages raised by 25mv!"
- ;;
- 2) echo "+50" > $vdd_levels
- echo "Voltages raised by 50mv!"
- ;;
- 3) echo "+75" > $vdd_levels
- echo "Voltages raised by 75mv!"
- ;;
- esac
- ;;
- 4) rm /system/etc/init.d/74havsvoltages
- echo "Voltages reset to kernel default!"
- echo "You must reboot to see changes!"
- echo
- echo "Choices: 1) Yes 2) No"
- echo -n "Do you want to reboot? "
- read option
- case $option in
- 1) reboot
- ;;
- 2) echo
- esac
- ;;
- 5) if [ -e /system/etc/init.d/74havsvoltages ]; then
- echo
- cat /system/etc/init.d/74havsvoltages
- echo
- else
- echo "no init.d file detected"
- echo "viperMOD is not activated"
- fi
- ;;
- 6) echo
- echo " Current Bugs"
- echo
- echo "-Custom voltages not yet supported"
- echo
- echo "-Did you find a bug? Please post in the respective"
- echo " XDA thread or email me at viperboy@tiamat-aosp.com"
- ;;
- 7) echo
- echo "This is a pretty self-explainatory script. Please"
- echo "just remember this is in BETA. There will be"
- echo "multiple RCs before a final release. Stay up to"
- echo "date by checking bit.ly/viperboy"
- ;;
- 8) if [ -e /system/etc/init.d/74havsvoltages ]; then
- rm -f /system/etc/init.d/74havsvoltages
- fi
- awk 'BEGIN {print "#!/system/bin/sh\n#created by -viperboy-\n"} { split ($1,first,":"); print "echo","\"" first[1],$2"\"","> /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels"}' /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels >> /system/etc/init.d/74havsvoltages
- chmod 0777 /system/etc/init.d/74havsvoltages
- echo
- echo "init.d file created!"
- ;;
- *) busybox mount -o remount,ro /system
- echo "-----------------------"
- echo "Done!"
- echo
- echo "Any problem/suggestions/comments, please email me at"
- echo " viperboy@tiamat-aosp.com"
- exit
- ;;
- esac
- echo
- echo "Press Enter to go back to the main menu..."
- read key
- done
- else
- echo "This is an incompatible kernel!"
- echo
- echo "Please flash a compatible kernel that supports the"
- echo "sysfs interface. See bit.ly/viperboy for more info."
- exit
- fi
- }
- 2ndgensnapdragon ()
- { if [ -e /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels_havs ]
- then
- while [ 1 ]; do
- vdd_levels=/sys/devices/system/cpu/cpu0/cpufreq/vdd_levels_havs
- echo " -This is a HAVS kernel-"
- echo
- echo
- echo "1) Read current voltages"
- echo "2) Lower voltages"
- echo "3) Raise voltages"
- echo "4) Reset voltages to kernel default (Requires reboot)"
- echo "5) Read init.d voltage file"
- echo "6) Current bugs"
- echo "7) Help"
- echo "8) Save changes"
- echo
- echo -n "Please choose an option, Enter to exit: "
- read option
- case $option in
- 1) cat $vdd_levels
- ;;
- 2) echo
- echo "1) Lower all voltages by 25mv"
- echo "2) Lower all voltages by 50mv"
- echo "3) Lower all voltages by 75mv"
- echo "4) Lower all voltages by 100mv"
- echo
- echo "5) Set MIN voltages"
- echo "6) Lower MAX voltages by 25mv"
- echo
- echo "7) Custom voltages"
- echo
- echo -n "Please choose an option: "
- read option
- case $option in
- 1) echo "-25" "-25" > $vdd_levels
- echo "Voltages lowered by 25mv!"
- ;;
- 2) echo "-50" "-50" > $vdd_levels
- echo "Voltages lowered by 50mv!"
- ;;
- 3) echo "-75" "-75" > $vdd_levels
- echo "Voltages lowered by 75mv!"
- ;;
- 4) echo "-100" "-100" > $vdd_levels
- echo "Voltages lowered by 100mv!"
- ;;
- 5) echo "Choices: 1) 800 2) 825 3) 850"
- echo -n "Please choose 1, 2, or 3: "
- read option
- case $option in
- 1) echo "-1000" "-0" > $vdd_levels
- echo "800mv voltage floor set!"
- ;;
- 2) echo "-1000" "-0" > $vdd_levels
- echo "+25" "-0" > $vdd_levels
- echo "825mv voltage floor set!"
- ;;
- 3) echo "-1000" "-0" > $vdd_levels
- echo "+50" "-0" > $vdd_levels
- echo "850mv voltage floor set!"
- esac
- ;;
- 6) echo "-0" "-25" > $vdd_levels
- echo "MAX voltages lowered by 25mv!"
- echo
- echo "Issue this command again to lower MAX"
- echo "voltages another 25mv"
- ;;
- 7) echo "Coming soon!"
- ;;
- esac
- ;;
- 3) echo
- echo "1) Raise all voltages by 25mv"
- echo "2) Raise all voltages by 50mv"
- echo "3) Raise all voltages by 75mv"
- echo
- echo "4) Raise MAX voltages by 25mv"
- echo
- echo -n "Please choose an option: "
- read option
- case $option in
- 1) echo "+25" "+25" > $vdd_levels
- echo "Voltages raised by 25mv!"
- ;;
- 2) echo "+50" "+50" > $vdd_levels
- echo "Voltages raised by 50mv!"
- ;;
- 3) echo "+75" "+75" > $vdd_levels
- echo "Voltages raised by 75mv!"
- ;;
- 4) echo "-0" "+25" > $vdd_levels
- echo "MAX voltages raised by 25mv!"
- echo
- echo "Issue this command again to raise MAX"
- echo "voltages another 25mv"
- ;;
- esac
- ;;
- 4) rm /system/etc/init.d/74havsvoltages
- echo "Voltages reset to kernel default!"
- echo "You must reboot to see changes!"
- echo
- echo "Choices: 1) Yes 2) No"
- echo -n "Do you want to reboot? "
- read option
- case $option in
- 1) reboot
- ;;
- 2) echo
- esac
- ;;
- 5) if [ -e /system/etc/init.d/74havsvoltages ]; then
- echo
- cat /system/etc/init.d/74havsvoltages
- echo
- else
- echo "no init.d file detected"
- echo "viperMOD is not activated"
- fi
- ;;
- 6) echo
- echo " Current Bugs"
- echo
- echo "-Custom voltages not yet supported"
- echo
- echo "-Did you find a bug? Please post in the respective"
- echo " XDA thread or email me at viperboy@tiamat-aosp.com"
- ;;
- 7) echo
- echo "This is a pretty self-explainatory script. Please"
- echo "just remember this is in BETA. There will be"
- echo "multiple RCs before a final release. Stay up to"
- echo "date by checking bit.ly/viperboy"
- ;;
- 8) if [ -e /system/etc/init.d/74havsvoltages ]; then
- rm -f /system/etc/init.d/74havsvoltages
- fi
- awk 'BEGIN {print "#!/system/bin/sh\n#created by -viperboy-\n"} { split ($1,first,":"); print "echo","\"" first[1],$2,$3"\"","> /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels_havs"}' /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels_havs >> /system/etc/init.d/74havsvoltages
- chmod 0777 /system/etc/init.d/74havsvoltages
- echo
- echo "init.d file created!"
- ;;
- *) busybox mount -o remount,ro /system
- echo "-----------------------"
- echo "Done!"
- echo
- echo "Any problem/suggestions/comments, please email me at"
- echo " viperboy@tiamat-aosp.com"
- exit
- ;;
- esac
- echo
- echo "Press Enter to go back to the main menu..."
- read key
- done
- elif [ -e /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels ]
- then
- while [ 1 ]; do
- vdd_levels=/sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
- echo " -This is an SVS kernel-"
- echo
- echo
- echo "1) Read current voltages"
- echo "2) Lower voltages"
- echo "3) Raise voltages"
- echo "4) Reset voltages to kernel default (Requires reboot)"
- echo "5) Read init.d voltage file"
- echo "6) Current bugs"
- echo "7) Help"
- echo "8) Save changes"
- echo
- echo -n "Please choose an option, Enter to exit: "
- read option
- case $option in
- 1) cat $vdd_levels
- ;;
- 2) echo
- echo "1) Lower voltages by 25mv"
- echo "2) Lower voltages by 50mv"
- echo "3) Lower voltages by 75mv"
- echo "4) Lower voltages by 100mv"
- echo
- echo "5) Custom voltages"
- echo
- echo -n "Please choose an option: "
- read option
- case $option in
- 1) echo "-25" > $vdd_levels
- echo "Voltages lowered by 25mv!"
- ;;
- 2) echo "-50" > $vdd_levels
- echo "Voltages lowered by 50mv!"
- ;;
- 3) echo "-75" > $vdd_levels
- echo "Voltages lowered by 75mv!"
- ;;
- 4) echo "-100" > $vdd_levels
- echo "Voltages lowered by 100mv!"
- ;;
- 5) echo "Coming soon!"
- ;;
- esac
- ;;
- 3) echo
- echo "1) Raise voltages by 25mv"
- echo "2) Raise voltages by 50mv"
- echo "3) Raise voltages by 75mv"
- echo
- echo -n "Please choose an option: "
- read option
- case $option in
- 1) echo "+25" > $vdd_levels
- echo "Voltages raised by 25mv!"
- ;;
- 2) echo "+50" > $vdd_levels
- echo "Voltages raised by 50mv!"
- ;;
- 3) echo "+75" > $vdd_levels
- echo "Voltages raised by 75mv!"
- ;;
- esac
- ;;
- 4) rm /system/etc/init.d/74havsvoltages
- echo "Voltages reset to kernel default!"
- echo "You must reboot to see changes!"
- echo
- echo "Choices: 1) Yes 2) No"
- echo -n "Do you want to reboot? "
- read option
- case $option in
- 1) reboot
- ;;
- 2) echo
- esac
- ;;
- 5) if [ -e /system/etc/init.d/74havsvoltages ]; then
- echo
- cat /system/etc/init.d/74havsvoltages
- echo
- else
- echo "no init.d file detected"
- echo "viperMOD is not activated"
- fi
- ;;
- 6) echo
- echo " Current Bugs"
- echo
- echo "-Custom voltages not yet supported"
- echo
- echo "-Did you find a bug? Please post in the respective"
- echo " XDA thread or email me at viperboy@tiamat-aosp.com"
- ;;
- 7) echo
- echo "This is a pretty self-explainatory script. Please"
- echo "just remember this is in BETA. There will be"
- echo "multiple RCs before a final release. Stay up to"
- echo "date by checking bit.ly/viperboy"
- ;;
- 8) if [ -e /system/etc/init.d/74havsvoltages ]; then
- rm -f /system/etc/init.d/74havsvoltages
- fi
- awk 'BEGIN {print "#!/system/bin/sh\n#created by -viperboy-\n"} { split ($1,first,":"); print "echo","\"" first[1],$2"\"","> /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels"}' /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels >> /system/etc/init.d/74havsvoltages
- chmod 0777 /system/etc/init.d/74havsvoltages
- echo
- echo "init.d file created!"
- ;;
- *) busybox mount -o remount,ro /system
- echo "-----------------------"
- echo "Done!"
- echo
- echo "Any problem/suggestions/comments, please email me at"
- echo " viperboy@tiamat-aosp.com"
- exit
- ;;
- esac
- echo
- echo "Press Enter to go back to the main menu..."
- read key
- done
- else
- echo "This is an incompatible kernel!"
- echo
- echo "Please flash a compatible kernel that supports the"
- echo "sysfs interface. See bit.ly/viperboy for more info."
- exit
- fi
- }
- hummingbird ()
- { if [ -e /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table ]
- then
- while [ 1 ]; do
- vdd_levels=/sys/devices/system/cpu/cpu0/cpufreq/vdd_levels_havs
- echo " -This is a Netarchy kernel-"
- echo
- echo
- echo "1) Read current voltages"
- echo "2) Lower voltages"
- echo "3) Current bugs"
- echo "4) Help"
- echo
- echo -n "Please choose an option, Enter to exit: "
- read option
- case $option in
- 1) cat $vdd_levels
- ;;
- 2) echo
- echo "1) Lower all voltages by 5mv"
- echo "2) Lower all voltages by 10mv"
- echo "3) Lower all voltages by 15mv"
- echo "4) Lower all voltages by 20mv"
- echo "5) Lower all voltages by 25mv"
- echo "6) Lower all voltages by 30mv"
- echo "7) Lower all voltages by 35mv"
- echo "8) Lower all voltages by 40mv"
- echo "9) Lower all voltages by 45mv"
- echo "10) Lower all voltages by 50mv"
- echo
- echo -n "Please choose an option: "
- read option
- case $option in
- 1) if [ -e /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table ]; then
- echo "1445 1395 1345 1245 1195 1045 945 945" > $vdd_levels
- echo
- echo "Voltages lowered by 5mv!"
- else
- echo "Only for Netarchy Nexus kernels!"
- fi
- ;;
- 2) if [ -e /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table ]; then
- echo "1440 1390 1340 1240 1190 1040 940 940" > $vdd_levels
- echo
- echo "Voltages lowered by 10mv!"
- else
- echo "Only for Netarchy Nexus kernels!"
- fi
- ;;
- 3) if [ -e /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table ]; then
- echo "1435 1385 1335 1235 1185 1035 935 935" > $vdd_levels
- echo
- echo "Voltages lowered by 15mv!"
- else
- echo "Only for Netarchy Nexus kernels!"
- fi
- ;;
- 4) if [ -e /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table ]; then
- echo "1430 1380 1330 1230 1180 1030 930 930" > $vdd_levels
- echo
- echo "Voltages lowered by 20mv!"
- else
- echo "Only for Netarchy Nexus kernels!"
- fi
- ;;
- 5) if [ -e /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table ]; then
- echo "1425 1375 1325 1225 1175 1025 925 925" > $vdd_levels
- echo
- echo "Voltages lowered by 25mv!"
- else
- echo "Only for Netarchy Nexus kernels!"
- fi
- ;;
- 6) if [ -e /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table ]; then
- echo "1420 1370 1320 1220 1170 1020 920 920" > $vdd_levels
- echo
- echo "Voltages lowered by 30mv!"
- else
- echo "Only for Netarchy Nexus kernels!"
- fi
- ;;
- 7) if [ -e /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table ]; then
- echo "1415 1365 1315 1215 1165 1015 915 915" > $vdd_levels
- echo
- echo "Voltages lowered by 35mv!"
- else
- echo "Only for Netarchy Nexus kernels!"
- fi
- ;;
- 8) if [ -e /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table ]; then
- echo "1410 1360 1310 1210 1160 1010 910 910" > $vdd_levels
- echo
- echo "Voltages lowered by 40mv!"
- else
- echo "Only for Netarchy Nexus kernels!"
- fi
- ;;
- 9) if [ -e /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table ]; then
- echo "1405 1355 1305 1205 1155 1005 905 905" > $vdd_levels
- echo
- echo "Voltages lowered by 45mv!"
- else
- echo "Only for Netarchy Nexus kernels!"
- fi
- ;;
- 10) if [ -e /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table ]; then
- echo "1400 1350 1300 1250 1150 1000 900 900" > $vdd_levels
- echo
- echo "Voltages lowered by 50mv!"
- else
- echo "Only for Netarchy Nexus kernels!"
- fi
- ;;
- esac
- ;;
- 3) echo
- echo " Current Bugs"
- echo
- echo "-Custom voltages not yet supported"
- echo
- echo "-Cannot save Netarchy voltages"
- echo " I need to still code this in. If you reboot"
- echo " your phone, you will need to reapply the"
- echo " undervolt. This will be fixed shortly"
- echo
- echo "-Did you find a bug? Please post in the respective"
- echo " XDA thread or email me at viperboy@tiamat-aosp.com"
- ;;
- 4) echo
- echo "This is a pretty self-explainatory script. Please"
- echo "just remember this is in BETA. There will be"
- echo "multiple RCs before a final release. Stay up to"
- echo "date by checking bit.ly/viperboy"
- ;;
- *) busybox mount -o remount,ro /system
- echo "-----------------------"
- echo "Done!"
- echo
- echo "Any problem/suggestions/comments, please email me at"
- echo " viperboy@tiamat-aosp.com"
- exit
- ;;
- esac
- echo
- echo "Press Enter to go back to the main menu..."
- read key
- done
- else
- echo "This is an incompatible kernel!"
- echo
- echo "Please flash a compatible kernel that supports the"
- echo "sysfs interface. See bit.ly/viperboy for more info."
- exit
- fi
- }
- echo " _ __ __ ___ ____ "
- echo " __ __(_)_ __ ___ _ __| \/ |/ _ \| _ \ "
- echo " \ \ / /| | '_ \ / _ \ '__| |\/| | | | | | | |"
- echo " \ \ / | | |_) | __/ | | | | | |_| | |_| |"
- echo " \_/ |_| .__/ \___|_| |_| |_|\___/|____/ "
- echo " |_| "
- echo " v3 beta RC2"
- echo "-----------------------------------------------------"
- case $devicecheck in
- supersonic)
- echo "Device: HTC EVO"
- echo -n "Processor: "; processorcheck
- echo "Current Kernel: "$kernelcheck
- 1stgensnapdragon
- ;;
- inc)
- echo "Device: HTC Incredible"
- echo -n "Processor: "; processorcheck
- echo "Current Kernel: "$kernelcheck
- 1stgensnapdragon
- ;;
- passion)
- echo "Device: Nexus One"
- echo -n "Processor: "; processorcheck
- echo "Current Kernel: "$kernelcheck
- 1stgensnapdragon
- ;;
- bravo)
- echo "Device: HTC Desire GSM"
- echo -n "Processor: "; processorcheck
- echo "Current Kernel: "$kernelcheck
- 1stgensnapdragon
- ;;
- mecha)
- echo "Device: HTC Thunderbolt"
- echo -n "Processor: "; processorcheck
- echo "Current Kernel: "$kernelcheck
- 2ndgensnapdragon
- ;;
- crespo)
- echo "Device: Samsung Nexus S"
- echo -n "Processor: "; processorcheck
- echo "Current Kernel: "$kernelcheck
- hummingbird
- ;;
- crespo4g)
- echo "Device: Samsung Nexus S 4G"
- echo -n "Processor: "; processorcheck
- echo "Current Kernel: "$kernelcheck
- hummingbird
- ;;
- *)
- echo $devicecheck
- echo "Not an officially supported device. Be aware"
- ;;
- esac
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement