FORUMS
Remove All Ads from XDA
OnePlus 6 Development Program

[GUIDE] Installing OxygenOS on Chinese models, easy rooting guide and much more!

459 posts
Thanks Meter: 218
 
By jasonwsc, Senior Member on 27th July 2017, 05:17 AM
Post Reply Email Thread
Ok so I've seen a lot of confusion on how to correctly flash OxygenOS on your brand new OnePlus 5, and also how to correctly and easily root your phone.. This guide aims to clear up any confusion regarding this. Ready? Let's move on.

Q: What's the difference between International and Chinese versions of the OnePlus 5?
A: Hardware-wise there is absolutely no difference between the 2 versions. In terms of software, the international version runs OxygenOS (OOS) while the Chinese version runs HydrogenOS(H2OS). H2OS has no Google services pre-installed and is generally not recommended for use outside China. Both OxygenOS and HydrogenOS are official updates by OnePlus.

Q: I bought a Chinese phone. How do I install OxygenOS then?
A: 1. Download the latest OxygenOS from here. Download the full zip and NOT the OTA update.
2. Place it in the root of your internal memory. Basically don't put the file in any folder.
3. Go to Settings > System updates, press the gear icon and select Local upgrade.
4. Choose the file, the phone will boot into recovery and everything is done.

Q: OK I want to root my phone but I don't want to lose Android Pay, Netflix, Pokemon GO etc. Is it possible?
Simple answer: Yes. Long answer: Maybe not in the long run.
Why is that so? You see, back in the old days there were little downsides to rooting. Alas, Android Pay and Pokemon GO came along, and in an effort to tighten up security, Google implemented this thing called
SafetyNet. Basically it's a measure to test your system integrity, meaning that any modification to system will trigger SafetyNet and many apps will be "locked down". Android Pay and Pokemon GO will not work,
and Netflix won't show up on Google Play anymore. Some devices even check for unlocked bootloader, but apparently not the OnePlus 5, so you don't have to switch to a custom kernel to root.

To overcome this problem, the brilliant minds at XDA came up with system-less root. Chainfire was the first to implement it in SuperSU, but right now nobody uses SuperSU anymore. Magisk is the new kid in town,
and quite frankly much better IMO.

Q: Alright enough talk, how do I root the phone?
A: Patience my young Padawan. I will get to that in a moment. But here are some things you have to know.

1. Rooting involves unlocking your bootloader, and ALL YOUR DATA WILL BE WIPED. Keep a backup and move everything in your internal memory somewhere else.
2. Magisk may beat SafetyNet now, but there is no guarantee this will always be the case. So your SafetyNet enabled apps may not work all the time.
3. OTA updates from OnePlus will work differently when you are rooted. But hey that's what this guide is for.

Easy rooting guide
1. Install ADB drivers.
2. Go into settings > about phone. Press the build no. a few times to activate developer options.
3. Turn on developer options, OEM unlocking and USB debugging.
4. Connect phone to PC and allow ADB access on phone. Wait for drivers to finish installing.
5. Download and install this simple tool on your PC.
6. Download one of the 2 TWRP recoveries below.
TWRP Official
xdvs23's TWRP
7. Open the All-in-One tool and make sure your device is recognised as OnePlus 5. Click on Unlock bootloader. Your bootloader is now unlocked and all your DATA WILL BE WIPED!
8. Select the "and boot it" arrow and click flash TWRP, click manual mode and choose the TWRP.img file you downloaded earlier.
9. After everything is done, your phone should now boot into TWRP successfully. Do not reboot yet.
10. On your PC, download the latest version of Magisk. Place the zip file onto your phone using USB and flash it with TWRP. Clear cache and reboot into system.
11. You should now see a new app called Magisk Manager. Check for updates!
12. However, do keep in mind not to mess around the system. If you need something, check to see if there any Magisk Modules available. There is also a small repo in the downloads section in Magisk Manager. Also Adaway works great with Magisk. Just make sure to turn on systemless host file in Magisk manager.
14. Congrats you are now rooted!

Q: Alright now that I'm rooted, how do I get official updates?
A: 1. Download the latest OxygenOS from here. Download the full zip and NOT the OTA update. Place it on your phone. Make sure you also have your Magisk zip.
2. Boot into TWRP. Press the volume button when the bootloader unlocked screen comes up. Use volume buttons and power button to select recovery.
3. Flash the OxygenOS zip file. DO NOT reboot yet!
4. Tap the home button and flash Magisk. Clear cache.
5. Reboot into system and you are done!


Hope this guide is simple enough for you guys to understand. It might seem daunting at first, but practice makes perfect.
Also it is not a requirement to root, most people get by fine without ever rooting. But we are not like normal people, are we? Why else would we be on XDA then?

Further questions
Q1: Why Magisk and not SuperSU?
A: Besides the fact that Magisk is being constantly updated to bypass SafetyNet, it is also open-source. Wish I could say the same for SuperSU, the app is not what it used to be. Chainfire is no longer aware of the changes made in his app and I for one am not willing to take my chances with a shady developer. I had countless bad experiences with Chinese apps, many of them created by large companies. Check out this thread for more info.

