[TOOL] Theme porter 4 linux
Hi all
I wrote a bash script that can port an existing theme to any rom you want.
The concept what it does is kindda easy it just replaces all common pictures between the source (the orignal theme) to the destination (input rom).
How it use
extract zip
you will find
Code:
input META-INF template themeporter.sh update
in the template folder you throw your oringa theme should look something like this
Code:
./template
./template/app
./template/app/Browser.apk
./template/app/Calendar.apk
./template/app/Camera.apk
./template/app/Contacts.apk
./template/app/DeskClock.apk
./template/app/DSPManager.apk
./template/app/GenieWidget.apk
./template/app/Mms.apk
./template/app/Phone.apk
./template/app/Settings.apk
./template/app/SoundRecorder.apk
./template/fonts
./template/fonts/Clockopia.ttf
./template/framework
./template/framework/framework-res.apk
in the input folder you should either put the updatable zip file or the extracted zip file starting with app fonts framewors at the root
eg.
Code:
./input/TheFroyoMOD-v2.9.2.zip
After you have prepared your files your can run the porter just by executing it on a console
Code:
./themeporter.sh
Processing app/Browser.apk
Changes Made to app/Browser.apk
Processing app/Calendar.apk
Changes Made to app/Calendar.apk
Processing app/Camera.apk
Changes Made to app/Camera.apk
Processing app/Contacts.apk
Changes Made to app/Contacts.apk
Processing app/DeskClock.apk
Changes Made to app/DeskClock.apk
Processing app/DSPManager.apk
Changes Made to app/DSPManager.apk
Processing app/GenieWidget.apk
Changes Made to app/GenieWidget.apk
Processing app/Mms.apk
Changes Made to app/Mms.apk
Processing app/Phone.apk
Changes Made to app/Phone.apk
Processing app/Settings.apk
Changes Made to app/Settings.apk
Processing app/SoundRecorder.apk
Changes Made to app/SoundRecorder.apk
Processing framework/framework-res.apk
Changes Made to framework/framework-res.apk
Generate update file
After this process you will find a file called mytheme.zip under the update folder.
NOTICE: atm it does not support messing with xml files as i have no experience with this also it does not support fonts if there is enough intrest i might continue work on this
|