[Tool] Theme Porter(Optima Team) - Android Software/Hacking General [Developers Only]

THEME PORTER
hey guys i have ported a couple apps from similar devices to mine. One of the main problems is finding missing
libs. And when you go to theme apps like you want to make your systemui look like xperia, you never know what png images you can replace.
I made a small script that will build a list of what you have then you have the option to choose wether you want to delete files with the same name(if you are finding missing libs) or only keep files with the same name
(if you are finding png images to replace you stock ones)
HOW TO
1. Run The exe
2. Copy the base zip or apk in the base folder
3. Copy the port zip or apk in the port folder
4. click ok
5. select whether you want to remove files with same name (for lib or rom porting) or only keep files with same name(for png/theme porting)
6. wait for process to complete
WARNING THIS PROGRAM CAN DELETE FILES AND FOLDER WITHOUT GOING THREW RECYCLE BIN
WHATS TO COME
Next build will clean up empty folders leaving it easier to read​

USING THEME PORTER TO THEME SYSTEMUI OR FRAMEWORK-RES
THINGS YOU NEED
# WinRAR
# Theme Porter
How To
1. Run Theme Porter.exe
2. Copy the Base SystemUI to Base folder
3. Copy Port SystemUI to Port folder
4. Click OK
5. Click on Only Keep Files With Same Name
6. Open Base SystemUI.apk with WinRAR
7. Replace png images in each folder
8. push to your device
VIDEO

Reserve
USING THEME PORTER TO PORT OEM APPS
THINGS YOU NEED
# WinRAR
# Theme Porter
How To
1. Run Theme Porter.exe
2. Copy the Base Rom to Base folder
3. Copy Port RomI to Port folder
4. Click OK
5. Click on Remove Files With Same Name
6. Open Base Rom with WinRAR
7. Copy all libs from Port folder to Base Roms lib folder
8. Copy permissions from port folder to Base Roms permissions folder
9. Copy framework from port folder to Base Roms framework folder
10. Copy the apps you want to port to Base Roms app folder(priv-app folder)
11. Push to device and flash
VIDEO
I used this when first trying to port areffects to my Galaxy Tab 3 10.1 and it worked like a charm​

thanks for the tool
Just one doubt, im trying to port xperia Z systemui to stock Xperia L
In this case which will be base and which will be port?

Will try

Is possible porting all the system UI and launcher from huawei p8 marshmallow to oneplus one cm13? I am interested in emui 4.0.

I want to replace the UI and look of Lenovo P2's stock Android 7 rom with that of Custom rom (Resurrection Remix or AOSP Extended) made for this device. I just want to relace the look and feel of the stock lenovo factory rom with the Custom roms looks. Can I use your method to achieve this?
If not, can you guide me on this?

Related

Theme ?

Is there a way to take certain themed apks from different theme zips and apply them to a rom without using metamorph? I am trying to take just the dialer and contacts themed apk from incognito thus bypassing the framwork to apply to a ruby rom?
http://www.mediafire.com/?ll51ycclfv7l9vy
down load this zip. extract it in your pc.
then get the app folder from the rom you want to port and put it in the "old" folder.
then put the app folder from the rom you want to mod and put it in the "new" folder.
run the script, and it will mod all your apps to the new folder. but only matching apps will mod.
now get the app folder from the "new" folder and adb push to your phone. (sytem/app)
this program is actually for porting themes. you put the framework folder and app folder from a theme not compatible with your phone or rom into the "old" folder, and the framework and app folder from the rom you are running in to the "new" folder, and run the script. it will theme all matching apps and framework. but they have to be matching systems (2.2-2.2 and 2.1-2.1). this is not my work so i take no credit for this!!! this is all Daneshm90 from the G1 forum......
ill give it a shot thanks!
No luck my phone boot loops is there another way of pushing the dialer and contacts from one them to a rom?

Please port this

Please can someone port this rom
http://forum.xda-developers.com/showthread.php?t=1681455
Sent from my GT-S5670 using XDA
I can't port but am giving you the tut to port
1. extract the minis3 rom to a folder
2. take any ics rom for your fit
3. copy the lib folder of minis3 in your ics rom it will ask you to replace file select no for every file
4. delete the app, framework, media folder from your ics rom and copy the there the folder of minis3 rom
zip the package, sign it and flash in recovery
note:- cm7 as base will not work
Please Port This
Can someone port this Please
http://forum.xda-developers.com/showthread.php?t=1688221
Sent from my GT-S5670 using XDA
dhlalit11 said:
I can't port but am giving you the tut to port
1. extract the minis3 rom to a folder
2. take any ics rom for your fit
3. copy the lib folder of minis3 in your ics rom it will ask you to replace file select no for every file
4. delete the app, framework, media folder from your ics rom and copy the there the folder of minis3 rom
zip the package, sign it and flash in recovery
note:- cm7 as base will not work
Click to expand...
Click to collapse
can you tell us how to port from gio
sane methos and maybe some files from etc folder too
just install cm9 latest release n apply the theme called tuchwizz

[Guide]Create Custom ROMs | Modify Apks

Hello xda.
This is a Guide to help anyone who wishes to create custom ROMs. This Guide aims to be as complete as possible, and will give all information related to creating a custom ROM... editing apks, adding or removing apps, de-odexing apps, and so on.
Al suggestions to improve upon this guide are welcome.
0. Pre-requisites
Click to expand...
Click to collapse
Credits to...
1. puppet13th... My mentor, teacher, and a great friend.
2. Wanman... ApkTool for ICS
3. langthang... For a great Guide on Creating Update Script
4. lokeshsaini94... For lots of help
Downloads
You need to Download the following...
1. Apk Tool [link(ICS)|link(GB)]... A tool for De-Compiling apks
2. 7 zip [link]... A tool for un-compressing any sort of compressed file
3. ROM signer [link]... Restores the signing of the ROM zip file, which is messed up while uncompressing
4. Any Image Resizer​
Setting up your PC
You need to do the following...
1. Create a folder (preferably in Desktop, and name it "Android")
2. Create Sub-Folders by the names "Base ROM" and "Custom ROM". Also make Sub Folders by the name...
a. ApkTool... Extract contents of ApkTool Here
b. Signer... Extract Autosigner here​
I. Let's get our Base ROM
Click to expand...
Click to collapse
You need to get the base ROM in the ./Desktop/Base ROM folder. It is also recommended that you flash the Base ROM into your phone, as it will help in testing the mods, as you make them.
The process of getting the base ROM will depend on the scenario your situation fits in, from amongst the following...
1. You want an already made Custom ROM as your Base... Download the ROM [willl come in .zip folder], and extract it in /Desktop/Android/Base ROM folder
2. You want to base your ROM on a stock firmware, which came in an ftf package... Use the following tool to extract the files from the ftf file.
3. You want to base your ROM on a stock firmware, which is instaled on your phone...
Take a back up of the ROM using ClockWork Mod, and copy the back up files (from /sdcard/clockworkmod/backup), somewhere to your computer. Then, using this tool, extract the files to /Destktop/Android/Base ROM
Copy the following folders from /system of your phone using Root Browser
/app
/bin
/etc
/fonts
/framework
/lib
/media
/semc
/usr
/xbin
build.prop​
4. You want to base your ROM on a stock firmware, that comes as a ready to flash .zip file on the internet... Download the ROM, and extract it in /Desktop/Android/Base ROM folder
After completion, the Base ROM will have the following Folder Structure
Desktop
Android
Base ROM
META-INF [only if you got your base from another Custom ROM][/INDENT][/INDENT][/INDENT]
system
apps
bin
etc
.
.
.
data [may be]
Click to expand...
Click to collapse
*ScreenShots*
Copy the contents of Base ROM folder to Custom ROM folder.
We now have the foundation of our ROM laid out in front of us, inviting us to show our creativity.
II. Let's work on the Base ROM... Creation of the Custom ROM
Click to expand...
Click to collapse
A. Apks Make up the Android System...
We will now work, only on the /Desktop/Android/Custom ROM Folder
1. Look into the /system/apps...
You will find apk files which will be raninging frm 100 to 200 in number. Err, half or more are known as "Crapware". You need to remove files which are useless, that's a very important step to enhance performance of your final ROM. Look into your device's forums, to get the list of Safe-To-Remove appks from the respective firmware. In case your base is an already built custom ROM, you will have to remove lesser or none of the files.
2. Here, you can add your desired files as well, keeping compaitability in mind.
3 [Optional]. On a .txt file, keep a record of all the apps your removed or added, as it will help in troubleshooting at a later stage.​
B. Implementing Already-Built-MODs in your ROM...
1. Download any Mod you want to keep in your ROM [Make sure your device, and the Base ROM is compaitable]
2. Extract the zip file and you will get a system folder.
3. Copy the files from the system folder to /Custom ROM/sytem, making sure the files go into the folders they came from.
That is, all apk files from /system/apps folder of the Mod should go to /Custom ROM/system/app folder, and so on...​
C. Changing the Interface... Let's Mess with SystemUI[nterface].apk
Go to /system/app and copy SystemUI.apk to
/Desktop/Android/ApkTool/place-apk-here-for-modding
Working with ApkTool
The link provided in this post is of an easy to use software called ApkTool.
1. Double Click on the Script.bat file to open up the software.
*Screenshot*
2. Decompress the SystemUI.apk using option '9'.
Wait for the process to complete
3. Go to /Projects, and you will find a folder called SystemUI.
Open the /SystemUI.apk/res/drawable folders and you will find lots and lots of .png files
*Screenshot*
4. Look into the files carfully.
Bingo, they correspond to the various system elements of the SystemUI of the Base ROM.
5. Open any file you want to edit, edit it, and save in the original location, replacing the original un-edited file. [On a temporary notepad file, note which all files you edit]
Note: You will notce that there are .png files for, say the Battery Icon. You will find that there are files for each state of the Battery Icon. So if you intend to edit the Battery Icon, you need to edit all the files corresonding to each of the states.
5.A. A common exaple of such editing is making the elements of a Gingerbread SystemUI.apk look like ICS SystemUI.apk. For this get hands on any ICS SystemUI.apk and extract both the files in seprate locations, and then copy the files from the ICS SystemUI folder to GB SystemUI folder. However, here you must make sure that the names of the files coming from ICS SystemUI are changed to corresponding values of the GingerBread SystemUI.apk. Here, also ensure that the new files, which replace the original files, have the same dimensions as the original files. If not use any image resizing tool.
*Screenshot*
6. If you want to edit some values in the .xml files, carry on. Edit the files as you wish, and replace the original files. Once you are done with the editing...
7. Open the Script.bat file and run command 11. [Say NO when it asks if the file is a system file]You will have a new SystemUI.apk file called unsignedSystemUI.apk in /place-apk-here-for-modding folder.
Go and fill your pockets with some cookies from the kitchen. Start having them.
8. Keep the temporary notepad file on one side and open the unsignedSystemUI.apk with 7zip, and open the original SystemUI.apk using 7zip besides it.
*Screenshot*
9. Drag and extract the files you edited to a temporary folder.
10. Drag the extracted files to the SystemUI.apk, replacing the older files, making sure all the edited files go to the proper place. [That's why I asked to keep a note of which all files were edited].
*Screenshot*
11. If you edited some .xml files, then you MIGHT need to copy the resources.acrc file at the root of the unsignedSystemUI.apk file to the root of the original SystemUI.apk file.
Once done, the original SystemUI.apk has now become a modded SystemUI.apk, with your creativity embedded into it. Time to test the SystemUI.apk.
12. Using Quick ADB, push the edited SystemUI.apk to your phone.
*Screenshot*
13. Re-boot your phone and you shoud see the changes you made in the UI. .
In case it gives force close message, you messed up somewhere. So you will have to push the original SystemUI.apk [from /Base ROM/system/apps folder], and try to mod the file from scratch again.
14. Copy the sucessfully modded SystemUI.apk from /Apktool/place-apk-here-for-modding folder to /Custom ROM/system/app folder, replacing the older file.​
D. Changing the Interface... Editing other .apks
1. As earlier, copy the apk you want to edit from /Custom ROM/System/app to /Apktool/**** folder, and perform the modification to optain a new modded .apk file.
2. Test this file if you wish, by pushing it using Qucik ADB.
3. If the modded file wrks, copy this new file to /Custom ROM/System/app and replace the original file​
E. Changing the Interface... Editing the font
1. Take your desired font.ttf file and rename it as DroidSans.ttf..
2. Go to the folder system/fonts/
3. Now, replace the file DroidSans.ttf with your desired DoridSans.ttf...
4. To change the lock screen clock font...replace the Clocktopia.ttf with your desired one (rename first)...​
If you did a good job in the above steps, the /Custom ROM folder should be having the contents of a wonderful ROM in making.
Here, I will like to mention that, if you want to upload your custom ROM on the internet and share it, you must ensure that you did lots of hard work in the above steps. There's no point making a custom ROM without modifying lots of files and adding lots of tweaks.
Just make sure that you do so much of modding that, say, your Gingerbread ROM looks like Jellybean, or say, your ROM made for Galaxy Y works as smooth as an SIII.
III. Compiling the Custom ROM
Click to expand...
Click to collapse
A. If you got your base ROM as in [1 or 4] in step I above
1. Copy the META-INF folder from /Base ROM to /Desktop/Android/Custom ROM
2. Rename the Custom ROM folder to whatever-you-want-your-ROM-to-be-called.
3. Add the Folder to a zip file using 7zip.
4. Take this zip file to /Desktop/Android/Signer folder and run sign.bat.​
X. The new zip file called Update.zip is your ROM.
Copy this file to the SD Card of your phone, format /system, /data, /cache using CWM and flash your .zip file. And enjoy your custom ROM.
B. If you got your base ROM as in [2 or 3] in step I above... Creating your own Update script
Read the following Tutorial. [link]
Once you are done, try the ROM on your phone. Share it if you feel it's great. And hit Thanks Button.
Reserved
Reserved2
nice guide!
thanks for the tutorial.
Nice guide, continue finish it.:good:
Awesome
Adds some more tutorial please:thumbup:
Thanks for your work
Inviato dal mio GT-N7000 con Tapatalk 2
Please also add link to original thread....
Btw .. Nice guide....
In 1. Looking into system apps... you should delete .apk as well as .odex files when you want to remove an app... Like browser.apk and browser.odex... Many peoples won't delete them....
Sent from my GT-S7500 using xda premium
Thanks for this nice guide. :highfive:
Please add the placeholder *Screenshot* s :good:
beautiful
Thanks a lot for this beautiful guide. Loved it
i tried it ............
i followed the guide n tried editin my custom rom technoduos on sgy duos GT-s6102
all i did was extract the rom using CWM and then added removed some apps at /system/apps
no other tweaks just addin n removin apps dats all then compressed it n signed it
then wen i flashed it on my set it worked (yayyyyyyy)
but there were some problems the apps which i del were gone but the ones i added were not there ..........
also wen i flashed the rom again the apps which were del were back how is it possible i made sure i had del em
plz help
thank you very much for your tutorials are very helpful to me
nice guide! thx
Nice Guide...
Thanks for the hard work to track down all this information and publish for us.
Thanks
Thanks... im gonna give this a whirl
Sent from my SGH-T999 using Tapatalk 2
R: [Guide]Create Custom ROMs | Modify Apks
Very useful giude thanks ; )
Inviato dal mio GT-N7100 con Tapatalk 2
:Good:
Sent from my potato oO
thanks

[GUIDE] Make themes for your device - no Android SDK or APK tool [ For Noobs ]

Hi all,
I know there are tons of 'how to make themes' threads out there in this community but like the title says , its specially for noobs( like me ).
Now I am not talking about noobs who dont know anything about the android OS,framework, recovery etc. Here, by noobs i mean people who dont know how to decompile apps, sign them , make them flashable , use SDKs etc. This guide will throw some light on some of the easier ways out there by using the brilliant features of some apps and programs combined with each other and believe me , it will give you the final result !
So Lets get started :
REQUIREMENTS
1.A NANDROID BACKUP !!
2. Ninjamorph from Stericson : creating a project , replacing PNGs and finishing the project .
http://forum.xda-developers.com/showthread.php?t=674604
3. An image editing software ( I used Photoshop)
4. Root File Manager (any)
5. Knowledge about your device , Duhh
PROCEDURE
1. Open up ninjamorph and start a new project.
2. Find the APK you wanna modify ( Framework-Res.apk for almost everything; SystemUI.apk for statusbar, clock , general backgrounds , drawer etc ; contacts/seccontacts.apk for phone/dialer , messaging.apk for sms app mods etc , i hope i made my point clear )
3.Modify Apks
now, from here you need to choose your path
Method1
4. (conventional one )Inside the project, goto drawable-hdpi ( for backgrounds goto drawable-nodpi ) and replace the pngs with the pngs you want by downloading them or extracting them from existing packages (of the same size as the original )
5. After replacing the images , simply finish your project and you're done!
Method2( which i used )
4. when you create a project , the Apk is extracted to the location in your device at /sdcard/androidthemes/workspace (your SD card) as a simple folder . Copy this folder to your Pc.
5.Edit the images using an image editing software like PS and save all the images in the copied folder itself in their respective locations OR you can replace the whole apk folder with an already modified/themed folder but just make sure that the modified apk folder is of the same device as yours( since if even a single image which is missing in the modified folder but is present in the original apk folder or is not changed appropriately , it will result in the app not being able to run. It will stop.
6. Once you're done with the replacing, replace the apk folder in /sdcard/androidthemes/extracted with the one you have changed in the above step.
7. Then Goto ninjamorph in your device and simply finish the project whose apk extracted folder you have just modified. Ninjamorph will compile and build the apk from your workspace folder and it will replace the original apk with your modified one.
8. Your new Apk has been themed! :laugh:
Precautions.
1.Have a nandroid backup ( big precaution )
2. Have backups of both the .apk file and the original extracted apk folder , so that if you make an incompatible modification and the app doesnt run, then just replace the apk in the file system of your device ( /system/app or /data/app depending on the apk you are modifying whether it is system or user) OR replace the extracted apk folder in /sdcard/androidthemes/workspace with the original one backed up.
Bonus - Make a flashable zip of your themed apks
http://forum.xda-developers.com/showthread.php?t=1572962 ( modify the updater script in the zip in the META-INF folder present in the sample zip to match your needs ) by @cheatman
Hit Thanks :good: if this helped

[Guide] [Theme] Port Any rom's framework style theme to stock or any ROM

Hello guys.
The guide is to port framework styles from a rom to a rom's framework.
Read the »»»»whole thread«««« carefully.
Things required....
#Hardly 10 minutes (If you not mess up)
#Cool and fresh mind + Environment (For this spread some water over your hair,It will make you cool)
#Knows Apk compiling and decompiling.
Lets come to the main topic without wasting any time.
This is the guide is to port any ROM's framework theme to stock or any ROM but if your ROM is cm based then port cm based ROM's framework or it can give fc's
STEPS.....
1) Decompile the two framework
One which you using now and one which you want to port.
2) Give your framework folder name as BASE. And your port framework as PORT.
3) Enter to res/values/
4) Copy styles.xml to your BASE framework in res/ values folder.
5) Do the same thing with other files in values folder except public.xml
6) You need to even copy the drawables from
drawable folders from PORT to BASE.
7) Compile your framework.
8) Check for the errors in apktool or any alternative and fix them one by one.
9) And hence your framework is complete.
«»«««»««»«««»Note.««««»»««««»»»
The frameworks should (Both PORT and BASE
should be of same android version.
You may need to copy layouts as they are needed
for some styles(if available).
Credits XDA member @san122 For the guide

Categories

Resources