-
-
Save Xyphis12/6349879 to your computer and use it in GitHub Desktop.
from http://arearom.com/devuploads/motorhead/public/info
Info script to help troubleshooting and porting
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/system/bin/sh | |
#from http://arearom.com/devuploads/motorhead/public/info | |
#by Motorhead | |
mem=$(cat /proc/meminfo | grep -E 'MemTotal' | sed -e 's/MemTotal: //' -e 's/kB//') | |
free=$(cat /proc/meminfo | grep -E 'MemFree' | sed -e 's/MemFree: //' -e 's/kB//') | |
echo 'Checking to see if you are running as root' | |
sleep 2s | |
echo '' | |
if [ `id | cut -d= -f3 | cut -d\( -f1` = 0 ] | |
then | |
echo 'You are root, most features on this script will work' | |
else | |
echo 'You are not running as root but we can continue' | |
fi | |
sleep 3s | |
echo '' | |
echo '** Android Build **' | |
echo `getprop ro.product.name` | |
echo '' | |
sleep 1s | |
echo '** Android Version **' | |
echo `getprop ro.build.version.release` | |
echo '' | |
sleep 1s | |
echo '** Build ID **' | |
echo `getprop ro.build.id` | |
echo '' | |
sleep 1s | |
echo '** Kernel Version **' | |
echo `cat /proc/version` | |
echo '' | |
sleep 1s | |
echo '** CPU Info **' | |
echo `cat /proc/cpuinfo` | |
echo '' | |
sleep 1s | |
echo '** Minimum Frequency **' | |
echo `cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq` | |
echo '' | |
sleep 1s | |
echo '** Maximum Frequency **' | |
echo `cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq` | |
echo '' | |
sleep 1s | |
echo '** Current Frequency **' | |
if [ `id | cut -d= -f3 | cut -d\( -f1` = 0 ] | |
then | |
echo `cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq` | |
else | |
echo 'Sorry, please run as root to see current frequency' | |
fi | |
echo '' | |
sleep 1s | |
echo '** Fast charge support **' | |
if [ -f /sys/kernel/fast_charge/force_fast_charge ] | |
then | |
echo 'Fast charge is supported' | |
else | |
echo 'Your kernel does not support fast charge' | |
fi | |
echo '' | |
echo '** Available and Free RAM **' | |
echo "$((free/1024))MB/$((mem/1024))MB" | |
echo 'Thanks Dtalley11!' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment