Impossible to Unlock bootloader redmi note 5 pro with mi unlock device not detect the phone

@Erekoze how is it possible on linux ? Mi unlock tool is for windows I think. Can I do it on rasbian running on my raspberry powered with ARM processor I guess on a virtual machine ?

Il est possible d’utiliser les commandes adb en mode fastboot pour déverrouiller le bootloader des téléphones Xiaomi et donc pas besoin de Windows ou de logiciels Xiaomi.
je l’ai fait a plusieurs reprises sur mon Mi Mix 2.

Hi @Nikoleos Xiaomi will first have to authorize your phone can be unlocked before MiUnlock can work. Even after their approval it took me about a week if i remember.
. In the phone after you enable developer options. Enable oem unlock besides Android debugging

The fastboot command is

fastboot oem unlock

1 Like

Je suis nouveau dans le monde linux et suis sous rasbian, comment exécuter des command adb ou fastboot sous rasbian ? Y aurait il un wiki ?

Bună ziua, Nikoleos.

“fastboot oem unlock” from the command line. I think you need a code for Xianomi to unlock your bootloader. Have you check XDA?

If you need to run linux download ubuntu image disc and boot from the disk. Then install android-tools-adb and android-tools-fastboot whitout install ubuntu.

Maybe the problem, on windows, is that you need to run the executable as ADMINISTRATOR.

Pour faire tourner les commandes adb sur linux voir le tutoriel du gitlab, tu y trouveras les paquets à installer sous linux pour faire tourner les commandes fastboot et adb.
https://wiki.lineageos.org/adb_fastboot_guide.html

Tu trouveras aussi ci-dessous le tutoriel pour installer la ROM /e/ et donc les commandes à utiliser.
https://gitlab.e.foundation/e/wiki/en/wikis/device/whyred/install

@Erekoze
On my mi mix 2, I unlock and lock the bootloader without using Xiaomi services.
Xiaomi services are too restrictive.
The fastboot commands work perfectly on my phone.

To try with the other phones if the procedure doesn’t work, the fastboot console says it and at worst it is just a reset of the phone.

it ’ my opinion.

I am not a developer but I install custom roms since I discovered Xiaomi brand and Rom Miui in 2011 with the nexus one.

OK. I never goy a Xianomi device so don’t have experience with them. :neutral_face::smirk:

1 Like

salut @lcjmle j’essaye de comprendre ce qu’il faut entrer pour installer adb et fastboot sur linux mais je ne comprends pas le chemin à saisir au point 3 et 5

pourrais tu m’expliquer ?

On Linux

  1. Download the Linux zip from Google.
  2. Extract it somewhere - for example, ~/adb-fastboot .
  3. Add the following to ~/.profile :
if [ -d "$HOME/adb-fastboot/platform-tools" ] ; then
 export PATH="$HOME/adb-fastboot/platform-tools:$PATH"
fi
  1. Log out and back in.
  2. You may also need to set up udev rules: see this repository for more info
1 Like

Dans ce fil de discutions vers la fin j’explique les commandes linux pour installer adb et fastboot. Et aussi pour installer les règles Udev.
Si celà peut t’aider…

Sinon le point 3 tu dois ajouter au fichier .profile les commandes qui vérifient si on a un répertoire adb-fastboot dans ton repertoire personnel tilde pour les outils googles et dans ce cas rajoute le répertoire des outils Google adb et fastboot au path pour pouvoir lancer les applicatifs…

1 Like

Merci pour tes explications. La procédure que tu donne fonctionne elle sous raspbian ARM64 ? Car il y a des lignes qui ont l’air spécifique à la distribution ubuntu

1 Like

Effectivement pas testé sur rasbpian, cela te donne une autre approche qui peut t’aider a comprendre ce qui est nécessaire pour adb et fastboot…

Rasbpian est basé sur debian et ubuntu aussi…

wget permet de récupérer des fichiers. Existe sur debian au pire apt-get install wget
chmod permet de changer les droits des fichiers et existe en natif…
unzip commande pour dezipper les fichiers compressés.

Sinon tu peux essayer celà sur raspbian :

$sudo apt-get update
$sudo apt-get install -y android-tools-adb android-tools-fastboot
1 Like

Je croyais qu’il était écrit en haut de la page:
" /e/ en Français "

et en plus, l"anglais" de certains…

Or get another effective method to unlock xiaomi without password, but it will erase all data on xiaomi device.

with the new guide you can unlock mi bootloader, xiaomi redmi note 5 and new 2020 mi, redmi phones

I stuggled on windows 10 and Linux with fastboot/adb. Same issues as soon as phone in fastboot no devices connected. Eventually used mi unlock tool from XDA.

Managed bootloader unlock with that. Then couldn’t get adb sideliad to work from anywhere so had to flash the ROM zip from twrp. Took a few gos and I tried a couple of different versions of twrp from the tool. 2nd from bottom worked for me finally.
Windows 10 was a complete no go for me. Also it took a long time to boot first time.
Working brilliantly now. Long live E/os

Unlock bootloader of the Xiaomi phone is still easy. Just you need the perfect guide

If you want to unlock bootloader of Xiaomi phone then you can follow this perfect guide and Mi Account Unlock Tool and FRP Bypass Tool to bypass FRP.

Dear users, I’ve been struggling to unlock a Redmi note 9 (Merlin) from my Windows 7 PC, to install a new build (see here).

I have the same display “Not connected to the phone” as on the first post. I have:

  • logged in to the Mi account, and the Mi Unlock Tool seems to be fine with my permissions (I didn’t find how to ask them on the website btw)
  • tried several versions of the Mi Unlock Tool
  • tried installing adb by several methods (not sure if I managed). When I run adb with “C:\platform-tools_r31.0.0-windows\platform-tools\adb devices” the List of attached devices is emply.
  • enabed USB debugging on the phone in developer mode
  • installed a driver so that my PC recognizes the phone ( I can access files)

Any idea on how to proceed?

We finally managed to unlock, by trying on a third computer!

So we’re good so far, only 168 hours to wait. I’ll keep you updated as we proceed next week, cheers.