• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

GScript * Easily launch/save shell scripts from within Android UI

Raidersram

Newbie
Mar 9, 2009
28
6

This was posted by dev rogro82 on xda, this is an awesome app for all us root users!!! DONT USE UNLESS YOU KNOW HOW TO, NOT RESPONSIBLE FOR YOUR PHONE IF SOMETHING GOES WRONG Quote from site...............

Hi all,

Ive created a small application, for people like me who dont like typing the same thing over and over. I use it for things like tethering and reboot.

Its basically a small database in which you can save your scripts and run them easily from within Android ( either with normal shell or su ).

Ive decided to make it open source ( project can be found on google code, a link is listed below ), so people don't have to be afraid something else is executed as root.

Here are some scripts that have been created so far

script that calls the bootdeb.sh - su /sdcard/debian/bootdeb

Make lite version for themes, basically deletes system ringtones, notifications and alarms so themes install properly on rc33 update

mount -o rw,remount -t yaffs2, /dev/block/mtdblock /system
rm -r /system/media/audio/ringtones
rm -r /system/media/audio/notifications
reboot

Backup system sounds to sdcard -
cp -r /system/media/audio /sdcard/audio
 

Attachments

  • GScript.zip
    28 KB · Views: 243
#Deletes browser cache
rm -R /data/data/com.android.browser/cache/webviewCache


#Deletes Maps cache
rm -R /data/data/com.google.android.apps.maps/files


#Deletes StreetView
rm -R /data/data/com.google.android.street/cache

#Deletes Market cache
rm -R /data/data/com.android.vending/cache

#Deletes Tunewiki cache
rm -R /data/data/com.tunewiki.lyricplayer.android/cache/webviewCache

#Deletes Myspace cache
rm -R /data/data/com.myspace.android/files

#Deletes GMail cache
rm -R /data/data/com.google.android.gm/cache/webviewCache

Reboot Recovery - reboot recovery

Reboot - reboot

Delete Amazon .apk

mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
rm /system/app/com.amazon.mp3.apk

View apps on sdcard - ls -l /system/sd/app

View ext2 - ls -l /system/sd

Cache to sd

#mkdir /data/local/bin
#cp /sdcard/transfer.sh /data/local/bin
#chmod 0755 /data/local/bin/transfer.sh
#transfer.sh

If you get error message no worries, its normal and changes have went thru!
 
  • Like
Reactions: -V-O-Y-A-G-E-R-
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones