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

Root [Boost Mobile] [Script] Theme Switcher

drewhill77

Android Enthusiast
Theme switching script for flashable rom themes.
Note - this will in fact install any flashable zip placed in the /sdcard/themes/ folder

Requires Script Manager or other app capable of executing shell scripts.

to use:
place script on /sdcard/ and remove ".pdf" from the end
place themes in /sdcard/themes/
run script in script manager as SU (little skull and crossbones)
pick your theme using osk (on screen keyboard)
the script will then reboot recovery, flash theme, wipe cache and reboot back to system

themer.png


Download
themer.sh.pdf
 
This script is pure genius, great work!

EDIT: removed my question because you do have it look for the THEMES directory, great work!
 
It's not just for themes as I'm sure you know...any flashable zip placed in /sdcard/themes/ will show up and be able to be used. I just listed it as being for themes as I see that as its primary use for now...unfortunately flashing a full rom will (in most cases) remove the script manager app needed to run this...so it's not as great for full rom management
 
So what next? Flesh this script out a bit more add sub-categoties for roms, kernels, etc and maybe a pick random option for themes...or work on applying this method to a backup/restore script?
 
Anyone with cwm or stock recovery used my script yet? Far as I know it should work with them as well as twrp...but I wouldn't mind confirmation ;)
 
Ok as I'm sure some?/many?/all? of you already knew TWRP and CWM use different recovery command files for purposes of scripting (I didn't). CWM uses /cache/recovery/extendedcommand and TWRP uses /cache/recovery/openrecoveryscript...and I'm guessing /cache/recovery/command is what's used by stock recovery.

So at this point I've got to pick either TWRP or CWM to concentrate on while furthering my script. I'm leaning towards TWRP as that is what I personally use...but if an overwhelmingly large number of users/potential users still use CWM I will switch directions.

Hopefully this is temporary and I figure out how to determine whether a user is using CWM or TWRP from within my script.

edit - One possible method would be to have it ask on first run and then add a line in build.prop...however this would be removed everytime you flashed a new rom and it would ask again upon first run with the new rom. Alternately I could have it echo commands to both extended command and openrecoveryscript as one won't actually read the other and vice versa...

just thinking out loud lol ;)
 
To anybody having issues downloading direct to phone (opens file in browser) you need to dl to pc then move to sd card. Next version will be in flashable zip format and won't have that issue lol ;)
 
For anybody who is/was interested in this I'm still working on it...work's just been crazy these last few weeks and I haven't had time to sit down and do much lately. My current focus is getting the script to create a backup in a flashable zip format...
 
  • Like
Reactions: i2f
I was working on a theme script that modified your current theme with parts from another, such as a lock screen, or battery images. Never got it right though :/

If you're interested in it, I believe this is my latest version http://www.4shared.com/zip/ZraPnDY-/script23.html
It copies framework-res.apk, unzips it, replaces files with ones from a specially designed folder, then zips it up and pushes the new framework file and reboots. But I'm not sure where my script went wrong. Anyways, it may be something useful to you. (it also has potential for other functions, if I got that part right, such as launching another script within my script)
 
I was working on a theme script that modified your current theme with parts from another, such as a lock screen, or battery images. Never got it right though :/

If you're interested in it, I believe this is my latest version http://www.4shared.com/zip/ZraPnDY-/script23.html
It copies framework-res.apk, unzips it, replaces files with ones from a specially designed folder, then zips it up and pushes the new framework file and reboots. But I'm not sure where my script went wrong. Anyways, it may be something useful to you. (it also has potential for other functions, if I got that part right, such as launching another script within my script)


I just got up and am heading into work but I'll take a look at it when I get home later tonight...is there any way you could upload it to dropbox as I don't have a 4shared acct?

Essentially what I'm aiming for here is a universal utility to manage roms, themes and recovery regardless of whether you're using twrp, cwm or stock recovery. The theme changing script was more proof of concept that it could be done from the phones ui without having to reboot into recovery as well as being able to list out files from a folder and use them as menu options.
 
changed the DL so it's actually downloadable--also noted that this can actually be used to install any flashable zip...themes, roms, kernel, mods, etc.
 
I just got up and am heading into work but I'll take a look at it when I get home later tonight...is there any way you could upload it to dropbox as I don't have a 4shared acct?

Essentially what I'm aiming for here is a universal utility to manage roms, themes and recovery regardless of whether you're using twrp, cwm or stock recovery. The theme changing script was more proof of concept that it could be done from the phones ui without having to reboot into recovery as well as being able to list out files from a folder and use them as menu options.

You just made my life easier, Thanks!
 
You just made my life easier, Thanks!

Glad I could help :) if/when time allows I plan on turning this into an app that will also allow for creating/restoring backups as well as installing flashable zips...I know I keep saying that and I've actually started my new position as of 4 weeks ago...but other than the fact that I get to see my wife and kids on a daily basis I don't seem to have any more time available lol
 
Back
Top Bottom