What is the best way to decompile Apks? Is apk tool the best option? As i feel like it's a complicated tool.......
And is there any way to decompile Apks and edit xmls on android without using a computer?
Another think is that i am thinking about making some kind of rom for our device, so just want to know the basics for doing this(making a flashable zip - modifying SystemUI - Framework).....
My rom is not going to be such a huge development because i am still a starter,so i am thinking about making a rom that contains all of the awesome things that other developers made ........
It will be based on one of the custom roms available,and for now, this is what i think it will contain(Xperia Z3 Apps by strayder~007,smart social camera, working sound enhancements,one of the cool frameworks,Xperia lollipop firmware Icons already included........etc).......
You should know that I will never use any of the ports that others made without their permission.....
Please let me know your opinion!! Don't read and just leave without replying......
If anyone wants to help me, let me know, i will start building my rom after 17 /6......
But i need your help starting from know......
The first step is knowing how make a flashable zip right?
Saelfos Emaka said:
Please let me know your opinion!! Don't read and just leave without replying......
If anyone wants to help me, let me know, i will start building my rom after 17 /6......
But i need your help starting from know......
The first step is knowing how make a flashable zip right?
Click to expand...
Click to collapse
Bro to be honest..don't try to build roms...
First try how to port apps and solve fc's it will help you..
but yes indeed how to make a flashable zip is the first part..
Samuel Wankhede said:
Bro to be honest..don't try to build roms...
First try how to port apps and solve fc's it will help you..
but yes indeed how to make a flashable zip is the first part..
Click to expand...
Click to collapse
Ok thanks for your advice,and about the rom, it will be based on an already built custom rom by someone else with some apps ported by others and some small modifications by me, just to make sure it won't lead troubles.
Would you like to help me with flashable zip?
I will be ready when you are ..
And about your phone, what happened with it?
Is it working now? How did it brake?
Saelfos Emaka said:
What is the best way to decompile Apks? Is apk tool the best option? As i feel like it's a complicated tool.......
And is there any way to decompile Apks and edit xmls on android without using a computer?
Another think is that i am thinking about making some kind of rom for our device, so just want to know the basics for doing this(making a flashable zip - modifying SystemUI - Framework).....
My rom is not going to be such a huge development because i am still a starter,so i am thinking about making a rom that contains all of the awesome things that other developers made ........
It will be based on one of the custom roms available,and for now, this is what i think it will contain(Xperia Z3 Apps by strayder~007,smart social camera, working sound enhancements,one of the cool frameworks,Xperia lollipop firmware Icons already included........etc).......
You should know that I will never use any of the ports that others made without their permission.....
Click to expand...
Click to collapse
1) Best way to decompile apk files is to decompile them using Advanced APK Tools (this tool is specially made for Xperia software)
2) To make ROM you need
* Rooted Device with CWM installed.
* Build Version of the Deodexed Stock Backup / base ROM should be same as build version of your Device.
* Deodexed Stock System / Any base ROM
* You can edit SystemUI.apk, Home.apk, framework.jar, framework_res.apk,build.prop,settings.apk other system apps and files, Media Folder, Bootanimation.zip file, you can add more apps and animation and tones etc and what else you want to... depends upon your creativity.
* Tools Required : Advanced APK Tools(java should be installed to use this tool) , Photoshop, BootAnimation Creator, Notepad++, Windows Image Re-sizer, 7-Zip etc.
* Meta-INF folder which you can get from any existing ROM, boot.img which you can get from CWM backup of your device.
* Firmware ftf file and Wmshua Tool for in case you get wrong with your device.
* Permission from the OP of the Threads from where you get the Raw Material and also give Credits to them.
-Deodexed Stock System (16.0.B.2.16) : Click HERE
-Base ROM (16.0.B.2.16) (A ROM be me) : Click HERE
-Advanced APK Tools : Click HERE
-16.0.B.2.16 ftf : Click HERE
-Wmshua (opth the installation directory and rename the language folder to folder_x to set language as English): Click HERE
Other Useful Links :
http://forum.xda-developers.com/sony-xperia-c/general/guide-how-to-add-rom-developer-t2999668
http://forum.xda-developers.com/sony-xperia-c/themes-apps/how-to-custom-home-button-t2828974
iSiddharth said:
1) Best way to decompile apk files is to decompile them using Advanced APK Tools (this tool is specially made for Xperia software)
2) To make ROM you need
* Rooted Device with CWM installed.
* Build Version of the Deodexed Stock Backup / base ROM should be same as build version of your Device.
* Deodexed Stock System / Any base ROM
* You can edit SystemUI.apk, Home.apk, framework.jar, framework_res.apk,build.prop,settings.apk other system apps and files, Media Folder, Bootanimation.zip file, you can add more apps and animation and tones etc and what else you want to... depends upon your creativity.
* Tools Required : Advanced APK Tools(java should be installed to use this tool) , Photoshop, BootAnimation Creator, Notepad++, Windows Image Re-sizer, 7-Zip etc.
* Meta-INF folder which you can get from any existing ROM, boot.img which you can get from CWM backup of your device.
* Firmware ftf file and Wmshua Tool for in case you get wrong with your device.
* Permission from the OP of the Threads from where you get the Raw Material and also give Credits to them.
-Deodexed Stock System (16.0.B.2.16) : Click HERE
-Base ROM (16.0.B.2.16) (A ROM be me) : Click HERE
-Advanced APK Tools : Click HERE
-16.0.B.2.16 ftf : Click HERE
-Wmshua (opth the installation directory and rename the language folder to folder_x to set language as English): Click HERE
Other Useful Links :
http://forum.xda-developers.com/sony-xperia-c/general/guide-how-to-add-rom-developer-t2999668
http://forum.xda-developers.com/sony-xperia-c/themes-apps/how-to-custom-home-button-t2828974
Click to expand...
Click to collapse
Thanks man!!! You are awesome! This is all what I need to start, i love you
Saelfos Emaka said:
Thanks man!!! You are awesome! This is all what I need to start, i love you
Click to expand...
Click to collapse
Related
Hi,
After flashing a custom rom I noticed that rom didn't have my language, so I wanted to add it to this custom rom.
After a great and long journey and thx to the info found on this forum I managed to add the language I wanted.
During the journey I started to write a small tool to make the whole process a bit less painful. The tool has been growing from as simple batch decomiple - recompile apk tool to 1 that adds the value folders and do the resources.arsc switch thing.
This is my 1ste release and is still a beta version so still has some errors, stuff to be added and bad code. But still I hope some of you can use it.
If you got any questions just post or pm
Greetings
Installing the tool.
Just extract all files to your root folder and run the ignite script as root. That's it.
There is a help option that guide you step by step.
EDIT: Small adjustment in the language lists and added the Custom_language_list option
EDIT: Like I said tool is still in beta stage, it seems that yesterday in my hurry to get it ready I screwed up big time (like command to make a cp without telling where to copy to) anyway already beta version 1.1 is out now
UPDATE: 1ste real release out now.
Killed some more bugs
Updated the help page
Added some layout editing
Added or updated the log handeling
how can i insert pt language on last jaggyrom for htc explorer ?
I would appreciate if u created a 'How To' for Super Noobs like me ...
a windows version
If there is a windows version,it will be more appreciated.
bascro said:
I would appreciate if u created a 'How To' for Super Noobs like me ...
Click to expand...
Click to collapse
There is a help function in the tool that guide through most of the steps from the moment you got your hands on tha apk files.
So now the question is how to get those apk files.
Well I like to use Android-Kitchen to unpack rom's, and you'll need that tool anyway to add the new apk files to the rom.
1. Decompile the rom containing the language you want. (Can be stock-rom, your original rom, other custom,...)
2. Copy all the apk files from the systeml/app folder to the stock_APK.
3.Copy the framework-res.apk and com.htc.resources.apk from the system/framework folder to flare/framework and the stock_APK folders
The rest of the how you'll find when you start APK-Fire and use option 'h'
Note: Not all of the apk file will decompile without errors, those that give errors (like market, street, superuser,...) you don't realy need to add language so just delete those apk's from the stock_APK and the decompiled_APK folders.
pedrofidalgo said:
how can i insert pt language on last jaggyrom for htc explorer ?
Click to expand...
Click to collapse
To add portugees you can choose to add all the languages from the South_West_Europe list.
or
you put pt and pt-rPT (each on a diff line) to the Custom_language_list.
then follow the steps you'll find in help option.
picodaren said:
If there is a windows version,it will be more appreciated.
Click to expand...
Click to collapse
There is a windows version called APK Edit
Only prob here is that you have to open the apk that has the wanted language, copy those folders, open the apk from the rom where you want to add the language to and repeat this process for all the apk files 1 by 1.
If you take this road plz let me know how long it took yah
i have jaggy rom. and a backup of my stock rom in Portuguese. can i install pt language on jaggy rom ?
Need a little help .. : p
pedrofidalgo said:
i have jaggy rom. and a backup of my stock rom in Portuguese. can i install pt language on jaggy rom ?
Need a little help .. : p
Click to expand...
Click to collapse
sure you can.
Step trough:
1 Set-up Android-kitchen
2 Decompile your stock rom
3 copy the content of the system/apk folder to the APK-Fire/stock_APK
4 copy the 2 apk files from system/framework to APK-Fire/stock_APK AND APK-Fire/flare/framework
5 Start APK-Fire and install the frameworks (option 1)
6 Decompile the apk files (option 2)
7 Add the language code to the Custom_language_list each language code get's it's own line. (you find this file in the APK-Fire/lighter folder) for portugees you add something like this:
pt
pt-rPT
8 Get the value folders containing the portugees language (option 4)
9 Now you can choose to back up the stock_apk and the decompiled_apk folders (option 6 / 1) or delete the content of those 2 folders.
10 Got back to the kitchen and decompile the Jaggyrom and repeat the steps 2 till 6 as before.
11 Now copy the value folders you took from the stock rom to the jaggyrom (option 5)
12 Recompile the apk files (option 3)
(check log for errors, warnings you could ignore but errors need attention, be aware that non stock apps mostly will give errors but those also don't need additional language)
13 Do the resources.arsc switch thing to fool the signature security (option 6)
(for more info what this is all about read the switch_resources script)
14 Copy your upgraded apk files from the APK-Fire/firebox/translated_APK folder to the Android-kitchen/WORKING_****/system/app (don't forget to copy the 2 framework apk files to the Android-kitchen/WORKING_****/system/framework folder and not the app folder)
15 Cook your rom
16 Flash the rom
17 Hold your fingers crossed while booting
18 Hopely enjoy the costum rom in your desired language.
Hope this helps you.
Cosmoon said:
sure you can.
Step trough:
1 Set-up Android-kitchen
2 Decompile your stock rom
3 copy the content of the system/apk folder to the APK-Fire/stock_APK
4 copy the 2 apk files from system/framework to APK-Fire/stock_APK AND APK-Fire/flare/framework
5 Start APK-Fire and install the frameworks (option 1)
6 Decompile the apk files (option 2)
7 Add the language code to the Custom_language_list each language code get's it's own line. (you find this file in the APK-Fire/lighter folder) for portugees you add something like this:
pt
pt-rPT
8 Get the value folders containing the portugees language (option 4)
9 Now you can choose to back up the stock_apk and the decompiled_apk folders (option 6 / 1) or delete the content of those 2 folders.
10 Got back to the kitchen and decompile the Jaggyrom and repeat the steps 2 till 6 as before.
11 Now copy the value folders you took from the stock rom to the jaggyrom (option 5)
12 Recompile the apk files (option 3)
(check log for errors, warnings you could ignore but errors need attention, be aware that non stock apps mostly will give errors but those also don't need additional language)
13 Do the resources.arsc switch thing to fool the signature security (option 6)
(for more info what this is all about read the switch_resources script)
14 Copy your upgraded apk files from the APK-Fire/firebox/translated_APK folder to the Android-kitchen/WORKING_****/system/app (don't forget to copy the 2 framework apk files to the Android-kitchen/WORKING_****/system/framework folder and not the app folder)
15 Cook your rom
16 Flash the rom
17 Hold your fingers crossed while booting
18 Hopely enjoy the costum rom in your desired language.
Hope this helps you.
Click to expand...
Click to collapse
i dont know how to do it :/
if i give you my backup can you add pt language for the last jaggyrom ?
cumps
really??
I've already robbed the experience from you of wandering through the jungle of this mystic entity called Android by making the wandering seem nothing more then a walk through the park.
And now you tell me you don't want to know this mystic entity?
Nah I don't buy that, you almost got me there.
I'm willing to guide you through every step but I refuse to carry you.
If you'r on IRC or msn or I can meet you there to start your journey.
Btw at the current rate Jaggyjags is spitting out rom's I can't keep up adding stuff for everyone so I go by the rule:
You translate 1 version of a rom for a man and you made him happy till the release of the next version. You teach a man how to translate a rom and you made him happy for many versions
pedrofidalgo said:
i dont know how to do it :/
if i give you my backup can you add pt language for the last jaggyrom ?
cumps
Click to expand...
Click to collapse
seriously, I know you like your phone and want get the best out of it but your maximum effort is installing .zip roms or .zip updates?
you've got 2 options.
1. Stick with whatever you have right now: your Portuguese backup or any available custom rom.
2. research, research again, try things out and learn. Try to stop asking people to do things for you. It's difficult, I know, specially when you are used to it, but don´t worry, it always is.
Believe me, it is a really nice feeling when you get things done on your own.
good luck
Would you teach us HOT TO DO IT MANUALLY (without using APK Fire)
pmeler said:
Would you teach us HOT TO DO IT MANUALLY (without using APK Fire)
Click to expand...
Click to collapse
Well.... all right then
I've explained most of how to add language already, k most of it in close relation with the use of APK-Fire. Anyway I'll try to explain the whole process starting from the base rom till the modified one.
Step 1
Check if your (custom) rom really really doesn't have your language. Try also 'morelocal' app. This simple step can save you lot's of time
Step 2
Now that you't sure that the (custom) rom doesn't have your language or you just want to add more languages to the rom you build your self you have to go and look for roms that do have the language(s) your want to add.
Possible finding places:
- different versions of the leaked stock rom
- Others people custom rom's
- Rom's for other devices. ! Won't work for the 2 framework apk files, but has good chances to work with the other apk files !
Step 3
Question now probably is how can I find out what languages a rom contains (specialy those for other devices). Well easy, you just have to dismantle the rom's and to be sure a few apk files.
The easyest way to dismantle a rom is to use Android-Kitchen. This tool doesn't need alot of installing or modification but I do recommend you read the how to etc.
So now you have easy access to all the content files of the rom.
Take a few apk files from the system/app folder and dismantle them with 'Apk Tool' or if you realy want to go hardcore 'aapt'. And check the 'app-name'/res for 'values-*' folders that you need.
Step 4
Now that you've found the folders containing the translation (those values-* folders) you've got to copy them to to 'app-name'/res of the afk file from the rom you want to add language to.
dismantled app from copy value folders dismantled app from
rom with language -----------------> rom without language
Step 5
recompile the dismantled app where you just added the value folders to
Step 6
You thought you where allmost done didn't you??? Now the real fun part just starts.
In order to bypass the security that check for the integity of the apk file we need to cheat abit.
You need the new apk file and the original apk (the one without the language)
*rename the 'app-name'.apk file (from both version) to 'app-name'.zip
*delete the resources.arsc file from the original 'app-name'.apk (now temporaly 'app-name'.zip)
*take that same file from the new apk file and copy it to the original apk
* rename the original back from 'app-name'.zip to 'app-name'.apk
* Copy that apk file back into the rom (Android-Kitchen remember)
Step7
Now you repeat this proces for ALL apk files you find in the rom.
Yup all +100 apk files from 1 rom + the same +100 apk files from the other rom need to get this treatment.
Step 8
Cook rom
So you see 8 simple step is more or less what it takes.
Same tutorial but better here
Even more resources here and here
Updated the tool
Cosmoon said:
Updated the tool
Click to expand...
Click to collapse
It doesn't seem to do the last step for me. The one that is supposed to copy the resources.arsc. It just creates another copy of the stock, without the new resources.arsc.
Any idea of what's going on? Would be a flavor to not have to do this manually!
Hmm I fully tested the latest update with the 2 rframework apk files and everything worked fine.
Are you sure that it's just a copy of the stock apk folder?
The switch_resources script does all the final steps. renaming, delete file from stock, copy from new to stock and rename back.
As I still have to add loggin to this part you should see an output on screen showing what the script is/was doing.
While that part is running you should see a folder called 'temp' (inside firebox or 1 of the subfolders of firebox).
Inside the firebox/recompiled_APK you should find a folder for each app containing the resources.arsc file.
And as last check you can compair the size of the 3 diff apk files. (stock, recompiled and translated). If I'm not mistaken the translated is the smallest (how strange it may sound)
Also make sure the tool is in your root folder.
If possible send me the output you get during this fase.
Cosmoon said:
Hmm I fully tested the latest update with the 2 rframework apk files and everything worked fine.
Are you sure that it's just a copy of the stock apk folder?
The switch_resources script does all the final steps. renaming, delete file from stock, copy from new to stock and rename back.
As I still have to add loggin to this part you should see an output on screen showing what the script is/was doing.
While that part is running you should see a folder called 'temp' (inside firebox or 1 of the subfolders of firebox).
Inside the firebox/recompiled_APK you should find a folder for each app containing the resources.arsc file.
And as last check you can compair the size of the 3 diff apk files. (stock, recompiled and translated). If I'm not mistaken the translated is the smallest (how strange it may sound)
Also make sure the tool is in your root folder.
If possible send me the output you get during this fase.
Click to expand...
Click to collapse
They are identical, not even smaller so Although i was running this in cygwin on windows so it might be that. I'll try to boot it up in ubuntu to see if it's any difference Could be the su that's messing with me in cygwin :S
leolulz said:
They are identical, not even smaller so Although i was running this in cygwin on windows so it might be that. I'll try to boot it up in ubuntu to see if it's any difference Could be the su that's messing with me in cygwin :S
Click to expand...
Click to collapse
Never tried it on windows with cygwin, I'm running a debian linux, so that could be the thing that's messing it up.
Still good to know that only that part doesn't work on windows, I'll see if I can modify the script.
THANK YOU Cosmoon !
I asked because I want to remove unsued language from framework-res.apk to make it slimmer
Cosmoon said:
Never tried it on windows with cygwin, I'm running a debian linux, so that could be the thing that's messing it up.
Still good to know that only that part doesn't work on windows, I'll see if I can modify the script.
Click to expand...
Click to collapse
Ye, but it could work although, i never checked the su/root stuff, kinda rushed it yesterday to see how it worked Anyways it's a nice script and ill love to see this project getting further
pmeler said:
THANK YOU Cosmoon !
I asked because I want to remove unsued language from framework-res.apk to make it slimmer
Click to expand...
Click to collapse
Hmm never thought about that. Only thinking of adding stuff but having a option to remove can be handy to.
I'll add it in the next update.
Thx great idea man
Hello
I have one question with editing custom rom or stock rom
so I would like to edit rom but I do not know how
i just want add own app,change bootanimation,change name of rom,maybe edit style,add overclocking options,remove unusable app like talk.apk,tts.apk etc...
so i search tutorials on google but i understand it's complicated for me so please help me i try almost all tutorial that I found on google but I had no luck:crying:
i try with add my own app but when i install rom apps not show i just exctract rom with winrar then put app in to system/app then change bootanimation then zip and put in sdcard then install via clockwork recovery but bootanimation work perfect only apps not show!!What did I do wrong?:crying:
please give me detailed step by step tutorial or tell me how edit rom as i said I would only add apps,remove unused app,edit name of rom,speedup rom etc...
please help me I will very thankful to those who will help me
take a look here: how to edit ROM archive
here I just added a keyboard layout file to ROM archive then signed back
you have testsign.jar in attach -use it to sign your ROM
also look here: how to change splashscreen
-do not forget to sign back ROM file is not enough to make .zip
-do not copy apks to /system but /custpack
-if an app is not shown rename it no space between characters
i.e. if this is named "tapa talk" rename to "tapa_talk" or "tapatalk"
-do not touch system apps i.e. browser.apk, framework-res.apk
-to remove an app just delete it
Overclocking ...you will learn it later basically you need kernel sources for your phone edit related files and compile it back
for now is enough just to add/remove some apps, custom bootanimation and make your custom ROM
do not flash ROMs/ kernel not made for your phone possible hardware failure
edit custom rom
so here is my phone specifications
-samsung galaxy ace
-android version 2.3.7
-version of rom S5830XWKT3
-CPU armv6
-mod version cyanogenmod 7.2 nightly latest
-working version GINGERBREAD
so lets begin i want edit this nightly rom or any other but i just want add own app like opera mini,facebook edit bootanimation,and change setting for bluetooth so now
how i can add and where i must add my app in system/app or to other location?
how change or add bluetooth settings from other ROM in this nightly in nightly mod my bluetooth can't work?
how add new ringtones?
how change bootanimation and where i can find good bootanimation's?
how rename ROM when i install and go to settings/phone info i see name cyanogenmod how change this to my custom name?
how sign ROM?i have testsign.jar + sign.bat
please write me here step by step how make all this changes or give tutorial
BLiNKT said:
so here is my phone specifications
-samsung galaxy ace
-android version 2.3.7
-version of rom S5830XWKT3
-CPU armv6
-mod version cyanogenmod 7.2 nightly latest
-working version GINGERBREAD
so lets begin i want edit this nightly rom or any other but i just want add own app like opera mini,facebook edit bootanimation,and change setting for bluetooth so now
how i can add and where i must add my app in system/app or to other location?
how change or add bluetooth settings from other ROM in this nightly in nightly mod my bluetooth can't work?
how add new ringtones?
how change bootanimation and where i can find good bootanimation's?
how rename ROM when i install and go to settings/phone info i see name cyanogenmod how change this to my custom name?
how sign ROM?i have testsign.jar + sign.bat
please write me here step by step how make all this changes or give tutorial
Click to expand...
Click to collapse
firstly I tell you something when you are looking for stock rom for your Galaxy Ace here is howto
usually a rom is made by a tool named "kitchen" - it just help you to put things together and "cook" the ROM fortunately you have a well-know phone so there are tools/kitchen to prepare your rom
just give me a link to the rom you want to edit..
another way is to use an online tool like this but it seems it's too busy now..
edit custom rom
here is link for rom
http://download.cyanogenmod.com/?device=cooper&type=nightly
i want edit any of this nightly rom's
how use kitchen and make own rom
How To Make an Theme Stick In Cm-7.1
I just want to know how to make an theme stick in cm 7 i made an rom edited and everything and i added an custome theme but my theme keeps stying on defualt system and i want to make the other theme my defualt in my rom plz help
youtube is your solution if you want to learn
-search web for good bootanimation if you want to create your own one read here
-also check Ultimate Online Theme Kitchen for some bootanimations
-bootanimation is here \system\media\
-add ringtones here \system\media\audio\ringtones\
-to sign rom.. read my previous posts I gave you link to howto
-to change rom name edit build.prop
-add your apps in /system
-better do not touch bluetooth at this time
-I can't provide step-by-step howtos because this is too much work. I will think to make a tutor to tell you how I made a custom rom but this is too much for me at this time but there are a lot of tutors on XDA ... in Google enter this search string
Code:
site:xda-developers.com tutorial
or
site:xda-developers.com howto
Android Kitchen:good:
Hello, I need some help.
I want to make my own custom ROM for my Yarvik TAB467 with Android v4.0.4. Well, I have the ROM but,
1. I do not know how to extract the ROM's .img file (WINRAR, 7zip or other apps like Daemon TOOLS won't work);
2. I do not know how to decompile SystemUI.apk after extracting the ROM, then edit it and then recompiling back to apk
3. After I am done, how do I convert the extracted files back to .img?
Please tell me how to do this in the safest way so I won't brick my tablet Dx
Thanks in advance
EDIT: all I want to edit is the NavBar's color and giving it a Galaxy Tab look by the way. Or just the color.
909alex909 said:
Hello, I need some help.
I want to make my own custom ROM for my Yarvik TAB467 with Android v4.0.4. Well, I have the ROM but,
1. I do not know how to extract the ROM's .img file (WINRAR, 7zip or other apps like Daemon TOOLS won't work);
2. I do not know how to decompile SystemUI.apk after extracting the ROM, then edit it and then recompiling back to apk
3. After I am done, how do I convert the extracted files back to .img?
Please tell me how to do this in the safest way so I won't brick my tablet Dx
Thanks in advance
EDIT: all I want to edit is the NavBar's color and giving it a Galaxy Tab look by the way. Or just the color.
Click to expand...
Click to collapse
.img files are in yaffs file format use some scripts or Yaffs Explorer from Market
also to decompile .apk files use APK_Manager
mods to framework possible due to UOTKitchen
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
This simple little Mod For your galaxy y , 4 way reboot method
---------------------------------DWOYR-----------------------------------------
Instruction instalation
Base Band DXLL1 Build number DXMA1
Your ROM must be
*- DEODEX
*- Rooted (Optional)
backup your original framework-res.apk and android.policy.jar
downloads in attachment
Flash via CWM or Extract the zip and put file on system/framework folder set permision rw-r-r and replace
Reboot and
DONE ....................
Thanks to who make is possible
bumslayer
kahvitahra
evanlocked
zoe kura kura
triemo galanescreamo
and you
Screenshot
Good work
:good: :good: :good:
Great work!
Sent from Nemesis Pheonix
AW: [MOD] [GT-S5360] 4 way reboot methode for stock ROM
:thumbup:
MANY INSANE GREEETZ WITH TAPATALK BEATZ!!!
Hi, could you do it for me on a XXLH2 firmware please? I'm having computer problems at the moment and I can't work on it like that. I'll hand you the needed files if you need to.
Hii
You can try your self with this DXLL1 to your stock rom .
Make sure pull the framework-res.apk and android.policy.jar with rootexplorer or any file manager simillar with
Duplicate this stock DXLL1 on your sdcard and extract and replace file on it and zip again for
Antitipate bootloop
And now go into recovery mode and flash with my mod
Tell me if work on your stock rom
anyone here to make it working for duos?
Superb hight five om.
έ..έ..έ..έ.. :thumbup::thumbup:
Sent from my GT-S5360 using xda app-developers app
sembre said:
Hii
You can try your self with this DXLL1 to your stock rom .
Make sure pull the framework-res.apk and android.policy.jar with rootexplorer or any file manager simillar with
Duplicate this stock DXLL1 on your sdcard and extract and replace file on it and zip again for
Antitipate bootloop
And now go into recovery mode and flash with my mod
Tell me if work on your stock rom
Click to expand...
Click to collapse
Thanks but I've done such experiments before and foreign system files always seem to either cause me bootloops or force-closing on certain apps once the phone starts up.
It's not a problem for me and I'm willing to try because I could make a nandroid backup now, etc, but the problem is I have trouble restoring my sd-ext and all of my installed apps are stored there so a nandroid backup and restore could remove all of my important apps or I'm not sure maybe it won't but I can't take the risk for now.
Please if you could do the procedure I would be very grateful. I've attached my framework-res.apk and android.policy.jar if you decide to do it.
Mitko said:
Thanks but I've done such experiments before and foreign system files always seem to either cause me bootloops or force-closing on certain apps once the phone starts up.
It's not a problem for me and I'm willing to try because I could make a nandroid backup now, etc, but the problem is I have trouble restoring my sd-ext and all of my installed apps are stored there so a nandroid backup and restore could remove all of my important apps or I'm not sure maybe it won't but I can't take the risk for now.
Please if you could do the procedure I would be very grateful. I've attached my framework-res.apk and android.policy.jar if you decide to do it.
Click to expand...
Click to collapse
ok ill try this night to mod your apk and jar
Sent from my GT-S5360 using xda premium
Bootloop on DXLC1 stock rom.
Put method instead of Zip
You should post a full method of adding files in framework-res.apk and android policy instead of posting the zip.
SO that other users can use it also.
GOOD JOB my BRO...
Regard
Error 404
Can you please do one for firmware S5360TAJKK3? My S5360 is from AU, which is S5360T with S5360TAJKK3 firmware. Thanks in advance.
Great work
Good job .. Flashing is easy than modifying system files each time uh get back to stock
But can you please add a screenshot button too ??? :0