Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,778,037 Members 52,220 Now Online
XDA Developers Android and Mobile Development Forum

Ultimate One Click Theme Injector (Teaser 1/15) Screenies... Need some feed back!

Tip us?
 
ASimmons
Old
(Last edited by ASimmons; 15th January 2011 at 01:41 PM.)
#1  
ASimmons's Avatar
Retired Recognized Developer - OP
Thanks Meter 92
Posts: 996
Join Date: May 2010
Location: Tampa Bay
Cool Ultimate One Click Theme Injector (Teaser 1/15) Screenies... Need some feed back!

New Ultimate Version

I'm looking for some feed back and interest in a gui version of this app, below are some screnshots. Currently I have written interfaces for Optipng, Apktool, ADK, Z7a and a buncha other theming tools. Think of this new version as a way to manage your themes and roms in a workspace like setting, where files will show up in a explorer like ui.

Please ask questions and make suggestions Please!


READ THIS FIRST:

UPDATE 9 PATCH TWEAKS:
This new version will port your favorite hdpi theme to an mdpi rom... yes 9 patch resizing. I want to be the first to say this is not 100% and it probably never will be, and over the next couple of days we can discuss this.

What it will do is resize every 9 patch in a rom and move it over to the mdpi theme. Yes this is the same method I used for all my hdpi ports.

What it might not get is the 9 patching data correctly, which means that it might get stretched incorrectly, most times you won't noticed but others it will be obvious. This will happen anywhere from 1% to 30% of the 9 patch pngs in a port, but all you will need to do is redraw them using the 9 patch draw tool in the adb folder.

Please respect other peoples work. If you port a theme using this and repost it don't just link back to the op... mention the author and give them props.

Also want to say I spent a looooong time trying to figure this out, and I tried many different ways, and I'm open to others suggestion on making this better


Oh and don't forget to to install Image Magick, its included and the HDPI to MDPI will not work without this.


