FORUMS
Remove All Ads from XDA

[Guide] Root Note8 (Exynos) + OEM Issue Fix + EFS Backup (Note8/S8/S8+)

29,433 posts
Thanks Meter: 58,906
 
By dr.ketan, Recognized Developer / Recognized Contributor on 21st September 2017, 03:50 PM
Post Reply Email Thread
[Guide] How to Root Note8 + EFS Backup

Quote:

READ THIS BEFORE ROOTING DEVICE

- Any of below said method to root will trip knox and void warranty forever.
- Root process needs wipe data so make backup of important data (including Internal Device storage) before proceed.
- As of now you will lose Samsung Pay and Secure folder forever if you root once, even unrooting won't help. (hope in future we can get it working on tripped knox device). Also you may not able to run some banking apps, but for that there are some workaround like Magisk Hide or SU hide, google it.
- OTA likely won't work once you root device.
- To unroot device completely, simply flash Samsung stock firmware, Remember, Unrooting won't revokes warranty nor you will be able to use Secure folder/Samsung Pay. Once rooted, these feature gone for you unless some magic happen in future and may find a way to use it.



OEM affected device - means OEM unlock option missing out of box and appears 7 days later. If you are uncertain about this, you can consider your device OEM affected .

Quote:

Workaround to get OEM unlock option if it is not available (Normally it appears after 7 days of clean install but this trick may bring it without 7 days waiting)

- Flash latest stock firmware
- Set clock 8 days prior to current date
- Check for OTA update (check last check date is set to 8days prior from current)
- Reboot
- Set current date
- Check for OTA update (now last check date should be current day
- Check Developer option for OEM option





ROOT Note8 (exynos) for devices that doesn't have OEM issue


Here is detailed guide about Root Galaxy Note8. Guide made in two sections, One who want root + Custom recovery and second Root without flashing custom recovery.


Quote:

1.Root with TWRP (Recommended method) You can root with SuperSU OR Magisk

Root with TWRP is preferred method as it gives option to flash zip like mods,custom ROMs etc

Root with SuperSU

1.Enable Developer Option (settings - about phone - Software information - Tap 7 times on build number to activate developer option in settings menu)
2.Enable OEM Unlock from developer option (Currently no workaround for those who doesn't have this option)
3.Download SuperSU (I have used SuperSU 2.82 SR4) to Ext SD card. Here is Original thread to see if any update available.
4.Download TWRP for N8
5.Switch Off device
6.Press Vol down + Bixby + Power to reboot to download mode, press volume up when asked to continue to download mode
7.Download Odin and open it, Disable 'Auto reboot' from option menu of Odin
8.Select TWRP (tar image) with AP tab of Odin and Start
9.Once Successfully flashed, you will see 'Passed' in Odin tab
10.Disconnect device and hold Vol down + power till screen goes off, Now immediately press Vol Up + Bixby + Power to reboot to TWRP
11.Select to allow modification
12.From TWRP, Select WIPE menu - Then FORMAT DATA - You need to type 'yes' to perform wipe. WARNING : This will erase all data including Int SD storage from device
13.Once format device completes, go back and select REBOOT' Menu and then - 'RECOVERY', This will reboot to TWRP again
14.Now select Install and navigate path to Ext SD card - SuperSU, you have copied earlier
15.Once SuperSu flash successfully, Reboot to System

Keep patience and allow device to boot, It may take time as we have formated data.

Once device boot, you will have SuperSU in app drwer with working boot.

---------------------------------------------------------------------------------------------------------------------

Root with Magisks


1.Enable Developer Option (settings - about phone - Software information - Tap 7 times on build number to activate developer option in settings menu)
2.Enable OEM Unlock from developer option (Currently no workaround for those who doesn't have this option)
3.Download and copy latest Magisks zip to Ext SD card
4.Download TWRP for N8
5.Switch Off device
6.Press Vol down + Bixby + Power to reboot to download mode, press volume up when asked to continue to download mode
7.Download Odin and open it, Disable 'Auto reboot' from option menu of Odin
8.Select TWRP (tar image) with AP tab of Odin and Start
9.Once Successfully flashed, you will see 'Passed' in Odin tab
10.Disconnect device and hold Vol down + power till screen goes off, Now immediately press Vol Up + Bixby + Power to reboot to TWRP
11.Select to allow modification
12.From TWRP, Select WIPE menu - Then FORMAT DATA - You need to type 'yes' to perform wipe. WARNING : This will erase all data including Int SD storage from device
13.Once format device completes, go back and select REBOOT' Menu and then - 'RECOVERY', This will reboot to TWRP again
14.Now select Install and navigate path to Ext SD card -Magisks zip, you have copied earlier
15.Once Magisk flash successfully, Reboot to System

Keep patience and allow device to boot, It may take time as we have formated data.

Quote:

2. Root with Stock Recovery
This will give just root access and No custom recovery. (you can't flash custom ROM, mods zip with stock recovery but still can use FlashFire or similar.
There are two ways, you can root with stock recovery
1.CF Auto Root (superSU)
1. Download CF Auto root package Thanks to @ChainFire and MobiFirmware
2.Extract and read ReadMe.txt for details
3.Enable Developer Option (settings - about phone - Software information - Tap 7 times on build number to activate developer option in settings menu)
4.Enable OEM Unlock from developer option (Currently no workaround for those who doesn't have this option)
5.Switch Off device
6.Press Vol down + Bixby + Power to reboot to download mode, press volume up when asked to continue to download mode
7.Download Odin and open it
8.Select Image.tar.md5 (From you have download CF root package above) with AP tab of Odin and Start
9.Once Successfully flashed, you will see 'Passed' in Odin tab
Device will get Reboot with root access

2.Magisk

1.You need to have stock firmware, Extract boot.img file from that firmware with winzip or similar
2.Install Latest Magisk Manager
3.Open it and explore settings - Patched Boot Output format - select img.tar
4.Now again from main page of Magisk Manager click Install - Install - Patch Boot Image File and patched the boot.img
5.Copy patched_boot.img.tar to a PC from MagiskManager directory on Int Storage
6.Enable Developer Option (settings - about phone - Software information - Tap 7 times on build number to activate developer option in settings menu)
7.Enable OEM Unlock from developer option (Currently no workaround for those who doesn't have this option)
8.Switch Off device
6.Press Vol down + Bixby + Power to reboot to download mode, press volume up when asked to continue to download mode
7.Download Odin and open it, Disable 'Auto reboot' from option menu of Odin and
8.Select patched_image.tar (You copied as step 5 above) with AP tab of Odin and Start
9.Once Successfully flashed, you will see 'Passed' in Odin tab
10.The phone restarts and ask to reset to factory settings, This will erase all data from device
11. Let reboot device and install Magisk manager again and open it. Now you will have root.
12.You can install FlashFire and re flash Magisk zip again to have magisk module to work.



ROOT Note8 (exynos) For OEM issue devices


This is for a device that doesn't have OEM unlock option out of box and need to wait 7 days to appear.
Here below is a script for
- Root OEM affected device with keeping OEM unlock option intact
- Also you can use on any ROM to fix OEM by selecting 'OEM Patch' with or without Root option.

How to Use

1.Enable Developer Option (settings - about phone - Software information - Tap 7 times on build number to activate developer option in settings menu)
2.Enable OEM Unlock from developer option (Currently no workaround for those who doesn't have this option)
3.Download and copy N950F_root_OEM_issue_devices.zip to Ext SD card
4.Download TWRP for N8
5.Switch Off device
6.Press Vol down + Bixby + Power to reboot to download mode, press volume up when asked to continue to download mode
7Download Odin and open it, Disable 'Auto reboot' from option menu of Odin
8.Select TWRP (tar image) with AP tab of Odin and Start
9.Once Successfully flashed, you will see 'Passed' in Odin tab
10.Disconnect device and hold Vol down + power till screen goes off, Now immediately press Vol Up + Bixby + Power to reboot to TWRP
11.Select to allow modification
12.From TWRP, Select WIPE menu - Then FORMAT DATA - You need to type 'yes' to perform wipe. WARNING : This will erase all data including Int SD storage from device
13.Once format device completes, go back and select REBOOT' Menu and then - 'RECOVERY', This will reboot to TWRP again
14.Now select Install and navigate path to Ext SD card - N950F_root_OEM_issue_devices.zip, you have copied earlier
15.Once Magisk flash successfully, Reboot to System
Open settings - Developer option - Look for OEM Unlock option. If it is there, it is safe to reboot device.
Credits and Thanks goes to BlackMesa123 for this post for OEM patch script.








EFS Backup Tool Note8 /S8 /S8+



This is simple EFS backup tool. We are very well knowing about what EFS is and why it is MUST to backup on every rooted device. If you don't know then Read post #3 for more Information

You needs root access to use this tool otherwise app won't open..

Location of stored file :

Device storage/MyEFS
If you unable to see backup, contact me with details of your device variant


Quote:

Difference between Free/Play store

-Both version makes backup in same format and no difference in backup.
-Pro Version always look for backup, if there is no backup then it will make one just after boot. Also it will make backup if your last backup is made on different ROM than existing. Also it will give warning if backup fails.
-Pro version keeps all previous backup to MyEFSBackup folder (you can choose to make extra copy on Ext SD too) while XDA version overwrites previous one and you need to make manual copy if you want to have multiple copies.
-Pro version have option to Restore with single click

This tool using generic name of partition block and you can restore with simple adb shell

dd if=/path of backup files/ of=/partition block according your device



Download EFS Backup Tool :


PlayStore version

XDA version

ChangeLog :

1.0
- Initial Release (4696)
1.1
- S9/S9+ added to supported list
- Fix probable issue with SuperSu and Magisk (16.4) on Oreo
Attached Files
File Type: apk IMEI Tool N8S8 XDA 1.1.apk - [Click for QR Code] (2.50 MB, 872 views)
The Following 52 Users Say Thank You to dr.ketan For This Useful Post: [ View ]
 
 
21st September 2017, 04:04 PM |#2  
Senior Member
Thanks Meter: 119
 
More
which models of phone it is for or where to find TWRP for the Note 8?
21st September 2017, 04:18 PM |#3  
dr.ketan's Avatar
OP Recognized Developer / Recognized Contributor
Flag Gujarat
Thanks Meter: 58,906
 
Donate to Me
More
What is EFS

This part of the device contains some important and some basic info related to our device identity like Bluetooth MAC address, wireless devices MAC addresses, product code (also in the nv_data.bin) and the very main IMEI address (nv_data.bin), programming parameters for the device such as your account information (phone number, etc), data provisioning parameters, and a whole bunch of other things. So you can guess it's will be different for each device and one can't use others. In latest samsung device this information store in other partition so requires to make backup of that partition too.

How it can corrupt :

- Any bad flashing, mishandling system modification can cause this.
- Also It can be corrupted by downgrading stock ROM. If you flash any old ROM on newer ROM it can corrupt EFS. Basically newer ROM believed to have new kernel that changes EFS data which older Modems can't read and results to fail in reading IMEI.

Impact on device/How I know I have corrupted EFS

When there is EFS partition is corrupted, device loses IMEI and due to this device can't gets connected to network. Baseband info also sometimes shows unknown.
-Check your IMEI in setting / by dialling *#06# if it is null OR if it starts with 0049** then IMEI is generic and corrupted. In Normal case IMEI which you can see in device setting or dialing *#06# is exactly same you can see on bill/box/sticker under battery compartment
-If you are unable to connect to network in spite of correct IMEI, chance are
A. Your device is Locked to specific Network OR
B. Your device is banned due to tempered IMEI
-If your AP,CP,CSC all are correct and even you are getting error (unknown CSC XXX) on kies update, it may be due to corrupt Product code in EFS. Read This for detail.

What care should i take
Before flashing anything, first thing you should do is to make EFS backup. Every person who have rooted device should make EFS backup earliest and place it to safer place on PC and /Cloud.
If you are on older ROM, make EFS backup on older ROM as well make another after upgrading ROM too.
If you have already updated to newer ROM, make backup on current ROM.

Exit "Permanent Safe Mode" This condition represent with loss of IMEI + yellow text box on homescreen with device info.here is Screenshot



Here is different method to remove it.

Method1 :
Open root explorer.
Navigate to /efs/FactoryApp/
Open "factorymode" file as Text and edit it:
Change this:

Code:
OFF
To:
Code:
ON
Open "keystr" file as Text and edit it:
Code:
OFF
To:

Code:
ON
Reboot device.

Method2:

Open Terminal emulator
Write the following:
Code:
su
Then click enter. It will ask for super user permission, give it permissions.
Write the following & click enter:
Code:
rm /efs/FactoryApp/keystr
Write the following & click enter:

Code:
rm /efs/FactoryApp/factorymode
Write the following & click enter:

Code:
echo -n ON >> /efs/FactoryApp/keystr
Write the following & click enter:

Code:
echo -n ON >> /efs/FactoryApp/factorymode
Write the following & click enter:

Code:
chown 1000.1000 /efs/FactoryApp/keystr
Write the following & click enter:

Code:
chown 1000.1000 /efs/FactoryApp/factorymode
Write the following & click enter:

Code:
chmod 0744 /efs/FactoryApp/keystr
Write the following & click enter:

Code:
chmod 0744 /efs/FactoryApp/factorymode
Reboot your device


Method3

Install attached safemode_exit apk as regular app. Open from drawer - Grant su permission - Reboot when asked.


e:failed to mount /efs(invalid argument) error with bootloop

This condition usually happens with using unsupported tool (usually from play store).

To recover this, needs to use adb shell


Code:
adb shell
 mke2fs / dev/block/mmcblk0px
 mount-w-t ext4 / dev/block/mmcblk0px / efs
x means your device EFS partition number

PS : It needs CWM and busybox installed.
The Following 5 Users Say Thank You to dr.ketan For This Useful Post: [ View ]
21st September 2017, 04:32 PM |#4  
Senior Member
Flag Fort Wayne
Thanks Meter: 439
 
More
You may want to put in your OP that this is for Exgynos only.
The Following User Says Thank You to douger1957 For This Useful Post: [ View ] Gift douger1957 Ad-Free
24th September 2017, 07:57 PM |#5  
nader1450's Avatar
Senior Member
Flag Kuala Lumpur
Thanks Meter: 920
 
More
OEM Unlock Options
My note 8 doesn't have oem unlock in developer option

any news for oem unlock enabling (tool)?

any idea about how to root?

Regards
25th September 2017, 02:36 PM |#6  
Senior Member
Thanks Meter: 9
 
More
Same here, no OEM unlock option in dev tools
25th September 2017, 03:24 PM |#7  
dr.ketan's Avatar
OP Recognized Developer / Recognized Contributor
Flag Gujarat
Thanks Meter: 58,906
 
Donate to Me
More
Some users reported it appear after 5 days
Here below is separate thread for that.
https://forum.xda-developers.com/gal...nlock-t3673140




.
The Following 2 Users Say Thank You to dr.ketan For This Useful Post: [ View ]
25th September 2017, 04:24 PM |#8  
AllGamer's Avatar
Retired Forum Moderator
Thanks Meter: 1,662
 
Donate to Me
More
any chance for this root to work on the Snapdragon 835 model of Note8 ?
25th September 2017, 05:36 PM |#9  
nader1450's Avatar
Senior Member
Flag Kuala Lumpur
Thanks Meter: 920
 
More
Quote:
Originally Posted by dr.ketan

Some users reported it appear after 5 days
Here below is separate thread for that.
https://forum.xda-developers.com/gal...nlock-t3673140




.

i'm not developer
but you can make custom rom and flash with odin

any idea?

Thanks
The Following User Says Thank You to nader1450 For This Useful Post: [ View ] Gift nader1450 Ad-Free
25th September 2017, 05:58 PM |#10  
dr.ketan's Avatar
OP Recognized Developer / Recognized Contributor
Flag Gujarat
Thanks Meter: 58,906
 
Donate to Me
More
Quote:
Originally Posted by nader1450

i'm not developer
but you can make custom rom and flash with odin

any idea?

Thanks

How one can flash ROM without custom recovery? Also to use FlashFire or similar, you need a rooted device. There is nothing can be done before this option (OEM Unlock toggle) appear, or at least something can be done to make appear this option, it must be through odin by faking samsung binary.
The Following 2 Users Say Thank You to dr.ketan For This Useful Post: [ View ]
25th September 2017, 07:11 PM |#11  
nader1450's Avatar
Senior Member
Flag Kuala Lumpur
Thanks Meter: 920
 
More
samsung live chat:

that device note 8 after registered also dose not support OEM unlock

any idea?
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes