TUTORIAL FOR DEODEXING A ROM[WINDOWS]
THIS TUTORIAL IS ONLY FOR WINDOWS USERS
[I TESTED THIS PERSONALLY ON WINDOWS 7 x64]
PRE-REQUISITES
Installed Java SDK [INSTALL THIS AND ADD IT TO YOUR PATH]
Download the kitchen from this thread
http://forum.xda-developers.com/ showthread.php?t=633246
Read FAQ if you encounter any errors
http://forum.xda-developers.com/showpost.php?=5626300&postcount=3
Pictorial installation guide
Download here
http://db.tt/Ii3bUlxo
TUTORIAL
So after all the above proceed with these steps
Read EACH STEP VERY CAREFULLY before executing them inorder to minimize any errors
SET UP A WORKING FOLDER
1.Copy the rom you want to deodex to cygwin\home\[YOUR USERNAME]\original_update
2.Open cygwin by double clicking it's shortcut on the desktop or start menu
3.Type cd kitchen
4.Then type ./menu
If you get a java not found error you do not have java sdk installed[READ FAQ IN ORIGINAL THREAD]
KITCHEN MENU
In the kitchen menu press 1
Press Enter [make sure the Rom you want to deodex is in cygwin/home/[USERNAME]/kitchen/original_update
You need to get your name under available ROMs list
Select your ROM and press Enter
Change the name of the working folder if you want to
Wait until the ROM is extracted
When it asks you to create a boot.img press y and Enter
When it asks you to convert to update-script PRESS 2 and Enter
DO NOT SELECT 1
When the finished message arrives press Enter to continue
This will lead you back to the menu of the kitchen
DEODEXING
This does the actual deodexing of a ROM
Press 0[ADVANCED OPTIONS]
Then press 11[DEODEX FILES IN YOUR ROM] and press Enter
Select b[DEODEX BOTH FOLDERS]
Enable logging into file Press Enter
Be patient while the deodexing is taking place. It takes a bit of time depending on the rom
When the finished message comes press Enter
This will bring you back to the kitchen menu
BUILDING THE ROM
This step buils the deodexed ROM
Select 99[BUILD ROM FROM WORKING FOLDER]
In the select build mode option Press 1[INTERACTIVE MODE]
Zipalign the files Press y and Enter
Wait while the builing takes place
When the prompt for signing appears press y and Enter
Name the ROM as you wish
CONGRATS!!!!! YOU HAVE DEODEXED YOUR ROM
Now you can mod your framework and systemui to suit your needs
Thank faiyyaz for this part
This tutorial is for de-odexing a
particular application u want..
follow the steps below..
Initially download the file attached
"dexopt -wrapper.rar " and extract it
on PC..
1) Add the file called 'dexopt-wrapper '
in system/bin on your phone and
copy the apps you want to deodex to
a folder on your sdcard called apps\
2) Then from windows cmd you run
the commands
- adb remount
- adb shell
- dexopt-wrapper sdcard/apps /
whateveryouwantodexed.apk /
sdcard/ apps/
whateveryouwantodexed.odex
- dexopt-warpper keep on doing this
untill all files you want to are odexed
- exit
3)when that's done, open the apk
files you just odexed in 7-zip /winRAR,
remove the classes.dex file and pus
both the odex and apk to the system/
app folder (or wherever they need to
be)
4)done
i guess this steps are much easier
than de-odexing for all apps
download it here
forum.xda-developers.com/attachment.php?attachmentid=808532&d=1323273039
DISCLAIMER
DO THIS AT YOUR OWN RISK!!
I made this tutorial with descriptions of each step keeping inexperienced users in mind
ALWAYS MAKE A BACKUP BEFORE FLASHING THIS DEODEXED ROM
Nothing will go wrong if you follow the' instructions throughly but make a backup just in case
I DO NOT TAKE ANY RESPONSIBILITY IF THE ROM BRICKS YOUR DEVICE"
This simple tutorial is so easy and powerful
This Tutorial is made from me and it has the Copyright!
1) put the ROM from which you want to extract the kernel into original_update folder (C: \ cygwin \ home \ username \ etc..)
2) Run Cygwin and go into the kitchen
3) Select option 1 and select the ROM you want to extract the kernel
4) Option 20 (boot image tools) and choose w
5) Go into BOOT EXTRACTED folder and take the zImage file
6) Now go to WORKING_NameProject / system / lib / modules and copy all files inside.
7) Take a zip of another kernel and switch the components
DONE!
Easy no?
INTRODUCTION
HI GUYS..!
Though there are many threads explaining about the set up of android kitchen and deodexing roms...i found it a bit confusing,as most of the threads take you to different threads which again explain the steps in detail,most of which though informative is unnecessary as they are General threads .. so,TODAY i will be explaining simple step by step procedures from setting up cygwin to doedexing a rom for our devices...
THIS THREAD IS FOR L3 BUT SHOULD WORK ON L5 AND L7 ALSO ( for extracting &deoxing-Only First generation ie; L3,L5&L7..Not for L3 II,L5 II, L7 II ,but the method for android kitchen is common for both generations)
THINGS NEEDED(DOWNLOADS)
1.JAVA- download here http://java.com/en/download/manual.jsp
2.LG EXTRACTION KIT PUT TOGETHER BY ME -
http://www.mediafire.com/download/qdxgh0hqznph3nf/KDZ_extraction_Kit+kitchen+cygwin.rar
Click to expand...
Click to collapse
STEP 1-INSTALL JAVA (just download and install it)
STEP 2- SET UP CYGWIN (This method is for Windows-i have provided the 32 bit setup ,for 64 bit download the setup from website below and skip to step 3) for 64 bit users - http://www.cygwin.com
1.extract the rar file i have provided and open the folder
2.open setup-x86.exe - don't proceed
3.open the cygwin setup guide provided in the folder and follow the steps
Click to expand...
Click to collapse
STEP 3- SET UP ANDROID KITCHEN
1. open the folder u extracted from my rar file
2.right click on Android-Kitchen-0.224_2 and extract here
3.now copy the "kitchen" folder to c:\cygwin\home\(your_user_name)\
[Note :: make sure that ur username does not contain any spaces (eg; homepc) (not eg; home pc) ;if it does then copy to c:\cygwin\home\ ]
Click to expand...
Click to collapse
STEP 6- CHECK IF ANDROID KITCHEN WORKS
1.Right click on the desktop shortcut of cygwin and run as administrator
2.type
Code:
cd kitchen
for people who have spaces in there user name
Code:
cd /home/kitchen
3.to open menu
Code:
./menu
IF YOU DONT GET ANY ERRORS THEN PROCEED TO THE NEXT STEP
Click to expand...
Click to collapse
STEP 7- EXTRACTING THE KDZ FILE(For custom odexed roms proceed to STEP 9)
(For the users who don't know about the .kdz , it is the file format for the stock lg rom firmwares,...to download the kdz files goto-
http://lg-phone-firmware.com/index.php?id_mod=11 and download the firmware that suits you accordingly...im using v10k open eupore )
1.open the folder u extracted from my rar file
2.rightclick on lgextract LGExtract-0.2.1 and select extract here
3.copy the .Kdz to the extracted folder
4.type
Code:
LGExtract.exe -kdz V10X_xx.kdz
(wherein "v10X_xx " stands for the version of kdz u want to extract eg v10k_00)
5. you should end up with three files a .dz file ,a .dll file and a .cab file ( eg DZ_LGE400AT-00-V10k-EUR-XXX-AUG-08-2012+0.dz ; QCT_E400_20120703.dll and V10k_00.cab
Click to expand...
Click to collapse
STEP 8-EXTRACTING THE ..DZ FILE
1.open the folder that u extracted from my rar file
2. rightclick on the DZDecrypter_v0.5.rar file and select extract here.... do the same for the DZDecrypter_v1.0b.rar file
3. now "copy" the .dz file into both extracted folders
4. open the extracted DZDecrypter_0.5 folder and type
Code:
DZDecrypt.exe LGE610AT-xx-VxxX-XX-XXX-xx-xx-20xx+x.dz
wherein "LGE610AT-xx-VxxX-XX-XXX-xx-xx-20xx+x.dz" is name of the .dz file
5. open the extracted DZDecrypter_v1.0b and do the same
6. now what we need is the boot.img ;recovery.img and system.img
7.make a new folder
8.to get the boot.img and recovery.img go to the DZDecrypter_v0.5 folder and copy the two files to a folder u created
9.to get system.img go to the DZDecrypter_v1.0b folder and find the file named system.img.ext4
10. just rename it to system.img and copy it to the folder u created
Click to expand...
Click to collapse
STEP 9- EXTRACTING THE SYSTEM.IMG and deodexing the System Files
(FOR CUSTOM ROMS CREATE A FOLDER IN C:\cygwin\home\your_user-name\kitchen\ AND NAME IT "WORKING_090313_013348" AND COPY THE META-INF;SYSTEM AND BOOT.IMG INTO IT AND OPEN THE KITCHEN MENU AND FOLLOW FROM THE11TH STEP )
Click to expand...
Click to collapse
NOTE :custom rom users use can this command via the terminal emulator to obtain the system file's on the rom... it is recommended to do this on a Fresh installation or else you will obtain a lot of unwanted files along with the ones needed ..
Code:
su
tar -c system/* >> sdcard/system.tar
Click to expand...
Click to collapse
this will create a .tar file on your sdcard which u can latter transfer to your pc and extract using winrar or 7zip
The files needed are
/app
/bin
/etc
/fonts
/framework
/lib
/media
/semc
/usr
/xbin
build.prop
Click to expand...
Click to collapse
delete the rest of the folders
1.COPY THE BOOT.IMG AND SYSTEM.IMG TO c:\cygwin\home\(your_user_name)\kitchen\original_update
2. open cygwin as adminstrator and open the kichen menu(refer step 6)
3.select option 1 -set up working folder from rom
4.select default 1
5.select n (dont change name)
6.select ext2explore
7.follow the instruction on the cmd
8.select n (don't extract cache.img)
9.select y (view rom info)
10. press enter to continue
11.select option 0 (advanced options)
12.select 11 deodex files in your rom
13.select v and change API LEVEL to 10(this is for gingerbread rom ie 2.3.x for other rom select accrdly)
14.select b deodex both folders ( sometimes u can get errors for few apks to resolve that delete the apks in the location below in system/app ...you have to delete both the .apk and .odex ; PS:don't delete the others they are deodexed...!)
15.press enter
16. view the contents of the folder navigate to C:\cygwin\home\your_user-name\kitchen\WORKING_xxxxxx_xxxxxx u'll find the deodexed apks in system\apps
17.now u can make changes to the file.
Click to expand...
Click to collapse
(OPTIONAL:I have not tried the zip but should work well)
STEP 10- FLASHING THE DEODEXED FILES TO THE ROM
1. open the folder that u extracted from my rar file
2. install 7 zip (7z920.exe) ignore if already there
3.rightclick on 'deodex.zip' and select open with 7zip
4.open system in 7zip
5.replace the /app and /framework from the folders in C:\cygwin\home\your_user-name\kitchen\WORKING_xxxxxx_xxxxxx\system
(Just drag and drop in the opened .zip file)
6. copy the zip file to the sdcard of ur phone
7. flash it via cwm
Click to expand...
Click to collapse
ANDROID KITCHEN IS A AWESOME TOOL ..ALMOST ALL OF THE STEPS IN IT ARE SELF EXPLANATORY ...I SUGGEST THAT U PLAY AROUND WITH IT TO GET USED TO IT ..
CREDITS
@dsixda FOR ANDROID KITCHEN
http://forum.xda-developers.com/showthread.php?t=633246
@pankaj88 FOR KITCHEN SETUP FOR DEODEX
http://forum.xda-developers.com/showthread.php?t=1767392
@Homero2 FOR LGEXTRACT EXTRACTING KDZ FILE
http://forum.xda-developers.com/showthread.php?t=2180586
@copsfrance FOR DZDECRYPT
@yayakuya & @andwie
FOR INTRODUCING ME TO THE THREADS..!
FOR ANY FURTHER QUESTIONS PLS REFER THE LINKS IN CREDIT AS THEY MOST PROBABLY WOULD HAVE BEEN ANSWERED THERE DO YOUR RESEARCH SEARCH AND LEARN ASK QUESTIONS ONLY AS A LAST RESORT NO ONES' A EXPERT ..!
NOTE :: Always make a backup before changing system apk's..! Not responsible for any damages..!
HIT THANKS BUTTON IF I HELPED YOU
THANK YOU...!
Great guide,very good explained and very helpfull,thanx.:thumbup:
GREEEEETZ!!!!
stock rom?
what about stock rom??
-CALIBAN666- said:
Great guide,very good explained and very helpfull,thanx.:thumbup:
GREEEEETZ!!!!
Click to expand...
Click to collapse
thanks man ..!!Much appreciated
arjunrambz said:
what about stock rom??
Click to expand...
Click to collapse
you'll need the boot.img so you have to download the firmware (check in the about phone should be like 10 j or something ) and follow from STEP 7 for any other doubts you can use the links in the credits..!
heres the link to download firmware for l7
http://lg-phone-firmware.com/index.php?id_mod=13
Thanks alot for this
Sent from my LG-E400 using XDA Premium 4 mobile app
skiplou_memory said:
Thanks alot for this
Sent from my LG-E400 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
you always welcome..!:good:
Im getting an error while trying to extract the .dz file...
C:\Users\Aleksandar\Desktop\Decrypter 1>DZDecrypt.exe LGP710AT-00-V10f-EUR-XX-JU
L-23-2013+0.dz
DZ-Decryptor v1.0b *ALPHA RELEASE* by BIGB0SS from COPS.
[■] Opening file "LGP710AT-00-V10f-EUR-XX-JUL-23-2013+0.dz".
[■] Allocated memory: 1280 Mo.
[x] Invalid markers in main header.
[■] Closing file "LGP710AT-00-V10f-EUR-XX-JUL-23-2013+0.dz".
aleksandar_021 said:
Im getting an error while trying to extract the .dz file...
C:\Users\Aleksandar\Desktop\Decrypter 1>DZDecrypt.exe LGP710AT-00-V10f-EUR-XX-JU
L-23-2013+0.dz
DZ-Decryptor v1.0b *ALPHA RELEASE* by BIGB0SS from COPS.
[■] Opening file "LGP710AT-00-V10f-EUR-XX-JUL-23-2013+0.dz".
[■] Allocated memory: 1280 Mo.
[x] Invalid markers in main header.
[■] Closing file "LGP710AT-00-V10f-EUR-XX-JUL-23-2013+0.dz".
Click to expand...
Click to collapse
This method is only for first generation of L series. You tried to extract dz of P710 (L7 II) so obviously it won't work.
andwie said:
This method is only for first generation of L series. You tried to extract dz of P710 (L7 II) so obviously it won't work.
Click to expand...
Click to collapse
So is there a way i can extract that .dz?
aleksandar_021 said:
So is there a way i can extract that .dz?
Click to expand...
Click to collapse
No, not for your device yet.
aleksandar_021 said:
Im getting an error while trying to extract the .dz file...
C:\Users\Aleksandar\Desktop\Decrypter 1>DZDecrypt.exe LGP710AT-00-V10f-EUR-XX-JU
L-23-2013+0.dz
DZ-Decryptor v1.0b *ALPHA RELEASE* by BIGB0SS from COPS.
[■] Opening file "LGP710AT-00-V10f-EUR-XX-JUL-23-2013+0.dz".
[■] Allocated memory: 1280 Mo.
[x] Invalid markers in main header.
[■] Closing file "LGP710AT-00-V10f-EUR-XX-JUL-23-2013+0.dz".
Click to expand...
Click to collapse
Sorry i din't mention it ,this is only for the first generation ;ie l3,l5,l7 (not l3 II,L5 II,L7 II)
after deodex, how to create the KDZ file as before? You can help me?
dn80 said:
after deodex, how to create the KDZ file as before? You can help me?
Click to expand...
Click to collapse
Use can Use this
http://forum.xda-developers.com/showthread.php?t=2179431
Extract apps from stock KDZ
Hello
I'm trying to extract two applications from a Stock Rom KDZ file from my LGE975
I have installed the pacman 4.3 rom, and lost two apps very importante for me. The Diodioct and the Quick translator.
I now that there is thread only for that, but I have already install it and I get a message say "wrong phone model"
I have ask for more help and no answer until now.
So I found this thread i'm asking if there is a way two extract this two apps and install it on my phone with the pacman rom?
Thanks
So here is the way, how You can create Custom Home Button.
* Softwares you need to do this : (all download links provided below) :
1) 7-Zip File Manager
2) Windows Image Resizer
* Stepwise Guide :
STEP 1 : Get you launcher’s (.apk) file
STEP 2 : Extract it with 7-Zip File Manager
STEP 3 : Open the folder where you have extracted the apk file
STEP 4 : You will find a folder named ‘res’ ; open it and go to ‘res\drawable-hdpi"; open all folders inside 'res' folder and make sure that you have replaced all the stock isons by desired icons.
STEP 5 : You will find your Launcher Icon. Right Click on it, go to Properties and then to Details ; there you will find dimensions of the image. Note them somewhere.
STEP 6 : Now select the desired Icon and resize it using Windows Image Resizer by right clicking and then clicking on ‘Resize Image’.
STEP 7 : Replace the Icon in extracted folder with the same name.
STEP 8 : Repeat the above steps in ‘ res\drawable-sw800dp-hdpi ‘ and ‘ res\drawable-xhdpi ‘ and ‘ res\drawable-xxhdpi ‘ folders.
STEP 9 : After replacing all the icons, come back to the folder and select all files, right click on them and using 7-Zip add them to an archive, when adding into an archive make sure that you (.zip) by (.apk).
STEP 10: Install the launcher or place it in an Custom Rom. ( I would suggest place this launcher in an Custom Rom )
* All Screenshots, Download links and Custom launcher provided below
IF ANY PROBLEM JUST TELL ME
Thread Closed: 12. Using the work of others. Please see Forum Rules....
HOW TO USE:
-Extract and copy Android Platform Tools to same directory with *.bat file
-Create \images\ folder
-Open fastboot rom file with Winrar (or alternate) and copy all contents of the images folder to created images folder
-Double click to run *.bat file and follow instructions
NOTES:
-Works all MIUI roms included 14,13 and 12. Also works with VIETSUB custom roms.
-Device should be bootloader unlocked
-You can download Android Platform Tools from: https://developer.android.com/studio/releases/platform-tools
DOWNLOAD
Help my phone vorrupted afre use this