Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
View Poll Results: Do you find the latest beta functional ?
Yes 159 66.53%
No 31 12.97%
Sometimes 49 20.50%
Voters: 239. You may not vote on this poll

Post Reply

Theme-Porter [v1.0] [Any Firmware / Rom Compatible] [WINDOWS]

OP Daneshm90

28th July 2010, 05:19 AM   |  #1  
Daneshm90's Avatar
OP Recognized Developer
Thanks Meter: 637
 
3,309 posts
Join Date:Joined: Jun 2009
Heres a script that ports your themes from firmware to firmware, rom to rom.

How it works:

- Looks through app/framework folder for apks that exist in new/old rom
- Then extracts pngs from those apks
- Then deletes mismatching pngs
- Repacks old themes pngs into new rom
- Done

Note: Benefit of this method is that you could literally port a donut theme to a froyo rom because it only copies images that exist in the new rom, and none that don't.

Betas are spread out through-out the thread (they provide a lot more features)

Instructions:

- Download zip
- Extract zip
- Place old framework/app in old folder (Rom that has the theme)
- Place new framework/app in new folder (Rom u want to port it to)
- Run batch script
- The new folder is now themed

Requirements: Windows environment

Improvements:
- Dependant on demand for this script.

NOTE: For now u can only transfer themes from 2.0+ to 2.0+ roms and pre 2.0 to pre 2.0 roms. Big reason is because of the mdpi folders whereas before there was only one. Will implement it as soon as possible.




Beta 3 Download -
http://www.multiupload.com/62I7MXV620
Last edited by Ryanmo5; 12th November 2011 at 07:36 AM.
The Following 38 Users Say Thank You to Daneshm90 For This Useful Post: [ View ]
28th July 2010, 05:32 AM   |  #2  
Senior Member
Flag Fort Worth
Thanks Meter: 48
 
291 posts
Join Date:Joined: Apr 2010
Donate to Me
More
amazing concept... and most likely awesome work like your others.. keep them coming!
28th July 2010, 06:54 AM   |  #3  
Senior Member
Flag Jacksonville, FL
Thanks Meter: 5
 
788 posts
Join Date:Joined: Jan 2010
More
definitely gonna give this a try .....

thanks
28th July 2010, 06:17 PM   |  #4  
Account currently disabled
Thanks Meter: 5
 
694 posts
Join Date:Joined: Apr 2010
More
has anyone actually tried this?

I would try it myself but i don't have the time atm.
28th July 2010, 09:44 PM   |  #5  
Daneshm90's Avatar
OP Recognized Developer
Thanks Meter: 637
 
3,309 posts
Join Date:Joined: Jun 2009
Had a minor hiccup in my script , fixed/uploaded.

Quote:
Originally Posted by UltraLinx

has anyone actually tried this?

I would try it myself but i don't have the time atm.

I just tested this script by doing the following :

1. adb pulled /system/app and /system/framework from my phone into the old folder
2. place cm6 into new folder
3. Ran script
4. Pushed files to phone and it works perfectly
29th July 2010, 03:11 AM   |  #6  
Senior Member
Thanks Meter: 5
 
114 posts
Join Date:Joined: Jun 2010
More
Sorry. I'm relatively new to this, so how do I get the framework/app?
29th July 2010, 03:20 AM   |  #7  
Daneshm90's Avatar
OP Recognized Developer
Thanks Meter: 637
 
3,309 posts
Join Date:Joined: Jun 2009
Quote:
Originally Posted by excellentnuke

Sorry. I'm relatively new to this, so how do I get the framework/app?

Well u can either extract app/framework from ur theme's update.zip or pull it from ur phone by doing

adb pull /system/app <drag app folder from theme-porter folder here>

adb pull /system/framework <drag framework folder from theme-porter folder here>
Last edited by Daneshm90; 29th July 2010 at 03:22 AM.
29th July 2010, 03:46 AM   |  #8  
SoCalSpecialist's Avatar
Senior Member
Flag San Diego
Thanks Meter: 532
 
2,875 posts
Join Date:Joined: Jan 2009
More
HOLY SHIZEN!

now if u can possibly implement the transformation of HDPI to MDPI id pay u at least 20-30 bucks for that..

in the interim..thank u very much for your contribution!
29th July 2010, 04:01 AM   |  #9  
Daneshm90's Avatar
OP Recognized Developer
Thanks Meter: 637
 
3,309 posts
Join Date:Joined: Jun 2009
Quote:
Originally Posted by SoCalSpecialist

HOLY SHIZEN!

now if u can possibly implement the transformation of HDPI to MDPI id pay u at least 20-30 bucks for that..

in the interim..thank u very much for your contribution!

Hmm interesting idea. Certainly possible, however not all images are to be resized equally, some more than others. I'll look into it, can't promise though

Edit: Very hard to do, basically u'll have to have a list of image filenames where each must be noted as to what resolution they must be on a mdpi device.
Last edited by Daneshm90; 29th July 2010 at 04:26 AM.
29th July 2010, 04:43 AM   |  #10  
Member
Flag Detroit, MI
Thanks Meter: 0
 
37 posts
Join Date:Joined: Apr 2010
More
im sort of new to this. i have a question.

will this work if im using an update.zip theme in the old folder
and a clean rom in the new folder?

ex.

i wanna port the Elegance Theme for SuperD for Dream
to
SuperE for Dream.

and another question.

if this is how it will work
can i then create an update.zip out of what comes from the new folder?

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes