(Only DEVS) How to Extract System.img.ext4 ?? - Verizon Samsung Galaxy S 4

How can i extract system.img.ext4 in linux or windows please help me out also searched for the guides but nothing worked thats why i am posting here. basically i am trying to extract a system.img.ext4 of NC5 want to make my own rom by deodexing and zipaligning and some other tweaks also..

ahmed.zubair said:
How can i extract system.img.ext4 in linux or windows please help me out also searched for the guides but nothing worked thats why i am posting here. basically i am trying to extract a system.img.ext4 of NC5 want to make my own rom by deodexing and zipaligning and some other tweaks also..
Click to expand...
Click to collapse
ok so I was looking for the same thing and found a way that worked for me on windows 7 64bit...
1. download the sgs2toext4.jar from rwilco12's website or the xda thread
2. run sgs2toext4.jar and then drag your "system.img.ext4" file that you got from your tar.md5 file into the main window that says "Drag Here"
3. it will take a couple minutes to create the new "system.img.ext4.img" file, so let it run until it says in the window that it is done...then close the program
4. download ext2explore-2.2.71 from the sourceforge website
5. once downloaded, extract the .exe file and right click on ext2explore.exe to "run as administrator"
6. then click on File at top left and then Open Image...select your "system.img.ext4.img" file
7. Highlight the file in the right window pane and click Save
8. then save the contents to a folder of your choosing and VIOLA!!
hope that helps!

onelovekir said:
ok so I was looking for the same thing and found a way that worked for me on windows 7 64bit...
1. download the sgs2toext4.jar from rwilco12's website or the xda thread
2. run sgs2toext4.jar and then drag your "system.img.ext4" file that you got from your tar.md5 file into the main window that says "Drag Here"
3. it will take a couple minutes to create the new "system.img.ext4.img" file, so let it run until it says in the window that it is done...then close the program
4. download ext2explore-2.2.71 from the sourceforge website
5. once downloaded, extract the .exe file and right click on ext2explore.exe to "run as administrator"
6. then click on File at top left and then Open Image...select your "system.img.ext4.img" file
7. Highlight the file in the right window pane and click Save
8. then save the contents to a folder of your choosing and VIOLA!!
hope that helps!
Click to expand...
Click to collapse
thanks, really
i have success with
G900FDXXU1ANJ2_G900FDOJV1ANJ2_G900FDXXU1ANH2_HOME system.img.ext4 .

Not working on Note 4 Lollipop
This guide isn't working for Note 4 Lollipop rom. @onelovekir
Any other solution?
Thanks.

amk19 said:
This guide isn't working for Note 4 Lollipop rom. @onelovekir
Any other solution?
Thanks.
Click to expand...
Click to collapse
with the new lollipop I don't believe they use the same formatting, but I'm not 100% sure on that, someone else would have to chime in on that as I don't have lollipop yet.

onelovekir said:
ok so I was looking for the same thing and found a way that worked for me on windows 7 64bit...
1. download the sgs2toext4.jar from rwilco12's website or the xda thread
2. run sgs2toext4.jar and then drag your "system.img.ext4" file that you got from your tar.md5 file into the main window that says "Drag Here"
3. it will take a couple minutes to create the new "system.img.ext4.img" file, so let it run until it says in the window that it is done...then close the program
4. download ext2explore-2.2.71 from the sourceforge website
5. once downloaded, extract the .exe file and right click on ext2explore.exe to "run as administrator"
6. then click on File at top left and then Open Image...select your "system.img.ext4.img" file
7. Highlight the file in the right window pane and click Save
8. then save the contents to a folder of your choosing and VIOLA!!
hope that helps!
Click to expand...
Click to collapse
thanks
for Repack files after edit to system.ext4 and after Then system.sin What I do?

Sorry for the extremely late reply, but I always repack into a .zip file to flash using any recovery. i'm not sure how to make a legit samsung odin tar.

