[Ultimate Guide][Riva] Unlock, Root, TWRP Guide for Redmi 5A [6/3/2018] - Xiaomi Redmi Note 5A Guides, News, & Discussion

This will the Ultimate Guide to Unlock Bootloader. Install TWRP and Root.
Unlock Bootloader
Requirements:
• Mobile
• PC
• USB Cable
• Internet connection
Procedure:
• Setup your MIUI account by going to Settings -> Mi Account
• Apply for permission here (Use MIUI browser on the phone-Mandatory) (http://en.miui.com/unlock/download_en.html)
• Use your phone number with your country prefix to log in (ex. +91 Mobile number, is for India. Ex +91 99999999)
• Write why you want to unlock the device in 2-3 sentences (it may take a few days, Be patient. You will receive SMS confirmation if approved)
• Download Mi Unlocker from here (http://en.miui.com/unlock/download_en.html)
• Enable developer options by going to Settings -> About phone and tap 7 times on MIUI version
• Go to Settings -> Additional Settings -> Developer Settings and tick OEM Unlocking and USB debugging
• Go to Settings -> Additional Settings -> Developer Settings -> Mi Unlock Status and press Unlock
• Turn your Mobile data, Sync , WiFi and GPS on and wait for 5 minutes and don't turn them off afterwards
• Go to Mi Cloud by clicking here (https://i.mi.com/)
• Login with your phone number
• Click on Find device and locate your phone
• In the folder where you've extracted the Mi Unlock tool, you will find a program called MiUsbDriver, open it and press Install
• Log in to Mi Unlock by opening miflash_unlock on PC with the same phone number you used in obtaining the unlock permission
• Switch off your phone and go into Fastboot by pressing Volume down and Power simultaneously and connect your phone to the PC
• Once it shows a handset in Mi Unlock click on Unlock button
• Wait for a minute and you are done
• Your phone's bootloader is now UNLOCKED
NOTE: if you are stuck anywhere during this procedure, please start from step 1.
The main advantage of this procedure is that you don't need Developer ROM, it will work on Official builds as well.
Flashing TWRP
Requirement
ADB
TWRP for Redmi 5A (Riva) (https://forum.xda-developers.com/android/development/recovery-twrp-3-1-1-0-xiaomi-redmi-5a-t3712243)
LazyFlasher zip https://androidfilehost.com/?fid=673368273298947108
Procedure:
1. Reboot to Fastboot mode by pressing and holding Volume down + power button
2. Connect the phone to the computer with the original usb cable.
3. On your computer download the recovery from the link below and move it to the ADB folder.
4. Now in the adb folder, press shift and right click, select “open command prompt here”
5. Type the following
fastboot devices (to check if the computer recognizes the phone)
fastboot flash recovery twrp-3.2.1-0-riva.img (Flashes the TWRP to the phone)
6. Reboot the device to recovery. DO NOT BOOT TO SYSTEM YET Use Volume Up + Power to boot to recovery.
7. Flash Lazyflasher to disable dm-verity & forced encryption on MIUI.
8. Reboot to system
Now you have TWRP and MIUI.
Cheers.

If you've visited the MIUI forums, you'll be seeing complaints everywhere about the unsuccessful account binding that shows error code: 86023 hardwareId abnormal (<- Chinese fonts), and it has to do with Indonesian Xiaomi products. I'm certain Indian devices are all good to go for unlocking. But other devices are having a hard time. Trust me I've done you're guide before, with the same procedures, I've even tried other guides, but it's the same results. If you want to see my logcat, I'll upload one for you.

TAM warranty problem
I think it is related with this issue for Indonesian Mi user. http://en.miui.com/thread-719126-1-1.html

ezrawk said:
If you've visited the MIUI forums, you'll be seeing complaints everywhere about the unsuccessful account binding that shows error code: 86023 hardwareId abnormal (<- Chinese fonts), and it has to do with Indonesian Xiaomi products. I'm certain Indian devices are all good to go for unlocking. But other devices are having a hard time. Trust me I've done you're guide before, with the same procedures, I've even tried other guides, but it's the same results. If you want to see my logcat, I'll upload one for you.
Click to expand...
Click to collapse
That's a server issue

Gowtham55 said:
That's a server issue
Click to expand...
Click to collapse
Which has been fixed since like a week ago. Yeah that's what they say. Server issue. For Indian user's yeah it was a server issue, but for Indo users nope, we had to totally go crazy on social media and forums until they enabled UBL (ENABLED UBL?).
Let me get this straight, I asked several local Xiaomi authorized service centers and even TAM service centers, I emailed local Xiaomi CS, even did an online chat with them. What did all of them say? They all said the same thing: that UBL has been disabled for Indonesian Xiaomi devices under TAM warranty. Do you have proof that it was a server issue for TAM devices? If you do please post it. Please if it was a server issue, why the heck did the replies of Xiaomi CS Indonesia emails to me all said the same things: "UBL has been disabled for devices under TAM warranty."
I had to wait for a total of 3 months and several days (plus an extra 15 days after binding account, which right now I'm in my 9th day of waiting). I needed my 5A to be unlocked and rooted from day 1. Why? Because my old phone died out, I needed my 5A to be my daily driver. I needed it for work, for communication, for projects. I was willing to wait for 15 days prior binding, but it didn't get resolved for 3 bloody damn months. Would Xiaomi compensate my loses? Nope. So please if it was really a server issue, bring me proof, because I am already totally disappointed in Xiaomi.

360 hours mi flash unlock wait

Today I unlocked my bootloader finally after 360 hours of waiting

Thanks for guide its very helpfull

Thanks for the post. It'd be so cool if there was an alternate method than the legit one... I've request it to be unlocked 15 days ago, maybe more, and still havn't gotten any news...

parpagnas said:
Thanks for the post. It'd be so cool if there was an alternate method than the legit one... I've request it to be unlocked 15 days ago, maybe more, and still havn't gotten any news...
Click to expand...
Click to collapse
If you are not afraid of voiding the warranty, you could try this method: https://forum.xda-developers.com/android/general/bypass-bootloader-lock-redmi-5ariva-t3772381

After the 6th step, I got stuck in the mi logo... any solution?

will this unlock procedure wipe /data?

No

guys I'm getting 86006 error? anyone knows how to proceed?

If I unlock my bootloader, will I be able to user other sim card provider as well?

Thans dev. all went very smoothly.

Mi Unlock Status : Unlock, Bootloader still locked
I do have the following issue: My "Mi Unlock Status" is already Unlock. When I use fasboot to get "oem device-info" it says device isn't unlocked. Unfortunately I cannot bind a new Mi-Account to the device, to follow the procedure. Anybody has an idea?

grandpianisto said:
I do have the following issue: My "Mi Unlock Status" is already Unlock. When I use fasboot to get "oem device-info" it says device isn't unlocked. Unfortunately I cannot bind a new Mi-Account to the device, to follow the procedure. Anybody has an idea?
Click to expand...
Click to collapse
Problem solved, had a unofficial global miui rom installed on my (originally) chinese device. After flashing chinese dev rom via EDL (tespoint) y I able to unlock the device in the normal way.

I am getting error current account can not unlock this device. Been trying for over 2 months now. Someone plz help me.

adityam0338 said:
I am getting error current account can not unlock this device. Been trying for over 2 months now. Someone plz help me.
Click to expand...
Click to collapse
Maybe someone will help, if you give detailed information about what you have tried, and what exactly went wrong with description of errors and maybe screenshots

Related

Root Solution for Honor ShotX/7i

Hey everyone, think its a bit sad that we dont got our own phone section since ShotX/7i and the regular 7 doesnt share the same cpu architecture so forgive me for cluttering down but just wanted to try and help our fellow honor comrades
The files to do this is taken from the chinese huawei forum (http://club.huawei.com/thread-5761110-1-1.html) and thus I take no credit for the files, im merely making a english guide with chinese files to hopefully spur some development.
The root itself was made for Honor 7i which is the asian market version (I believe?) but ShotX is the same phone but for international market (with LTE 800Mhz band, not sure if there are any other differences) and root was performed and confirmed working by me on my ShotX with Lollipop 5.1.1/B130 firmware so no guarantes if it will work on other firmwares. Im also not responsible if you brick your phone or it catches on fire etc.
First you need to unlock your bootloader
and to do so you will first need to turn on the "allow bootloader oem unlock" so enter settings, about phone, and then press build number 10 times to activate "developer mode".
Go back one step into main settings and the open developer settings, find and enable "allow bootloader oem unlock" (if you have fingerprint or any other code activated then it will ask you for that code) and while you are in here make sure to click "enable usb debugging" aswell.
You will also need a bootloader unlock code from huaweis site by filling out the necessary information on this page http://emui.huawei.com/en/plugin.php?id=unlock&mod=detail
Product model: HUAWEI ATH-UL01 (settings->about phone->model number)
Product serial number: EGQ7Nxxxxxxxxxxx (settings->about phone->Status->Serial number)
Product IMEI: xxxxxxxxxxxxxxx (*#06# IMEI1 or settings->about phone->Status->IMEI1)
Product ID: xxxxxxxx (*#*#1357946#*#*)
So once youve got the code, make sure to write it down on a safe place, next you need adb toolkit. May I recommend Minimal ADB? http://forum.xda-developers.com/showthread.php?t=2317790
Now when you´ve come this far, remember that as soon as you unlock your bootloader, the phone will factory reset and you will loose any data and settings made unless you make a backup before
Insert usb data cable into pc and phone, open command prompt and be in your adb installation directory.
Start with typing "adb devices" to see if your phone is detected and make sure to check on your phone when it asks for permission that you allow your pc. I was running windows 10 x64 when I rooted my phone and I didnt need any driver but your mileage may vary if on w7 or w8. Remember to use "adb kill-server" if you experience issues when trying to connect phone with adb.
If phone is detected then you should get something like
Code:
EGQ7Nxxxxxxxxxxx device
Then all is good and you can type
adb reboot bootloader
Now to check if phone still is with us you type
fastboot devices and you should see something like
Code:
8b0dd496 fastboot
If you are still with us then type fastboot oem unlock xxxxxxxxxxxxxxxx where the xxxx´es represent your bootloader unlock code which you should have retrieved earlier from huaweis site.
To confirm that your bootloader is unlocked, simply type fastboot oem get-bootinfo and you should see
Code:
(bootloader) Bootloader Lock State: UNLOCKED
Congrats! Now youre ready to root the phone
If you recently unlocked bootloader then you need to activate developer settings again and turn on usb debugging aswell.
Download the files below
https://mega.nz/#!BsQiiYpL!xVwbyHTRsVGFsO6LpJacxP64gFrOlCNTRHTI1-vdLLw TWRP install program
https://mega.nz/#!9hQi2I7A!JX121sJ2vChMuxrx1puxf-L1rP9LSPaJW-JnqvEAzIg Root
Put the EMUI3.1 Android 5.1 ROOT补丁(不要双清不要解压.zip file somewhere on your phones memory storage where you can find it.
Unzip the 荣耀7i TWRP recovery.zip and open it up and then you press the second button which says TWRP REC and it should flash twrp. Power off phone and then press vol+ and power where you keep pressing vol+ but let go off power as soon as screen is lit and you should be in recovery in a bit. If you still got the default huawei recovery then redo the procedure (I pressed TWRP REC at first but didnt see any twrp installed so I then just pressed REC just to be disapointed again but 3rd time with TWRP REC it worked so not sure what goes on but just so you know if you also fail to get TWRP installed)
Once youre in twrp you will be greeted with chinese again but buttons are located on same spots so just compare it to a english twrp image https://en.wikipedia.org/wiki/TWRP#/media/File:TWRP_2.7.0.0.png
Just press top left button and select the root file you should have putted on your phone earlier and flash it, when its done just hold the physical power button to reset incase you´re unsure of the reboot button and you should be good to go
Grats on your rooted phone, after some cleanup (possible with root) this phone is flying like never before
Some highly recommended root apps
Rom toolbox lite, so you can flash roms/mods without knowing your way in the chinese twrp and uninstall apps etc
https://play.google.com/store/apps/details?id=com.jrummy.liberty.toolbox&hl=sv
Kernel adiutor, great for getting a bit more performance out of the phone by tweaking cpu and gpu speed
https://play.google.com/store/apps/details?id=com.grarak.kerneladiutor&hl=sv
And lastly the great snapdragon camera which is pretty fast and nice to use which you need to flash in twrp (or with rom toolbox)
http://forum.xda-developers.com/showpost.php?p=64410821&postcount=44
Its for one+ x but it works as expected for our ShotX/7i aswell (Obvisually dont use this if youre on a regular Honor 7 device since it doesnt have snapdragon processor)
thank you very much , I'll be trying my XShot
Theres a translated twrp now for those that wants
http://forum.xda-developers.com/honor-7/development/unsupported-twrp-honor-7i-shotx-t3323072
-help twrp bootloop
hey i rooted my shot x and worked fine, but then i did a factory reset and now its on twrp bootloop. any ideas to fix this? do you have a rom for this phone? because im trying to donwload one but its slow as f**
I think if i install a rom with twrp it will work but not sure
help pls
TY!
lucaspsara said:
hey i rooted my shot x and worked fine, but then i did a factory reset and now its on twrp bootloop. any ideas to fix this? do you have a rom for this phone? because im trying to donwload one but its slow as f**
I think if i install a rom with twrp it will work but not sure
help pls
TY!
Click to expand...
Click to collapse
Sorry, sold my shot x as there was so little dev interest. The only moderate source of files for it was on the chinese huawei forums :/
something changed? still no intrested by developers?
Please help me. Honor ShotX flash tool firmware.
ATH-UL01-C185B310
Android version 6.0.1 firmware.
Please help me.
Did u root your shotx?
tndb said:
Sorry, sold my shot x as there was so little dev interest. The only moderate source of files for it was on the chinese huawei forums :/
Click to expand...
Click to collapse
Did you tried russian forums? 4pda or others, often they have good devs there for some devices,which are not supported here on XDA.
Anyone who can't get to bootloader unlock site after login. Follow this [GUIDE] :
https://forum.xda-developers.com/ge...nor-bootloader-unlock-code-t3441130?nocache=1
This helped me. Hope you also get the help.
Credits to : Thor
Is there any solution for ShotX with android 6.0?
Please upload android 6.0.1 rooted room

Xiaomi 3S stuck at "MI Powered By Android" screen after OTA

Today I got my new Xiaomi 3S (4G, 3GB RAM, 32GB ROM) played around with it a little bit and disabled all Google Apps to be found on the phone Except Google Services that couldn't be disabled.
Connected it via WLAN and got promptly OTA offered. I didn't wrote down the MIUI and Android builds but remember manufacturing date August 2016, MIUI was version 7 something.
After the updates where downloaded I was asked to reboot the device what I confirmed and the updates where installed. Now the phone is stuck with a black screen and white "MI Powered By Android" on it.
Nothing changed since 3 hours now. Any idea what to do?
Phone can't even be turned off/does not recognize hardware button presses.
This is a known issue, disabling google apps causes issues . You should now try following this guide http://en.miui.com/thread-327861-1-1.html
timbohobbs said:
This is a known issue, disabling google apps causes issues . You should now try following this guide http://en.miui.com/thread-327861-1-1.html
Click to expand...
Click to collapse
Thanks a lot for your reply, tried it already yesterday while the Phone was in endless boot queue without luck, hence the non working buttons update.
But today after the battery was emptied over night I got into the recovery mode menu!
Just a question before I go ahead to follow the step by step guide:
Though I read this thread/vote I'm non the smarter. If I want to go google free, Xiaomi Global or Xiaomi EU ROM?
I'd also use XPosed framework with XPrivacy again. IMUI seems nice, is CM 13 the only alternative for non google/XPosed/Xprivacy then?
I currently have a 3s prime but it's a present for my son so haven't flashed anything, just take ota's. I have read quite a bit though and you should maybe just check the rom threads for roms with separate gapps packages, that way you could remove what you want prior to flashing. Don't know about xposed but again, ask in the rom threads. [emoji106]
Update: No success, when going into recovery mode (pushing volume up and power button) and choose download mode the phone will just reboot into endless boot-loop.
For people with the same problem (after disabling google apps) maybe they can get their device back to work with this http://en.miui.com/thread-378963-1-1.html
The only Way to get you phone back is to use a Deep Flash Cable i think
I was able to solve the problem by installing a fastboot-rom. Pressing power button and volume + for around 20 seconds got me into recovery menu.
Than I was just following a guide to install an original MIUI rom on devices with locked bootloader.
well to get to download mode you can enter "fastboot oem edl" without the "" and you will go to edl from fastboot mode. HOPE THIS HELPS
timbohobbs said:
This is a known issue, disabling google apps causes issues . You should now try following this guide http://en.miui.com/thread-327861-1-1.html
Click to expand...
Click to collapse
Now I know why my phone went into a bootloop. Won't disable any Google apps anymore.
Disabling any apps in MIUI8 will cause the phone cannot reboot... you can format everything through a recovery (have to flash manually because it doesn't come with recovery), or flash a new ROM through fastboot mode (if you have unlocked your bootloader), or send back to service center to claim warranty (if there is any service center in your area), or throw it and buy a new one
abhi0005 said:
well to get to download mode you can enter "fastboot oem edl" without the "" and you will go to edl from fastboot mode. HOPE THIS HELPS
Click to expand...
Click to collapse
I have same problem but in my case developer option is locked so oem is off and thus port COM10 is not being shown in Miflash, also fastboot oem edl says device is locked, oem edl is not allowed. In my case 3s prime went into bootloop while Iwas using youtube. Please help!!

Can't unlock bootloader, flash rom/recovery, or wipe data

Hey -
So I got my redmi 4 prime today, and I want to unlock the bootloader. (I have made sure it is indeed locked with the "fastboot oem device-info")
While trying the official method, I got the 50% error "Can't verify device". I tried everything suggested to
fix it - Made sure my "OEM unlock", "USB Debugging" are enabled, added my device and account under "MI Unlock Status", that fastboot and adb recognize the device,
tried disabling driver signatures, logging into my account using account id... nothing helped.
Then I tried flashing the chinese developer rom. Using the "Updater" app, I got an error saying "Can't verify update - You're allowed to flash the newest develop version published by MIUI forum from stable version only".
Now, according to the settings menu, I DO run the stable version - I run Miui global stable 8.2.4.0. I tried flashing the chinese stable version, but got a similar error.
I tried flashing using Mi Flash and fastboot mode, but I get some "Flash tz error" message. I tried using MiFlash and edl mode, but it seems that edl has been disabled - Trying to enter into it simply reboots the phone.
My recovery is also very stripped down - It has no update/wipe options, but only some hardware tests, device info, and the option to boot back into sideload/fastboot/normal.
Using sideload doesn't seem to work as well - no matter what I try to install, I get an "failed to read command" error.
I'm really running out of ideas, and I wan't to get this phone running and start using it daily with some non-MIUI rom.
Thank you for your help
As for me I had kinda the same issue that I couldn't get past 50% so what I did was Delete my Device from my Mi account and did a factory reset then after the factory reset you'll be asked to sign in with your Google,Xiaomi account DO NOT sign in with any account, don't even connect to the wifi,just boot up the phone straight without any Google,Xiaomi account, then in the settings activate your wifi,find the bootloader unlocking thingy which will tell you sign in with your Mi Account, sign in,reboot your phone after signing in then unlock your phone and you're done.
psykkuno said:
As for me I had kinda the same issue that I couldn't get past 50% so what I did was Delete my Device from my Mi account and did a factory reset then after the factory reset you'll be asked to sign in with your Google,Xiaomi account DO NOT sign in with any account, don't even connect to the wifi,just boot up the phone straight without any Google,Xiaomi account, then in the settings activate your wifi,find the bootloader unlocking thingy which will tell you sign in with your Mi Account, sign in,reboot your phone after signing in then unlock your phone and you're done.
Click to expand...
Click to collapse
This 50% stuck, i think 99% of Xiaomi users who try to unlock bootloader for the first time always experience this, i'm the same as you before, i try everything as i'm desperate to unlock the bootloader, you try this first..
kinycx said:
Try doing this and let me know if this works:
1. Factory reset the phone
2. Don't set up the Wireless network and Mi Account on first boot
3. After initial setup turn on Developer options, then turn on USB debugging and OEM unlocking
4. Reboot the phone
5. Set up the wireless network
6. Go to Developer options > Mi Unlock status and click on Add account and device then set up Mi Account using account Id (accept every pop-up)
7. Reboot into fastboot and try to unlock your phone
Click to expand...
Click to collapse
If this didn't work for you, sadly you just have to wait to try again next week. It worked for me, i didn't do any attempt to unlock the bootloader, then suddenly after a week i did this and now my bootloader is unlocked. Just be patient.

[GUIDE] Treble ROM on the Honor 7X From Stock Guide by Christopher Lamb

[GUIDE] [ HOW TO ] Treble ROM on the Honor 7X From Stock Guide by Christopher Lamb
Today I decided to embark on the journey of installing something to rid myself of EMUI. I was tired of looking at it. Switching between my Pixel 2 and 7X was a jarring experience to say the least. Along my journey I came to find out that the unlock code hosted on some EMUI subdomained website by honor directly was down and seems to have been for months so I needed another solution. I tried contacting Huawei on Twitter to get it reset like many have suggested, but never heard back from them so here I was now with a problem. I looked for other guides and dug through XDA. Eventually I found a guide that was almost correct enough but had a lot of un needed info and I just wanted to cut to the chase. So here is my guide to do just that for the rest of you.
My Phone:​
United States Model BND-L24
Running stock Oreo or newer (This is Required for treble partitions). The update that came through the other day.
Unlocking the Bootloader​This was actually a rather painless process once I realized what was involved. The method I used consisted of a small payment $4.94 USD. Which as far as I could see is the cheapest, and is required. I should also say I hate paying for things online that look kinda shady. I used bitcoin and did so in a VM. Call me paranoid, but….
You are going to need to download a few things:
https://www.dc-unlocker.com/buy (not a download but buy 4 coins, and save the login info it gives you then validate your email with them or your account will show as blocked in HCU)
https://hcu-client.com/
http://consumer.huawei.com/minisite/HiSuite_en/index.html
Some treble rom of your choice off XDA or something. I ended up going LineageOS. The 7x is partition type A only and arm64.
Now for the fun part where we set everything up on your phone:
Go to Settings > Security & Privacy then select Allow HiSuite to use HDB.
Go to Settings > System > About Phone and tap Build Number about 5 times until you are developer.
Press back and go into the newly created developer options menu item then select Android Debugging.
Type *#*#2846579#*#* into your dialer app. A menu will pop up and follow Background Setting > USB Ports Setting then select Manufacture Mode.
Plug in your phone to your computer and setup your phone with HiSuite let it do its thing and install drivers.
Run HCU and login with the credentials they sent you after purchasing your credits. On login success make sure in the top right corner phone connectivity is set to Autodetect and click on Read Phone Info. Once this has succeeded go to the Unlock tab and click Read Bootloader Code. This will take a minute.
Save the resulting code just in case your computer crashes or something.
Completely shutdown your 7X. Hold volume down, and plug into your computer while still holding volume down to get it to boot into fastboot.
Go back to file explorer and open your HCU folder that was extracted before installing it. Press Win Key + D type in CMD and then Enter. Then enter the following command: fastboot oem unlock {enter your unlock code from earlier without the curly brackets} Then press enter. It will say some things about wiping your data. It didn't for me but it will if you go any farther.
Installing the ROM​
Turn off the phone once it is done and then put it back in fastboot (hold the volume down button, and plug the USB cable into your phone from the computer). Back in command prompt enter fastboot flash system {full path to the .img you downloaded for treble} press enter and let it copy over. Shouldnt take too long.
Once completed enter fastboot reboot and be ready to hold volume up when prompted or you will bootloop forever. This will open a new menu and just select to factory reset the device. Then boot as normal once this is done.
Done!
original source: https://medium.com/@chris.lamb/treble-on-the-honor-7x-from-stock-df1d091d3206
Thanks for sharing
I was just recently given a non functioning Honor 7x, that just needed a battery. It's still running EMUI 8. I've been reading that there is a free way to unlock the bootloader with something called PotatoNV, so I am going to do some more reading on that and see if I can save myself the money. I was worried about being able to flash something much newer to this phone after taking a look at the state of ROM support here on XDA. I didn't even know that GSI ROM's were a thing. Did everything function properly after you flashed the GSI Treble ROM to your 7x? Do you know if there is a GSI Treble version of Android 11 that will work with the 7x?
Thanks!
XeoNoX said:
[GUIDE] [ HOW TO ] Treble ROM on the Honor 7X From Stock Guide by Christopher Lamb
Today I decided to embark on the journey of installing something to rid myself of EMUI. I was tired of looking at it. Switching between my Pixel 2 and 7X was a jarring experience to say the least. Along my journey I came to find out that the unlock code hosted on some EMUI subdomained website by honor directly was down and seems to have been for months so I needed another solution. I tried contacting Huawei on Twitter to get it reset like many have suggested, but never heard back from them so here I was now with a problem. I looked for other guides and dug through XDA. Eventually I found a guide that was almost correct enough but had a lot of un needed info and I just wanted to cut to the chase. So here is my guide to do just that for the rest of you.
My Phone:​
United States Model BND-L24
Running stock Oreo or newer (This is Required for treble partitions). The update that came through the other day.
Unlocking the Bootloader​This was actually a rather painless process once I realized what was involved. The method I used consisted of a small payment $4.94 USD. Which as far as I could see is the cheapest, and is required. I should also say I hate paying for things online that look kinda shady. I used bitcoin and did so in a VM. Call me paranoid, but….
You are going to need to download a few things:
https://www.dc-unlocker.com/buy (not a download but buy 4 coins, and save the login info it gives you then validate your email with them or your account will show as blocked in HCU)
https://hcu-client.com/
http://consumer.huawei.com/minisite/HiSuite_en/index.html
Some treble rom of your choice off XDA or something. I ended up going LineageOS. The 7x is partition type A only and arm64.
Now for the fun part where we set everything up on your phone:
Go to Settings > Security & Privacy then select Allow HiSuite to use HDB.
Go to Settings > System > About Phone and tap Build Number about 5 times until you are developer.
Press back and go into the newly created developer options menu item then select Android Debugging.
Type *#*#2846579#*#* into your dialer app. A menu will pop up and follow Background Setting > USB Ports Setting then select Manufacture Mode.
Plug in your phone to your computer and setup your phone with HiSuite let it do its thing and install drivers.
Run HCU and login with the credentials they sent you after purchasing your credits. On login success make sure in the top right corner phone connectivity is set to Autodetect and click on Read Phone Info. Once this has succeeded go to the Unlock tab and click Read Bootloader Code. This will take a minute.
Save the resulting code just in case your computer crashes or something.
Completely shutdown your 7X. Hold volume down, and plug into your computer while still holding volume down to get it to boot into fastboot.
Go back to file explorer and open your HCU folder that was extracted before installing it. Press Win Key + D type in CMD and then Enter. Then enter the following command: fastboot oem unlock {enter your unlock code from earlier without the curly brackets} Then press enter. It will say some things about wiping your data. It didn't for me but it will if you go any farther.
Installing the ROM​
Turn off the phone once it is done and then put it back in fastboot (hold the volume down button, and plug the USB cable into your phone from the computer). Back in command prompt enter fastboot flash system {full path to the .img you downloaded for treble} press enter and let it copy over. Shouldnt take too long.
Once completed enter fastboot reboot and be ready to hold volume up when prompted or you will bootloop forever. This will open a new menu and just select to factory reset the device. Then boot as normal once this is done.
Done!
original source: https://medium.com/@chris.lamb/treble-on-the-honor-7x-from-stock-df1d091d3206
Click to expand...
Click to collapse
I forgot to reply when I sent my last message, so check that one out! Thanks for any and all help you are able to give.

[Urgent help] Xiaomi Mi A1 Unlock bootloader

Hi All,
I'm new to this as I'm not an Android developer but a good Android user. Requesting moderator to update anything required.
I've Xiaomi mi A1 and it was working for the last 3 years. Last Sunday, it just got hanged while kids were playing with it(maybe multiple apps/videos/some ad clicked) and it got hanged.
I restarted and it stuck on "Android One" screen till now even after multiple attempts.
What I tried:
1. I tried to wipe/factory reset from the Android recovery option(power off + volume up) then it stuck there saying "Formatting data" and I've restarted it to come back to Android One screen after hours.
2. I tried using MiFlash tool and it continues throwing the error "remote device is locked. cannot erase".
Then I got to know bootloader must be unlocked. and for that:
1. I tried fast boot oem unlock but it just says OK and device reboots. When I check status back, it's again locked .
2.I tried to unlock it using MiFlashUnlock tool but it says not able to find account details as I may have logged in once but probably I may not have used Xiaomi as cloud instead I prefer Google cloud.
You can assume I'v already searched possibly all threads on the internet and added here all possible information.
Attached getvar-all.txt output
Is there anyone on the platform who knows on this issue?
Or it's just a platform of Ads?
oooooof, sounds like a harsh brick from some sort of malware downloaded into the device or your kids diddled with some kernel settings somehow
is your device running on qualcomm snapdragon? i have the fix for it in this site
but first try the update option on the recovery, might fix something
arshad4u said:
Hi All,
I'm new to this as I'm not an Android developer but a good Android user. Requesting moderator to update anything required.
I've Xiaomi mi A1 and it was working for the last 3 years. Last Sunday, it just got hanged while kids were playing with it(maybe multiple apps/videos/some ad clicked) and it got hanged.
I restarted and it stuck on "Android One" screen till now even after multiple attempts.
What I tried:
1. I tried to wipe/factory reset from the Android recovery option(power off + volume up) then it stuck there saying "Formatting data" and I've restarted it to come back to Android One screen after hours.
2. I tried using MiFlash tool and it continues throwing the error "remote device is locked. cannot erase".
Then I got to know bootloader must be unlocked. and for that:
1. I tried fast boot oem unlock but it just says OK and device reboots. When I check status back, it's again locked .
2.I tried to unlock it using MiFlashUnlock tool but it says not able to find account details as I may have logged in once but probably I may not have used Xiaomi as cloud instead I prefer Google cloud.
You can assume I'v already searched possibly all threads on the internet and added here all possible information.
Attached getvar-all.txt output
Click to expand...
Click to collapse
found some fix on a russian website, gonna translate it:
im gonna make a warning there off-script of the russian website, this is NOT guaranteed to work. if it doesnt, send it off for repairs.
what do you need to do this:
1 - fully charge the phone
2 - a working usb cable
3 - a computer with wifi on it (i can tell you have it since you likely posted it on the computer)
4 -you should have Mi flash pro
5 - a recovery image on chinese (WARNING: 1.9 GB, BE PATIENT)
6 - actually working braincells and hands ( you guaranteedly have em)
THE STEPS:
1 - Load in mi flash pro and register in it under your name (not always under your name)
2 - press recovery
3 - you should see a lightning bolt icon along with the IMEI of your device
4 - type in the path of the firmware
even if your device shows your system has been destroyed you can still boot into recovery.
5 - in your device boot into recovery
6 - you see connect with mi assistant? choose that option and confirm it
your device should direct you to connect the usb from your computer to your device
7 - After you setup everything you should see your device, if not, press refresh device, then you should see the flash button, press it
8 - and there begins the magic - wait 5-10 mins for the firmware to initialise, DO NOT DISCONNECT THE USB FROM YOUR DEVICE AT THIS POINT, IF YOU DO, YOU WILL SCREW IT UP AND HAVE TO DO IT ALL OVER AGAIN!
if you dont screw up and your device actually boots congratualtions! the power of xi jing ping has restored your phone to normal with a small drawback - its all in chinese
worry not, it doesnt end here:
9 - Unlock the bootloader AKA Unlock OEM (This is important, because otherwise you will brick yourself again and will have to do it all over again)
10 - boot your device into fast boot and flash the global firmware onto your device (the global firmware can be found on the same xiaomiui website you got the chinese firmware from)
i hope this lengthy guide helps
arshad4u said:
Hi All,
I'm new to this as I'm not an Android developer but a good Android user. Requesting moderator to update anything required.
I've Xiaomi mi A1 and it was working for the last 3 years. Last Sunday, it just got hanged while kids were playing with it(maybe multiple apps/videos/some ad clicked) and it got hanged.
I restarted and it stuck on "Android One" screen till now even after multiple attempts.
What I tried:
1. I tried to wipe/factory reset from the Android recovery option(power off + volume up) then it stuck there saying "Formatting data" and I've restarted it to come back to Android One screen after hours.
2. I tried using MiFlash tool and it continues throwing the error "remote device is locked. cannot erase".
Then I got to know bootloader must be unlocked. and for that:
1. I tried fast boot oem unlock but it just says OK and device reboots. When I check status back, it's again locked .
2.I tried to unlock it using MiFlashUnlock tool but it says not able to find account details as I may have logged in once but probably I may not have used Xiaomi as cloud instead I prefer Google cloud.
You can assume I'v already searched possibly all threads on the internet and added here all possible information.
Attached getvar-all.txt output
Click to expand...
Click to collapse
crud, i forgot the critical part:
it doesnt boot you to the average xiaomi screen, its the A1 model
at this point you need to use the ADB to flash the chinese firmware and unlock the bootloader on the chinese firmware, then flash the global one
though you can still use the same method i typed above
How's the progress so far?
Lamntox said:
oooooof, sounds like a harsh brick from some sort of malware downloaded into the device or your kids diddled with some kernel settings somehow
is your device running on qualcomm snapdragon? i have the fix for it in this site
but first try the update option on the recovery, might fix something
Click to expand...
Click to collapse
I tried recovery also try to format the disc with recovery mode(power on + Volume up ) but then it stuck on the formatting disc... line
arshad4u said:
I tried recovery also try to format the disc with recovery mode(power on + Volume up ) but then it stuck on the formatting disc... line
Click to expand...
Click to collapse
Yup, the device is probs bricked
Have you tried the other methods i described?
arshad4u said:
Hi All,
I'm new to this as I'm not an Android developer but a good Android user. Requesting moderator to update anything required.
I've Xiaomi mi A1 and it was working for the last 3 years. Last Sunday, it just got hanged while kids were playing with it(maybe multiple apps/videos/some ad clicked) and it got hanged.
I restarted and it stuck on "Android One" screen till now even after multiple attempts.
What I tried:
1. I tried to wipe/factory reset from the Android recovery option(power off + volume up) then it stuck there saying "Formatting data" and I've restarted it to come back to Android One screen after hours.
2. I tried using MiFlash tool and it continues throwing the error "remote device is locked. cannot erase".
Then I got to know bootloader must be unlocked. and for that:
1. I tried fast boot oem unlock but it just says OK and device reboots. When I check status back, it's again locked .
2.I tried to unlock it using MiFlashUnlock tool but it says not able to find account details as I may have logged in once but probably I may not have used Xiaomi as cloud instead I prefer Google cloud.
You can assume I'v already searched possibly all threads on the internet and added here all possible information.
Attached getvar-all.txt output
Click to expand...
Click to collapse
Hi i dont have that kind of a problem!
my problem is when i try to do oem unlock it says error 0x1002 and idk what to do (i have same phone btw) i tried anything but nothing works!

Categories

Resources