Flash latest official Samsung FW over Galaxy S7 (SM-G930F) via Odin? - Samsung Galaxy S7 Questions and Answers

Hello!
I run Samsung's official FW build R16NW.G930XXS3ERL7, latest Magisk, and some root apps (incl. Xposed Framework, e.g. AFWall+, Firefds Kit [set to fake device status to "Official", but the info further below - above the charging status "DC 9 V; 1.67 A" - nevertheless shows "RATED"], MinMinGuard, XPrivacyLua). From time to time, apps get force-closed and my device gets slow.
Now I wonder if it would help to flash the latest available official FW from Samsung for my device right over the existing one. We call this "dirty-flash", right?
Would you agree that this works or would you rather wipe everything (after backing up essential data, of course) and do a clean flash?
The latter would give me the opportunity to clean up unneeded stuff.
How should I backup the device's many settings and the individual apps' settings? I do not like the available cloud services from Google or Samsung to backup settings and I heard that restoring apps' settings later via e.g. TitaniumBackup (I have the paid pro version) could cause severe problems. Any alternatives (for restoring device's and apps' settings?
In any case, I would first do a binary backup via TWRP to be able to revert everything if nothing works after flashing.
Do you have any other hints for me?
Thank you so much!
PS: Sorry if this is the wrong place/forum for my questions. In that case, I would like to politely ask the moderators to move my post to where it fits better (and might attract more attention/replies )

Dirty flashing usually refers to flashing in TWRP over top the existing install without wiping.
But if you flash via Odin, depending what you flash, it will either be a full wipe and load. Or it will update the same way an OTA update applies.
Also from memory if you flash AP in Odin it's going to blow away your TWRP and restore it to stock recovery, so make sure you copy your TWRP backup off the device before continuing.
If just going official Samsung to another official Samsung FW, then TitaniumBackup should work fine.

Thanks for your reply!
Am I right that I can flash TWRP via Odin immediately after having flashed the new Samsung firmware also via Odin?
Which of the CSC files is the one that should be flashed via Odin (AP) so as not to loose settings etc.? If my recollection is correct, there are usually 2 flavours of the CSC file in the firmware package, one of them to flash with wiping everything, the other to fish as if it was an update (like OTA). Right?
Can a custom kernel also be flashed via Odin? Which first: kernel, then new firmware, then TWRP or in another order?
Thanks once more for your hints!

7wells said:
Thanks for your reply!
Am I right that I can flash TWRP via Odin immediately after having flashed the new Samsung firmware also via Odin?
Which of the CSC files is the one that should be flashed via Odin (AP) so as not to loose settings etc.? If my recollection is correct, there are usually 2 flavours of the CSC file in the firmware package, one of them to flash with wiping everything, the other to fish as if it was an update (like OTA). Right?
Can a custom kernel also be flashed via Odin? Which first: kernel, then new firmware, then TWRP or in another order?
Thanks once more for your hints!
Click to expand...
Click to collapse
HOME_CSC won't wipe anything, if you flash just CSC it will wipe all your data. Flash kernel in twrp.
1st - New firmware, 2nd - TWRP, 3rd - kernel.

Thank you so much!

Related

Phone rooted - How about the monthly security patches ?

I was wondering, I have rooted my phone using Chainfire's CF-Autoroot.
Normally this will disable OTA updates, I'm aware of that.
But is there some way to manually flash the monthly security updates that Samsung releases each month ?
(or at least they say they are going to release them each month).
Is there a source somewhere where we can download them and flash then using Odin or TWRP ?
No you didnt root. There isnt full root for s7 yet
vipercoyote said:
No you didnt root. There isnt full root for s7 yet
Click to expand...
Click to collapse
Are you sure ? Because when I check manually for updates, I get the message stating that my phone has changed (root) and so updates cannot be downloaded and installed. It says that I need to try to download it via a PC tool from Samsung.
vipercoyote said:
No you didnt root. There isnt full root for s7 yet
Click to expand...
Click to collapse
There is for the International version.
vipercoyote said:
No you didnt root. There isnt full root for s7 yet
Click to expand...
Click to collapse
There very well is for the Exynos version/type and the reason I'm tempted to get it after prices have dropped a bit :
Check it here: http://forum.xda-developers.com/galaxy-s7/development/recovery-official-twrp-herolte-t3333770
Ok guys, now that we have established that root is available and working for the European version (which I have)...
Anyone know if the monthly patches from Samsung/Google will be available for download somewhere, so we can flash it manually and still be up-to-date ?
I would like to know this as well. I would guess they could be flashed with Odin?
I would like to know this. I am on the W8 variant rooted with autoroot and wondering how will I go about updating to new patches.
Sent from my SM-G930W8 using Tapatalk
I love Android.
you should flash your firmware via Odin to unroot, apply OTA, root again with auto root.
exploreresp said:
you should flash your firmware via Odin to unroot, apply OTA, root again with auto root.
Click to expand...
Click to collapse
Yes, I am aware of this possibility.
I was just hoping in applying the monthly patch without full flash (which completely wipes the phone).
Indeed, flashing will reset the phone...I found that the hard way last night.
There is a topic on S7edge forum about Chainfire's FlashFire app. It claims that can flash without resetting the phone.
Did not try it but I will follow the discussions there. Would be perfect to flash a new f/w and not have the phone reset. ( like good old times
Maybe it is possible to prevent the userdata and internal storage to be wiped by flashing the official firmware ?
Anyone has succeeded to do so ?
I managed to download the complete new firmware G935FXXU1APD3 from Sammobile and flashed it with ODIN with the phone in download mode.
It did not overwrite any of my personal data or apps and the phone worked as before however you will need to root again afterwards, but that doesn't take long anyway.
The only other thing I had to do was copy the mixer_paths and mixer_gain files to the SD card then replace them as the new firmware overrides the volume hack if you have it in place.
Keith
I guess that's what Chainfire trying to achieve with Flashfire. To be able to directly flash the Updates without having to manually backup/restore anything. Let's see how this goes. As of today you could flash the full oding images within flashfire.
Will definitely try when the next update for my phone variant comes.
I did take a TWRP backup just in case but was pleasantly surprised when the phone booted back to where it was.
I can confirm that the Flashfire method can be used for updates. Grab the update package, flash it through flashfire, and even select the "ever root" option to maintain root. Works great!
databoy2k said:
I can confirm that the Flashfire method can be used for updates. Grab the update package, flash it through flashfire, and even select the "ever root" option to maintain root. Works great!
Click to expand...
Click to collapse
How did you get the update package? When trying to search for an update on the phone it says I modified it.
Or did you load an full stock rom?
brotbuexe said:
How did you get the update package? When trying to search for an update on the phone it says I modified it.
Or did you load an full stock rom?
Click to expand...
Click to collapse
Grabbed a full stock rom, extracted the modem and system packages, and flashed them specifically through flashfire. A link to the full stock rom was posted on the Canadian S7 thread in the discussion forum.

Root galaxy s7 advices

Hi,
I would like to root my samsung galaxy s7 sm-g930f with android 7.0 and firmware phn.
I tried to root my phone with CF-Auto-Root-herolte- and odin but I made something wrong (probably not using the most recent file version or odin version) and my phone was blocked.
Then I flashed a new stock version to resolve the problem.
Now I would like to know if this method is correct (without installing twrp) and if is it possible root the phone without erasing all my data.
thank you
gnogno1985 said:
Hi,
I would like to root my samsung galaxy s7 sm-g930f with android 7.0 and firmware phn.
I tried to root my phone with CF-Auto-Root-herolte- and odin but I made something wrong (probably not using the most recent file version or odin version) and my phone was blocked.
Then I flashed a new stock version to resolve the problem.
Now I would like to know if this method is correct (without installing twrp) and if is it possible root the phone without erasing all my data.
thank you
Click to expand...
Click to collapse
If you want to root I would recommend you to use Magisk but a fsctory reset is mandatory if you want to do this as you will have to flash TWRP to install it and since the encryption changes when you install a custom recovery you will need to use the format data option under the Wipe menu in TWRP and that will factory reset your phone. So make a backup first.
If you decide to do this. Use the format data option then reboot to recovery and after that flash magisk zip. After that reboot to system and wait.
Sent from my SM-G930F using Tapatalk

Stuck with lost IMEI after rooting

Hi guys,
yesterday I rooted my galaxy S7 sm-g930f.
Everything worked fine and in a few minutes later I was back on stock fw with twrp and magisk root. But unfortunately I lost my IMEI and have no backup of this.
I read that I can resolve it by flashing factory binary.
Can anyone guide me through the steps I have to do? I think I'm able to manage it but wondering if there are any files I do need for my fw version or can i simple download any factory binary?
Thanks in advance
Catarrer
Flash firmware with a newer modem version compared to the one in the custom rom you were using (not factory/combination). Use the same CSC, the stock recovery might be required to apply CSC.
If that doesn't work, wipe data (backup photos and all that).
Backup EFS in TWRP, nothing else unless sure.
Hi Bryan48765,
Thanks for your reply.
I'm downloading atm the newest fw which is available for my device. (May be take a while with 2k dsl...)
I'm going more concrete about the steps I did:
I activated the dev options, switched on the oem unlock and then switched to download mode.
Installed the latest twrp with the latest Odin version.
First I rooted my device then with chainfires supersu, but it doenst show up as rooted (rootchecker) so I flashed back a boot loader for my device which I downloaded here. Unfortunately i don't know any more which one...
After flashing the vootloader I installed magisk and everything was fine... and then a few hours later i recognised that mobile network isn't working. A few looks later I saw that there was no imei... so I don't know if it was working before flashing the boot loader or the error occurred afterwards.
I'll try tomorrow to flash the downloaded fw.
Do I get the single csc file for my current version or do I need to download the whole fw? (Takes about 5h)
Thanks in advance
Cayarrer
Thank you!
I'm now back to stock fw and have my imei back! Thank you so much!
At weekend I will try to root again. Do I need to pay attention to anything to not lose my imei again?
I would follow these steps:
Flash latest twrp for my device without auto reboot, boot directly into recovery and flash there the no-verity file and then the magisk. Am I right or do I need some more or less?
You guys at sea are so amazing! Thank you!
Catarrer2 said:
Thank you!
I'm now back to stock fw and have my imei back! Thank you so much!
At weekend I will try to root again. Do I need to pay attention to anything to not lose my imei again?
I would follow these steps:
Flash latest twrp for my device without auto reboot, boot directly into recovery and flash there the no-verity file and then the magisk. Am I right or do I need some more or less?
You guys at sea are so amazing! Thank you!
Click to expand...
Click to collapse
Backup the EFS, and store it in the cloud (not public), maybe encrypt the zip it is stored in. Only if a lot of firmware changes and data wipes don't return the imei, restore the backup. The restoration could also affect some modem settings, battery wear info, and it might not be restored correctly.
Unlock the bootloader before flashing the latest twrp. RMM serms to not apply here.
If the phone is encrypted (should be visible in the security settings) twrp might show that it "failed to mount /data", and it's normally where the root zip is stored. Alternatively, move the root zip and others to the external sdcard, though with root+encryption there might or might not be a risk for a type of brick.
Encryption is disabled by formatting /data and flashing a zip that disables it.
no-verity-opt-encrypt might already be in magisk but flash it anyway and if it fails return to the stock kernel ("boot" in twrp)

OTA and maintain root ( TWRP Magisk)

How can i install an OTA update and maintain root ?
I have rooted using TWRP 3.5 and Magisk 22
I've found several instructions using the “TWRP A/B Retention Script”
but since the Samsung A8 (2018) has an A-Only (or non A/B) partition scheme
i am left in the dark ...
ReMiOS said:
How can i install an OTA update and maintain root ?
I have rooted using TWRP 3.5 and Magisk 22
I've found several instructions using the “TWRP A/B Retention Script”
but since the Samsung A8 (2018) has an A-Only (or non A/B) partition scheme
i am left in the dark ...
Click to expand...
Click to collapse
Why not download and flash firmware updates manually?
For me, official OTA updates are often too late. I want to install an update as soon as I can get my hands on it.
It_ler said:
Why not download and flash firmware updates manually?
For me, official OTA updates are often too late. I want to install an update as soon as I can get my hands on it.
Click to expand...
Click to collapse
Seems like a good idea, but how can i install a OTA manually ?
ReMiOS said:
Seems like a good idea, but how can i install a OTA manually ?
Click to expand...
Click to collapse
I use Frija (https://forum.xda-developers.com/t/tool-frija-samsung-firmware-downloader-checker.3910594/) to check for and download latest stock Samsung firmware files. Then I use Odin to flash it to my phone.
It_ler said:
I use Frija (https://forum.xda-developers.com/t/tool-frija-samsung-firmware-downloader-checker.3910594/) to check for and download latest stock Samsung firmware files. Then I use Odin to flash it to my phone.
Click to expand...
Click to collapse
Thanks for your reply
When using Frija and Odin wil this wipe my data ?
Or will the phone-data be untouched and also the TWRP Root (Magisk) ?
ReMiOS said:
Thanks for your reply
When using Frija and Odin wil this wipe my data ?
Or will the phone-data be untouched and also the TWRP Root (Magisk) ?
Click to expand...
Click to collapse
Downloading with Frija does nothing on your device.
Flashing firmware files with Odin will overwrite the corresponding system partitions ... and when flashing another CSC file, you may have to wipe data partition to get the device rebooting into system again.
But as long as you do not flash another CSC file (I always use Home_CSC file to stay on my current CSC), data partition will not be overwritten or wiped.
Concerning root / Magisk IDK. If you have changed something in system partitions for rooting the device, this may be overwritten by flashing the stock Samsung firmware. In this case, you will have to do the needed changed again for rooting the device.
As I am not rooted with Magisk ATM, I am not familiar with the exact steps. I heard about "patching" a system file, but better to ask someone more familiar with rooting with Magisk.
BTW... after flashing stock firmware, will have stock recovery. No more TWRP. If you want/need it back, you will have to flash TWRP recovery again afterwards.
It_ler said:
Downloading with Frija does nothing on your device.
Flashing firmware files with Odin will overwrite the corresponding system partitions ... and when flashing another CSC file, you may have to wipe data partition to get the device rebooting into system again.
But as long as you do not flash another CSC file (I always use Home_CSC file to stay on my current CSC), data partition will not be overwritten or wiped.
Concerning root / Magisk IDK. If you have changed something in system partitions for rooting the device, this may be overwritten by flashing the stock Samsung firmware. In this case, you will have to do the needed changed again for rooting the device.
As I am not rooted with Magisk ATM, I am not familiar with the exact steps. I heard about "patching" a system file, but better to ask someone more familiar with rooting with Magisk.
BTW... after flashing stock firmware, will have stock recovery. No more TWRP. If you want/need it back, you will have to flash TWRP recovery again afterwards.
Click to expand...
Click to collapse
GitHub - Magisk-Modules-Repo/twrp-keep: twrp-keep
twrp-keep. Contribute to Magisk-Modules-Repo/twrp-keep development by creating an account on GitHub.
github.com
It's called a TWRP retention script.

Question Can I update A53 to latest security patch without losing TWRP and Magisk?

Hello,
I have a rooted (Magisk) A53 with TWRP. For a week, I get a notification asking me to update to security patch level of May 1st, 2023. I thought that with unlocked bootloaders, OTA wasn't possible, but whatever. My question is if it's possible to perform the update without losing TWRP and Magisk, and also if it's possible to keep all user data and installed apps. I have little time to spare after work and really don't want to go again through the process of resetting my phone.
Thanks.
No, it is not possible to update via FOTA in your rooted device. However, you can flash the latest stock firmware via Odin without any data loss. Download the latest firmware available for your device/CSC, patch the AP tar via the Magisk app and flash via Odin the BL, CP, AP, HOME_CSC and the Magisk patched tar in Download Mode.
Jahus said:
Hello,
I have a rooted (Magisk) A53 with TWRP. For a week, I get a notification asking me to update to security patch level of May 1st, 2023. I thought that with unlocked bootloaders, OTA wasn't possible, but whatever. My question is if it's possible to perform the update without losing TWRP and Magisk, and also if it's possible to keep all user data and installed apps. I have little time to spare after work and really don't want to go again through the process of resetting my phone.
Thanks.
Click to expand...
Click to collapse
you can install 7-zip zstd, then download your stock firmware, unpack AP with 7zip, then unpack super.img.lz then super.img until you have the system.img, you transfer system.img to your phone ( for example /sdcard) and select install and twrp and click images, and select your system.img and set it to system image, flash. Wipe cache and dalvik.
The easiest way is to update via smart switch and than reflash twrp and magisk. This has worked for me, the only thing is that I use orangefox instead of twrp because its much better.

Categories

Resources