[script] Theme Loader - Theme installer for all devices

jrummy16

Inactive Recognized Developer
Mar 19, 2010
60
571
0
35
Placentia
jrummyapps.com
Use at your own risk! I am not responsible for any bricked devices. You have been warned.

I have only tested this on a droid 1 so if any brave soul uses it shoot me some feedback.

Theme Loader is a script that installs custom themes for any rooted device. I wrote it because I saw some terrible instructions on how to load themes for devices that didn't have a custom recovery yet. This script should work on any device and I hope it's useful for those who do not yet have a custom recovery or who just choose to use this.


Theme Loader Script:
----------------------

----------------------
(right click and save)

Install the script:

** note: must have busybox installed **

1. Download load_theme
2. Place load_theme on the root of your sdcard
3. Download a terminal emulator app from the market
4. Open terminal and type:

PHP:
su
** mount system read/write here (need command for specific device) **
cp -f /sdcard/load_theme /system/xbin
chmod 0755 /system/xbin/load_theme
Load a theme:

1. Place all the files you want to install in a directory called "new_theme"
** for a template of how it should look like download the zip below **
2. Place the directory new_theme on the root of your sdcard
3. In terminal or adb shell type:

PHP:
su
load_theme [options]
4. Watch as your new theme installs.

load_theme options:

PHP:
Usage: load_theme [-a|-b|-c|-f|-fs|-m|-l|-r|-z|-v|-h]
 
Options:
    -a  | --apps        Installs themed apps
    -b  | --backup      Backs up current system settings
    -c  | --complete    Installs full theme
    -f  | --framework   Installs framework
    -fs | --fonts       Installs fonts
    -l  | --logging     Disable logging for this run
    -m  | --media       Installs media files
    -r  | --restore     Restores system backup
    -z  | --zipalign    Zipaligns all apks
    -v  | --version     Print version
    -h  | --help        This help
 
 Always specify options as separate words
 e.g. -a -f instead of -af. Its required!
Examples:

This will install the full theme and turn off logging:

PHP:
su
load_theme -l -c
This will zipalign all your apps and backup your system:

PHP:
su
load_theme -z -b
 

Attachments

marsha12151

Senior Member
Jan 15, 2010
56
2
0
Maynard
Well, I followed the directions and had a successful backup. Worked perfectly. Excellent job!

Now I just need a theme. Has anyone seen any for the rooted droid 2?????

Droid 2
OS 2.2.20
Rooted following directions in XDA thread
 

djh816

Inactive Recognized Developer
Jul 26, 2009
700
418
0
rummy, is does this just copy a framework or copy all images from one into the other? (in other words, does this require a droid 2 specific theme?)
 

KalenXI

Senior Member
Aug 26, 2010
64
31
0
32
Baltimore
I got this when I tried to load a theme, the only file in the theme was /sdcard/new_theme/framework/framework-res.apk:

Code:
# load_theme -c
load_theme -c
Zipaligning all apks...
find: not found
No themed apps found. Skipping...
No custom fonts found. Skipping...
Media not found. Skipping...
wc: not found
find: not found
-gt: unexpected operatorNo framework found. Skipping...

------------------------------------
___
 | |_  _ ._ _  _   |  _  _. _| _ ._
 | | |(/_| | |(/_  |_(_)(_|(_|(/_|

                     -JRummy16
------------------------------------

Changes were made to your system requiring a reboot.
Your device will reboot in 5 seconds...
 

jrummy16

Inactive Recognized Developer
Mar 19, 2010
60
571
0
35
Placentia
jrummyapps.com
I got this when I tried to load a theme, the only file in the theme was /sdcard/new_theme/framework/framework-res.apk:

Code:
# load_theme -c
load_theme -c
Zipaligning all apks...
find: not found
No themed apps found. Skipping...
No custom fonts found. Skipping...
Media not found. Skipping...
wc: not found
find: not found
-gt: unexpected operatorNo framework found. Skipping...

------------------------------------
___
 | |_  _ ._ _  _   |  _  _. _| _ ._
 | | |(/_| | |(/_  |_(_)(_|(_|(/_|

                     -JRummy16
------------------------------------

Changes were made to your system requiring a reboot.
Your device will reboot in 5 seconds...
odd... Looks like you don't have busybox installed because those are all busybox commands that look to be missing. But.... I put a pre-req check in the script to check for busybox so that's weird. Do you have busybox installed?
 

marsha12151

Senior Member
Jan 15, 2010
56
2
0
Maynard
JRummy, I am getting the same errors and as far as I know busy box is installed. (all the cp commands worked fine as did titanium backup

I was experimenting with bgill55's black ice. unzipped and put each of the components in the appropriate New_theme directory.

Thanks for your help.
 

jrummy16

Inactive Recognized Developer
Mar 19, 2010
60
571
0
35
Placentia
jrummyapps.com
JRummy, I am getting the same errors and as far as I know busy box is installed. (all the cp commands worked fine as did titanium backup

I was experimenting with bgill55's black ice. unzipped and put each of the components in the appropriate New_theme directory.

Thanks for your help.
ok.. I know what's going on.. Since busybox isn't symlinked it won't work properly because I forget a couple variables in spots. I'll fix it and upload tomorrow.