amk19 said:
This guide isn't working for Note 4 Lollipop rom. @onelovekir
Any other solution?
Thanks.
Click to expand...
Click to collapse
Try FTK Imager 3.4.0.1...so far its working for me without all the extra steps :good:

@onelovekir
Hey there, I'm trying to open the S4 lollipop system.img with the FTK Imager but it says "select a valid image file".
Does it really work for you?
Stami

Related

Tutorial make rom from ruu windows 7

I just read a another tutorial about this and if your new it's kinda long, maybe confusing. So hopefully this is better. Options are always better
You'll need only a couple things
7zip
the ruu of choice
unyaffs batch script (included)
autosign (check my signature)
Download the ruu of choice and begin to run it
press ctrl,alt,del and open taskmanager, select aruwizard.exe and go to file location.
Scroll through the file and find rom.zip move it to your desktop or other conveniant location.
Close the ruu then unzip the rom.zip with 7zip
unzip the unyaffs batch file
inside the rom.zip you'll find system.img and boot.img
move the system.img into the unyaffs folder and double click the unyaffs.bat
In the out file will be all the files from the system.img
Now take the boot.img and the files from the system.img and put them in the same folder
In that same folder make a meta-inf folder and put your update script in there
zip it all up and sign it
I get this error, when using the tool. What should I do?
i tried too many times but when i want to open rom.zip after copying from aurwizard.exe location will say rom.zip is invalid .
can any one clarify if it is working in windows 8 ?m

How to build your own rom using stock rom/firmware(noob friendly guide)

HERE IS A GUIDE FOR YOU ALL YOU CAN CREATE YOUR OWN ROM BY THIS METHOD.I AM NOT RESPONSIBLE FOR BRICKED DEVICES.
Click to expand...
Click to collapse
Requirement to make a custom rom
*JAVA JDK installed on your SYSTEM
*WIN XP/ 7/8/8.1.
*package given in download section
Who is this kitchen for ?
Those who are brand new to
creating custom ROMs and
want an easy place to start
learning
Those who just want to modify
shipped ROMs or someone
else's custom ROMs to their
liking
Those who are confused by all
those scripts and complex
commands required for
building and extracting
This is NOT a tool to
automatically turn you into a
full-fledged ROM developer.
ROM development normally
involves work from the ground
up and involves time , research
and patience .
Click to expand...
Click to collapse
PRESS THANKS IF YOU LIKE MY WORK..
Kitchen setup
setting up dsixda kitchen
1.download all the three link and unzip kitchen.rar and cywin package.
2.open cywin_package then open folder now, you can see 3 icons, a read-
me,a setup, and a folder. Choose
the setup. Here you will choose
install from local directory. Next,
navigate to the the folder of
extraction of cygwin and choose
the folder cygwin_packages inside
the cygwin extraction folder. Wait
for some time. Then, you will come
across a list of file. Click the 2-
circle-arrows,untill, it displays
“install”
after the procedure is complete,
run the batch file cygwin.bat . Now, minimise
it and copy kitchen folder,
keep it in some location where you have installed your cygwin package open home/ajay-pc(in my case this is administrator name of my pc)kitchen
now, open the batch file window
and type
cd c:\kitchen
wait for some time and then when
the location the changed, type
./menu
Click to expand...
Click to collapse
press thanks if you like my work
GUIDE
now minimize the batch file and extract official rom there you will find system.img then extract it using magic iso or flash
the official stock rom using odin the take a nandroid backup u will get system.rfs.tar in your sd card extract it using magic iso then make a folder in called rom and open it. again create a folder called system and copy all data from system.rfs.tar which u have extracted(do drag and dropping).
Now copy meta-inf of any stock rom and copy and kernel to rom folder.
Now you will get two folder and one file in your rom folder zip the folder content and copy the file where you have installed cygwin/home/ajay/kitchen/original update folder.
now open command shell which you have minimized 1st create working folder then add root permission,deodex your rom.
and at last press 99 to build your rom..
note-if it ask you to change updater script to update script change it but dont forget to change it back to updater script.now you will get your rom in output folder copy it to your sd card flash it if error occur unzip the zip file and delete meta-inf and boot.img and again copy meta-inf of any rom and kernel to it and zip it..again flash the rom..
PRESS THANKS IF YOU LIKE MY WORK
DOWNLOADS
Downloads​
Link for cygwin click here :good:​link for kitchen click here :good:​link for magic iso click here :good:​
Link for official firmware click here :good:​
PRESS THANKS IF YOU LIKE MY WORK
CREDIT
DSIXDA for Android Kitchen
Samsung for this awesome device
ME for this Guide

