[GUIDE][X722] Unlock Bootloader + TWRP + ROOT

F.J.V

Senior Member
Oct 31, 2014
234
205
63
Málaga
You need a specific rom to unlock bootloader
Hello @danielpinto8zz6, I think you're a bit confused.

No need to go through dev 01D to unlock boot loader.

The only reason is if you have the stock 26S rom, which prevents you from unlocking.

There is a rom 20S, which seems to also prevent it (I think WIXCNFN5802005041S) the most extended rom 20S does not have that problem.

The procedure is easy, you go to fastboot and unlock tests. The normal thing is that it is unlocked, unless you are in stock 26S or the rom already commented. If he does not leave you is when you have to go through 01D.

Greetings.
 

danielpinto8zz6

Senior Member
Jan 5, 2014
452
1,168
93
Hello @danielpinto8zz6, I think you're a bit confused.

No need to go through dev 01D to unlock boot loader.

The only reason is if you have the stock 26S rom, which prevents you from unlocking.

There is a rom 20S, which seems to also prevent it (I think WIXCNFN5802005041S) the most extended rom 20S does not have that problem.

The procedure is easy, you go to fastboot and unlock tests. The normal thing is that it is unlocked, unless you are in stock 26S or the rom already commented. If he does not leave you is when you have to go through 01D.

Greetings.
What I want to say e that in 26s you can't unlock, so, the tool won't work if you're using 26s
 

sk8223

Senior Member
Nov 10, 2012
721
188
63
Toronto
Hello @danielpinto8zz6, I think you're a bit confused.

No need to go through dev 01D to unlock boot loader.

The only reason is if you have the stock 26S rom, which prevents you from unlocking.

There is a rom 20S, which seems to also prevent it (I think WIXCNFN5802005041S) the most extended rom 20S does not have that problem.

The procedure is easy, you go to fastboot and unlock tests. The normal thing is that it is unlocked, unless you are in stock 26S or the rom already commented. If he does not leave you is when you have to go through 01D.

Greetings.
But Batyan says

The stock 20S firmware for X722. Now it is the only firmware prepared for unlocking bootloader.
???

https://forum.xda-developers.com/le...ent--and-mods/stock-eui-5-8-20s-x722-t3680624

In any case, it might be safer to just update to Batyan's ROM instead of doing it from a vendor ROM. What with fake 26s (while showing 5.8.20s) some people are getting on new phones and all.
 

minas2

Member
May 22, 2013
27
12
0
Last edited:

Seantbh

New member
Apr 28, 2010
4
2
0
Hi peeps. Do you have the below phone stats? If so, you can do what I did to unlock your bootloader, install TWRP & Magisk, and then install the ROM of your choosing. (I installed Paranoid)

ROM:
5.8.020s stable
Android version:
6.0.1
Kernel Version:
3.18.20-perf-g00cf2f0
[email protected] ]1
mon jan 13
Build number:
wixcnfn5802001232s release keys

Begin by connecting your phone to the computer in debug USB mode. Then install the driver for your phone if you don't already have it.

Driver:
http://adbdriver.com/upload/adbdriver.zip

Once your phone is recognised, leave it connected to your computer, power it off, then start it up in fastboot mode (vol- and power button)

We will now unlock fastboot and install TWRP.

Download this package:
https://drive.google.com/file/d/1O3B...ew?usp=sharing

Extract the above package to your desktop. Run the BAT file inside. The file does all the work for you, just read it carefully and it guides you through checking your bootloader and unlocking it if required.

Once it's unlocked, install TWRP by continuing to follow the instructions in front of you. I used the FIRST option for TWRP - I did not use the 2nd option (called BlueTWRP I think)

TWRP will be loaded onto your phone. At this point I decided to do a complete phone back up just to be safe.

You will now install Magisk. Simply download the latest version from:

https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445

and place it in the root of your phone.

Then you will go to INSTALL > and then select the Magisk file. After it was installed I carried out a wipe (cache, dalvik) and then rebooted my phone.

Now you can go and install your desired ROM.

I installed Paranoid Android. All I had to do was drag the ROM file to the root of my phone along with my OpenGapps package (http://opengapps.org/ - ARM64, ANDROID 7.1) then boot into TWRP, carry out a factory reset, then flash the rom and then the Gapps, then wipe the cache/dalvik - and finally reboot the phone.

As you can see, no upgrading or downgrading or any other messing about on MY particular build of phone.

Good luck!
 
Last edited:

F.J.V

Senior Member
Oct 31, 2014
234
205
63
Málaga
But Batyan says



???

https://forum.xda-developers.com/le...ent--and-mods/stock-eui-5-8-20s-x722-t3680624

In any case, it might be safer to just update to Batyan's ROM instead of doing it from a vendor ROM. What with fake 26s (while showing 5.8.20s) some people are getting on new phones and all.
Batyan published that because he thought he was presenting the 20S ROM.

Actually Batyan published a package with two ROMs, a fastboot via 20S that comes in most terminals, and another official one that is 01D, a developer ROM, that does not work well and is good for little, but that has the advantage that being official, can be installed from another official, and that is why it is important, since it can be installed from the stock 26S, and having no problem to unlock the bootloader serves as a bridge.

Actually if there was another official rom that allowed unlocking bootloader would also serve, only that there is not.

The rom 01D is not for daily use, and the only reason to install it is to try to unlock the bootloader and not leave you for having an official Rom like the 26S. If you do not have that ROM or the one I mentioned above, it is a waste of time to install 01D.

Actually you do not run any danger when unlocking the bootloader. It leaves you or does not leave you. The danger is what you do next with an unlocked bootloader (how to install twrp in a 26S Stock).

By the way, nobody mentions that when unlocking bootloader the data of the telephone is erased, so to make copy before.

Greetings.
 

433Mhz

Senior Member
Nov 12, 2009
212
72
0
I can not access the phone's storage from my computer when the phone is in TWRP. That sucks because I want to wipe everything and install some custom rom.

Tried so many drivers and so forth for the past 2 hours and it still doesn't work
Some x720 owner had the same issue and solved it by upgrading TWRP. But we only have one TWRP version for the x722...
 

danielpinto8zz6

Senior Member
Jan 5, 2014
452
1,168
93
I can not access the phone's storage from my computer when the phone is in TWRP. That sucks because I want to wipe everything and install some custom rom.

Tried so many drivers and so forth for the past 2 hours and it still doesn't work
Some x720 owner had the same issue and solved it by upgrading TWRP. But we only have one TWRP version for the x722...
you can use twrp from x720
 
  • Like
Reactions: Pedro Miguel 25

433Mhz

Senior Member
Nov 12, 2009
212
72
0
I can not access the phone's storage from my computer when the phone is in TWRP. That sucks because I want to wipe everything and install some custom rom.

Tried so many drivers and so forth for the past 2 hours and it still doesn't work
Some x720 owner had the same issue and solved it by upgrading TWRP. But we only have one TWRP version for the x722...
OK, I solved it finally. That was a pain in the ass. Windows kept installing Leeco drivers which needed to be deleted first. Only ADB was working properly initially.
If anyone has the same problem with no MTP in TWRP:

In the Device Manager select update driver (for the unknown MTP device with yellow exlamation mark). Windows automatically had that "MTP USB Driver" under "Portable Devices". Here is a tutorial:

https://forum.hovatek.com/thread-15777.html
 

Pitr221

Member
Oct 18, 2017
12
3
0

randxor

Senior Member
Jan 8, 2018
60
9
0
So basically if I got this right

Hello everyone, thanks for providing so much info.

Trying to summarize some of it =>
  1. The phones are sold with either 20s or 26s roms, does it matter if the letter is s or S? Are there other stock roms beside those two and where do I get them(besides batyan's rom and the rom that comes with the phone)?
  2. If I get a phone with 20s, I don't need to flash Batyan's rom and I can just unlock bootloader with fastboot and then flash twrp? if so, which other versions besides 20s also support this?
  3. It is mentioned that after unlocking the bootloader, I can flash twrp, but it's said that I can't flash stock roms with twrp, is that correct?
  4. Can I somehow backup the original recovery before flashing twrp and is there any point to that?
  5. Will I be able to restore the original ROM?(since it seems I can't flash it back with TWRP)
  6. And regarding the brick ppl are talking about => basically it happens just when you flash stock roms with TWRP or there are more cases?
  7. And what do roms have to do with TWRP? Shouldn't you be able to reflash a new rom if you can't boot the current one.
  8. And also is there some "magical" function that locks the bootloader if you flash a bad rom?
  9. What about modems? What does flashing a ROM or a Recovery has to do with them?
 

sk8223

Senior Member
Nov 10, 2012
721
188
63
Toronto
Hello everyone, thanks for providing so much info.

Trying to summarize some of it =>
  1. The phones are sold with either 20s or 26s roms, does it matter if the letter is s or S? Are there other stock roms beside those two and where do I get them(besides batyan's rom and the rom that comes with the phone)?
  2. If I get a phone with 20s, I don't need to flash Batyan's rom and I can just unlock bootloader with fastboot and then flash twrp? if so, which other versions besides 20s also support this?
  3. It is mentioned that after unlocking the bootloader, I can flash twrp, but it's said that I can't flash stock roms with twrp, is that correct?
  4. Can I somehow backup the original recovery before flashing twrp and is there any point to that?
  5. Will I be able to restore the original ROM?(since it seems I can't flash it back with TWRP)
  6. And regarding the brick ppl are talking about => basically it happens just when you flash stock roms with TWRP or there are more cases?
  7. And what do roms have to do with TWRP? Shouldn't you be able to reflash a new rom if you can't boot the current one.
  8. And also is there some "magical" function that locks the bootloader if you flash a bad rom?
  9. What about modems? What does flashing a ROM or a Recovery has to do with them?
1. The "s" doesn't matter. What matters is the number. Never flash anything on official 26s. You need to downgrade via stock recovery to Batyan's 01D 20s ROM first, and then unlock the bootloader and flash whatever.
2. That is my understanding, yes. I haven't modified my phone yet, but I'd probably flash Batyan's ROM before doing anything else, just to stay safe. I'm on Banggood 20s. Batyan's ROM is really only meant for unlocking the bootloader, flashing TWRP, and moving onto custom ROMs. Nothing else.
3. I'm not sure. Someone else will need to answer this. But it's good to make a backup of your fresh stock ROM before moving onto something else via TWRP, after you've safely unlocked the bootloader and flashed it, of course.
4. https://forum.xda-developers.com/le.../twrp-recovery-multi-tool-zl0-lex722-t3702703
5. I don't see why not, but some versions of TWRP, like 3.2.1 (from the LOS 15.1 thread), may not allow you to flash other ROMs. In that case, you'll have to downgrade your version of TWRP.
6. No, bricks happen when you flash official 26s. Modded 26s is fine. Official 26s is the culprit. Do not flash TWRP when you're on official 26s. Don't flash anything but Batyan's dev ROM on official 26s, and that's through the stock recovery as an update.zip file. Follow Batyan's instructions carefully.
7. ???? ROMs have to be flashed through TWRP... and the issue with official 26s is that the bootloader gets locked permanently when you flash something that isn't LeEco software (correct me if I'm wrong) through the stock recovery. So your recovery effectively disappears and you're stuck with fastboot only. And you can't flash a recovery or ROM because the partitions are messed up(?). This requires a QFIL file to fix, which is extremely difficult to obtain. There's no QFIL for the x722... yet.
8. Not for custom ROMs. Official 26s introduced that stupid locking issue.
9. No...? Some people want to unlock extra bands on their devices so they play around with modems. It's always important to back up your stuff before doing this, though.
 
Last edited:

randxor

Senior Member
Jan 8, 2018
60
9
0
Hello, thanks for the answers so far.
So if understood correctly, most phones come with 26s which doesn't allow unlock. So people flash batyan's rom to unlock. After that they flash TwRp.
If so how and when do you backup the stock rom and stock recovery?
Also is trying to flash twrp while on 26s official the only way to brick, or perhaps: trying to reflash the stock 26s with twrp will also brick? If it does, it means that to go back to stock you need to flash both the old recovery and stock rom?
 

sk8223

Senior Member
Nov 10, 2012
721
188
63
Toronto
Hello, thanks for the answers so far.
So if understood correctly, most phones come with 26s which doesn't allow unlock. So people flash batyan's rom to unlock. After that they flash TwRp.
If so how and when do you backup the stock rom and stock recovery?
Also is trying to flash twrp while on 26s official the only way to brick, or perhaps: trying to reflash the stock 26s with twrp will also brick? If it does, it means that to go back to stock you need to flash both the old recovery and stock rom?
If you're on official 26s, follow Batyan's instructions and downgrade to the developer ROM. Then unlock the bootloader and flash TWRP.

If you followed the link in my last post, you'd find a download link for the stock recovery, not that you'll ever really needed it after flashing TWRP.... just stay away from 26s if you're worried. And trust me, there's no point in backing up official 26s because of the bricking issue. Stick to modded 26s or any 20s or 21s ROM. You'll find links for those ROMs here.

Don't flash official 26s at all. Just stay away from it. And you can just flash the stock ROMs through TWRP, I'm sure there's no issue there. It's just that very few people here are interested in going back to the stock ROMs, since there are better ROMs available. I recommend flashing the modded 26s ROMs instead. There's little point in flashing the stock recovery since TWRP is better, or a stock ROM since a) the x722 stock (vendor) ROMs don't pass SafetyNet and b) they're filled with LeEco bloatware, vendor telemetry and data collection, and god knows what else.

If you think you need to flash stock to sell the phone, don't be. People will be happier on Lineage, AICP, Paranoid Android or a modded stock ROM. Again, the unofficial international ROMs Chinese seller put on the phone (and the official Chinese ROMs too, for that matter) suck for this device.

Now, I know some sellers insist on having "unmodified software" on the phone if it's being sent back for repair. If you care about this, you should probably wait for the warranty to run out before doing anything. If you happen to have received a phone on 26s and you've already rooted, unlocked the bootloader and flashed a custom ROM, you'd probably have to flash your original stock ROM that came with your phone (which you would probably have a backup of), then flash stock recovery, and then lock the bootloader in fastboot mode. At least, I think that's how it'd go.
 
Last edited:

randxor

Senior Member
Jan 8, 2018
60
9
0
Thanks for the info. So after I unlock and flash twrp, what other ways are there for me to get a brick that I should avoid? I read that some people flashed x720 roms, did this led to a brick state? And in general can I get a brick by flashing a bad rom(ie. if say I try building it myself, put a custom kernel, etc.) or can I always boot to twrp and reflash?
And btw do most ROMs come with build instructions?
Also I've read that a person says that after flashing stock via twrp he got brick, but you're saying that shouldn't happen?
 
Last edited:

sk8223

Senior Member
Nov 10, 2012
721
188
63
Toronto
Thanks for the info. So after I unlock and flash twrp, what other ways are there for me to get a brick that I should avoid? I read that some people flashed x720 roms, did this led to a brick state? And in general can I get a brick by flashing a bad rom(ie. if say I try building it myself, put a custom kernel, etc.) or can I always boot to twrp and reflash?
And btw do most ROMs come with build instructions?
Also I've read that a person says that after flashing stock via twrp he got brick, but you're saying that shouldn't happen?
Don't flash any ROM that isn't for your device. A lot of people here with bricked phones flashed random ROMs not made specifically for the x722, like MIUI ROMs or ROMs for other Pro3 variants. Don't do that. Only flash ROMs specifically made for the LeEco Pro3 x722. As for compiling your own ROM, just be careful.

AFAIK, most people with bricked phones who flashed other ROMs ended up with a hard brick, so I don't think it'd be as easy as reflashing a new ROM via TWRP. Correct me if I'm wrong, but flashing a ROM not meant for your device could end up messing up the internal partition table, which could lead to a hard brick (not a soft brick as you would expect), unless you've got a QFIL file to fix the device (which the x722 doesn't have). The x720 QFIL file will not work for the x722.

Build as in compile? Here? No. But you do get instructions on how to flash ROMs, as that's the XDA way. As for that person, give me a link to the comment. Again, I'm not 100% sure, as I have yet to modify my phone in terms of flashing a custom ROM. I'm waiting for the warranty to run out, and I'm happy with my debloated 20s ROM right now.
 
Last edited:

randxor

Senior Member
Jan 8, 2018
60
9
0
https://forum.xda-developers.com/showpost.php?p=75141388&postcount=144

Here the person talks of the stock via twrp brick.

As for my questions about building roms:

So, how do you trust the ROMs if they don't come from a huge community but one person?

For me, I'd rather compile it from source, that way I can compare code and add stuff if I want to. I am comfortable building linux kernels, bash scripts, git etc but I don't have android rom experience, and it seems there are many differences related to how it's structured vs say Fedora/Ubuntu.(partitioning, drivers, bootloaders, libraries).

And ofc how exactly is a rom coupled to a specific device., besides the notion of binary compatibility and kernel plus drivers and partitioning layout? What makes it hard to have support for multiple devices?

As for the warranty, how did you remove the bloatware without reflashing batyan's rom to unlock and/or twrp? Since you're saying you're on stock.

And in general if you bought from chinese webstore, why do you care, basically speaking isn't the warranty useless since I take it they will ask you to pay the return shipping?
 

sk8223

Senior Member
Nov 10, 2012
721
188
63
Toronto
That person didn't mention any details, so I assumed they flashed TWRP on stock 26s when they shouldn't have.

As for my questions about building roms:

So, how do you trust the ROMs if they don't come from a huge community but one person?

For me, I'd rather compile it from source, that way I can compare code and add stuff if I want to. I am comfortable building linux kernels, bash scripts, git etc but I don't have android rom experience, and it seems there are many differences related to how it's structured vs say Fedora/Ubuntu.(partitioning, drivers, bootloaders, libraries).
Well, XDA was built around the idea of trust. Pretty much everything is open source here so anyone can check the code.

And ofc how exactly is a rom coupled to a specific device., besides the notion of binary compatibility and kernel plus drivers and partitioning layout? What makes it hard to have support for multiple devices?
https://android.stackexchange.com/a/35928 is the short answer. Luckily, the Pro3 x722 drivers aren't proprietary (save for the IR Blaster, I think) so it's easier to develop ROMs for it since we can just grab drivers from other devices, like the x720, even without specific kernel sources.

Google is now introducing Project Treble with Oreo builds, which makes creating custom ROMs easier: https://www.xda-developers.com/how-project-treble-revolutionizes-custom-roms-android-oreo/

The awesome part is that it will make universal ROM flashing possible--there will be one universal Lineage ROM that any device with Treble can flash. But few manufacturers are interested in Treble (for economic reasons, as it makes selling new phones less profitable, apparently). A cheap phone with Treble support, out right now, is the Xiaomi Mi A1 which runs stock Android.

As for the warranty, how did you remove the bloatware without reflashing batyan's rom to unlock and/or twrp? Since you're saying you're on stock.

And in general if you bought from chinese webstore, why do you care, basically speaking isn't the warranty useless since I take it they will ask you to pay the return shipping?
I used adb. http://adbshell.com/commands/adb-uninstall Just be careful how you use this command and don't uninstall an app you shouldn't, or you'll have to factory reset the phone. Refer to this thread: https://forum.xda-developers.com/le-pro3/help/adb-bloatware-removal-le-pro-3-x722-x720-t3680384

It kind of is, it kind of isn't. I paid through PayPal, so if there's a catastrophic issue with the phone I'll go through Banggood, and if they try to pull something over me, I'll go straight to PayPal. A partial refund is better than nothing. Maybe I'll get PayPal on my side and get them to pay return shipping.
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone