[Firmware] [Help] Create boot image from Odin stock files - AT&T Samsung Galaxy S7 Questions & Answers

I rooted my SM-930A running Android Nougat using this method:
https://forum.xda-developers.com/tm...eres-how-rooted-nougat-s7-edge-g935t-t3567502
Because of this root method, I'm currently running an engineer boot image. I recently found out that Magisk now supports installation using Odin through Magisk Manager. However, this method requires that I have a stock boot image on hand.
I can obtain the AP, BL, CP, CSC files from this post:
https://forum.xda-developers.com/at...mware-g930a-qe1-android-7-0-6-4-2017-t3617101
My question is: How can I obtain the stock boot image from these files and/or generate them from an unrooted system?

Related

Questions on ROM development

I am able to extract System.img from the 4.4.4 ODEN install and mount it in Ubunto. I can modify the folders and files to remove bloat, etc. I am able to repack back and use FlashFire to flash the 4.4.4 modified firmware.
My question is related to 5.0. I have tried the same method and after several modifled attempts, was able to extract and mount the System.img. After debloating, etc. I tried to repack it the same way but in FlashFire, it fails the MD5 check.
I tried another approach. Instead of repacking the full firmware package, I just created the System.img as a stand alone flash-able package. I then install 5.0 through ODEN, install Root and FlashFire.
When I try to flash my modified System.img through FlashFire, it passes the MD5 and installs successfully but it never boots. It never even makes it to the initial boot screen.
After that, I have to ODEN back again and start over. Any dev's out there that might know what I might be missing or can point me to some documentation on the process for 5.0?
I used SuperR's Kitchen to customize my Note 3's Lollipop, then Flashed via FlashFire.
http://forum.xda-developers.com/chef-central/android/kitchen-superrs-kitchen-t3202296
Looks like the kitchen will make it a lot easier. I checked one out a while back but the dev said it wasn't supported anymore. Thanks!
Sent from my SM-N900V using Tapatalk

Question on Unrooting

Hi Folks
I am currently using the G935U phone in India. I need to enable VOLTE for JIO (telecom carrier in India) which is currently not support by the Snapdragon version. However there are ways to achieve this . One such way is to write using flashfire and customized CSC File. But this requires the phone to be rooted. (https://forum.xda-developers.com/showpost.php?p=72532123&postcount=18)
Now my question is as follows:
Lets say i root the phone and follow the steps mentioned in the thread and flashfire the CSC file as required. Now if i unroot the phone by flashing the stock AP file back using ODIN, then technically i have unrooted the phone and since i did not flash the CSC file, the changes made should continue to be there.
Would the changes and files written to the system/csc areas continue to be there after i flash it with the stock AP file ?
deltacharlie said:
Hi Folks
Lets say i root the phone and follow the steps mentioned in the thread and flashfire the CSC file as required. Now if i unroot the phone by flashing the stock AP file back using ODIN, then technically i have unrooted the phone and since i did not flash the CSC file, the changes made should continue to be there.
Would the changes and files written to the system/csc areas continue to be there after i flash it with the stock AP file ?
Click to expand...
Click to collapse
I've unrooted via the bat file located in the root zip itself. Flashed back from eng boot to normal boot file. but i still feel the lag. May be it's a good idea to flash AP too but i have to setup my apps etc (technically, flashing AP should not wipe my phone but can't take chances) How did your flashnig go? CSC preserved?

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.

Flashing the magisk modified AP file fails via ODIN

Hello,
im trying to flash an AP file, modified via magisk app, to my Galaxy S10+ (Exynos, SM-G975F/DS, FW: G975FXXSEFUL1) via ODIN. I´ve installed the magisk app on this clean Samsung device to modify the AP file.
The bootloader is unlocked. But when ODIN is flashing USERDATA, the Downloadmode says: "official signed binarys only" and stops the flashing. The phone can be restored by flashing the original fw.
I´ve also tried to copy the AP file from an to the phone via adb. Also I tried use another official Samsung firmware (Android 12, G975FXXUEGULB) with the same result.
Can somebody help?
Thanks
Mirko

Categories

Resources