Q2: Why exactly is HydrogenOS not recommended for use outside China?
A: Besides the aforementioned lack of Google apps, HydrogenOS is also tweaked differently from OxygenOS. It is significantly more aggressive in killing apps and not letting them run in the background, as you would expect with the number of rogue apps in China, made worse by the fact that there is no Play Store in China. OxygenOS on the other hand has a limit of 32 apps in memory, which I guess is a nice compromise between performance and battery life.
The Following 6 Users Say Thank You to jasonwsc For This Useful Post: [ View ] Gift jasonwsc Ad-Free
 
 
27th July 2017, 05:18 AM |#2  
jasonwsc's Avatar
OP Senior Member
Flag Singapore
Thanks Meter: 218
 
Donate to Me
More
Reserved just in case. Probably will never need it though.
27th July 2017, 05:36 AM |#3  
iamelton's Avatar
Senior Member
Flag Hong Kong
Thanks Meter: 1,238
 
More
to be fair, there are still lots of people using SuperSU..
27th July 2017, 05:49 AM |#4  
Ningyou Higeki's Avatar
Senior Member
Thanks Meter: 23
 
More
What should I do if I still want to use SuperSU?
27th July 2017, 06:08 AM |#5  
ipredatorv's Avatar
Senior Member
Thanks Meter: 66
 
More
2 noob questions @jasonwsc or anyone who knows
How about wiping dalvik and cache?
And how about encryption? Do I need to remove my fingerprint/security pattern before flashing OR rooting?

Thanks a lot for your help, the OP5 will be the first phone I can actually root. My old Xperia Z (2013) had a locked bootloader that was not unlockable haha.
27th July 2017, 06:33 AM |#6  
jasonwsc's Avatar
OP Senior Member
Flag Singapore
Thanks Meter: 218
 
Donate to Me
More
Quote:
Originally Posted by ipredatorv

2 noob questions @jasonwsc or anyone who knows
How about wiping dalvik and cache?
And how about encryption? Do I need to remove my fingerprint/security pattern before flashing OR rooting?

Thanks a lot for your help, the OP5 will be the first phone I can actually root. My old Xperia Z (2013) had a locked bootloader that was not unlockable haha.

Wiping Dalvik and cache is usually done after flashing a ROM in TWRP. Not that big of deal now that many apps use ART, but still good to do to prevent app crashes.

No need to remove fingerprint security before rooting.
The Following 2 Users Say Thank You to jasonwsc For This Useful Post: [ View ] Gift jasonwsc Ad-Free
27th July 2017, 06:34 AM |#7  
jasonwsc's Avatar
OP Senior Member
Flag Singapore
Thanks Meter: 218
 
Donate to Me
More
Quote:
Originally Posted by iamelton

to be fair, there are still lots of people using SuperSU..

Quote:
Originally Posted by Ningyou Higeki

What should I do if I still want to use SuperSU?

Just flash SuperSU zip instead of Magisk.

I don't know why anyone still uses SuperSU though. For one, it's sold to a Chinese company and is no longer open source. Not to mention it doesn't pass SafetyNet at all.
The Following 3 Users Say Thank You to jasonwsc For This Useful Post: [ View ] Gift jasonwsc Ad-Free
27th July 2017, 06:36 AM |#8  
ipredatorv's Avatar
Senior Member
Thanks Meter: 66
 
More
Quote:
Originally Posted by jasonwsc

Wiping Dalvik and cache is usually done after flashing a ROM in TWRP. Not that big of deal now that many apps use ART, but still good to do to prevent app crashes.

No need to remove fingerprint security before rooting.

Thanks for the clarification!
I only asked about wiping dalvik/cache because some other people here recommended that, as it may help to fix my battery drain issue.

Sent from my ONEPLUS A5000 using Tapatalk
27th July 2017, 06:40 AM |#9  
jasonwsc's Avatar
OP Senior Member
Flag Singapore
Thanks Meter: 218
 
Donate to Me
More
Quote:
Originally Posted by ipredatorv

Thanks for the clarification!
I only asked about wiping dalvik/cache because some other people here recommended that, as it may help to fix my battery drain issue.

Sent from my ONEPLUS A5000 using Tapatalk

It might help with your battery drain issue, but chances are some apps are running in the background draining your battery.
The Following 2 Users Say Thank You to jasonwsc For This Useful Post: [ View ] Gift jasonwsc Ad-Free
27th July 2017, 08:07 PM |#10  
Junior Member
Thanks Meter: 0
 
More
Google services not working
I have installed oxygen OS in my chinese version OP5 following above method. However, after installing oxygen OS my google play store isnt working. When I open google play store, it stucks on checking info.
28th July 2017, 02:18 AM |#11  
ipredatorv's Avatar
Senior Member
Thanks Meter: 66
 
More
Quote:
Originally Posted by Nishatian1

I have installed oxygen OS in my chinese version OP5 following above method. However, after installing oxygen OS my google play store isnt working. When I open google play store, it stucks on checking info.

Just a wild guess, but are you still in China? Check your VPN before trying to access the Google Playstore. Otherwise, remove the Playstore and download the most recent Playstore apk from a website like apkmirror. If they offer multiple versions, go for ARM 64.

Sent from my ONEPLUS A5000 using Tapatalk
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