Flash non stock system.img - Samsung Galaxy S8 Questions and Answers

Hey, i looking for aome help.
Im trying to create a ROM for the Galaxy s8 g950f.
What i did was to take the stock system.img to supers kitchen and extract it, after that i build the img again (chainging nothing in it) and im getting a sparse img.
I take the new img to the AP and flash it to the phone, there i get system.img fail at the odin.
Stock ROM is flashed just fine with odin.
Any idea why is that? Or how should i open the system.img and change things in it?

Related

how to flash my original 5.1.1 kernel ?

HI everybody
I updated my n910H to 5.1.1 , worked well and decided to flash a custom kernel . also faced to problem with wifi and now i decided to flash my original kernel.
i extracted the boot.img from update package N910HXXU1COH4_N910HOLB1COH4_N910HXXU1COH3_HOME.tar
now, im not sure how to flash it !! via odin or anything else needed
thank u for your help
any help ?????
when I had my S3 if I needed the stock kernel I would simply reflash the stock rom since they usually have the stock kernels built-in
Sent from my SM-N910H using Tapatalk
i dont want to reset my phone , i just want to flash the original kernel
mehdi.moha said:
i dont want to reset my phone , i just want to flash the original kernel
Click to expand...
Click to collapse
Never tried with samsung phones (and probably it is not possible) but with my other android devices I just extract the boot.img from the ROM and flash it with fastboot using the command "fastboot flash boot boot.img".
With a samsung device you should probably (or definitely) create a flashable .zip file with the boot.img of your stock ROM and flash it via recovery.
You need to download your original kernel from net, there are 2 types of file you’ll find, one is .zip and another one is .tar. If you download .zip file you have to flash it with recovery (CWM/TWRP) or if you download .tar file (don't try to make your own .tar file) then you can flash it with Odin tool.

Making custom SM-G903F (GS5 Neo) LL 5.1.1 Pre-rooted Odin Rom (HELP)

Hello the community,
i'd like to ask you for help because i don't manage to make it.
Here is the problem :
1/ i flashed last firmware for the phone
2/ then root it, install latest busybox....
3/ dump from my phone cache & system using this :
dd if=/dev/block/platform/13540000.dwmmc0/by-name/CACHE of=/sdcard/cache.img
dd if=/dev/block/platform/13540000.dwmmc0/by-name/SYSTEM bs=4096 of=/sdcard/system.img
I check it using linux reader. No problem at all
4/ Then repack those 2 files with others files which are on stock tar file (boot, hidden...)
5/ Launch Odin, put my tar on AP then flash.
- All were ok until it came to cache.img then fail
On stock tar, there is a system.img (not .raw). Don't know if it is sparsed but....i suppose as it needs to be converted to bre used with linux reader.
So i dunno what to do to have a valid cache.img & system.img
If you can help me, i will be grateful.
Thanks for all.
Hi
I'm trying too making a pre rooted stock rom flashable through odin. But i get everytime a "failed" from Odin.
However why are using your cache instead of cache.img present in stock firmware?
Try unpack stock firmware and replace only custom "system.img" that contains root and finally repack stock firmware!
Well some info i need is in cache
why don't you make a flashable zip since you know the partions then add root
malbert16442 said:
why don't you make a flashable zip since you know the partions then add root
Click to expand...
Click to collapse
A stock firmware pre-rooted flashable through odin is more comfortable whenever you wanna reset your phone isn't need to using FlashFire or Mobile Odin. IMHO

Updating Rooted TWRP installed phone question

I used the flashfire method of downloading firmware and extracting ap file and flashing system and boot.img. Does anyone know or has anyone tried taking the ap file and extracting system.img and boot.img and flashing those image files via twrp? Twrp I believe supports flashing image files and that should work in theory. Thanks
Also is it important to update csc or csc_home files? I am learning Samsung coming from always owning nexus devices which are quite a bit different.
flyinj54 said:
I used the flashfire method of downloading firmware and extracting ap file and flashing system and boot.img. Does anyone know or has anyone tried taking the ap file and extracting system.img and boot.img and flashing those image files via twrp? Twrp I believe supports flashing image files and that should work in theory. Thanks
Also is it important to update csc or csc_home files? I am learning Samsung coming from always owning nexus devices which are quite a bit different.
Click to expand...
Click to collapse
There's a thread which explains updating rooted devices with flashfire without loosing data here

How to replace the boot.img in Galaxy S7 Edge

Hi, All
I hope flash replaced boot.img by using the odin.
I downloaded the AP_G935SKSU2ERJ1....tar.md5 from sammobile.com.
Extract AP_G935SKSU2ERJ1....tar.md5 has boot.img.
So unpacked the boot.img in ubuntu, it has ramdisk and kernel(Image_1).
Also I downloaded the kernel source code (SM-G935S_KOR_OO_Opensource.zip)(ver.G935SKSU2ERJ1) from opensource.samsung.com
and I used toolchain(aarch64-linux-android-4.9) in ubuntu to kernel build. so success.
I got the kernel(Image_2) by using the command(make ARCH=arm64).
I repacked that after replace Image_1 and Image_2.
and flashed boot.img by using the odin.
The result is pass, but It doesn't work. stop to boot-logo.
It is the same kernel, but the volume of the Image files were different.
how to flashing replaced boot.img or equlizing the volume of Images.
I want to solve this problem.
sommmmmeboooody hhhelp meee
android 8.0.0
kernel ver. =3.18.91 - 14574311 - QB20196802
build No. = R16NW.G935SKSU2ERJ1
Do you have TWRP Recovery? If yes then you can easily flash .img throught TWRP.
You can also flash .img files via ODIN as instructed below
https://androidforrookie.blogspot.com/2018/11/how-to-flash-boot-image-file-using-odin.html
thanks
Thanks your reply.
but no have TWRP recorvery.
Do I really need it?

Flashing Stock Recovery - SOLVED

Hi all,
Just after some help here...
I'm trying to flash the stock recovery to remove the features from TWRP, the ability to delete and access files... Essentially to dumb the phone down after I've got it where it needs to be.
I've extracted the recovery.img.l4z file from the stock AP and then extracted the recovery.img then added it to a .tar archive...
So now I have the recovery.tar file however it won't flash via Odin. Odin pauses at "Get PIT for mapping".
Any suggestions to remove TWRP and return the recovery to stock would be awesome! Thank you
OK - fixed, I added .img after recovery so effectively.... the final final to be flashed was recovery.img.tar
This worked. Samsung stock recovery flashed succesfully and twrp was removed.
Will leave this here for future reference.
Please note this recovery file came from AP_G950FXXUCDUD1_CL21427293_QB39365966 firmware file.

Resources