Tutorial in Spanish [TUTO] Como desempaquetar un KDZ y un DZ [LG E610 L5]
Click to expand...
Click to collapse
In LG phones L7/5/3 to opted for DZ format, if we unpack one ROM KDZ we find a CAB, and if you unzipped the CAB seems the DZ.
DZ files are tablets that can be flashed directly, and as always, you can unpack to extract the ROM in BIN format.
NECESSARY TOOLS
Unpack KDZ = LGExtract.exe by navossoc.
Unpack CAB = any decompressor, on Windows, eg. WinRAR.
Unpack DZ = DZDecrypt.exe DZ_Creator.exe by copsfrance
And of course a ROM format KDZ or DZ.
PROCEDURE
The first thing to do is to unpack the KDZ, so copy the file LGExtract.exe on the route where we have the ROM format KDZ and from the console (which previously must be located on the route of the ROM) type:
WINDOWS
Code:
LGExtract.exe -kdz V10X_xx.kdz
LINUX
Code:
wine LGExtract.exe -kdz V10X_xx.kdz
Click to expand...
Click to collapse
and you press Enter
NOTE
Where it saysV10X_xx.kdz must be the name of the ROM, for exampleV10A_00.kdz
When the process is complete will see a file with the same name as the ROM, but with the extension .cab, for example, V10A_00.cab
Unzip it and will the DZ and a DLL file
To unpack the DZ type this:
WINDOWS
Code:
DZDecrypt.exe LGE610AT-xx-VxxX-XX-XXX-xx-xx-20xx+x.dz
LINUX
Code:
wine DZDecrypt.exe LGE610AT-xx-VxxX-XX-XXX-xx-xx-20xx+x.dz
Click to expand...
Click to collapse
And you press Enter
NOTE
Where it saysLGE610AT-xx-VxxX-XX-XXX-xx-xx-20xx+x.dz should be the name of the DZ, for example:LGE610AT-00-V10b-EUR-XXX-MAY-23-2012+0.dz
We already have the ROM in BIN format, now you have to concatenate the files SYSTEM, so we use the console and...:
WINODWS
Code:
copy /b "system.img.ext4_
[*]" "system.img"
LINUX
Code:
cat system.img.ext4_* > system.img.ext4
Click to expand...
Click to collapse
And you press Enter and you can delete the files system.img.ext4_0, system.img.ext4_1,..., system.img.ext4_6 (version DZDecrypt.exe v1.0c+ does this job automatically)
Now we'll have a list like this:
Code:
amss.bin
boot.img
boot_logo.bin
emmc_appsboot.bin
oemsbl.bin
partition.bin
persist.img.ext4
qcsbl.mbn
qcsblhd_cfgdata.mbn
recovery.img
system.img.ext4
Click to expand...
Click to collapse
Files .ext4 are you can rename to .img and mount as one drive in Linux or WIndows with Winimage manipulate its contents
LINUX:
Code:
mkdir system
sudo mount system.img.ext4 system -oloop
To disassemble
Code:
sudo umount system
Click to expand...
Click to collapse
With this I believe that we have done, if something is missing or you have any questions to ask without fear.
very useful for stock rom modding... I was looking for this a month ago, so thanks man!
I cant open with WinImage my system.img extract from L3 e400 V10O_00.kdz
Ygreck said:
I cant open with WinImage my system.img extract from L3 e400 V10O_00.kdz
Click to expand...
Click to collapse
for .img (from .kdz) u have to use ext2explorer
google it or try this link
http://d-h.st/nRw
i've tried to add it as attachment but failed for unknown reasons.
All this procedure will not work for E435.
i've got 1gb .dz file but unable to extract it.
any ideas?
Sudeep Duhoon said:
... All this procedure will not work for E435.
i've got 1gb .dz file but unable to extract it.
any ideas?
Click to expand...
Click to collapse
Try this http://forum.xda-developers.com/showpost.php?p=38748031&postcount=43
Homero2 said:
Try this http://forum.xda-developers.com/showpost.php?p=38748031&postcount=43
Click to expand...
Click to collapse
i tried this, no change
Homero2 said:
In LG phones L7/5/3 to opted for DZ format, if we desempaquetamos one ROM KDZ we find a CAB, and if you unzipped the CAB seems the DZ.
DZ files are tablets that can be flashed directly, and as always, you can unpack to extract the ROM in BIN format.
NECESARY TOOLS
Unpack KDZ = LGExtract.exe by navossoc.
Unpack CAB = any decompressor, on Windows, eg. WinRAR.
Unpack DZ = DZDecrypt.exe DZ_Creator.exe by copsfrance
And of course a ROM format KDZ or DZ.
PROCEDURE
The first thing to do is to unpack the KDZ, so copy the file LGExtract.exe on the route where we have the ROM format KDZ and from the console (which previously must be located on the route of the ROM) type:
and you press Enter
NOTE
Where it saysV10X_xx.kdz must be the name of the ROM, for exampleV10A_00.kdz
When the process is complete will see a file with the same name as the ROM, but with the extension .cab, for example, V10A_00.cab
Unzip it and will the DZ and a DLL file
To unpack the DZ type this:
And you press Enter
NOTE
Where it saysLGE610AT-xx-VxxX-XX-XXX-xx-xx-20xx+x.dz should be the name of the DZ, for example:LGE610AT-00-V10b-EUR-XXX-MAY-23-2012+0.dz
We already have the ROM in BIN format, now you have to concatenate the files SYSTEM, so we use the console and...:
And you press Enter and you can delete the files system.img.ext4_0, system.img.ext4_1,..., system.img.ext4_6 (version DZDecrypt.exe v1.0c+ does this job automatically)
Now we'll have a list like this:
Files .ext4 are you can rename to .img and mount as one drive in Linux or WIndows with Winimage manipulate its contents
With this I believe that we have done, if something is missing or you have any questions to ask without fear.
Click to expand...
Click to collapse
yes
slarkpro said:
hi pro i have added root file into dz file now i join dz file and dll file via uptest marwin but have an error i don't undestand pls help me!!
Click to expand...
Click to collapse
Bạn bên tinhte.vn à:thumbup:
Gửi từ LG-Optimus L7 của tôi bằng cách sử dụng Tapatalk2
is there a kdz extractor for linux???
ensarman said:
is there a kdz extractor for linux???
Click to expand...
Click to collapse
afaik no
but as the thread explain you should use wine
I used it but my cellphone is a LG L3 II
and I cannot extract the DZ file. I cannot find how to extract my kdz : (
But the kdz updater software can do it but I don't know where that software extract the kdz
Homero2 said:
In LG phones L7/5/3 to opted for DZ format, if we unpack one ROM KDZ we find a CAB, and if you unzipped the CAB seems the DZ.
DZ files are tablets that can be flashed directly, and as always, you can unpack to extract the ROM in BIN format.
NECESSARY TOOLS
Unpack KDZ = LGExtract.exe by navossoc.
Unpack CAB = any decompressor, on Windows, eg. WinRAR.
Unpack DZ = DZDecrypt.exe DZ_Creator.exe by copsfrance
And of course a ROM format KDZ or DZ.
PROCEDURE
The first thing to do is to unpack the KDZ, so copy the file LGExtract.exe on the route where we have the ROM format KDZ and from the console (which previously must be located on the route of the ROM) type:
and you press Enter
NOTE
Where it saysV10X_xx.kdz must be the name of the ROM, for exampleV10A_00.kdz
When the process is complete will see a file with the same name as the ROM, but with the extension .cab, for example, V10A_00.cab
Unzip it and will the DZ and a DLL file
To unpack the DZ type this:
And you press Enter
NOTE
Where it saysLGE610AT-xx-VxxX-XX-XXX-xx-xx-20xx+x.dz should be the name of the DZ, for example:LGE610AT-00-V10b-EUR-XXX-MAY-23-2012+0.dz
We already have the ROM in BIN format, now you have to concatenate the files SYSTEM, so we use the console and...:
And you press Enter and you can delete the files system.img.ext4_0, system.img.ext4_1,..., system.img.ext4_6 (version DZDecrypt.exe v1.0c+ does this job automatically)
Now we'll have a list like this:
Files .ext4 are you can rename to .img and mount as one drive in Linux or WIndows with Winimage manipulate its contents
With this I believe that we have done, if something is missing or you have any questions to ask without fear.
Click to expand...
Click to collapse
Is there a way to get to the totc.cfg file and edit it?
Related
Hy guys if some one rooted their WT19i live with walkman phone
then please copy your system apps folder using root explorer and upload them
from original WT19i stock ROM
i really need them
You may get all files in a few steps:
1. Download firmware file (take it here).
2. Open it with 7-zip or WinRAR and extract somewere system.sin.
3. Download and unpack Direct SIN & YAFFS UnPacker in the same folder with system.sin.
4. Open console (cmd) from this folder and type:
aIUP.exe system.sin 4096 apps_LIVE
5. Your apps will appear in apps_LIVE folder.
Please delete my post
Can you use them with CM ?
.: SID :. said:
You may get all files in a few steps:
1. Download firmware file (take it here).
2. Open it with 7-zip or WinRAR and extract somewere system.sin.
3. Download and unpack Direct SIN & YAFFS UnPacker in the same folder with system.sin.
4. Open console (cmd) from this folder and type:
aIUP.exe system.sin 4096 apps_LIVE
5. Your apps will appear in apps_LIVE folder.
Click to expand...
Click to collapse
Please tell me if i want to extract other mobile phone sin files then what will be the command for them
i want to extract Xperia Arc sin files to .... ?????????????
and i am thankful to you for your info.......
The command will be the same.
Someone please tell me some basic of data.img system.img boot.img files
their use
and how to edit them ?
Or post some links explaining these.
ip2op01 said:
Someone please tell me some basic of data.img system.img boot.img files
their use
and how to edit them ?
Or post some links explaining these.
Click to expand...
Click to collapse
http://stackoverflow.com/questions/3879717/what-is-purpose-of-using-system-img-in-android
http://en.wikipedia.org/wiki/Disk_image
http://en.wikipedia.org/wiki/Boot_image
these may help, or may not. But hopefully so, if not try looking around stackoverflow a bit more.
ip2op01 said:
Someone please tell me some basic of data.img system.img boot.img files
their use
and how to edit them ?
Or post some links explaining these.
Click to expand...
Click to collapse
1.
boot.img : be similar with bootstrap in the PC's BIOS,aim to boot the android OS;
data.img : this file includes some user data and system data;
system.img : this file includes some packages and some lib file.
ramdisk.img : emulator's FS(file system)
2.
when the android OS start, emulator loads those image file to ramdisk FS, create "system" file directory and "data" file directory.so you should think that those are android OS component.
3.
(1)unpack:
a. tool-------"unyaffs" download link : http://code.google.com/p/unyaffs/downloads/list
b. command------./unyaffs system.img
(2)pack:
a. tool-------"mkyaffs2image" location:android/out/host/linux-x86/bin or search internet
b. make this tool
c. command------ ./mkyaffs2image <directory> <out_file>
I know this, try myself
Thanks guys
ip2op01 said:
Thanks guys
Click to expand...
Click to collapse
My English is poor,it's my pleasure,you can understand it.
enyblock said:
1.
boot.img : be similar with bootstrap in the PC's BIOS,aim to boot the android OS;
data.img : this file includes some user data and system data;
system.img : this file includes some packages and some lib file.
ramdisk.img : emulator's FS(file system)
2.
when the android OS start, emulator loads those image file to ramdisk FS, create "system" file directory and "data" file directory.so you should think that those are android OS component.
3.
(1)unpack:
a. tool-------"unyaffs" download link : http://code.google.com/p/unyaffs/downloads/list
b. command------./unyaffs system.img
(2)pack:
a. tool-------"mkyaffs2image" location:android/out/host/linux-x86/bin or search internet
b. make this tool
c. command------ ./mkyaffs2image <directory> <out_file>
I know this, try myself
Click to expand...
Click to collapse
So, if I have a ROM with the .img file extension I should flash it as "System" (In TWRP)???
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
Hi!
Is there any way to edit the zip files without extracting? I mean replacing/deleting files without need to extract the zip/rar files!
Is there any app for that?
Thanks!!!
Powergrasp. But if you want to edit a file then you can extract that file(only that file), edit it and then copy and replace inside the zip. Hope this helps. O
use vim editor in linux/ubuntu
usage : vim filename.zip
edit the contents and save it using :x
7-Zip for Windows
As the title suggests, is it possible to unpack and recompile the System.img.ext4.lz4 found within the stock system image? I'd like to poke around with stuff and see what happens. I know it probably won't accomplish anything but let a boy dream I can't fine any guides out there that work for this but hopefully a dev will bless me with his magic.
If you go to android software and hacking forum here on xda you might see what you're looking for. It's a devs section.
Nathamio said:
As the title suggests, is it possible to unpack and recompile the System.img.ext4.lz4 found within the stock system image? I'd like to poke around with stuff and see what happens. I know it probably won't accomplish anything but let a boy dream I can't fine any guides out there that work for this but hopefully a dev will bless me with his magic.
Click to expand...
Click to collapse
Use 7zip lz4 to extract img then mount img in Linux and then you can access raw system. I can extract and upload it for you if you want to give me the file name for the firmware.
VICosPhi said:
Use 7zip lz4 to extract img then mount img in Linux and then you can access raw system. I can extract and upload it for you if you want to give me the file name for the firmware.
Click to expand...
Click to collapse
If I mount it in linux can I modify it without having to write it to a new img? I tried mounting it and it won't work. Is there some special tool I need to install?
You extracted the xxx.ext4.lz4 to xxx.ext4 then again extracted xxx.ext4 to xxx.img using 7zip LZ4 before mounting to Linux, correct?
VICosPhi said:
You extracted the xxx.ext4.lz4 to xxx.ext4 then again extracted xxx.ext4 to xxx.img using 7zip LZ4 before mounting to Linux, correct?
Click to expand...
Click to collapse
I am also having an issue repacking the image as odin says invalid lz4.
I'm trying to but I get this error:
{
"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"
}
I haven't tried modifying and repacking the file yet, but what I did was extracted the lz4 to ext4 and then ext4 to img using 7zip LZ4. Then I mounted the img in CentOS and copied the /system folder over to get it Deodexed. Someone posted the other day that you can repack an IMG file and just flash it as IMG without having to convert to EXT4 or LZ4 on an S8 with v2 bootloader. I don't think this has been tested on a newer or v3 bootloader like S9.
Micro-instruction for unpack lz4 formats
-Download lz4 programm in attach. Extract in any folder.
-Put in lz4 folder system.img.ext4.lz4
-Open CMD line for lz4 folder and write:
lz4.exe -d system.img.ext4.lz4 system.img.ext4
-wait
-Done. We have system.img.ext4.
Now we can unpack this with SVAImgUnpack or any tool
mahotlov said:
Micro-instruction for unpack lz4 formats
-Download lz4 programm in attach. Extract in any folder.
-Put in lz4 folder system.img.ext4.lz4
-Open CMD line for lz4 folder and write:
lz4.exe -d system.img.ext4.lz4 system.img.ext4
-wait
-Done. We have system.img.ext4.
Now we can unpack this with SVAImgUnpack or any tool
Click to expand...
Click to collapse
nope decoded but linux reader not work, svaimg not work is oreo
bleros said:
nope decoded but linux reader not work, svaimg not work is oreo
Click to expand...
Click to collapse
I just converted the S7 Oreo Image (BTU-G930FXXU2ERD5) on my debian linux machine. To convert the android sparse file to the raw ext4 image, both worked simg2img and SVAImgUnpack.exe.
Which step does not work? The lz4 decompression? Or the conversion of the android sparse file to an raw ext4 image? Or the reading of the raw ext4 image?
By the way, I'm wondering if the S9 image is using ext4 or f2fs. Maybe that is the problem.
wernerwa said:
I just converted the S7 Oreo Image (BTU-G930FXXU2ERD5) on my debian linux machine. To convert the android sparse file to the raw ext4 image, both worked simg2img and SVAImgUnpack.exe.
Which step does not work? The lz4 decompression? Or the conversion of the android sparse file to an raw ext4 image? Or the reading of the raw ext4 image?
By the way, I'm wondering if the S9 image is using ext4 or f2fs. Maybe that is the problem.
Click to expand...
Click to collapse
i treid on windows , s7 oreo , no worry i have tried on vmware machine with debian and superr kitchen work fine
End of day you will find out that once you modify the stock image, it's no longer "stock" and probably fail when you try to flash it. Integrity verification wont let you. Unless you OEM unlock and flash a custom recovery, which WILL certainly trip your knox. There is no way back. For now. (I hope.)
wernerwa said:
I just converted the S7 Oreo Image (BTU-G930FXXU2ERD5) on my debian linux machine. To convert the android sparse file to the raw ext4 image, both worked simg2img and SVAImgUnpack.exe.
Which step does not work? The lz4 decompression? Or the conversion of the android sparse file to an raw ext4 image? Or the reading of the raw ext4 image?
By the way, I'm wondering if the S9 image is using ext4 or f2fs. Maybe that is the problem.
Click to expand...
Click to collapse
i tried again work fine was my mistake first lz4 used then droped into svaimgunpack then ext4explorer :highfive:
mahotlov said:
Micro-instruction for unpack lz4 formats
-Download lz4 programm in attach. Extract in any folder.
-Put in lz4 folder system.img.ext4.lz4
-Open CMD line for lz4 folder and write:
lz4.exe -d system.img.ext4.lz4 system.img.ext4
-wait
-Done. We have system.img.ext4.
Now we can unpack this with SVAImgUnpack or any tool
Click to expand...
Click to collapse
Hi,
I used 7zip to decompress firmware downloaded from sammobile (s7 edge). But the boot and recovery img I got were boot.img.lz4 and recovery.img.lz4.
I used your tool to get the .img directly without going into .ext4. Did I miss something in the steps I took? Thanks
dknight178
Hi. This instruction I wrote for s8/s9 (+)
Their images in firmware have ext4 extension.
You're doing everything right.
dknight178 said:
Hi,
I used 7zip to decompress firmware downloaded from sammobile (s7 edge). But the boot and recovery img I got were boot.img.lz4 and recovery.img.lz4.
I used your tool to get the .img directly without going into .ext4. Did I miss something in the steps I took? Thanks
Click to expand...
Click to collapse
Only certain partitions , like system and userdata, will have images that include the ext4 extension. Possibly cache, as well. Basically just the main partitions that are always mounted and regularly interacted with when the system is booted up and running.
Nathamio said:
I am also having an issue repacking the image as odin says invalid lz4.
I'm trying to but I get this error:
Click to expand...
Click to collapse
The tar archives used by odin aren't the basic version that 7zip is capable of making,. You need to use an actual tar excutable, and include certain argument. On windows, your tar command should look something like this:
Code:
tar.exe --create --format=gnu -b20 --quoting-style=escape --owner=0 --group=0 --totals --mode=644 -f yourFW.tar boot.img.lz4 recovery.img.lz4 system.img.ext4.lz4 userdata.img.ext4.lz4
That would make a basic AP odin-ready tar package. Then just use md5sum to finish it off, though I don't believe its necessary Something like this:
Code:
md5sum.exe -t yourFW.tar >> yourFW.tar
move yourFW.tar yourFW.tar.md5
I attached d a zip with windows version of tar, md5sum, mv, and ls.
I f I want to make a flashable zip, what steps would I take to extract stock firmware to do so?
up
mahotlov said:
Micro-instruction for unpack lz4 formats
-Download lz4 programm in attach. Extract in any folder.
-Put in lz4 folder system.img.ext4.lz4
-Open CMD line for lz4 folder and write:
lz4.exe -d system.img.ext4.lz4 system.img.ext4
-wait
-Done. We have system.img.ext4.
Now we can unpack this with SVAImgUnpack or any tool
Click to expand...
Click to collapse
i had error
lz4.exe : The term 'lz4.exe' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ lz4.exe
+ ~~~~~~~
+ CategoryInfo : ObjectNotFound: (lz4.exe:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
hochocnua said:
i had error
lz4.exe : The term 'lz4.exe' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ lz4.exe
+ ~~~~~~~
+ CategoryInfo : ObjectNotFound: (lz4.exe:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Click to expand...
Click to collapse
wrong path and dont use powershell use cmd as admin