Flashing Stock firmware over rooted firmware with already unencrypted data partition - Samsung Galaxy Note 8 Questions and Answers

So i have an already rooted phone with TWRP. You have to format the data partition to remove the encryption. Will flashing stock over that with odin enrypt it again? If yes how can i create a flashable zip from samsung stock roms? I could not find anything about new phones like my one.

I'm 90% sure that flashing with odin will not overwrite the data partition. The HOME CSC file has a userdata img file but if you are just wanting the new OS updates, modem, bootloader etc you don't need to flash that I believe.

I am more than 90% sure that after flashing stock Firmware with ODIN, your data Partition will be encrypted onesmore.

Anyone can help me out with something that i can create my own flashable zip from a stock rom so i don't have to always wipe my phone... There are only old guides that i could find

Related

[Q] Need some help here...

Hey, so I decided to root my Mini. That part worked (installed the zip from stock recovery) but then I attempted to install the CWM recovery using the update zip method and I don't know whether I should of used ODIN instead because I can't backup my current ROM.
If I tried flashing CWM recovery using ODIN , will it overwrite existing recovery and will it allow me to backup my current ROM. Can't mount system can't mount cache errors??
Just to verify also, I wipe user data before installing new custom ROM ? Been a while since i last installed one.
Thanks for your help!
Flashing CWM will overwrite current recovery, you'd have to flash stock to remove it
As for creating backups you can't backup stock roms because of how they work, the closest to stock that can be backed up (http://forum.xda-developers.com/showthread.php?t=1176927)

Who dont I have to unlock my phone again after flashing?

Does doing a full wipe and flash not format all partitions except recovery? Why then is my phone unlocked after doing it one time?
What do you mean by unlolcked, do you mean Carrier Unlock? That would be very odd. If you mean lockscreen, it formatted your settings.
Wing_Zero_Custom said:
Does doing a full wipe and flash not format all partitions except recovery? Why then is my phone unlocked after doing it one time?
Click to expand...
Click to collapse
1) the first time you flash via usb with odin or helmdal, you are overwriting the boot and recovery partitions. the recovery partition includes CWM, that allows you to flash from zip files on the sd card.
depending on which file and method you are using on subsequent flashes, the boot and recovery partitions may be the same or updated.
2) There can be scripts in the system that copy some files to temp folders during the flash and then return them to folders after flash. for example, if you flashed gapps, take a look at the shell scripts in system/add-on.d folder.
the script references files in the several folders in the system partition and restores them after flash.
are you talking about unlocking your phone, as in use any carrier for phone/data service?
or unlocking as in gaining root and using superuser?
or unlocking as in screen unlock?
or what?
sent via carrier pigeon, jungle drums and smoke signals.
The same reason you don't lose IMEI when flashing a rom.
It doesn't format EFS
BenKranged said:
The same reason you don't lose IMEI when flashing a rom.
It doesn't format EFS
Click to expand...
Click to collapse
Thank you Ben this is the answer I was looking for,
To clarify for others in the simplest manner:
I 1 click ODIN to Stock, I download a rooted update.zip, I reboot to stock recovery, reinstall package's. I am now rooted. I download "Galaxy S Unlock" carrier unlocker app from the market, I use it and root to get the code, I put a SIM in and enter the code. Phone is now carrier unlocked. I download clockworkmod recovery , then I rename that to update.zip and I reboot and reinstall packages, then I reboot to my new recovery, then I flash CM 10.1, then I boot into CM 10.1, phone is STILL unlocked.
thanks for clarification.
some of the files in my efs folder did change when I went from KK4 with Corn kernel to cm10.0, but the IMEI and nv.bin files did not. I think the partition scheme in JB may require that the efs partition get reformatted on that first upgrade to JB, so the upgrade script has to preserve those efs files and then move them to new efs partition. once on JB partitions, the efs folder isn't touched on update.zip flashes.
I moved from kk4 to cm10.0 on Dec 3rd, and that is the creation date shown on my efs files. it hasn't changed since then - I am on 4.2.2 nighties now.
sent via carrier pigeon, jungle drums and smoke signals.
laughingT said:
thanks for clarification.
some of the files in my efs folder did change when I went from KK4 with Corn kernel to cm10.0, but the IMEI and nv.bin files did not. I think the partition scheme in JB may require that the efs partition get reformatted on that first upgrade to JB, so the upgrade script has to preserve those efs files and then move them to new efs partition. once on JB partitions, the efs folder isn't touched on update.zip flashes.
I moved from kk4 to cm10.0 on Dec 3rd, and that is the creation date shown on my efs files. it hasn't changed since then - I am on 4.2.2 nighties now.
sent via carrier pigeon, jungle drums and smoke signals.
Click to expand...
Click to collapse
I have just ODINed to KK4 with bootloaders, then flashed Corn kernel, then CM10.1 and my phone appears to still be unlocked. So this must be it.