[Tutorial] LG-P715 kdz to Flashable zip

Here I'm posting how to convert .kdz file into a Flashable zip file, The list of files you needed are
Official kdz file
kdz extractor
LGwinTools
ext2explore
Cygwin (If you are a windows user) from here
dsixda's kitchen This Thread
1. Extract the kdz extractor to the new folder, just drag and drop the kdz file to the unpack_kdz.bat. You will find the .cab file in the same directory where you have kdz.
2. Drag and drop the cab file to unpack_cab.bat. The dz file will be extracted to /dz folder in the same directory.
3. Now extract and open LGwinTools file->open locate the dz file. Items will be displayed in bin files, now click on save to any new folder.
4. We need two files SYSTEM and APPS. Extract and run ext2explore then locate the SYSTEM file, it will load. Now click on save to any new directory(make sure the folder name is system)
5. Now rename the file APPS to "boot.img" (you have extracted from LGwinTools)
6. Make an archive .zip containing \system boot.img \META-INF(attached below)
6 Next process will be installing "Cygwin" read this
7. Installing dsixda's Kitchen read this
8. After you installation you have move the created zip file to \kitchen\original_update (In my case it is "C:\Cygwin\home\Santhoosh\Kitchen\original_update")
9. Run Cygwin
Code:
cd kitchen
./menu
10. Setup working folder and go to Advanced option select "Deodex files in your rom" MAKE SURE YOU SET THE API LEVEL TO 19 and choose both system and framework
11. After this "Rename the app folder in /system to app1" "priv-app to app" in WORKING Directory
12. Now again go for Deodex and deodex the remaining files. after completion rename app to priv-app and app1 to app.
13. Make sure the updator-script is untouched
14. Do zip align(optional) and make any other changes you want.
15. Remove unnecessary app like GooglePlus etc. Remove the Qtranslator and Polarisviewer apk and odex files.
Note: After Deodexing the LG Keyboard will not work, Remove it and add any other keyboard to app folder.
16. Now move to working folder and make a zip file of all. (/system /META-INF boot.img)
17. FLASH IT :laugh::laugh:
18. To Gain root access you have to download this and flash SU
I tried to unpack kdz file, but the programm (unpack_kdz.bat) didn't work. The text in a window is : "Error! LGExtract.exe is not internal or external command, programm or batch file". Why did this error happened? I use windows 7 x64
explains better.. please no root l7 ii p715 kitkat 4.4.2 ....
:
santhoosh said:
Here I'm posting how to convert .kdz file into a Flashable zip file, The list of files you needed are
Official kdz file
kdz extractor
LGwinTools
ext2explore
Cygwin (If you are a windows user) from here
dsixda's kitchen This Thread
1. Extract the kdz extractor to the new folder, just drag and drop the kdz file to the unpack_kdz.bat. You will find the .cab file in the same directory where you have kdz.
2. Drag and drop the cab file to unpack_cab.bat. The dz file will be extracted to /dz folder in the same directory.
3. Now extract and open LGwinTools file->open locate the dz file. Items will be displayed in bin files, now click on save to any new folder.
4. We need two files SYSTEM and APPS. Extract and run ext2explore then locate the SYSTEM file, it will load. Now click on save to any new directory(make sure the folder name is system)
5. Now rename the file APPS to "boot.img" (you have extracted from LGwinTools)
6. Make an archive .zip containing \system boot.img \META-INF(attached below)
6 Next process will be installing "Cygwin" read this
7. Installing dsixda's Kitchen read this
8. After you installation you have move the created zip file to \kitchen\original_update (In my case it is "C:\Cygwin\home\Santhoosh\Kitchen\original_update")
9. Run Cygwin
Code:
cd kitchen
./menu
10. Setup working folder and go to Advanced option select "Deodex files in your rom" MAKE SURE YOU SET THE API LEVEL TO 19 and choose both system and framework
11. After this "Rename the app folder in /system to app1" "priv-app to app" in WORKING Directory
12. Now again go for Deodex and deodex the remaining files. after completion rename app to priv-app and app1 to app.
13. Make sure the updator-script is untouched
14. Do zip align(optional) and make any other changes you want.
15. Remove unnecessary app like GooglePlus etc. Remove the Qtranslator and Polarisviewer apk and odex files.
Note: After Deodexing the LG Keyboard will not work, Remove it and add any other keyboard to app folder.
16. Now move to working folder and make a zip file of all. (/system /META-INF boot.img)
17. FLASH IT :laugh::laugh:
18. To Gain root access you have to download this and flash SU
Click to expand...
Click to collapse
Ilyazzzz said:
I tried to unpack kdz file, but the programm (unpack_kdz.bat) didn't work. The text in a window is : "Error! LGExtract.exe is not internal or external command, programm or batch file". Why did this error happened? I use windows 7 x64
Click to expand...
Click to collapse
use this, i have uploaded wrong file
https://www.dropbox.com/s/ko3s25r0wxf2ext/kdz_extractor.zip?dl=0
rodrigorafaelb said:
:
Click to expand...
Click to collapse
you can root by flashing this file
SuperSU
kdz_extractor modified
download and use this, dont download the kdz_extractor in the main thread.
So.. for the last step is, we don't have to build using kitchen but just archive the working folder instead?
santhoosh said:
you can root by flashing this file
SuperSU
Click to expand...
Click to collapse
how to flash it??
riskey95 said:
how to flash it??
Click to expand...
Click to collapse
In cwm.
sasa g said:
In cwm.
Click to expand...
Click to collapse
my device not rooted yet
riskey95 said:
my device not rooted yet
Click to expand...
Click to collapse
So root it follow author tutorial i already rooted my p715 thanks ts
i managed to make a flashable .zip and rooted with your tutorial ,thanks,but do you know how to make the inverse proccess? make this .zip into a kdz firmware??????
will this work for l5 II? I'm having trouble using lg mobile support tool. this is my only option for now..
It will work
Sent from my LG-P715 using XDA Free mobile app
santhoosh said:
It will work
Sent from my LG-P715 using XDA Free mobile app
Click to expand...
Click to collapse
thanks. by the way, will the custom recovery and root access be removed when I flash the zip?
It won't be removed
Sent from my LG-P715 using XDA Free mobile app
santhoosh said:
It won't be removed
Sent from my LG-P715 using XDA Free mobile app
Click to expand...
Click to collapse
ts i did a flashable zip of my country kitkat firmware its philppine kitkat firmware http://csmgdl.lgmobile.com/dn/downloader.dev?fileKey=FW808706432109876543213/V20A_00.kdz
after i flashed .zip it success is version is 4.2.2 but the software version is v10h? not v20a? did you have any idea for this?
May be you have to wait for the kitkat update or simply download any other country firmware.
Sent from my LG-P715 using XDA Free mobile app
what does the bat file do? nothing happens when I drag and drop the kdz file in the batch file.
Which one you downloaded, i have attached a modified kdz_extractor.zip try that
Sent from my LG-P715 using XDA Free mobile app

