• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

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

Do you find the latest beta functional ?

  • Yes

    Votes: 158 65.6%
  • No

    Votes: 31 12.9%
  • Sometimes

    Votes: 52 21.6%

  • Total voters
    241
Search This thread

Daneshm90

Retired Recognized Developer
Jun 1, 2009
3,332
661
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 a moderator:

UltraLinx

Senior Member
Apr 25, 2010
694
5
has anyone actually tried this?

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

Daneshm90

Retired Recognized Developer
Jun 1, 2009
3,332
661
Had a minor hiccup in my script :(, fixed/uploaded.

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
 

Daneshm90

Retired Recognized Developer
Jun 1, 2009
3,332
661
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:

SoCalSpecialist

Senior Member
Jan 17, 2009
2,890
532
San Diego
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!
 

Daneshm90

Retired Recognized Developer
Jun 1, 2009
3,332
661
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:

avisions

Member
Apr 14, 2010
37
0
Detroit, MI
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?
 

Daneshm90

Retired Recognized Developer
Jun 1, 2009
3,332
661
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?

As i said i'll improve it if ppl find this script to be useful, i'll base it on # of downloads lol

For now u'll have to extract the framework and app folder from elegance theme for dream into old folder and extract framework and app folder from super e to new folder. Then run script, once done ur new folder's stuff will be themed.
 

avisions

Member
Apr 14, 2010
37
0
Detroit, MI
do i have to then push the files from the new folder over or can i use your create update.zip script and flash the new themed apps and framework?
 

Daneshm90

Retired Recognized Developer
Jun 1, 2009
3,332
661
do i have to then push the files from the new folder over or can i use your create update.zip script and flash the new themed apps and framework?

Yes u can do that or u can just push the files. Yea an update to this will prolly have an option to make the new folder into an update.zip.
 

SoCalSpecialist

Senior Member
Jan 17, 2009
2,890
532
San Diego
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.

i figured as much..thank u tho for taking the time to look into it.
i appreciate the efforts..in the meantime, ive got a theme to find and give ur app a go!
 

Daneshm90

Retired Recognized Developer
Jun 1, 2009
3,332
661
Love this applications it is so usefull used it all day,, Thanks :D

Very usefull and simple to use tool !

Thank you man ;)

Ok so the # of downloads have reached my defintion of *in demand* ;)

So these are the changes im thinkin of bringing, feel free to make suggestions.

- Make the "new folder" into an update.zip once the script has run through its paces

- Have an option to pull app/framework directly from ur phone

Those are the only 2 i can see as being useful, if anymore let me know.
 

avisions

Member
Apr 14, 2010
37
0
Detroit, MI
crossing platforms doesnt work.

tried to move the celadon theme for CM 5.0.7 (which is android 2.1)
to SuperD 1.11 (which is android 1.6)

i also tried transfering Elegance for SuperD 1.11
to SuperE 1.0.3

the fonts transfered. nothing else did.

but i did successfully transfer the celadon theme for CM 5.0.7
to SuperE 1.0.3
 

Top Liked Posts

  • There are no posts matching your filters.
  • 40
    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
    3
    I found this elsewhere with a little help from Google. ^^
    Actually, the original mediafire file is still there (the animated download link) - it's just that mediafire changed their url format...

    This works: http://www.mediafire.com/?d6n25tjqnksnk7t
    2
    and download link is not working D:

    >>Download Theme Porter 3 from here<<

    Does this support HDPI or CM7 themes yet? Also, is this even still active?
    Theme Porter Support everything! All the ROMs!!!

    For Example... it works if you have to "Port" a Theme/ROM for Nexus S to a Theme/ROM for Galaxy S or a Milestone!
    (attention when the former is hdpi and the latter is mdpi, use the function
    Toggle to hdpi-to-mdpi, but I don't know how this works)

    The Porter works like Metamorph (but all happens on the PC, so out from the phone)!
    Metamorph works while the smartphone is active (OS is working)!
    With Metamorph I have problems if I try to modify frameork-res.apk, I suppose because OS are using it!
    So I use TP without problems!

    __________________________

    Theme Porter extracts all the PNG of all the APKs in /OLD and compare them with all the PNG of all the APKs in /NEW!

    If there are 2 PNG with the same name in the same place, Theme Porter takes the PNG in /NEW and replace it with the PNG in /OLD!

    If the PNG exists only in /OLD, Theme Porter doesn't copy it in /NEW!

    If the PNG exists only in /NEW, Theme Porter doesn't replace it (because there's nothing to replace)!

    ___________________

    Doesn't matter if you use a Theme or Rom in update.zip, you need only the APKs!
    Indeed you only need the png in the apk!
    You can use (or make) a nameofapp.zip with inside only the folder /res/drawable/etc.... (or res/drawable-hdpi/pngfiles...etc...), then rename it in .apk and put it in OLD, and Theme Porter works just as well!! ;)


    When I try to port, I keep getting: The system cannot find the file specified
    Address are too long!
    Rename Theme Porter folder in "TP" and put it in C/
    So you will have C/TP/new and C/TP/old, it works in this way! ;)



    Here I posted a >Video Tutorial< in Italian!
    If you want... I can translate the slides in english! (Let me know...)
    But it's so easy that it is not necessary translate... ;)

    How can i get that 'new rom'?
    because all i got just an apk from cm7 theme chooser..
    Thanks..

    The Rom is a update.zip that contains (not only...) apks .... etc etc etc!
    The Theme is an update.zip that contains the Font, Bootanimation, and all the apks of the ROM (wich is based on) but with "themed" png!

    The Theme.apk for theme chooser is different and it is only 1 apk that works like metamorph, but in different way because Theme Chooser doesn't replace physically the png in all the system.apk (all the apks of the ROM), but "tell" to the device that the png that are in the system apks are now in the Theme.apk (Theme for Theme Chooser)

    You can learn to use Theme.apk for Theme Chooser from
    >>>HERE - [GUIDE] T-mobile theme engine for the faint at heart<<<

    You could use Theme Porter (TP) between 2 apk for Theme Chooser, but this isn't the same of using TP between 2 ROM/Theme, because 2 apks for Theme Chooser could be very different!!!
    2
    i need some help. i made some changes to the colors of some of the png's just in the drawable-mdpi folder in gomorrah's cm 6.1 theme and im trying to port the theme to jaybob's froyo2.2 DEC 17 BLACKMOD rom. i put gomorrah's framework in the old folder and jaybob's framework in the new folder, run the script, select 1, and it just says "The system cannot find the file specified." for both the apps and framework. heres a screenshot. thanks for any help.

    79eac6434c0cb57a9d0f3aeb27ce7c065e37d69652df6f99b6bdcaf81bfa479d5g.jpg

    I was having the same problem as you until I moved the folder containing the theme porter to "C:/themeporter". Any spaces will prevent the script from running.

    May I suggest that the OP be amended to make this clear as I'm sure it will save a lot of similar posts / people's time?