For those who want to really learn how to Developing
Introduction
Code:
/-* i will help YOU as much as i can, but dont spam me with PM
/-* I will explain ALL Things here from Basic Rom create to 20 Toggles in
/-* Statusbar, 7 Lockscreenmod, Scrolling Cache diabling, Custom Bootanimation
/-* enabling and more other Things
/-* What i dont want:
/-* If some people dont like this Guides, DONT POST anything HERE!
/-* Dont spam me with pm (said already) [If your Rom wont boot, Upload it]
/-* here!and i will take a look on that ;)
Soo here is a Index :laugh:
Introduction
How to extract Rom
How to de-odex Rom
How to make a fully booting Custom Rom (With no Modifications!)
How to mod your Rom (EXTREMLY) :silly:
Include Mods in Rom and finish your Work
Troubleshooting
Code:
The Thread will be incomplete till next week cause it takes long Time to write all Things here ;)
Stock Roms Linked here (Thanks to samfirmware.com)
S5570JPKT2
S5570XWKTN
S5570XWKTH
Download the Files where u can get ur Rom Files for ur own Custom Rom which will be flashable later! (It takes some Time to download it )
Click to expand...
Click to collapse
Programs needed:
[*]MagicISO
[*]WinRar (x32 Download) (x64 Download)
Open the downloaded S5570XXXXX_S5570XXXXX_XXX.zip
Place the S5660XXKTL_S5660XXXXX_S5570XXXXX_HOME.tar.md5 on your Desktop
Click to expand...
Click to collapse
Now right click the extracted File and choose "Open with ..."
Then click "Browse..." (Scroll down and Double Click on WinRar, after u done it, Double Click on WinRar once more)
WinRar will open and then extract system.rfs in ur Desktop
Click to expand...
Click to collapse
Now install and open MagicISO!
After u done it, chose "Open Image File."
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Then choose "All Files (*.*)" before, take a Click here:
After it, choose your system.rfs from your Desktop and you will see all Files
Click to expand...
Click to collapse
Ok lets resume it
Now create a Folder named "extracted" on your Desktop!
After it, go to MagicISO and select all Files u see there:
And let all extract ...
Click to expand...
Click to collapse
Youtube Tutorial:
De-Odexing
Now we need to sort all Files first
Create a folder on your Desktop named "Rom"
Now create in the Folder "Rom", 2 new Folders: "META-INF" and "system"
Now push all Files and Folders from "extracted" to "system" folder in "Rom" folder which is placed on Desktop
Click to expand...
Click to collapse
Setup DSIXDA Kitchen on Windows for DE-Odexing !
needed:
- Java6 U33
- cygwin_packages
- DSIXDA Kitchen (Mirror by me) *all Credits to DSIXDA*
So after u have installed Java6, we can go to installing DSIXDA Kitchen
extract all Files u find in cygwin_packages.zip to an folder (name folder how u want). Then install Cygwin. Dont know how the structure of Package looks
If u get an error while install, press "ok", its normal!
Here:
If u come into the screen where u need to select what packages u must install,
Click the first "All" u see there:
then it takes a while to install, wait a bit!
After install run Cygwin for 1 Minute!
Close it and go to C:\cygwin/home/yourUsername/
and create a folder named "kitchen"
Now u extract the DSIXDA_Kitchen.zip in this Folder!
After u are done, open cygwin and type the fllowing commands:
Code:
cd kitchen
Press Enter
then
Code:
chmod 777 ./menu
Press Enter
then
Code:
./menu
Press Enter
Now the kitchen loads :victory:
Click to expand...
Click to collapse
To de-odex ur Rom:
go to C:\cygwin/home/yourusername/kitchen
now rename the "Rom" Folder to WORKING_Rom and push it in kitchen Folder ...
After u done it, open Cygwin and enter the codes posted above
Now press "0" and press enter
Then press "11" and press once more Enter!
The kitchen asks u for ur Decompiling way, press "b" (it will de-odex framework and apps folder)
now the Kitchen asks you: "enable logging to file?" choose/press: y
Now work takes place and u need to/wait a few minutes till all files are de-odexed
Click to expand...
Click to collapse
Rom Making
Requirements
[*]DEV_Tutorial.zip
Click to expand...
Click to collapse
So far so good
now we gonna make the Rom ...
First extract DEV_Tutorial.zip in any Folder :laugh:
In it there is an Kernel, Format Scripts, WiFi Modules and META-INF
Then open ur "Rom" Folder now move boot.img and mkfs.ext4;format.sh (maybe its only format) in the "Rom" Folder!
After its done open META-INF in both Folders
Move all Folders and Files in META-Inf from extracted File in META-INF from ur "Rom" Folder.
Now your Updater-Script is prepared ...
U dont need to make any changes anymore
Now go to system/lib in your "WORKING_Rom" Folder and delete "modules" Folder
Also delete Folders in system/ : "wifi" and in system/etc : "wifi"
After u done it, place the "wifi" folder from system/ in the Folder u extracted in the system/ folder of your Rom
and also the WiFi folder from system/etc/ from the extracted file in system/etc/ of your Rom :cyclops:
Oh i forgot that u can create a Folder in system/etc/ named "init.d"
Click to expand...
Click to collapse
now download THIS File
I thought u have opened your Rom Folder already!
So we are going to extract basic things like the custom bootanimation support,
or busybox and root :angel:
Extract DEV_Tutorial2.zip to an Folder
now push all Files which are from (extracted zip) system/app/ Folder in system/app/ in your Rom!
Push all files from (extracted zip) system/bin/ Folder in system/bin/ in your Rom!
And the last one:
Push all Files from (extracted zip) system/xbin/ Folder in system/xbin/ in your Rom!
The Permissions for Root, Busybox, Toolbox are already setted in Updater-Script ...
Click to expand...
Click to collapse
Now we gonna barebone your Rom that its flashable
Files u can delete to make it leightweight as u can [really, really recommend]:
dlna.apk
GenieWidget.apk
GoogleMail.apk (u have Mail.apk)
GoogleFeedback.apk
GoogleQuickSearchBox.apk
Maps.apk
Memo.apk
Protips.apk
SamsungApps.apk
SamsungAppsUNA3.apk
SamsungWidget_ProgramMonitor.apk
SamsungWidget_StockClock.apk
serviceModeApp.apk
Stk.apk
Street.apk
Swype.apk
Talk.apk
talkback.apk
thinkdroid.apk
VoiceSearch.apk
Youtube.apk
all are in system/app Folder placed!
Click to expand...
Click to collapse
Add Custom Bootanimation
U can download one from HERE Its a Google Bootanimation
But ok, download it and go to system/medi of your Rom ...
Now delete bootsamsung.qmg and put the downloaded Bootanimation.zip in! (U can change it later)
Click to expand...
Click to collapse
Flashing!
Atleast u need to zip your Rom and flash it with CWM!
Thats only for testing but later i will tell u how to sign it correctly for publishing!
Click to expand...
Click to collapse
How to add 15 Toggles
first decompile your de-odexed SystemUI.apk,
using apktool
if u installed apktool correctly, u need to push framework-res.apk and twframework-res.apk and SystemUI.apk in apktool folder!
After u r ready, Press SHIFT and press right-Klick at the same time anywhere in the apktool folder, then press "open in command window here" or something like that, then type in:
1.
Code:
apktool if framework-res.apk
2.
Code:
apktool if twframework-res.apk
3.
Code:
apktool if SystemUI.apk
4.
Code:
apktool d SystemUI.apk
Click to expand...
Click to collapse
After its ready, open "SystemUI" Folder and open "SystemUI/smali/com/android/systemui/status/StatusBarService.smali" with Notepad++
(using strg+f , after it u see the search window) now find:
Code:
0x7f030002
after it mod the example to the modded one!
Code:
[COLOR="Lime"]const v8, 0x7f030002[/COLOR]
invoke-static {p1, v8, v10}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;
move-result-object v4
.end local v4 [COLOR="Lime"]#qsv:Lcom/android/systemui/statusbar/quickpanel/QuickSettingsView;[/COLOR]
check-cast v4, [COLOR="Lime"]Lcom/android/systemui/statusbar/quickpanel/QuickSettingsView;[/COLOR]
[COLOR="Lime"].restart local v4 #qsv:Lcom/android/systemui/statusbar/quickpanel/QuickSettingsView;[/COLOR]
goto :goto_0
now modify this points to
Code:
const v8, [COLOR="red"]0x3030003[/COLOR]
invoke-static {p1, v8, v10}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;
move-result-object v4
.end local v4 [COLOR="Red"]#Lcom/lidroid/systemui/quickpanel/PowerWidget;[/COLOR]
[COLOR="Red"]check-cast v4, Lcom/lidroid/systemui/quickpanel/PowerWidget;[/COLOR]
.local v4, [COLOR="red"]qsv:Lcom/lidroid/systemui/quickpanel/PowerWidget;[/COLOR]
[COLOR="red"]invoke-virtual {v4}, Lcom/lidroid/systemui/quickpanel/PowerWidget;->setupWidget()V[/COLOR]
goto :goto_0
save it
Now open AndroidManifest.xml
add after </applications>
Code:
I´ll add it later!
and save it
Click to expand...
Click to collapse
Then download and extract THIS and extract it to anywhere, now open "smali/com/" now push "lidroid" folder in the decompiled "SystemUI/smali/com/" Folder! (Without that folder your Satusbar will FC)!
Click to expand...
Click to collapse
now re-open apktool comand window and type in:
Code:
apktool b SystemUI
Click to expand...
Click to collapse
After u done it, u have in "SystemUI/build/apk" Folder 2 Files named:
"resources.arsc" and "classes.dex" !
Now extract the non-decompiled SystemUI.apk using WinRar!
Push all files from the opened APK into any Folder, like "SystemUI" Folder (like me) on your Desktop. Now push "resources.arsc" and "classes.dex" and "AndroidManifest.xml" files from "SystemUI/build/apk" Folder in the extracted SystemUI Folder ...
Click to expand...
Click to collapse
Now select all files in "Extracted" (SystemUI) Folder, and make an right click!
Now choose: "Add to Archieve" in 7zip Option
Name it in the line wher u can change the name to "SystemUI.apk"
and Click ok!
Click to expand...
Click to collapse
Then download APKMULTITOOL!
Extarct it to a folder called "APkmultitool" now push !All! .apk Files from /framework and /apps Folder in
"place-here-for-signing" Folder
After u done it, open script.bat and let it load
Then choose option 16 and let it sign!
After it push all apps from /app Folder back in /app Folder of your Rom and all files from /framework to Framework Folder of your Rom!
Click to expand...
Click to collapse
Then add lidroid-res.apk in /framework Folder and
Oh the pre-last time that its reserved
Troubleshooting ...
Q: Java is not recognized as an internal or external Command!
A: Go to "Computer" then "System Properties" then "Advanced Settings" then "Enviroment Variables"!
i know its for minecraft but it works also for your problem!
Click to expand...
Click to collapse
ok one more for reservation
thanks good guide :good:
Thank you so much for creating the thread within minutes of me asking you for a guide you yruly are awesome.
Sent from my GT-S5570 using xda app-developers app
thanks :good: waiting guide
No offense meant, but where is the compile part mentioned in the subject? From the index it looks like a unzip & mod & repack series of guides. Please, unless you mean to deal with compiling AOSP/CM/AOKP from sources, edit your subject to make the topic more clear and avoid confusion.
Thank you.
Yeah ok i´ll change the thread Name ...
How to in dev? Lol!!!
Sent from my GT-S5570 using Tapatalk 2
yeah cause i will post tutoriials later which makes 20 Toggles or 7 Lockscreenmod,
Long Press To Skip Volume and others
good tutorial i like tutorials with pictures
and Videos!
I´ll also upload videos to avoid any errors in editing and istalling
Can u make tutorial how to porting lockscreen from other rom ( galaxy mini rom ) ?
Can u make tutorial how to change smali ex : com.larik.koncong.kecebong , to com.laris.keren.ikan
if yes please create guides because iam need now
thanks , good thread .
we extract system folder contains , how should we make meta-inf folder ?
torbatepak said:
we extract system folder contains , how should we make meta-inf folder ?
Click to expand...
Click to collapse
u can copy from other roms , and create updater script own . ( optimal )
Related
i am just copying and pasting capez's work all... credits goes to him
here's the guide...
1) First of all, you need to download and install APK MANAGER:
http://forum.xda-developers.com/showthread.php?t=695701
2) Extract with WinRAR, from the ROM you want to modify, the file framework-res.apk, that you can find in the directory \System\framework\.
3) Go to the apk manager folder and place the framework-res.apk file in the folder "place-apk-here-for-modding".
4) In the apk manager folder, double click on the file "Script". A cmd window will open.
5) Where it says "Please make your decision", write "22" and enter. Then enter "1" and enter. Then enter "9" and enter.
The script will decompile the framework-res.apk.
6) Now go to your apk manager folder, go to Projects\framework-res.apk\res\anim\.
In this folder there are the animations of your rom. They consist in some .xml files decompiled.
7) Download this:
http://www.mediafire.com/?1qjwtotg1r8umm1
8) Copy the files from the folder "anims" of the zip downloaded into the anim folder and you are asked to replace the files; choose yes. Then copy also the files from the folder "other_files" to the anim folder.
9) Now go to your apk manager folder, go to Projects\framework-res.apk\res\values\. Edit the file integers.xml and put these two lines under the line of "shortAnimTime":
<integer name="config_activityShortDur">150</integer>
<integer name="config_activityDefaultDur">220</integer>
Save.
10) Return to Script. Enter "11" and enter.
The script will rebuild the framework-res.apk.
11) You are asked if this is a system application. Enter "y" and enter. Then a second question appears. Enter newly "y".
12) Then after it processes, Don't press anything & DON'T CLOSE THIS WINDOW!!! A new folder "keep" is created in the apk manager folder. Go inside it and delete the file "resources.arsc". Now go inside keep\res\anim\ and delete every file with the same name as every file of the "anims" folder of the zip downloaded.
Then return to Script and press enter. It processes, then if everything went ok, in the folder "place-apk-here-for-modding" a file "unsignedframework-res.apk" is created. Copy it outside and rename it "framework_res.apk".
13) Now you can create a flashable zip or you can simply push it to your system.
CONGRATRULATIONS!!! YOU ARE DONE!!!
And if you think this tutorial is useful, CLICK THANKS!!!
Video of this mod working:
http://www.youtube.com/watch?v=vf1U_30Ngfk
digkong said:
13) Now you can create a flashable zip or you can simply push it to your system (but you have to sign the apk).
Click to expand...
Click to collapse
You don't sign system apks.
thanks just corrected it..
digkong said:
i am just copying and pasting capez's work all... credits goes to him
here's the guide...
1) First of all, you need to download and install APK MANAGER:
http://forum.xda-developers.com/showthread.php?t=695701
2) Extract with WinRAR, from the ROM you want to modify, the file framework-res.apk, that you can find in the directory \System\framework\.
3) Go to the apk manager folder and place the framework-res.apk file in the folder "place-apk-here-for-modding".
4) In the apk manager folder, double click on the file "Script". A cmd window will open.
5) Where it says "Please make your decision", write "22" and enter. Then enter "1" and enter. Then enter "9" and enter.
The script will decompile the framework-res.apk.
6) Now go to your apk manager folder, go to Projects\framework-res.apk\res\anim\.
In this folder there are the animations of your rom. They consist in some .xml files decompiled.
7) Download this:
http://www.mediafire.com/?1qjwtotg1r8umm1
8) Copy the files from the folder "anims" of the zip downloaded into the anim folder and you are asked to replace the files; choose yes. Then copy also the files from the folder "other_files" to the anim folder.
9) Now go to your apk manager folder, go to Projects\framework-res.apk\res\values\. Edit the file integers.xml and put these two lines under the line of "shortAnimTime":
<integer name="config_activityShortDur">150</integer>
<integer name="config_activityDefaultDur">220</integer>
Save.
10) Return to Script. Enter "11" and enter.
The script will rebuild the framework-res.apk.
11) You are asked if this is a system application. Enter "y" and enter. Then a second question appears. Enter newly "y".
12) Then after it processes, Don't press anything & DON'T CLOSE THIS WINDOW!!! A new folder "keep" is created in the apk manager folder. Go inside it and delete the file "resources.arsc". Now go inside keep\res\anim\ and delete every file with the same name as every file of the "anims" folder of the zip downloaded.
Then return to Script and press enter. It processes, then if everything went ok, in the folder "place-apk-here-for-modding" a file "unsignedframework-res.apk" is created. Copy it outside and rename it "framework_res.apk".
13) Now you can create a flashable zip or you can simply push it to your system.
CONGRATRULATIONS!!! YOU ARE DONE!!!
And if you think this tutorial is useful, CLICK THANKS!!!
Video of this mod working:
http://www.youtube.com/watch?v=vf1U_30Ngfk
Click to expand...
Click to collapse
Nice!!! I will give a try. Thanks!
digkong said:
thanks just corrected it..
Click to expand...
Click to collapse
Np Cool guide.
just testing,i'll let u know about result
edit 2 : sorry for the first edit i was mistaken,it works great
Probably better suired in Android themes and apps
good tutorial! But I suggest you to mention that IT NEEDS to resign the apk after the tutorial is finished....we need to take the META-INF from the res apk decompiled, then open the unsigned apk, delete its META-INF and paste the META-INF from the original framework-res.apk...otherwise it won't work!
Interesting, thanks.
Very nice, thanks for details.
memnoc said:
good tutorial! But I suggest you to mention that IT NEEDS to resign the apk after the tutorial is finished....we need to take the META-INF from the res apk decompiled, then open the unsigned apk, delete its META-INF and paste the META-INF from the original framework-res.apk...otherwise it won't work!
Click to expand...
Click to collapse
i didn't do that and it works for me :S
evanbigfan said:
i didn't do that and it works for me :S
Click to expand...
Click to collapse
Worked for me too without touching the META-INF
Sent from my HTC Desire HD using xda premium
evanbigfan said:
i didn't do that and it works for me :S
Click to expand...
Click to collapse
Yep, I trust you, and I was surprised too when the ROM doesn't boot cause resources apk usually don't need to be signed at all, but once I signed the frame everything work.. strange.. anyway don't care about it, the tutorial is very clear and well organized well done and Thanks
Inviato dal mio HTC Desire HD usando Tapatalk
memnoc said:
Yep, I trust you, and I was surprised too when the ROM doesn't boot cause resources apk usually don't need to be signed at all, but once I signed the frame everything work.. strange.. anyway don't care about it, the tutorial is very clear and well organized well done and Thanks
Inviato dal mio HTC Desire HD usando Tapatalk
Click to expand...
Click to collapse
thanks any way for the info ,it may be usful in other issues
Thanks for the tutorial, these animations are great However,
I flashed it on Runny 4.0, all the animations work, but when I adb pushed it to /system/framework the market force closed, and then when I rebooted all my accounts were gone?
i keep encountering a problem after I press 9.
"an error occured, please check the log"
then I press 21 to see
"java is not recognized as an internal or external command, operable program or batch file."
"could not find _________________" bunch of directories.
help~~
P00t said:
i keep encountering a problem after I press 9.
"an error occured, please check the log"
then I press 21 to see
"java is not recognized as an internal or external command, operable program or batch file."
"could not find _________________" bunch of directories.
help~~
Click to expand...
Click to collapse
http://www.java.com/en/download/help/path.xml
This will help
rayford85 said:
http://www.java.com/en/download/help/path.xml
This will help
Click to expand...
Click to collapse
ahhh that didnt work as well but i found the solution to it~ i had to search deeper into xda forum LOL
i got it working. i had to change the path.
P00t said:
ahhh that didnt work as well but i found the solution to it~ i had to search deeper into xda forum LOL
i got it working. i had to change the path.
Click to expand...
Click to collapse
Lol that's what the link was to show you how to setup your path, glad you got it
rayford85 said:
Lol that's what the link was to show you how to setup your path, glad you got it
Click to expand...
Click to collapse
Oh I thought that link was just to send me to the download link to JAVA.
im sorry. finally made the ICS ANI!
Hi...
this tutorial show you how to port stock sam keyboard to a custom rom ( i don't know work on CM. now i use emanoN, next time flash CM test it.)
you need this files and folders ... take from your stock rom odin flashable file: (use magicIso or UltraIso)
- T9DB folder (from csc.rfs file)
- AxT9IME.apk and AxT9IME.odex (from system.rfs file in app folder)
- touchwiz.xml (from system.rfs file in etc->permissions folder)
- libdhwr.so and libXt9core.so (from system.rfs file in lib folder)
first deodex your AxT9IME.apk (see post #2)
make a flashable zip file and put stock files like this: (or use attachment zip file and delet my files and put your files.)
- T9DB folder in: yourzip/system/
- touchwiz.xml in: yourzip/system/etc/permissions
- libdhwr.so and libXt9core.so in: yourzip/system/lib
- deodex AxT9IME.apk in: yourzip/system/app
move zip file to SDcard and reboot to recovery(CWR) and select "install zip from SD". after install go to advanced menu and wipe dalvik cache.
finish! now reboot and use Samsung keyboard with your language.
# if your rom is odex (like emanoN) go to system/app with root explorer, find AxT9IME.apk and AxT9IME.odex and add ".bak" to end of two files then reboot to recovery.#
meddel east rom keyboard with this languages:
English(US)-English(GB)-France-Arabic-Persion-Urdo-Korean (all rom have english and Korean)
Download
How to deodex ...
Install Java Runtime Enviroment on your PC.
Download backsmali.jar and smali.jar from attachment.
Make a folder like edit in root of a drive (ex: C:\edit )
Put backsmali.jar and smali.jar files in this direction.
You need 7 odex file from stock framwork:
- android.policy.odex
- bouncycastle.odex
- core.odex
- core-junit.odex
- ext.odex
- framework.odex
- services.odex
Put all files in "edit" folder. Now put AxT9IME.odex file in this folder.
Run windows cmd (go to start menu, Run... and type cmd and then enter)
First line go to "edit" folder by insert this commend : (you can copy and past this comment from here)
Code:
cd\edit
Next, insert this line for backsmali AxT9IME.odex :
Code:
java -jar baksmali.jar -x AxT9IME.odex
Now you have a out folder. Don't touch it.
Insert this commend for smali your work :
Code:
java -jar smali.jar out
Now in "edit" folder you have a file like this: out.dex
Rename file to classes.dex , open your AxT9IME.apk with winRar (or any program like this) push your .dex file to .apk file ... WooW, now you deodex your fist android system app.
mate i extracted AxT9IME.apk and its odex version from a custom rom ( original keyboard ) and want to paste in another custom rom i.e carbon so what step i need to skip as i have already these files.
or should i flash with ur zip file ?
do i need to delete old keyboard files from my carbon rom ?
you can delet old files but have a copy off that for backup ( or add .bak to end of the old files.)
my zip file only Arabic, Persian and urdo, make your keyboard zip file. first deodex your AxT9IME.apk you want to have in your rom-very important to deodex this file.
then make a flashable zip file and flash it from CWR.
(if you don't know how to created zip file download my zip file but delet inside files and put your files, if you can make it skip downloading my zip file.)
flashed ur zip but got 1 problem :
this is original key board :
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
this is ur keyboard, keys not visible :
mor_1228 said:
flashed ur zip but got 1 problem :
this is original key board :
this is ur keyboard, keys not visible :
Click to expand...
Click to collapse
1- your shot say your phone is 480X320 lcd (like galaxy ace) here for galaxy mini user.
why you flash galaxy mini package on other phone?
2- you don't need flash my zip file only put your stock rom files in zip file. all file like: apk-xml-lib and T9DB folder. it,s work for me very good!
bro u extracted stock files from which format as i have original rom in MD5 format.
if u got another format kindly tell me the source. thank you.
mor_1228 said:
bro u extracted stock files from which format as i have original rom in MD5 format.
if u got another format kindly tell me the source. thank you.
Click to expand...
Click to collapse
right click on MD5 file and select open as. select winRAR and open file. drag and drop system.rtf file on your desktop. do this way for csc.rtf.
open csc.rtf file with "magic iso" or "ultra iso" progeram. drag and drop T9DB folder on your desktop.
open system.rfs file, go to app folder and drag and drop AxT9IME.apk and AxT9IME.odex. then go to lib folder and find "libdhwr.so" and "libXt9core.so". copy to desktop. go to etc folder then go to permissions folder and find touchwiz.xml file and copy on desktop.
for deodex AxT9IME.apk , see post #2 : for that 7 files you need, go to framework folder. you find some odex file find:
- android.policy.odex
- bouncycastle.odex
- core.odex
- core-junit.odex
- ext.odex
- framework.odex
- services.odex
files and drag and drop to your desktop.(use smali tools at post #2 for deodex)
A problems :
1 file is in rfs for not rtf as u said.
2 cant find T9DB folder in csc.rfs
B sucess :
found all 12 files like
android.policy.odex
- bouncycastle.odex
- core.odex
- core-junit.odex
- ext.odex
- framework.odex
- services.odex
AxT9IME.apk and AxT9IME.odex
libdhwr.so" and "libXt9core.so
touchwiz.xml
successfully done found T9DB folder it was in recovery folder: it was deep inside folders. but now how to make flashable zip file bro ?
mor_1228 said:
A problems :
1 file is in rfs for not rtf as u said.
2 cant find T9DB folder in csc.rfs
B sucess :
found all 12 files like
android.policy.odex
- bouncycastle.odex
- core.odex
- core-junit.odex
- ext.odex
- framework.odex
- services.odex
AxT9IME.apk and AxT9IME.odex
libdhwr.so" and "libXt9core.so
touchwiz.xml
successfully done found T9DB folder it was in recovery folder: it was deep inside folders. but now how to make flashable zip file bro ?
Click to expand...
Click to collapse
Does it really need to be BIG and BOLD and RED??????
Done everything, replaced ur files with my files so no need to make new file, that file flashed successfully. but mater after restart i got this error and no keyboard was working i also renamed old keyboard to .bak
mor_1228 said:
Done everything, replaced ur files with my files so no need to make new file, that file flashed successfully. but mater after restart i got this error and no keyboard was working i also renamed old keyboard to .bak
Click to expand...
Click to collapse
do you ad .bak to both apk and odex old files?
are you deodex your new keyboard app?
yes mate added .bak to single file as my earlier keyboard was also deodex yes i deodexed my new file also u can see screenshot.
hey, what about port stock camera to CM7 using this TUT?
mor_1228 said:
yes mate added .bak to single file as my earlier keyboard was also deodex yes i deodexed my new file also u can see screenshot.
Click to expand...
Click to collapse
okey one thing ... wipe dalvik cache with recovery/advanced menu if don't work send for me your update.zip file. i work on it!
hey, what about port stock camera to CM7 using this TUT?
Click to expand...
Click to collapse
no you can't ... use other cam apps like viganti or MIUI cam.
try porting stock contacts.apk to cm7
Dialeractivtab - contacts- messaging-music- camera- ...
is based on twframework-res.apk and no one can port!
but some app maybe, like Myfiles. iwork on it ...
tried bro not working this is my zip file : both links are same
http://www.mirrorcreator.com/files/1O6P5WET/Samsung_Keyboard(meddel_East).zip_links
mor_1228 said:
tried bro not working this is my zip file : both links are same
http://www.mirrorcreator.com/files/1O6P5WET/Samsung_Keyboard(meddel_East).zip_links
Click to expand...
Click to collapse
hi man, i see your patch. all thing is okey but you put wrong lib file!
you put "libhardware.so" file in lib folder.
you must put "libdhwr.so" in your patch!
fix your patch, go to CWR and "wipe dalvik cache" then install your zip patch.
luky guy! you changed the hardware lib file and your phone work good! checke all your sensor... test all of them work?
mor_1228 said:
bro u extracted stock files from which format as i have original rom in MD5 format.
if u got another format kindly tell me the source. thank you.
Click to expand...
Click to collapse
See this video to find out how to extract .tar.md5 rom and take out system files from them. It also shows you how to extract .rfs files.
http://yagyagaire.blogspot.com/2012/02/video-extracting-system-files-and.html
After few days surfing, asking & testing. I decide to make a easily tutorial for theming in Windows, I think as long you know to use computer, they is nothing much difficult to theming/modifying the .apk yourself.
My guide only cover:
De-compile & compile of .apk
changing the .png file inside .apk
Modifying tricky .9.png file.
Modifying .xml file.
Zip Align the .apk
What you need:
Your phone must be ROOT and DEODEXED.
CWM pre-install recommended, you can simply get this function by installing superatmos / Lucifr kernel.
7-zip - for replacing file inside .apk
JRE (Java Runtime Environment) - required to run the APKtool
Android-SDK - must install before APKtool & Zipalign work.
APKTool Download the apktool & also apktool-install-windows.
Before Start:
Always remember make a backup for any .apk file you plan to change or amend.
Recommended make a flash-able version of origin not amend .apk in-case something went wrong, you can always flash back the original file via CWM. Example if you did something wrong in your systemUI.apk (for statusbar) it will probably make your phone nearly impossible access any part due to unstop FC.
I also like to take this opportunity to THANKS the following user help, without them, all this is not possible.
ronhoover88
superatmos
tarunagg
Vertumus
De-compile & Compile of .apk
Why this step is required:
You need to de-compile the .apk before you can correctly modified the tricky .9.png and also to see a readable .xml for amending.
Step:
Install JRE (Java Runtime Environment) & Android-SDK.
Download the apktool & also apktool-install-windows, extract the file and put inside your Windows Folder.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Open command prompt (Start - Run - CMD)
Before de-compile the .apk, make sure you copy out your current phone framework-res.apk & twframework-res.apk, lidroid-res.apk only required if you using lidroid-res.apk in your framework.
Code:
[B]apktool if [location of .apk][/B]
Example:
apktool if D:\APK\framework-res.apk
apktool if D:\APK\twframework-res.apk
apktool if D:\APK\lidroid-res.apk
Now, De-compile the .apk
Code:
[B]apktool d [filename.apk] [directory][/B]
Example: apktool d D:\framework-res.apk D:\De-compile
If sucess, you will seen the following line in your CMD.
The De-compile folder will be generate as seen below.
Now you can amend whatever you like to amend, after done, proceed to following step.
Compile back:
Code:
[B]apktool b [directory][/B]
Example: apktool b D:\De-compile
Extra build folder will appear inside your De-compile folder, all file inside here already compile and can use later in your Android phone.
Changing/Replacing the .png file inside .apk
Amending normal .png no need to de-compile, just extract the file and modified using any photoshop tools or simply replace the .png
Just right click any .apk file and select 7-zip extract to, as seen below:
Now go to the extracted folder and amend / replace any .png file you like to replace. (Remember .9.png file cannot just simply replace, check following post for instruction.)
Modifying tricky .9.png file.
The .9.png cannot just simply amend using any photoshop and put back, because by doing so, either the amend .9.png won't appear or just simply give you FC in your phone when running it.
What to do:
De-compile the .apk.
Below showing the different between before and after de-compile of .9.png, as you can seen on right image,they is extra 4 black dot + 1 black bar and surrouding with transparent bar, all this area must be keep and not amend during photoshop. The de-compile image will auto increase 1 x pixel + 1 y Pixel.
Just amend without touching those area, save it and then put back to correct folder and compile back.
Modifying .xml file
After you have de-compile the .apk, now all inside .xml is readable where you can make some changes on the color selection, clock position and etc. by just simply open with notepad and modified.
Before de-compile, the .xml look like below which is not readable and understand by human.
After de-compile, now the .xml is readable and understand by human.
Now you can amend what ever you like, Google/Search XDA forum for which .XML to amend.
Use this color code checker site for getting your desire color code.
After done, don't forget, you must compile back the .xml before it is understandable by Android OS.
Screenshot below showing modifying the sub text .xml to ICS blue color.
Change all
Code:
from android:color="#ffffffff to [B]android:color="#ff3f9bbf[/B]
at zzz_tw_secondary_text_sub.xml
Zipalign the .apk
Why this step is required:
You need to align the .apk to let the Android phone run the modified .apk perform much smoother and better, if you have more not align .apk file in your phone, it will eventually drag down your entire phone performance.
This step is not necessary but recommended.
Step:
Open command prompt at your Android-SDK Tools folder
Type following command and run
Code:
[B]zipalign -fv 4 [filename.apk] [filename-new.apk][/B]
Example: zipalign -fv 4 framework-res.apk framework-res-new.apk
A new Zipalign .apk will be generate as seen below, highlight in blue.
Zipalign in batch, save following code in .bat and put in your folder that contains .apk file. It will batch running zipalign all .apk inside, this guide I found from user Grumpy Old Man post at RootWiki. Thanks for this easier method.
Code:
@echo off
REM Batch file to recursively zip align *.apk files in a directory
REM and its sub-directories. This is significantly easier and faster
REM than manually zip aligning them.
@echo Zip aligning now...
for /R %%X in (*.apk) do zipalign 4 "%%X" "%%~dpX%%~nX.new"
@echo Replacing non-aligned files with zip aligned files...
for /R %%X in (*.new) do move /Y "%%X" "%%~dpX%%~nX.apk"
@echo Zip aligning done, press any key to exit
pause
Final Step
OK, done everything? now you need to put back to your phone with 2 method
Flash via CWM - highly recommended
Root Explorer - not recommended as it may not properly change for Statusbar theming.
Using CWM
Make a flash-able .zip to flash at CWM
Not sure how to do, let use a easier way, take any flash-able .zip, use 7-zip and choose open archive as seen below:
Now just drag and drop all your modified .apk inside the .zip file, choose YES when ask "Confirm File Copy" as seen below:
Copy the modified .zip to your root SDCARD and restart to CWM and install. Done!
Using Root Explorer
Temporary copy your modified .apk to your /system/csc
Right click choose permission and set as below:
Move your current .apk to correct directory /system/app
Done! This method is not recommended for framework-res.apk & systemUI.apk, better way still flashing via CWM.
ENJOY HAPPY THEMES!
My Achievement
Below is what you can get after themes. Enjoy!
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FROM BELOW, NOT RELATED TO S II - i9100G
CENTER CLOCK for SONY XPERIA Z phone.
De-compile the SystemUI.apk, then change some code at status_bar.xml in /res/layout
Step 1 - Find
Code:
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock"
android:gravity="left|center" android:id="@id/clock" android:paddingLeft="6.0dip"
android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
Step 2 - Replace Step 1 code with
Code:
<com.android.systemui.statusbar.policy.Clock android:id="@id/clock" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:gravity="center_horizontal|center"
android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:singleLine="true" />
Step 3 - Then search for
Code:
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
and now cut Step 2 code and paste in bottom Step 3 code.
Step 4 - Lastly find
Code:
<LinearLayout android:orientation="horizontal" android:id="@id/ticker"
and past following code beside it.
Code:
android:background="@drawable/status_bar_background"
Save the edited status_bar.xml
Sony Xperia Z Center Clock Screenshot.
Very nice tutorial!i'm too lazy to type/make a tutorial..lol its good for sharing the idea..:thumbup:
Sent from my GT-I9100G using Tapatalk 2
fauzi_91 said:
Very nice tutorial!i'm too lazy to type/make a tutorial..lol its good for sharing the idea..:thumbup:
Sent from my GT-I9100G using Tapatalk 2
Click to expand...
Click to collapse
Thanks, I am still learning.
u forget to mention the deleting of edited xmls file and resources.arsc
samyam2002000 said:
u forget to mention the deleting of edited xmls file and resources.arsc
Click to expand...
Click to collapse
My final step is drag back and save using 7-zip, the file will automatic replace, no need manual delete.
By the way, thanks for highlighting removing of resources.arsc, add-in this step at final step now.
i dont know if i am doing it right what what exactly does a build folder contain a folder or .apk file
samyam2002000 said:
i dont know if i am doing it right what what exactly does a build folder contain a folder or .apk file
Click to expand...
Click to collapse
The build folder contain all the files you had de-compile just before but in compile format back.
Andrewtst said:
The build folder contain all the files you had de-compile just before but in compile format back.
Click to expand...
Click to collapse
so i just replace them or what on the original .apk
definnately apkmanager is easier
samyam2002000 said:
so i just replace them or what on the original .apk
definnately apkmanager is easier
Click to expand...
Click to collapse
Correct. Just replace to your origin .apk and remember always do a backup for any .apk you want to amend.
thanks for ur tutorial bro..
Mybe u can add a lil bit intro/tutor about uot kithen too if u want..can introduce to people out there who never used it b4..they also can get so many icons in there..
Sent from my GT-I9100G using Tapatalk 2
fauzi_91 said:
Mybe u can add a lil bit intro/tutor about uot kithen too if u want..can introduce to people out there who never used it b4..they also can get so many icons in there..
Sent from my GT-I9100G using Tapatalk 2
Click to expand...
Click to collapse
Oh, I never try before that, wait I try first, before I can add-in.
Andrewtst said:
Oh, I never try before that, wait I try first, before I can add-in.
Click to expand...
Click to collapse
Uot kitchen is the easier way to make a theme as long as we know how to use it..there are a lot of option there..n we juz need to upload the systemui.apk n framework-res.apk..but for contact,phone etc will remain stock..that one we can use ur tutor to modify..
Sent from my GT-I9100G using Tapatalk 2
{Tutorial} noob/newbie friendly --->tutorial to ---> make custom roms
"" how to make custom rom easily ""
hello guys,
I ve seen that many newbies r comming & making roms & then discontinued it due to lack of information about making a rom. so i decided to make a thread with all possible ways to teach these newbies about making a custom rom using ur stock rom......
Today i m presenting a tutorial on how to make a rom...........
The easiest way u will ever have seen.......
in this tutorial we will be using Cygwin as shell, with Dsixda's Android Kitchen to make a custom rom.............
Requirements:
- Cygwin with Packages and Dsixda's Android Kitchen
- JRE or JDK
- Winrar
- A stock rom.zip [odexed/deodexed]
-Windows OS [xp,7]
- A sharp mind........
## lets start with our tutorial................
1. download cygwin & jdk/jre from above links..........
how to install java--------
Go to the--- http://www.java.com/en/download/index.jsp
click on red-colored banner, [free java download]
Click the "Agree and Start Free Download" button.
Save the file to your desktop.
On your desktop, double-click the installer that you downloaded.
If an authorization window appears:
In Windows XP, click the Run button.
In Windows Vista, click the Continue button.
In Windows 7, click the Yes button.
Click the Install button.
If you are prompted by an advertising offer, decline the offer:
Click Next.
After the installation finishes, click the Close button.
Click to expand...
Click to collapse
how to install cygwin--------
download the cygwin packages.rar from above
extract it to c:\cygwin folder
now navigate to C:\cygwin\home\
here create a folder of ur windows username like this
now extract kitchen.rar [present in C:\cygwin\home\ ] contents in "C:\cygwin\home\username\kitchen\"
take a look at address bar of this example --- here
Click to expand...
Click to collapse
how to setup kitchen --------
Go to the original_update folder (located in: C:\cygwin\home\username\kitchen) like this
add ur stock rom.zip here which u want to modify........
or there is an dummyrom.zip which u can use as a base zip.......
Click to expand...
Click to collapse
Starting the Kitchen: --------
1. Open Cygwin (X:\Cygwin\Cygwin.bat) [located in cygwin folder]
2. Once loaded, enter: "cd kitchen" > Enter
3. now type "sh menu" The kitchen menu will now start........ for refrence click here
Click to expand...
Click to collapse
now the following window will be appear...........
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
if u will be able to see the above picture then congratulations..........:good::good:
u have setup cygwin with disxda packages correctly......
Setting up a working folder: --------
1. Press 1 > Enter
2. Press Enter and wait...
3. Choose (1) dummyrom.zip OR (2) Ur stock rom.zip
4. Choose "y" > Enter > Enter a new name (I chose WORKING_abhi922) > Enter
(now wait until the zip is extracted)
5.now it will ask u to convert "updater script" to "update script"........
6.press 2 & enter
7. now u have setup working folder correctly..... press enter......
8. now again main screen will be appear with alot of options.............
here u ve a working folder & options in front of u ...........
u have to press button for respective functions like
1. u can press 2 to add root to ur rom..........
2. u can press 3 to add busybox support to ur rom
3. similarly press different numbers for different option.........
Click to expand...
Click to collapse
now if u want to deodex ur rom---------
press 0 for advance options
following image willl appear----
press 11 to deodex ur rom..............
Click to expand...
Click to collapse
it is very easy to use this kitchen...............
u just need to read proper instruction written before options -that's all........
now u need to zipalign all apks after all modifications
zipalign apps in ROM-----------
choose option 6
then click enter & follow on screen instructions......
Click to expand...
Click to collapse
now the time is to build ur rom after all ur modifications.............
BUILD UR ROM-----------
1. Press 99 > Enter
2. Press 1 > Enter
3. Press "n" > Enter
4. Press "y" > Enter
5. Press "y" > Enter > "EnterANewZipName" > Enter
6. Now your cwm zip will be located at: C:\cygwin\home\username\kitchen\OUTPUT_ZIP
The zip that can be found in the directory above can be flashable in CWM. Ejoy your own custom rom
Click to expand...
Click to collapse
special thanks to -------
xda
disxda kitchen developers
cygwin windows developer
broodplank1337
sorry if i forget ur name
Click to expand...
Click to collapse
decompiling/compiling using apk multitools.......
Apk Multitools --
APK Multi-Tool is a simple tool designed for the Android Developers as well as for the beginners who are just eager to know
what an APK file contains. An APK is nothing but a ZIP file consisting of all the files required to run the app. It contains
the XML files which developers use to design the user interface, Java classes to add functionality in the apps and so on. It
also contains the visual graphics which you see as a background of the app on your android.
Click to expand...
Click to collapse
requirements---------
-apk multi-tools
- JRE or JDK
- Winrar
- deodexed framework-res.apk , twframework-res.apk & systemui.apk....
-Windows OS [xp,7]
- A sharp mind........
Click to expand...
Click to collapse
how to setup apk multi-tools--------
java-
. first u will need java so goto first post & follow instructions to install java..........
. if u ve already installed java then no need to install again
Click to expand...
Click to collapse
multi-tools-
1. download multi-tools from above link
2. then open the zip using winrar and extract folder [multitools 1.0.10] to desktop like following pic
3. goto the extracted multitools folder on desktop like following pic
4. then open setup.bat , it will look like following pic
5. press 3 then press enter , it will perform its task like following pic
6. now extract framework-res.apk,twframework-res.apk & systemui.apk from any deodexed rom to "other" sub-folder of
multitools folder...like following pic
7. now again open setup.bat then choose option 2 then press enter && it will look like following pic
8. now in this list 1st install framework choosing option 1 then it will install framework then it automatically closes the
window........ u have to perform this 3 times for different apks...... refer above pic......
9. now u have successfully completed setup process......
Click to expand...
Click to collapse
how to use apk multi tools.................
now i asummed that u ve successfully completed setup process && now the time is to learn how to use apk multitools.............
in this tutorial ,
i will explain how to decompile & recompile ur apks...................
apks r of two types ------
1. system apk file [ never signed again ]
2. regular apk file [ can be sign again ]
Click to expand...
Click to collapse
open multi-tools folder....
there u will find various folders......
1.place-apk-here-for-modding ---- [ place here ur apk which u want to modify ] [ also u will find signed/zipped apk here after recompiling]
2.project folder ---- [ u will find ur extracted or decompiled apk files ]
3. script.bat [ main bat file which u will use to operate differnet options over ur apk ]
to use multi-tools for decompiling framework-res.apk......
1. place ur "framework-res.apk" to "place-apk-here-for-modding"
2. then open script.bat
3. press option 9 to decompile ur apk
4. after this , do not close the script.bat screen [ just minimise it ]
5. then goto project folder & there u will find decompiled apk folder
6. do ur modifications according to ur need
7. then again maximise script.bat screen
8. press 11 & then press enter .........
9. u will see a note & then press "y"
10. then refer the following pic.........
11. click enter & after all this close ur screen
12. goto "place-apk-here-for-modding" and u will find "system_framework-res.apk".........
13. it is ur modiifed/modded apk just copy it to ur sd-card & rename it to "framework-res.apk" & move to system
Click to expand...
Click to collapse
note:--
ur modded apk file size always decreases than the unmodded..........
its normal not to worry..............
Click to expand...
Click to collapse
ANOTHER METHOD VERY EASY ------- hopw to make custom rom easily......... NEWBIE FRIENDLY.....
things u will need for making a rom------
1. notepad++
2. winrar
3. rooted android phone
4. stock rom
5. root explorer
6. Brian & patience
let's start --------
## how to make my first odexed rom.........
1. flash ur stock rom via odin
2. root ur phone --- http://forum.xda-developers.com/showthread.php?t=1552792
3. now install root explorer..
4. goto system folder using root explorer..
5. then copy all folders like app,bin,xbin,lib,media,etc. to any folder in sd-card...
6. now download sample rom.zip from here & extract it to a folder on desktop of pc...
7. now time to copy-paste all folders { like app,bin,xbin,lib,media,etc.} from sd-card to the system folder of sample zip
9. now zip this rom using winrar.......
10. copy this zip to sdcard & flash it using cwm [not 3e recovery]
this is ur first attempt to make rom so flash it & check everything is working fine or not....
##The above rom was odexed & now the time is for deodexed stock rom.....
so to deodex a rom just go through this tutorial...........
Required Downloads -
xUltimate - http://www.2shared.com/file/am_bqx1Z/xUltimate-v233.html
Tutorial --------
1. Connect your phone to computer.(Make sure you have select USB debugging in Settings>Applications>Development)
2. Extract xUltimate v2.3.3.zip and Launch Main.exe
3. If everything goes well xUltimate should recognize the phone and make a connection.You now should see a list of options.
4. Select option (1) pull /system/app. Wait until it complete.
5. Select option (2)pull /system/framework. Wait until it complete.
6. Then select option (3) Deodex /system/app. Wait until it complete.
7. [If encounter any error. Find out which .odex file is it. Then remove .odex file from folder origi_app in xUltimate folder]
8. Then select option (4)Deodex /system/framework. Wait until it complete.
9. Now Exit from xUltimate.
10. Put the phone in USB mass storage.
11. Go to xUltimate folder & find “done_frame”, and “done_app”,folders and these contain deodexed apps/jar files
now you have deodexed rom.
now stay with me....
if u have deodexed ur apps....
now the time is to make flashable deodexed rom......
1. goto to previously made odexed rom folder [ur 1st odexed rom]
2. goto system/app folder in this & delete all apks+.odex files..
3. goto system/framework folder in this & delete all apks+jar+.odex files..
4. just copy deodexed apps from "done_app" to app folder ...
5. similarly copy deodexed framework apps/jar file from "done_frame" to framework folder..
6. now again zip this using winrar..
7. now flash it via cwm & check everything is working or not.....
now u have a working custom deodexed rom made by u...........
if u like my tut then try to hit thanks button for me............
& rate the thread 5 stars & click on newsworhty thread.........
## how to change bootanimation in ur rom [ very useful ]
1. download this bin.zip -- http://www.mediafire.com/?23iic1686hl6c64
2. extract its files to bin folder of ur deodexed rom..
3. overwrite if prompted..
4. now add any "bootanimation.zip" to media folder of ur deodexed rom...
5. now zip this rom using winrar & flash it via cwm & check if the bootanimation is changed or not...
## how to add apps,ringtones,alarm tones,etc to ur rom....
1. copy any apk to system/app folder to make it a system app.....
2. copy any .ogg file in system/media/audio/ringtone folder to add ringtones ...
3. similarly add .ogg files in system/media/audio/alarm folder to add alarm tone....
##how to theme ur rom .......
easiest way is to use uto kitchen to theme ur rom....
1. goto this website -- http://uot.dakra.lt/kitchen/
2. upload ur framework-res.apk & twframework-res.apk & systemui.apk
3. then use options to theme ur rom.....
## how to add lidroid 15 toggles & 6 lockscreens to ur rom........
1. goto this thread--- http://forum.xda-developers.com/showthread.php?t=1924046
2. download patch according to ur baseband...
3. then extract files to appropriate folders of ur rom
[ like copy systemui.apk to app folder ,lidroid-res.apk & android.policy.jar to framework folder ]
4. overwrite if prompted
5. then agian zip rom & flash it via cwm....
6. check everything is working or not.....
## how to make ur roms fast by removing bloatwares.....
1. goto system/app folder.
2. delete the apps which r not essentials
3. for refrence go this thread ---- http://forum.xda-developers.com/showthread.php?t=1897286
4. now zip again & check if it is booting & working properly...
now i think ur rom is ok for u........ & u can give it a name like simplicity or mindcr
## how to modify ur rom build version [ shown in settings/about ]
1. open build.prop in system using notepad...
2. now modify the following line----
ro.build.display.id= gingerbread [ ur rom name here like aurora,etc.. ]
ro.build.version.release= 2.3.6 [ change to anything like 4.1 ]
## how to set default ringtones for ur roms........
1. open build.prop using notepad
2. now modify the following lines----
ro.config.notification_sound=11_Pixiedust.ogg [ its for notification sound ]
ro.config.alarm_alert=Good_Morning.ogg [ its for default alarm tone ]
ro.config.ringtone=Pegasus.ogg [ its for default ringtone ]
## knowing about some general things ---
>>>> where to add kernel in ur rom ---- outside the system folder [where u will find some files like bmlunlock,installbusybox ,flash_image,etc....
kernel = boot.img
>>>>> goto -- META-INF/com/google/android/
and u will find a file named as "updater-script"
this is the main script for flashing rom....
our cwm approaches this file & perform tasks as directed in it.....
1. open it with notepad/notepad++...
2. now nothing is understandable by u.....
3. but remember one thing -- ui_print("");
this statement is used to print text on cwm log screen
[ like ui_print("simplicity rom"); ]
4. u can change it to ur rom name & even u can add some more statements like this to ur script to print something.....
>>>>> goto -- system/etc/
and u will see many folder & files......
1. init.d folder -- conatin all the scripts that will run during startup...
init.d folder may be not there but u can create to add scripts....
[for using these scripts, u need to add custom kernel instead of stock one]
2. host file -- it can allow or block ads on ur device [its same as windows host file]
>>>>> what is ---
T9DB folder --- conatin files for ur stock keyboard....
CSCFiles.txt, CSCVersion.txt, SW_Configuration.xml, csc folder contain ur csc version,etc...
so u can delete them too [ no harm to ur rom ]
## removing ads from free apps in ur rom-----
1. the easiest way is just install adsaway.apk from market to ur phone then run it....
2. allow superuser request
3. then remove ads using some options given thier...
4. after removing apps restart ur device.....
5. open root explorer..
6. goto system/etc folder
7. copy hosts file from it to ur sdcard
8. now connect ur device to pc
9. move this file to ur rom zip at same place [system/etc]
10.overwrite if prompted
11. now flash ur rom using cwm & open any free app which have ads
12. if no ads come then ur rom is ads-free.....
13. enjoy
## Adding different mods & tweaks to ur rom........
1. goto the following threads && integrate them in ur rom....
2. most of them r flashable so better way is to flash them via cwm over ur rom....
3. then copy system folder from ur phone && replace them with the system folder in ur rom.zip...
follow these threads ----------
1. GEEKY ENGINE - http://forum.xda-developers.com/showthread.php?t=1952708
2. ANDERLINE ENGINE - http://forum.xda-developers.com/showthread.php?t=1579710
3. SUPERCHARGE SCRIPT - http://forum.xda-developers.com/showthread.php?t=991276
4. LOOPY SMOOTHNESS - http://forum.xda-developers.com/showthread.php?t=1205744
5. Supremacy Trilogy - http://forum.xda-developers.com/showthread.php?t=1928200
6. Netforks Tweaks -- http://forum.xda-developers.com/showthread.php?t=1961353
7. build.prop tweaks -- http://forum.xda-developers.com/showthread.php?t=1697040
8. cronmod scripts dataext --- http://forum.xda-developers.com/showthread.php?t=1955422
9. (MOD)Beats Audio --- http://forum.xda-developers.com/showthread.php?t=1525226
10. SlaidyBoost-V2.3 ---- http://forum.xda-developers.com/showthread.php?t=1585774
11. ThunderBolt! v2.9.0 ----- http://forum.xda-developers.com/showthread.php?t=1556013
12. Velocity Tweaks ------ http://forum.xda-developers.com/showthread.php?t=1814227
13. Collection of em all. ------- http://forum.xda-developers.com/showthread.php?t=1227269
14. Smurfed Out V 6.6 -------- http://forum.xda-developers.com/showthread.php?t=1517724
15. gps.conf files for all countries ------ http://forum.xda-developers.com/showthread.php?t=1233359
## adding kernel to ur rom ---------
$$$$$ CUSTOM KERNEL $$$$$
most important thing for rom developer is that a custom kernel which support features...
rom functionality depends on kernel i.e boot.img & modules files present in system/lib/modules folder.....
whenever u add any custom kernel to ur rom then remember to downlaod & add modules from his thread to system/lib/modules folder......
this is the problem with most of the roms present here thats why some roms have problems like headphone not working........
gps not working.........
camera settings r small.....
etc.....
so try to remember this to add modules to ur rom along with kernel..........
u can add kernels from the following links----
Rafeal's latest kernel ----- http://forum.xda-developers.com/show....php?t=1818830
Hells Fusion latest kernel ----- http://forum.xda-developers.com/show....php?t=2022147
other kernel on general section --- http://forum.xda-developers.com/show....php?t=2026654
$$$$$ Stock Kernel $$$$$
LINK [STOCK KERNEL] ----- http://www.mediafire.com/?8amfqkqq28v1h9f
stock kernel modules ---- http://www.mediafire.com/?7tckgiclaq80aoc
if u face any problem then dont pm me.......
but u can post ur problem here........... so that if any other person have same problem then we can help him also..
i think this is the easiest tutorial ever u ve seen on xda...
hit thanx button if u like my work..........
& rate thread 5 stars & click on newsworthy thread.......
Nice Guide
Will help many newbies
Thanked and rated 5 stars
Will request Mod to make this a sticky
for all the newbies.............
if u follow this tutorial & make a rom for ur self..............
please never post a thread of ur rom until it has some cool features like in ace-cream,simplicity,mindcr,razodroid,etc............
Good Work abhi i hope the many noobs and newbies finally can stop spamming my or other members PM and of course general section . . . Many of this noobs and newbies are very lazy guys and can't search or read threads on xda or google -_-" . . .
abhi922 said:
for all the newbies.............
if u follow this tutorial & make a rom for ur self..............
please never post a thread of ur rom until it has some cool features like in ace-cream,simplicity,mindcr,razodroid,etc............
Click to expand...
Click to collapse
You have snatched my words
I feel all sections filled up by ROMs without any need of them
I myself made 3 ROMs
But never uploaded them as they were nothing compared to the ROMs available
And also due to 16 kb/s connection
Alucard1989pl said:
Good Work abhi i hope the many noobs and newbies finally can stop spamming my or other members PM and of course general section . . . Many of this noobs and newbies are very lazy guys and can't search or read threads on xda or google -_-" . . .
Click to expand...
Click to collapse
man u r right.........
thats why i post this tut wth all possible ways to teach them............
Very nice guide, hope in the future will complete with more "how to edit" framework, scripts and stuff :good:
this thread should be sticky :highfive:
Very nice guide. It is what I'm looking for...
It will help me so much.
Thanks, thanks...
This is a very useful stuff.
Thanks for the tutorial.
Sent from my GT-S5830i using xda app-developers app
Humberto.Ortega said:
Very nice guide. It is what I'm looking for...
It will help me so much.
Thanks, thanks...
Click to expand...
Click to collapse
schakusa said:
Very nice guide, hope in the future will complete with more "how to edit" framework, scripts and stuff :good:
this thread should be sticky :highfive:
Click to expand...
Click to collapse
brijeshep said:
This is a very useful stuff.
Thanks for the tutorial.
Sent from my GT-S5830i using xda app-developers app
Click to expand...
Click to collapse
thanxx......& will update it with some more things,tuts.............
so keep tuned....
So, before going to make a custom ROM, you should first odexed then deodexed the ROM before making a custom one? Sorry.. Can't barely understand the tutorial.. But thanks for it..
anmino said:
So, before going to make a custom ROM, you should first odexed then deodexed the ROM before making a custom one? Sorry.. Can't barely understand the tutorial.. But thanks for it..
Click to expand...
Click to collapse
in short flash stock one........
stock=odexed
then perform deodexed..........
its simple ..........
When I extract and modify the rom.zip, Should I sign the zip before flash it using CWM?
thanks...
Humberto.Ortega said:
When I extract and modify the rom.zip, Should I sign the zip before flash it using CWM?
thanks...
Click to expand...
Click to collapse
Yes. You flash zip files through CWM recovery.
Sent from my GT-S5830i using Tapatalk 2
schakusa said:
Very nice guide, hope in the future will complete with more "how to edit" framework, scripts and stuff :good:
this thread should be sticky :highfive:
Click to expand...
Click to collapse
Here is the link
There is already a guide
http://forum.xda-developers.com/showthread.php?t=2010679
Let's get ready and theme/decompile Lollipop ROM APKs!
Hey all, it's me again. I might as well be posting my entire workstation/methods here for people to learn how to get into the theming world. This is the traditional method of theming, so this would be useful for prospective themers/ROM developers alike.
NOTE: I'll be doing this on an AOSP/CM/Google based ROM, and if you are wondering if it works on TW/Sense, I do not know, but it should work the same.
In this guide, I won't be going so in depth like @Vivek_Neel, so you can go check out his thread: http://forum.xda-developers.com/android/themes/guide-t2978121 I'll be going over the BASICS of getting started to theme and how to go to his theme thread and start contributing.
Table of Contents
Setting up the Java SE Runtime Environment
Decompiling your first time
Compiling your first time
Creating a flashable zip
Repetitive? Let's simplify it using batch files.
Porting my themes or other themes to specific ROMs (WIP)
Please do note, this IS for beginners, so I'll try and respond to errors and problems when setting up your environment and using my compiling packages.
Setting up the Java SE Runtime Environment
Setting up the Java SE Runtime Environment
First of all, to make sure everything goes well, it is recommended that you set up your entire JRE on your computer.
I'm on Windows 8.1 so I'll be using screenshots from an 8.1 setup.
STEP 1: Install these two files:
- JRE8 (This is what I use): http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html
- JDK8 (Install just in case): http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
STEP 2: Setting up JDK JAVA_HOME environment variable:
After installing the two files above, locate your JDK location, in my case, mine is C:\Program Files\Java\jdk1.8.0_20.
Then open up your Control Panel and click into System (Control Panel\All Control Panel Items\System)
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Click on Advanced system settings in the sidebar.
A popup will appear, click on the Advanced tab, then click on "Environment Variables..."
Another smaller popup, Environment Variables, will open up. Click on "New..."
According to the screenshot, click type in the Variable name (JAVA_HOME) and Variable value (Location of your JDK set up).
After everything is done, click OK on all popups, then reboot your computer.
You are now ready for apps like Virtuous Ten Studio and Android Studio, futureproofing yourself for now.
Decompiling your first time
Decompiling your first time
STEP 1: Create your working directory
- Make a directory wherever you want, for example on the desktop. Name the folder something easily memorable, e.g. WORKING AREA (C:\Users\Nicholas\Desktop\WORKING AREA\)
STEP 2: Download these two files:
- Latest APKtool.jar by @iBotPeaches: https://bitbucket.org/iBotPeaches/apktool/downloads/apktool_2.0.1.jar
- apktool-install-windows-r05-ibot.tar.bz2: https://code.google.com/p/android-apktool/downloads/list
STEP 3: Place all files into the working folder
STEP 4: Rename apktool_2.0.1.jar to apktool.jar
STEP 5: Put your desired APK you want to decompile into directory (This can be framework-res.apk)
STEP 6: Put your ROM's framework-res.apk into the directory (If done in Step 5, skip this)
STEP 7: Installing the framework-res into apktool's resources.
- Shift + Right Click on a blank spot in the working directory, then click "Open command window here..."
- Type this code in, then click enter
Code:
apktool if framework-res.apk
- Your framework will be installed, ready for apktool to use it.
STEP 8: Decompile your desired APK
- Shift + Right Click on a blank spot in the working directory, then click "Open command window here..."
- Type this code in, then click enter
Code:
apktool d apkname.apk
- Your apk will be decompiled into your working directory -> apkname folder (e.g. C:\Users\Nicholas\Desktop\WORKING AREA\SystemUI)
- A small breakdown of the code is like this: apktool (calling the program) d (decompile) apkname.apk (apk input)
STEP 9: Edit your apk file!
- You can follow Vivek's thread for what to change in a specific APK file, linked here: http://forum.xda-developers.com/android/themes/guide-t2978121
Compiling your first time
Compiling your first time
To recompile, you need to have the android-sdk handy, as you'll need the zipalign.exe from it.
REQUIREMENTS
- 7-Zip installed: http://www.7-zip.org/
STEP 1: Install Android SDK from Android Studio
Android Studio: http://developer.android.com/sdk/index.html
STEP 2: Copying zipalign.exe into your working directory
- Navigate into C:\Program Files (x86)\Android\android-studio\sdk\build-tools\android-4.4W and copy zipalign.exe into your working folder.
STEP 3: Compiling your decompiled app into an APK file
- Shift + Right Click on a blank spot in the working directory, then click "Open command window here..."
- Type this code in, then click enter
Code:
apktool b appname appname.apk
- Your framework will be installed, ready for apktool to use it.
- NOTE: appname should be the same as the decompiled app's folder name.
STEP 4: Zipaligning your app
At this point, you should have your original APK located directly inside your working directory.
Your compiled app will be placed inside your working directory -> appname folder -> dist folder.
Double click your compiled APK and open it with 7-zip.
Double click your original APK and open it with 7-zip.
In your original APK opened in 7-zip, drag META-INF and AndroidManifest.xml into the compiled APK's 7-zip window. Click Yes to overwrite.
Take your compiled APK and place it in a new folder in your working directory (e.g. C:\Users\Nicholas\Desktop\WORKING AREA\ZIPALIGN)
Drag "zipalign.exe" into the new folder ZIPALIGN.
Paste the compiled APK with the original META-INF and AndroidManifest.xml into the ZIPALIGN folder.
Rename the apk from apkname.apk to apkname-t.apk (Just add a "-t" to distinguish from your output apk later)
Shift + Right Click on a blank spot in the ZIPALIGN directory, then click "Open command window here..."
Type this code in, then click enter
Code:
zipalign -v 4 appname-t.apk appname.apk
Your output APK will be available to flash now.
Creating a flashable ZIP for yourself
Creating a flashable ZIP for yourself
Download my Flashable ZIP template here: https://www.androidfilehost.com/?fid=95897840722644285
STEP 1: Designing your updater-script (What get's shown in TWRP/CWM when flashing)
This is my updater-script from the zip file:
Code:
ui_print(" =============================================");
ui_print(" Flashable ZIP Template by Nicholas Chum");
ui_print(" =============================================");
ui_print(" ");
sleep(1);
ui_print(" Now mounting the system writeable....");
sleep(1);
ui_print(" ");
run_program("/sbin/busybox", "mount", "/system");
ui_print(" Copying the files... ");
sleep(1);
package_extract_dir("system", "/system");
sleep(1);
ui_print(" ");
ui_print(" File copy complete. ");
unmount("/system");
sleep(1)
- This installs everything in the system folder of the ZIP file into the system folder on your phone.
STEP 2: Structure your APK into the correct directories of the ZIP according to your phone's layout
- If you want to install SystemUI.apk, you cannot install it like on KitKat due to different directory structure, so for example, the correct location to install SystemUI.apk would be /system/priv-app/SystemUI/SystemUI.apk, so you'll have to create your own subfolders in the zip according to the apk you want to install.
STEP 3: After you're done, flash and have fun!
Repetitive? Let's simplify it using batch files
Repetitive? Let's simplify it using batch files
I have a batch file collection here, check it out: https://www.androidfilehost.com/?fid=95897840722644292
To use my batch files, you may have to edit each batch file to confirm locations for directories on your computer.
These are the bat files you will have to edit: FRAMEWORK (Step 1) - Uninstall.bat, FRAMEWORK (Step 2) - Install.bat
You'll have to edit in your user account name, for example in FRAMEWORK (Step 1) - Uninstall.bat:
Code:
rd /s /q C:\Users\[COLOR="Red"]Nicholas[/COLOR]\apktool
Afterwards, it will work perfectly.
The point of Theming Tools.zip is to allow you to easily make new working directories and just copying everything in from the zip file to the working directory to save your time from moving files over (zipalign.exe, apktool.jar, apktool.bat...etc)
To use my batch files, use it in this order
Create working folder
Place framework-res.apk in the working folder
FRAMEWORK (Step 1) - Uninstall.bat
FRAMEWORK (Step 2) - Install.bat
Place your other APKs in, my batch only decompiles framework-res.apk, SystemUI.apk, Settings.apk, DocumentsUI.apk, TeleService.apk, so if you have another APK you want to automate, copy the structure of my calls in the batch file, then save it.
BUILD (Step 1) - Extract Starter 5 APKs.bat
Start theming your apps.
After you're done...
BUILD (Step 2) - Compile New 5 APKs.bat
Now open each of the original APKs in the working directory, then copy each META-INF and AndroidManifest.xml from the original to the new compiled ones.
Place each unzipaligned apks with the META-INF and AndroidManifest.xml into the BUILD ME folder - my batch only zipaligns framework-res.apk, SystemUI.apk, Settings.apk, DocumentsUI.apk, TeleService.apk, so if you have another APK you want to automate, copy the structure of my calls in the batch file, then save it.
After you're done...
BUILD - Zipalign All 5 APKs.bat
Place all files into a flashable zip.
Enjoy!
Last hold, just in case.
???Hold it right there .
looking forward to that!!!! nice work
Very nice my friend, we needed something like this for noobs. Sending them ALL your way..... Lol
djdarkknight96 said:
Very nice my friend, we needed something like this for noobs. Sending them ALL your way..... Lol
Click to expand...
Click to collapse
Haha.
+1.
Very nice and handy
djdarkknight96 said:
Very nice my friend, we needed something like this for noobs. Sending them ALL your way..... Lol
Click to expand...
Click to collapse
Haha I think I'll be the first "noob" to try and learn theming.. Haha what say @nicholaschum? ?
Edit - BTW can't wait for your inverted theme for L, Bryan. Always loved your theme.. ?
Khizar said:
Haha I think I'll be the first "noob" to try and learn theming.. Haha what say @nicholaschum? ?
Click to expand...
Click to collapse
Well, I think I missed a step then.
For you specifically, Step 0: Buy a new computer!!!
nicholaschum said:
Well, I think I missed a step then.
For you specifically, Step 0: Buy a new computer!!!
Click to expand...
Click to collapse
My brother ended up buying the tab and so the new laptop is just sitting there, might as well make it useful... ??
Khizar said:
My brother ended up buying the tab and so the new laptop is just sitting there, might as well make it useful... ??
Click to expand...
Click to collapse
I might change the last HOLD post to Porting themes to other ROMs, then you can start helping me do more nightly builds if theme chooser still doesn't function as well
nicholaschum said:
I might change the last HOLD post to Porting themes to other ROMs, then you can start helping me do more nightly builds if theme chooser still doesn't function as well
Click to expand...
Click to collapse
I am all for that bro. Told you I'd help and I'll try to help to the best of my abilities, while trying to learn. ?
BTW why isn't @fahadali2315 helping you out? He's become lazy since getting OPO and now shamu.. LOL
Khizar said:
I am all for that bro. Told you I'd help and I'll try to help to the best of my abilities, while trying to learn. ?
BTW why isn't @fahadali2315 helping you out? He's become lazy since getting OPO and now shamu.. LOL
Click to expand...
Click to collapse
He's my official tester......only...... and he has like a dozen flagship phones. He should really do something with them.
Where's my Sense ROM on Nexus 6? XD
@nicholaschum so this was what you did when we had no Internet and I was napping? Lol....
BellaxMiu said:
@nicholaschum so this was what you did when we had no Internet and I was napping? Lol....
Click to expand...
Click to collapse
LOL....yes.....tethering.....and I'm still not done either
nicholaschum said:
He's my official tester......only...... and he has like a dozen flagship phones. He should really do something with them.
Where's my Sense ROM on Nexus 6? XD
Click to expand...
Click to collapse
In his defense, he keeps losing the phones so he wouldn't get far.. Haha JK
The OPO sense port... Makes my point.. ?
BellaxMiu said:
@nicholaschum so this was what you did when we had no Internet and I was napping? Lol....
Click to expand...
Click to collapse
He plans to do even more once you get Internet back... LOL