How to unpack recovery.img?

How can I unpack recovery.img? I am running linux on my PC.
Well I found a way, so thought that I should share it with all.
You need dsixda's Android Kitchen and recovery.img of any phone you want to unpack.
I am running a linux pc.
You can look for installation steps in following thread:
https://forum.xda-developers.com/showthread.php?t=633246
Open a terminal.
Type the following command to go into the directory of android kitchen
For example, I have to go in this path using terminal
/home/augustoandro/Android/android-kitchen , then I type
cd /home/augustoandro/Android/android-kitchen
Click to expand...
Click to collapse
After that
./menu
Click to expand...
Click to collapse
Now choose ADVANCED OPTIONS by entering the no. in front of the option.
Now, select "unpack/repack boot.img" option in the same way.
Now, enter "a".
A folder would be created in the android kitchen folder. In my case, /home/augustoandro/Android/android-kitchen/boot-img-64647470
Copy and paste the recovery.img file in the new folder.
Go back to the terminal and press enter.
The recovery.img file would be unpacked in the same folder.
You can look for it using the file explorer.
Hit thanks button if found useful

Root Samsung Galaxy A21s (SM-A217F) Stock Rom

Got my SM-A217F rooted first attempt,
So what i did was.....
1) used Frija-v1.4.4 to download my latest stock firmware "SM-A217F_1_20210807114045_mzeyu27v8u_fac.zip"
2) Extracted the zip file and flashed the 4 files with "Odin3_v3.14.4"
3) after that i let the phone restart and boot up entered my google account details etc etc
4) on PC i used winrar and extracted the "boot.img.lz4" file only from "AP_A217FXXU6CUH1_CL21842546_QB42174009_REV00_user_low_ship_MULTI_CERT_meta_RKEY_OS11.tar.md5"
5) on PC i then used "lz4_win64_v1_9_3" i copied the extracted "boot.img.lz4" file into the "lz4_win64_v1_9_3" folder
6) op PC inside the "lz4_win64_v1_9_3" folder i dragged the "boot.img.lz4" file onto "lz4.exe" wich created a new file "boot.img"
7) copied the "boot.img" file onto my phones internal storage
8) on phone i installed "Magisk_patched_for_A21S.apk" and opened it --> chose "Install" -->"select and patch a file" --> select "boot.img" from step 7 --> normal android way
9) That created a "magisk_patched-22104_0x2Ov.img" file in my phones "download" folder
10) Renamed that "magisk_patched-22104_0x2Ov.img" to "boot.img" on my phone
11) i then used "ZArchiver" and compressed that "boot.img" i just renamed from "boot.img" to "boot.tar"
12) Copied the "boot.tar" file to my pc and renamed it to "boot.img.tar" on my pc
13) On PC i used "Odin3_v3.14.4" and flashed the "boot.img.tar" file to my device, i left "Auto reboot" and "F reset time" ticked
14) after flashing and getting the green "PASS" logo i left my phone pluged into the the pc the whole time while the phone was restarting
15) after phone rebooted i installed "Magisk" with the "Magisk_patched_for_A21S" app --> let it reboot again after install
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
AND THATS IT
ONE A21S SUCCESSFULLY ROOTED
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
NB: thank grccorps for this excellent magisk
thanks you
[email protected] said:
11) i then used "ZArchiver" and compressed that "boot.img" i just renamed from "boot.img" to "boot.tar"
12) Copied the "boot.tar" file to my pc and renamed it to "boot.img.tar" on my pc
Click to expand...
Click to collapse
This is not completely clear for me.
Compressing boot.img to .tar is action different from renaming it.
What exactly happened?
BTW:
Similar case with boot.img.lz4 and boot.img.
Renaming doesn't mean uncompressing or compressing file then finally people might have two different things inside what could cause confusion and in one of two described situations potential bootloop/brick.
Maybe this was the reason that some folk achieved success and other not?
Let's clarify that for benefit all of us.
Please anyone explain.
F308 said:
This is not completely clear for me.
Compressing boot.img to .tar is action different from renaming it.
What exactly happened?
BTW:
Similar case with boot.img.lz4 and boot.img.
Renaming doesn't mean uncompressing or compressing file then finally people might have two different things inside what could cause confusion and in one of two described situations potential bootloop/brick.
Maybe this was the reason that some folk achieved success and other not?
Let's clarify that for benefit all of us.
Please anyone explain.
Click to expand...
Click to collapse
Okay i see how this might cause confusion,
###########################################################################
STEP 10 : was just a rename no software used
STEP 11 : i used "ZArchiver" to comprerss and change the file from ".img" to ".tar" (not just rename)
###########################################################################
Thank you.
I will root my M12 soon, it will eventually save me some hours of unnecessary efforts.
My English is pretty bad, so please excuse me..
I copied the "boot.img.tar" to my PC.
under which tab do I have to insert them in ODIN?
But no matter what I try I get an error.
No, I changed them in step 11 with ZArchiver.
I just want to root my phone. Greeze
At start - don't apologize your English.
Not even Englishmen speak English.
At step two:
You are lucky you didn't land in bootloop or brick zone.
Even I was there because I was too fast to go into action.
I suggest to read at least 500 posts about rooting, myself I did it.
You will avoid lot of headache and will save much time.
[email protected] said:
Got my SM-A217F rooted first attempt,
So what i did was.....
1) used Frija-v1.4.4 to download my latest stock firmware "SM-A217F_1_20210807114045_mzeyu27v8u_fac.zip"
2) Extracted the zip file and flashed the 4 files with "Odin3_v3.14.4"
3) after that i let the phone restart and boot up entered my google account details etc etc
4) on PC i used winrar and extracted the "boot.img.lz4" file only from "AP_A217FXXU6CUH1_CL21842546_QB42174009_REV00_user_low_ship_MULTI_CERT_meta_RKEY_OS11.tar.md5"
5) on PC i then used "lz4_win64_v1_9_3" i copied the extracted "boot.img.lz4" file into the "lz4_win64_v1_9_3" folder
6) op PC inside the "lz4_win64_v1_9_3" folder i dragged the "boot.img.lz4" file onto "lz4.exe" wich created a new file "boot.img"
7) copied the "boot.img" file onto my phones internal storage
8) on phone i installed "Magisk_patched_for_A21S.apk" and opened it --> chose "Install" -->"select and patch a file" --> select "boot.img" from step 7 --> normal android way
9) That created a "magisk_patched-22104_0x2Ov.img" file in my phones "download" folder
10) Renamed that "magisk_patched-22104_0x2Ov.img" to "boot.img" on my phone
11) i then used "ZArchiver" and compressed that "boot.img" i just renamed from "boot.img" to "boot.tar"
12) Copied the "boot.tar" file to my pc and renamed it to "boot.img.tar" on my pc
13) On PC i used "Odin3_v3.14.4" and flashed the "boot.img.tar" file to my device, i left "Auto reboot" and "F reset time" ticked
14) after flashing and getting the green "PASS" logo i left my phone pluged into the the pc the whole time while the phone was restarting
15) after phone rebooted i installed "Magisk" with the "Magisk_patched_for_A21S" app --> let it reboot again after install
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
AND THATS IT
ONE A21S SUCCESSFULLY ROOTED
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
NB: thank grccorps for this excellent magisk
Click to expand...
Click to collapse
If this works id pay you if i had money
Scia0 said:
If this works id pay you if i had money
Click to expand...
Click to collapse
It works ive done this personally
Does it work on Android 12 and with u8 protection
hamada2001 said:
Does it work on Android 12 and with u8 protection
Click to expand...
Click to collapse
Hello everyone.
I have read all the messages from the first to the last post from root to a21s.
Currently I just have to follow the steps in the first message without using modified magisk to be able to root?
Forgive my English I am Spanish and I use google translate.
localdemoda said:
Hello everyone.
I have read all the messages from the first to the last post from root to a21s.
Currently I just have to follow the steps in the first message without using modified magisk to be able to root?
Forgive my English I am Spanish and I use google
Click to expand...
Click to collapse
what android version are you on
I have android 12 but I can install android 11, which one is better for root?
ies thiss is best guide to root a21s im downgroaded to android11 (U8) .dont forget oem lock/bootloader unlock mode.

Categories

Resources