This tool will take your favorite theme and inject it into your favorite rom... provided they are compatible with each other (might work if they aren't but thats for later). I did this cause alot of themers and people who like themes are always waiting for the nightly theme to get applied, well this will do it for you.

You can think of this as almost a theme installer.

INSTRUCTIONS by Norm12:
1. Download and extract.
1.5 Install image magick from the image magick folder... just run the installer and its ready to go. This is important the hdpi to mdpi will not work without it.
2. Copy both the theme and rom into the 1 click folder---the extracted one.
3. Open the 1-click folder and you should see your theme, rom, lib folder, and the injector script.
4. Doubleclick on the injector script----if you did everything correct it will open a cmd prompt
5. Enter the names of the rom and theme when asked...I did use the exact names and added ".zip" to the end.
5.5 Answer y if this is an hdpi to mdpi port otherwise n.
6. Hit enter and wait. When it is really done it will auto-close the cmd prompt. This may take 15 minutes.
7. Your newly themed rom will be in the same folder as the unthemed rom and theme zips. If it worked it should be slightly larger than the original rom. Enjoy

!!!IMPORTANT... BECAUSE 7ZIP SHOWS OUTPUT IGNORE THE "EVERYTHING IS OK" LET THE SCRIPT FINISH WHEN ITS DONE IT WILL CLOSE ITSELF IF YOU DOUBLE CLICKED IT OR IT WILL RETURN TO COMMAND PROMPT!!!

Ignore any errors your seeing while it runs, this is normal like before let it run completely through till it closes out.


Run time could be up too 20 minutes (60 with HDPI to MDPI) on a big theme/rom, but faster that waiting!

You must now install Image Magick if you would like to use the hdpi to mdpi resizing!

ISSUES:
There also seems to be an issue with the gallery3d.apk and the differences in the mdpi and hdpi version. For now remove this from the theme your porting otherwise it won't come out right.

Update 4:
HDPI to MDPI porting!!!!!

Update 3:
Removed verbose but added optopng verbose just let it run. It works but you have to let it finish, the cmd window will close it self.

Update 2:
Added verbose output so that you guys will know to close it out before its done...even tho 7zip says everything is ok... just let it do its thing.

Update 1:
Had the optimization stuff commented out... sorry its back on.
Script will clean up now after it finishes.

JAVA CLASSPATH:
Its needed for the signer to work properly goto a command prompt and type in java -version. if you get and error back java is not in your classpath and needs to be.

just right click on my computer, then goto properties, then click on the advanced tab, at the bottom click on the "Environment Variable" button.

Now click on the new button... the one on the bottom for system variable and put in this
variable name: JAVA_HOME
variable value: C:\<path-to-where-java-is>

Now click ok and select the path system variable and then click edit. IMPORTANT only append to the end of the value this... ;%JAVA_HOME%\bin

then click ok and ok out of all those windows and open a new command prompt and type java -version you should get no error if you do your path to java was wrong follow the steps above again and make sure the path is correct.

WHAT THIS WON'T DO:
It won't port over xml or smali edits.

It wont port over what it can't find... so if your theme has a facebook widget or something but the rom does not then it will ignore that.

It will not port over fonts or anything other than the framework-res.apk and all the themes apks in the system/app folder. If this is popular Maybe other stuff can get included.

WHAT THIS WILL DO:
Shrink a 9 patch from HDPI size to MDPI size.

Push over all the themes pngs from the apk with it to the roms matching apk.

Optimize every png in the theme you are porting over.

Zip align all the apks in your newly themed rom.

Sign the newly themed rom.

Give me feed back.
I might make this easier and make the injector steal the apks for injection right from your phone and then inject and make a flashable to put right back on... tell me what you think.

New HDPI to MDPI version (v2) with 9 patch porting download here

Screenies from Ultimate One Click Theme Injector
Attached Thumbnails
Click image for larger version

Name:	ScreenHunter_01 Jan. 15 08.29.jpg
Views:	1285
Size:	20.1 KB
ID:	490204   Click image for larger version

Name:	ScreenHunter_02 Jan. 15 08.30.jpg
Views:	906
Size:	20.3 KB
ID:	490205   Click image for larger version

Name:	ScreenHunter_03 Jan. 15 08.38.jpg
Views:	807
Size:	21.3 KB
ID:	490206   Click image for larger version

Name:	ScreenHunter_04 Jan. 15 08.39.jpg
Views:	866
Size:	41.5 KB
ID:	490207  
Attached Files
File Type: zip one_click_theme_injector.zip - [Click for QR Code] (804.6 KB, 2802 views)
The Following 8 Users Say Thank You to ASimmons For This Useful Post: [ Click to Expand ]
 
pwachleman
Old
(Last edited by pwachleman; 29th October 2010 at 04:29 PM.)
#2  
pwachleman's Avatar
Senior Member
Thanks Meter 4
Posts: 231
Join Date: Jul 2010
This is great, going to give it a try! Want to use steel my elegance on AOSP mod!
The Following User Says Thank You to pwachleman For This Useful Post: [ Click to Expand ]
 
ASimmons
Old
#3  
ASimmons's Avatar
Retired Recognized Developer - OP
Thanks Meter 92
Posts: 996
Join Date: May 2010
Location: Tampa Bay
Quote:
Originally Posted by pwachleman View Post
This is great, going to give it a try! Want to use steel my elegance on AOSP mod!
Nice this is what I made it for... so sorry but I just noticed that I forgot to attach the program. Its up now.
 
ehac1680
Old
(Last edited by ehac1680; 29th October 2010 at 04:47 PM.)
#4  
ehac1680's Avatar
Senior Member
Thanks Meter 21
Posts: 201
Join Date: Jul 2010
What does yours do that this one doesn't do? I'm just curious because this one will re-size the png's.
The Following User Says Thank You to ehac1680 For This Useful Post: [ Click to Expand ]
 
ASimmons
Old
(Last edited by ASimmons; 29th October 2010 at 04:59 PM.)
#5  
ASimmons's Avatar
Retired Recognized Developer - OP
Thanks Meter 92
Posts: 996
Join Date: May 2010
Location: Tampa Bay
Quote:
Originally Posted by ehac1680 View Post
What does yours do that this one doesn't do?
well it optos and zip aligns annnd it signs all in one step. while I have looked at that one a while back it has been buggy (it might not now haven't really checked).

So while this isn't necessarily a porter per say. its one step and alot easier to use than that, and it does the extras like zip aligning all the apks, optos and signing. Your finished product is ready to be flashed.

Its your choice!

Edit:
While I do have a technique for doing hdpi to mdpi even the 9ptach, its buggy and reallies on assumptions.

I know for a fact that his does not work (or barely works just read the thread) for hdpi to mdpi and is over all very tricky to use. While mine does not include the hdpi to mdpi I might include that later to my one click suite of tools. But I can tell you 9 ptach porting is likely impossible at best mine will port a 9patch but in about 5-15% of the time is gets bad patch data because of the method I use to port it.... witch I can tell you is the only way you can do it.

Mine will also work across roms and if you guys want I'll put the theme porting code in even the 9patch resizing... so you guys can se my super secret method of porting 9patch pngs.
The Following User Says Thank You to ASimmons For This Useful Post: [ Click to Expand ]
 
ASimmons
Old
#6  
ASimmons's Avatar
Retired Recognized Developer - OP
Thanks Meter 92
Posts: 996
Join Date: May 2010
Location: Tampa Bay
Quote:
Originally Posted by ehac1680 View Post
What does yours do that this one doesn't do? I'm just curious because this one will re-size the png's.
So wait is that what you used to do Black and Gold?
 
ehac1680
Old
#7  
ehac1680's Avatar
Senior Member
Thanks Meter 21
Posts: 201
Join Date: Jul 2010
Quote:
Originally Posted by ASimmons View Post
So wait is that what you used to do Black and Gold?
No, I didn't find this until after I ported Black and Gold. Would of been very helpful if I had used it. This doesn't re-size the .9's but it does port them over. I have been using it to put theimpailers changes into the nightly though.
 
ASimmons
Old
#8  
ASimmons's Avatar
Retired Recognized Developer - OP
Thanks Meter 92
Posts: 996
Join Date: May 2010
Location: Tampa Bay
Well try it out and tell me if you think his is easier to use... i made it specially for making nightlies easier to theme.

Does his zip align and optimize... does it produce a final flashable product? All mine needs are the 2 zips (theme and rom names) and the rest is done.

Sent from my PC36100 using XDA App
 
ehac1680
Old
#9  
ehac1680's Avatar
Senior Member
Thanks Meter 21
Posts: 201
Join Date: Jul 2010
Quote:
Originally Posted by ASimmons View Post
Well try it out and tell me if you think his is easier to use... i made it specially for making nightlies easier to theme.

Does his zip align and optimize... does it produce a final flashable product? All mine needs are the 2 zips (theme and rom names) and the rest is done.

Sent from my PC36100 using XDA App
I'm definitely going to try it. It sounds like it will make updates to the nightlies easier, if there ever is a successful one again

Sent from my HERO200 using XDA App
 
spiritcrusher33
Old
#10  
spiritcrusher33's Avatar
Senior Member
Thanks Meter 82
Posts: 1,032
Join Date: Feb 2008
Location: kaufman tx.
well tried to put Steel My Elegance with darchdroid 2.8.. it did everything with no errors.. but when after I flashed the zip. it just stayed at the htc boot screen...

----------
Current--Samsung Galaxy MEGA SGH-I527
Samsung Galaxy MEGA GT-I9205
Motorola xoom wifi

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes