FORUMS
Remove All Ads from XDA

[GUIDE][31.07.2018][NN/OO] Root/Install TWRP on any NON-US Samsung after 2018 updates

1,517 posts
Thanks Meter: 4,730
 
By corsicanu, Senior Member on 9th March 2018, 06:08 PM
Post Reply Email Thread
Please take some time and read carefully the whole post. I am not and i won`t be responsable for anything.

Disclaimer
I am not responsible for bricked devices, dead SD cards, thermonuclear war, or you getting fired because the alarm app failed.
Please do some research if you have any concerns about this guide!
YOU are choosing to make these modifications, and if you point the finger at me for messing up your device, I will laugh at you.
Flashing any custom binary will trigger knox and you may lose your warranty. Make sure you know what you do to your device.

Introduction
December 2017 update (for some even older) brought us a different lock, that creates panic among users as usual. As described here by my friend @BlackMesa123, this is not a lock to developement, rather an advanced lock for theft or scams. This has a bypass too, specially when you`re the owner of the device.

How it works
This lock is in bootloader, but the trigger to it is inside the system, it`s hard to reproduce, but usually happens when you plug another country sim than your firmware country, because changing the country might not seem as a traveling guy and more like a thief. If you are on stock rom all this time, you might not feel the change, as the device reboots and wipes data, but it will eventually boot. The nice thing comes if you already have custom binary installed (rooted kernel or twrp), as you can`t boot anymore because bootloader is preventing you to boot on custom binaries and alter the system.

Devices confirmed to have the lock:
  • Samsung Galaxy S9 & S9+ - SM-G960F & SM-G965F
  • Samsung Galaxy Note 8 - SM-N950F
  • Samsung Galaxy S8 & S8+ - SM-G950F & SM-G955F
  • Samsung Galaxy A8 & A8+(2018) - SM-A530F & SM-A730F
  • Samsung Galaxy A Series (2017) - SM-A320F/FL, SM-A520F & SM-A720F
  • Samsung Galaxy Note FE - N935F
  • If you have other device than mentioned and you got locked, please tell me to update the list.

How to know if you are locked
There are 3 things at this chapter:
1. "Only official released binaries are allowed to be flashed" message shows up and now you know for sure you got locked outside your phone
2. Missing OEM unlock toggle in developer settings, if your device has FRP
3. "RMM state = Prenormal" in download mode

How to unlock
1. As i personally did, and other users reported, if you face any of the things above, flash latest full stock fw of your country with Odin, boot up, don`t reboot, don`t unplug the sim and don`t disconnect the network connection for 7 full days (168h). It seems that after 7 days of uptime, RMM state resets and you can flash TWRP again without issues. You can see uptime in settings/about device/status.
2. Some users reported this guide was working in first Oreo fw releases, can't guarantee it still works.

How to avoid getting locked again
Unfortunately bootloader can`t be reverted to older revisions, so we need to live with this. My friend @BlackMesa123 made some investigation and found out how to disable this lock. After waiting those 7 days, go to settings/developer option and enable OEM unlock. In order to never get locked again, flash TWRP for your device (install instructions below), boot into TWRP (do not boot into rom yet as you might get locked again), download and flash his fix from here (don`t forget to thank him too for his findings).
You can keep this zip near and flash it after flashing any custom rom, to be sure you don`t get locked again. The zip contains an universal script that disables the services responsable. Can be flashed on any device, if the device has the lock, won`t get locked again, if not, nothing will happend. I like to say "better safe than sorry".

How to safely install TWRP
Considering you are already unlocked (waited those 7 days), follow the next steps carefully:
  1. Make sure you downloaded latest Odin, samsung usb drivers installed, latest RMM-State_Bypass fix (download links are in #2 post) and latest TWRP available for your device
  2. Put RMM-State_Bypass.zip in external sdcard
  3. Go to settings/Developer options and enable OEM unlock (If you don't see developer settings, go into Settings/About phone/Software info and tap "Build number" 10 times to show Developer options menu)
  4. Reboot the phone into download mode and connect the usb cable
  5. Open Odin, go into options and untick Auto-reboot and put the TWRP tar file in AP tab of odin, hit Start and wait
  6. When Odin shows "PASS", take your device in hands, disconnect the usb cable and press simultaneously the "Power" + "Vol. Down" + "Vol. Up" buttons until the downoad mode disappears
  7. At the precise moment the screen becomes black, immediately release the "Vol.Down" button and press the "Vol. Up" + "Power" buttons during 10 to 15sec to forcefully enter TWRP
    ***Don't boot into rom because it will lock your device again!!!!
  8. Once the custom recovery booted, swipe to "Allow modification" and flash RMM-State_Bypass.zip as normal zip
Now you can reboot into rom and hopefully never get locked again.
If any of above steps fail, redo from step 1, more carefully this time.


How to safely root
Considering you already unlocked (waited those 7 days) and you have TWRP installed, follow the next steps carefully:
  1. Download root zip and no-verity-opt-encrypt-6.0 (download links are in #2 post) and drop the zips into external sdcard
  2. Boot into TWRP and swipe "Allow modifications"
  3. Go into Wipe menu and select "Format data" - note that this will erase all your data including internal storage
  4. Reboot recovery, swipe to "Allow modification" and flash RMM-State_Bypass.zip
  5. Flash no-verity-opt-encrypt-6.0 zip downloaded at step #1 to disable data partition encryption
  6. Flash root zip downloaded at step #1
  7. Reboot the phone into system
  8. After booting up in setting wizard make sure to uncheck diagnostic data
If any of above steps fail, redo from step 1, more carefully this time.


You can read more about it here here, here, here, here or here.

Credits
@BlackMesa123
@RicePlay33
@Yahia Angelo
@TaifAljaloo
@ananjaser1211
The Following 6 Users Say Thank You to corsicanu For This Useful Post: [ View ] Gift corsicanu Ad-Free
 
 
9th March 2018, 06:09 PM |#2  
corsicanu's Avatar
OP Senior Member
Flag București
Thanks Meter: 4,730
 
Donate to Me
More
Useful links
FAQ
Q: TWRP can't mount data partition, what to do?
A: Make sure you formatted data partition.

Q: Phone is not booting even after 20 minutes?
A: Try to reboot. If still not booting, make sure you formatted data partition.

Q: How to format data partition?
A:


Q: Why do i need to format data partition?
A: Because old rom encrypted your data partition and new rom can't decrypt and use that content / root needs access to data partition to place misc files / phone not booting after flashing root until data partition gets formatted.

Q: Why not formatting data at twrp install?
A: Phone will boot even if data is encrypted if you don't root. Also system partition is not encrypted meaning you can flash RMM-State_Bypass anyway.
The Following 4 Users Say Thank You to corsicanu For This Useful Post: [ View ] Gift corsicanu Ad-Free
18th March 2018, 10:22 PM |#4  
Member
Flag Fernandópolis
Thanks Meter: 11
 
More
Quote:
Originally Posted by corsicanu

Please take some time and read carefully the whole post. I am not and i won`t be responsable for anything.
[*]After booting up in setting wizard make sure to uncheck diagnostic data[/LIST]

The above item, diagnostic data, may have been the reason for blocking again the RMM STATE, since it was the only thing I did not do?
20th March 2018, 06:30 PM |#5  
Junior Member
Flag Near The French Border
Thanks Meter: 4
 
More
Perfect... Merci (bien suivre les indications et aucun problèmes...)

In Odin Mode:
FRP unlock
OEM unlock
21st March 2018, 07:17 AM |#6  
corsicanu's Avatar
OP Senior Member
Flag București
Thanks Meter: 4,730
 
Donate to Me
More
Quote:
Originally Posted by [email protected]

Perfect... Merci (bien suivre les indications et aucun problèmes...)

In Odin Mode:
FRP unlock
OEM unlock

If you read again first post you'll see i already mentioned to make sure you have the OEM unlock toggle as On.
The toggle reflects the state of OEM unlock:
Toggle ON - phone unlocked, OEM off, FRP off.
Toggle OFF - phone locked, OEM on, FRP on.


Sent from my SM-A530F using Tapatalk
1st April 2018, 01:10 AM |#7  
mchlbenner's Avatar
Senior Member
Thanks Meter: 762
 
More
Quote:
Originally Posted by corsicanu

If you read again first post you'll see i already mentioned to make sure you have the OEM unlock toggle as On.
The toggle reflects the state of OEM unlock:
Toggle ON - phone unlocked, OEM off, FRP off.
Toggle OFF - phone locked, OEM on, FRP on.


Sent from my SM-A530F using Tapatalk

Question does twrp get flashed permanent ?

Sent from my LEX720 using xda premium
1st April 2018, 03:54 AM |#8  
corsicanu's Avatar
OP Senior Member
Flag București
Thanks Meter: 4,730
 
Donate to Me
More
Quote:
Originally Posted by mchlbenner

Question does twrp get flashed permanent ?

Sent from my LEX720 using xda premium

Yes.

Sent from my SM-A530F using Tapatalk
The Following User Says Thank You to corsicanu For This Useful Post: [ View ] Gift corsicanu Ad-Free
1st April 2018, 07:00 PM |#9  
Junior Member
Flag Near The French Border
Thanks Meter: 4
 
More
Update?
Quote:
Originally Posted by corsicanu

If you read again first post you'll see i already mentioned to make sure you have the OEM unlock toggle as On.
The toggle reflects the state of OEM unlock:
Toggle ON - phone unlocked, OEM off, FRP off.
Toggle OFF - phone locked, OEM on, FRP on.


Sent from my SM-A530F using Tapatalk

Hello can you tell me how install official firmware update? The best way?
- With Flashfire and keep root etc... (maybe too TWRP)
- Or Odin and reroot?
Thanks for your response...
2nd April 2018, 04:17 AM |#10  
corsicanu's Avatar
OP Senior Member
Flag București
Thanks Meter: 4,730
 
Donate to Me
More
Quote:
Originally Posted by [email protected]

Hello can you tell me how install official firmware update? The best way?
- With Flashfire and keep root etc... (maybe too TWRP)
- Or Odin and reroot?
Thanks for your response...

Personally i'd recommend flashing using odin. Flash the FW in odin, force it reboot in download mode, flash twrp, force the phone in twrp, flash again rmm bypass and you'll have updated fw with lock disabled.
Regards.

Sent from my SM-A530F using Tapatalk
2nd April 2018, 02:38 PM |#11  
Junior Member
Flag Near The French Border
Thanks Meter: 4
 
More
Quote:
Originally Posted by corsicanu

Personally i'd recommend flashing using odin. Flash the FW in odin, force it reboot in download mode, flash twrp, force the phone in twrp, flash again rmm bypass and you'll have updated fw with lock disabled.
Regards.

Sent from my SM-A530F using Tapatalk

Install via Odin andOK but lose all... After the problemis impossible install TWRP (Little red line in (Odin) Download Mode who said "Only official released binaries are allowed to be flashed (RECOVERY)"), and my FRP and my OEM always OFF ...
Or waiting like describe here: https://forum.xda-developers.com/gal...ed-to-t3681883
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