[Q] Flash stock ROM by Odin dont erase all user data?

I was surprised that after flashing stock ROM by ODIN, phone was not cleaned from the user data.
I mean: account settings, applications installed by user, etc.
I know that flashing dont erase data from internal/external SD card, but why all data was still exist?
Only Wipe Data / Factory Reset will erase all user data?
Btw, Merry Xmas
darcik said:
I was surprised that after flashing stock ROM by ODIN, phone was not cleaned from the user data.
I mean: account settings, applications installed by user, etc.
I know that flashing dont erase data from internal/external SD card, but why all data was still exist?
Only Wipe Data / Factory Reset will erase all user data?
Btw, Merry Xmas
Click to expand...
Click to collapse
Nope, factory reset will not erase all user data. Go into setting/storage and delete from there (not sure cause I didn't have the device now). If you want to erase using odin, tick the repartition box while flashing the firmware. This is the easiest way I think.
Odin flash doesn't wipe user apps and their data, but it may cause bugs if you come from another ROM...
E.g : if u soft bricked on stock JB, just odin flash is necessary.
for other ROMs, it may or may not lag.
I will describe my way.
I tried to install CM 10.2
I did factory reset, next steps follow procedure.
When I did first start, unfortunately keyboard stop working, so my cyjanogen install failed and I decided back to old system using backup.
After restore and start, phone required settings like on first start after factory reset.
Lol, big surprise.
Ok, I entered necessary information but after reset -
again same like after factory reset
I tried from another backup with same result.
Hmm, big mess.
So I flash stock ROM by Odin.
And new surprise - phone with fresh system and all my own settings and applications from last restore.
Two disappointments:
1. Restore from backup does not cause a return to the initial state.
2. Flash ROM by Odin don't make factory state of phone.
I have question, if format partitions: system and data and next restore backup will do real state phone on this backup?
GT-I9070 ==> Tapatalk space
darcik said:
I will describe my way.
I tried to install CM 10.2
I did factory reset, next steps follow procedure.
When I did first start, unfortunately keyboard stop working, so my cyjanogen install failed and I decided back to old system using backup.
After restore and start, phone required settings like on first start after factory reset.
Lol, big surprise.
Ok, I entered necessary information but after reset -
again same like after factory reset
I tried from another backup with same result.
Hmm, big mess.
So I flash stock ROM by Odin.
And new surprise - phone with fresh system and all my own settings and applications from last restore.
Two disappointments:
1. Restore from backup does not cause a return to the initial state.
2. Flash ROM by Odin don't make factory state of phone.
I have question, if format partitions: system and data and next restore backup will do real state phone on this backup?
GT-I9070 ==> Tapatalk space
Click to expand...
Click to collapse
1. Almost every restore from backup for me it returned phone on state when backup was made. Only if my backup was bad (did not have enough place on sd for backup or something corrupted it).
2. Flashing stock ROM by Odin do not touch data partition (or folder whatever it is). So if you want to erase that, you need to make factory reset. It is like that on every Samsung Android device - I am not sure for other, never used.
When you come back from any CM10.2, Omni 4.3 and CM11 based ROM - first flash stock with Odin, do factory reset - and after that restore backup (ofcourse first root, install CoCore kernel for CWM before restore - you can't use restore in stock recovery).
Tnx for answers.
This is weird that format system partition not enough to get rid of the CM
But I checked this again and exactly after refresh ROM by Odin - restore my settings and data works fine.
Hmm imo this is mess in whole Android system
darcik said:
Tnx for answers.
This is weird that format system partition not enough to get rid of the CM
But I checked this again and exactly after refresh ROM by Odin - restore my settings and data works fine.
Hmm imo this is mess in whole Android system
Click to expand...
Click to collapse
Explanation for that, TeamJanica used preload partition for swap, and it is patitioned in other format than the one stock ROM use. That partition is not used on CM for files, but it has it's use on stock based ROM.
shut_down said:
Explanation for that, TeamJanica used preload partition for swap, and it is patitioned in other format than the one stock ROM use. That partition is not used on CM for files, but it has it's use on stock based ROM.
Click to expand...
Click to collapse
Tnx for explanation :good:
Is there somewhere a description of the organization of the file system, partitions in our device?
darcik said:
Tnx for explanation :good:
Is there somewhere a description of the organization of the file system, partitions in our device?
Click to expand...
Click to collapse
I think there is in some of the first posts of developer thread. I will try to find it and post if I get it.
Maybe this http://forum.xda-developers.com/showpost.php?p=30694671&postcount=288
shut_down said:
I think there is in some of the first posts of developer thread. I will try to find it and post if I get it.
Maybe this http://forum.xda-developers.com/showpost.php?p=30694671&postcount=288
Click to expand...
Click to collapse
Tnx, as usual you are very helpfull
How I missed this topic?
darcik said:
Tnx, as usual you are very helpfull
How I missed this topic?
Click to expand...
Click to collapse
It is made 25th August 2012. Maybe because of that.
Heeeelp pleeeease
Ive got a problem with frp protection my daughter forgot everything so i restored to factory and used odin 3 v13.3 and correct firmware to flash it but when odin says pass the phone erases itself of the flashed firmware it’s a galaxy s7 edge any help would be grateful im pulling my hair out now .
j7 nxt stock frimware flash failed
i accidentally wiped vendor,syastem and all and now i can only install custom gsi roms.
While flashing stock frimware it stuck at set partition adn cannot install stock frimware please helpe to get this fixed?
gauravsapkotanp said:
j7 nxt stock frimware flash failed
i accidentally wiped vendor,syastem and all and now i can only install custom gsi roms.
While flashing stock frimware it stuck at set partition adn cannot install stock frimware please helpe to get this fixed?
Click to expand...
Click to collapse
supposedly you have downloaded the stock FW, flash via Odin with re-partition ticked. if it fails, extract the PIT file from CSC_OMC_OXM_XXX save it in a location and load it at the pit session via Odin the re-flash again with re-partition ticked.

[Q] Difference between UPDATING with Recovery vs ODIN

Hello, well this is a very rookie question, but i usually do the update via recovery (twpr) but in the last days doing this is giving me some troubles with the app, so... today im flashing via odin; the question is: Is there any real difference?
For odin update you must have access to PC with correct USB drivers installed
In odin you flash whole img file. There is no possibility (almost ) to modify it before flashing
Flashing via recovery is easier, without PC. Everything can be done on a phone.
You can do nandroid backup from recovery before flash and restore him if something goes wrong.
Flashable zip recovery file can be edited before flash
piskor said:
For odin update you must have access to PC with correct USB drivers installed
In odin you flash whole img file. There is no possibility (almost ) to modify it before flashing
Flashing via recovery is easier, without PC. Everything can be done on a phone.
You can do nandroid backup from recovery before flash and restore him if something goes wrong.
Flashable zip recovery file can be edited before flash
Click to expand...
Click to collapse
Thanks,
Just a little one more; if i'm updating via recovery; should i do a wipe of cache?
actually i tried the odin way cuz the app after just update the rom get crazy... so at the end i did a full wipe
jnicaragua said:
Thanks,
Just a little one more; if i'm updating via recovery; should i do a wipe of cache?
actually i tried the odin way cuz the app after just update the rom get crazy... so at the end i did a full wipe
Click to expand...
Click to collapse
You should always do a cache and dalvik wipe after an update

I'm starting to lose my mind...

N910T, I tried to downgrade to 5.1.1 from 6.0.1 EPG2 (so that I can install Rapture v8.2), except in Odin it stops at system.img.ext4 then fails. I tried restoring with my backup through TWRP but now it's giving me this:
..........
Formatting system using make_ext4fs...
Restoring System...
extractTarFork() process ended with ERROR=255
So I got the firmware I was originally on, 6.0.1 EPG2 but it does the same thing, stops and fails at system.img.ext4
Basically I'm stuck with Odin and TWRP and I have no idea what to do, I have a backup phone but it isn't unlocked, I really need to fix this ASAP please help
So I found that when I try to backup through twrp, when I uncheck System, everything backs up fine, but of course there's still no OS, so is there any way to flash a Stock System file??
i found that I need to flash the stock recovry back (that gets rid of TWRP), before I can flash back stock OS.
Wipe System, Data, Cache, Dalvik-Cache in TWRP. Reboot to download mode and flash stock image using ODIN.
pvsgh said:
Wipe System, Data, Cache, Dalvik-Cache in TWRP. Reboot to download mode and flash stock image using ODIN.
Click to expand...
Click to collapse
It turned out I needed the PIT file, thanks though!

Categories

Resources