跳转到主内容
如何解锁 Android 手机的引导加载程序(Bootloader / BL 锁)

如何解锁 Android 手机的引导加载程序(Bootloader / BL 锁)

Sebastian

Sebastian3 其他贡献者

最后更新于 April 4, 2025

2分钟 - 1小时
中等
社区贡献指南

解锁引导加载程序允许你在 Android 手机上安装自定义固件,并为你提供对手机进行修改的完全访问权限。 此类修改可能涉及更改某些预加载的软件,甚至可能包括替换整个操作系统

有些引导加载程序没有锁定,有些可以使用标准的 fastboot 命令解锁,有些则需要制造商提供的解锁代码。 还有一些手机根本不包含解锁方法,只能通过软件漏洞解锁。 这些锁定的设备通常来自运营商合约机。

在本指南中,我将仅介绍使用标准 fastboot 命令解锁引导加载程序。

警告

  • 解锁引导加载程序将重置手机,因此请确保备份所有数据!
  • 这可能会使某些制造商的保修失效。
  • 解锁的引导加载程序将触发 Play Integrity API(以前称为 SafetyNet Attestation API),这可能会导致 GPay 等某些服务停止工作。
  • 这将使你的设备容易受到物理访问你设备的黑客的攻击,因此请勿对携带国家/公司机密的设备执行此操作。

附加信息

  1. 如何解锁 Android 手机的引导加载程序(Bootloader / BL 锁), 查找版本号: 步骤 1 中的图像 1,3 如何解锁 Android 手机的引导加载程序(Bootloader / BL 锁), 查找版本号: 步骤 1 中的图像 2,3 如何解锁 Android 手机的引导加载程序(Bootloader / BL 锁), 查找版本号: 步骤 1 中的图像 3,3
    • 首先,我们需要找到版本号

    • 通常你可以在关于手机>版本号系统>关于手机>版本下找到它,但由于它因设备而异,使用搜索功能通常是最简单的方法。

    15min-1hour is incorrect for xiaomi phones. for xiaomi phones its 5-7 buisness days

    Filip - 回复

  2. 如何解锁 Android 手机的引导加载程序(Bootloader / BL 锁), 解锁开发者选项: 步骤 2 中的图像 1,2 如何解锁 Android 手机的引导加载程序(Bootloader / BL 锁), 解锁开发者选项: 步骤 2 中的图像 2,2
    • 现在,你只需重复点击内部版本号,直到收到一条确认消息:“你现在是开发人员!”。我已经在我的设备上启用了开发人员选项,因此不需要再次执行此操作。

    • 如果你设置了锁屏密码,系统可能会提示你输入锁屏密码。

  3. 如何解锁 Android 手机的引导加载程序(Bootloader / BL 锁), 允许 OEM 解锁: 步骤 3 中的图像 1,1
    • 在开发者选项中,找到 OEM 解锁选项并启用它。

    • 如果你设置了锁屏密码,系统可能会提示你输入锁屏密码。

    I can't enable the OEM on my phone

    Ibsan Furgassa - 回复

    i have the same issue while enabling oem it's says i didn't complete the two weeks

    Fana$onic - 回复

  4. 如何解锁 Android 手机的引导加载程序(Bootloader / BL 锁), 启用USB调试: 步骤 4 中的图像 1,1
    • 在开发者选项中,找到 USB 调试选项并启用它。

  5. 如何解锁 Android 手机的引导加载程序(Bootloader / BL 锁), 将手机连接至电脑: 步骤 5 中的图像 1,2 如何解锁 Android 手机的引导加载程序(Bootloader / BL 锁), 将手机连接至电脑: 步骤 5 中的图像 2,2
    • 通过 USB-C 转 USB-A 线将手机插入电脑。

    • 如果转换线质量不好,你可能会遇到一些问题。一些较旧的设备也不喜欢 fastboot 模式下的 USB 3。

    • 拉下通知栏并选择通过 USB 为该设备充电

    • 选择文件传输 / Android Auto 选项。

    • 在某些较旧的设备上,此选项可能称为 MTP

    Well that takes care of that cuz I don't have a regular PC but I will save these directions since Someone is donating a Chromebook to me, I went back to consumer cellular after they went with ATT instead of TMobile also & ATT installed software and what looks like bootloader and something about binding? Permissions say NO or NA but they were allowed to do this anyway! I'm furious

    deb patterson - 回复

  6. 如何解锁 Android 手机的引导加载程序(Bootloader / BL 锁), 授权你的电脑在设备上执行 ADB 命令: 步骤 6 中的图像 1,2 如何解锁 Android 手机的引导加载程序(Bootloader / BL 锁), 授权你的电脑在设备上执行 ADB 命令: 步骤 6 中的图像 2,2
    • 在安装了 SDK Platform Tools 的电脑上打开终端应用程序并输入 adb devices

    • 这应该会在你的设备上触发一个弹出窗口。确保选中复选标记并单击允许

    • 我没有将 platform-tools 所在路径加入环境变量 PATH,因此需要在 platform-tools 文件夹中打开终端窗口并输入 .\ 作为命令的前缀。

    • 你可以再次运行该命令来检查它是否有效。现在设备状态应该是 device (设备) 而不是 unauthorized (未授权) 。

    PS C:\Users\ADMIN> adb reboot bootloader

    adb : The term 'adb' is not recognized as the name of a cmdlet, function,

    script file, or operable program. Check the spelling of the name, or if a

    path was included, verify that the path is correct and try again.

    At line:1 char:1

    + adb reboot bootloader

    + ~~~

    + CategoryInfo : ObjectNotFound: (adb:String) [], CommandNotF

    oundException

    + FullyQualifiedErrorId : CommandNotFoundException

    help me pls how do I do that

    Lê Minh Khôi - 回复

    Since you probably haven't "installed" the platform tools, you'd have to use the terminal in the folder you downloaded. You could do that by first running the command cd C:\[location of the folder]\platform-tools first and adding a .\ in front of every subsequent command, like I do in the guide images. Alternatively, if you have a current version of Windows 10 or 11, you can actually install the platform tools via the Microsoft Store by running winget install --id=Google.PlatformTools -e

    Sebastian -

    Okay, so how do I get into the terminal mode on my laptop?

    ArlinaEinstein - 回复

    i had gotten the same error as mentioned in above comment. What should I do?

    Riya Dasani - 回复

    I don't have installed platform-tools, What should I do?

    Riya Dasani - 回复

    "draw the rest of the owl" xd

    Jesus Christ - 回复

    i installed sdk platform tools and android studio, but it says "the code execution cannoty proceed becuase AdbWinApi.dll was not found. reinstalling the program may fix this issue"

    Reginald Jackson - 回复

    Have you already tried reinstalling Android Studio? If that doesn't work, you can alternatively use the methods I mentioned in my response to the first comment on this step. You don't necessarily need the full Android Studio suite unless you're developing an app. Using Winget or simply directly downloading the platform tools folder directly is typically a better option.

    Sebastian -

  7. 如何解锁 Android 手机的引导加载程序(Bootloader / BL 锁), 解锁引导加载程序: 步骤 7 中的图像 1,1
    • 输入命令 adb reboot bootloader

    • 等待几秒钟,直到您的设备重新启动进入引导加载程序,然后输入命令 fastboot flashing unlock

    • 某些设备可能会改用命令 fastboot oem unlock

    • 如果你收到类似 FAILED (remote: 'Failed to unlock, decrypt failed!') 之类的消息,那么你的手机需要一个来自厂商的解锁码以解锁 Bootloader。

    • 你现在应该会看到类似于图中所示的提示。使用音量键选择 Unlock the bootloader(解锁引导加载程序) 选项,然后按电源按钮确认。

    Hw long step take

    Josh Chibs - 回复

    for me it says what can i do? and nothing happens

    C:\Windows\System32>fastboot flashing unlock

    < waiting for any device >

    Murathan Kilic - 回复

    That means that it can't find your device. Have you made sure it's properly connected? Maybe a loose connection? If you are using a USB 3 cable, try using a USB 2 cable instead. USB 3 cables can sometimes cause problems. Sometimes you need to install a USB driver for your device as well, but if ADB worked Fastboot should typically work as well without installing any additional drivers.

    Sebastian -

    I get stuck at the fastboot flashing unlock/ fastboot oem unlock step.

    When i use adb reboot bootloader the phone screen does turn on, but show nothing... is that right?

    Also is it ok that my phone disconnects briefly after the adb line?

    oajk - 回复

    The brief disconnect is normal, since the device is rebooting, but it should show a rudimentary interface instead of just showing a blank screen. Doesfastboot device report a device even though the screen shows nothing? If so, maybe you can continue anyways.

    Sebastian -

    I keep getting: "remote: 'the command you input is restricted on locked hw'" What do I do?

    The RadioDemon - 回复

    Are you trying to unlock an Amazon Fire device? I don't really have much experience with more locked down devices, you might find someone who can help you on the XDA Forum or Reddit.

    Sebastian -

    I need help and the command works fine but my phone turns off to show me the menu problem is that my automatic mode is charging only and not file transfer


    Le pro - 回复

    Que puedo hacer si no detecta las teclas de volumen?

    Como le doy en 'yes'?!

    Para aceptar el desbloqueo

    A VTRX - 回复

    My phone is not detected after the reboot to boot loader is done, when execute fast boot command the device not detected in the bootloader mode.

    Soundararajan Soundarapandian - 回复

    PS C:\Users\sound\Downtoads\ptatform—toots—tatest—windows\pIatform—tooIs> .\adb devices

    List of devices attached


    its blank there after when in boot loader cant detect the device

    Soundararajan Soundarapandian - 回复

    In bootloader you need to run ./fastboot devices

    Sebastian -

    when i write reboot bootloader , the phone goes in fast boot but 1 second later it turns on

    ismaele tortora - 回复

    It’s possible that your phone is locked by the manufacturer, which might be why it doesn't enter bootloader mode. This is common with some brands, like Oppo. You might want to check via a quick Google search, if your phone model allows it or if it's restricted by the manufacturer.

    Sebastian -

    i cant enter the bootload by using adb reboot bootloader for my oppo r11,it just normal boot after I type "adb reboot bootloader"

    One star no tips - 回复

    use another method

    Lê Minh Khôi -

    my phone just says downloading , i think its infinitly loading now :/

    Liam Zriouil - 回复

    whenever i do adb reboot bootloader my phone turns off, then turns back on completely blank exept for the words enterring fastboot mode... and it just stays like that for ages, i can turn it back to normal but i cant really progress or do anything with fastboot mode

    DuskDomed - 回复

    I get this: C:\Windows\System32>fastboot flashing unlock

    < waiting for device > I used the cable from usb-c to usb-c and usb-a to usb-c but the same thing happened and when I entered abd reboot bootloader the device restarts but ends up in the bootloader where I just start reboot If I can select bootloader or power off, what do I have to do?

    Eine deutsche Antwort ist auch möglich lg

    finn - 回复

    Same for me as was mentioned above: the phone just freezes in >Fastboot mode...
    I feel that those Chinese mfs just made it like that or it is blocked by the manufacturer

    El Agua - 回复

    Tengo una Lenovo TB-7304F y al escribir .\adb reboot bootloader se quedó en un pantallazo negro sin nada en pantalla

    Qué puedo hacer?

    Flor Nancy Olascoaga Aburto - 回复

    well, i get an error with both fastboot flashing unlockand fastboot oem unlock : FAILED (remote: 'Unlock failed, data invalid')

    Skye - 回复

结论

要重新锁定引导加载程序,只需运行命令“fastboot flashing lock”。

仅在运行原厂固件时才能再锁定引导加载程序,否则您的设备将变砖!

77等其他人完成本指南。

由衷感谢以下译者:

en zh

100%

这些译者帮助我们修补全世界! 您也想加入吗?
开始翻译 ›

Sebastian

于08/19/18注册

28,482 声望

创作了71篇指南

团队

German Translators German Translators 的会员

Community

35 名成员

创作了1,220篇指南

32指南评论

You have shared a very useful post i really like it keep going on, thanks for sharing such an informative content about Samsung Bootloader Unlock with us. I like to visit this helpful blog again for further updates on this beneficial post.☺️

File Rehab - 回复

I'm using a Nokia G60 I was offered.

When I try "fastboot oem unlock" I get:

FAILED (remote: 'Failed to unlock, decrypt failed!')

Please update the guide for such cases.

Thank you

Bruno - 回复

As far as I know, Nokia phones need an unlock code from the manufacturer. I don't have much experience with this, so I suggest you ask/search around on forums like xda developers or reddit. It might even help to directly ask the Nokia support for help. Depending on who you end up with they might even help you out.

Sebastian -

did it work with any realme device?

ëĺäžäžÿ - 回复

Realme requires you to run an app beforehand, but the rest of the process should be pretty similar.

Sebastian -

I didn't complete this step by step but it seems like a pretty well put together and quite possibly useful so I think you deserve the 30 points anyway. going to save this guy and check back in after Ive tried it out

Dago Gomez - 回复

Device does nothing once it restarts to enter bootloader. What to do? No other key combination works too. Device is Coradir C01.

Coco Mark - 回复

Don't waste time, if the hardware has locked oem and that oem unlock is greyed out, you cannot unlock it. You'll need a specific code or unlocking tool from hardware manufacturer to unlock any tablet that has the boatloader locked. there is no other way around it. only a few tablets can load new firmware that was not original. nexus 7 you can load android on it. most tablets you need manufacturers tool to communicate with the software in the chip level. you can remove the chip and put chip in it but that is too much work the tablet is stuck with the OEM software. and you cannot even upgrade it. contact the manufacturer. only pixel cell phones or some cell phones you can unlock oem. these cell phones are subsidize by the cell phone company and you can only use the cell phone on their network. that is the reason you cannot unlock it from business perspective. you subscribe 5 year phone plan and cell phone is free promotions. What you have wrong tech advice telling people you can unlock it when you cannot.

tech2025 - 回复

Motorola g41

Jose - 回复

Hello,

I am getting the following error; Any idea why could I do?

$ fastboot flashing unlock or $ fastboot oem unlock

FAILED (remote: 'unknown command')
fastboot: error: Command failed

cvaa - 回复

The LG G5 works a bit differently, LineageOS has great instructions for that device, though.

Sebastian -

Forgot to mention it is LG G5 phone.

cvaa - 回复

Hello , Why am i getting this error,?

C:\Program Files (x86)\adb_fastboot>fastboot oem unlock

...

FAILED (remote: Token Verify Failed, Reboot the device

)

finished. total time: 0.004s

C:\Program Files (x86)\adb_fastboot>fastboot oem unlock 445G-H3CN-YRUR-UOX

...

FAILED (remote: Token Verify Failed, Reboot the device

)

finished. total time: 0.005s

I used fastboot flashing unlock also but nothing, same error.

Note- The phone I am trying to unlock was locked using ADB ( fastboot oem lock ).

Please help. I used even Xiaomi's official unlock tool (latest v) but says " This device is not activated. Please activate it and try again.

Thank You!

Hacker Aro - 回复

ich bekomme nachdem "fastboot flashing unlock" die Meldung "wait for any device". Was habe ich falsch gemacht?

rene - 回复

Das bedeutet das er kein verbundenes Gerät erkennt. Das könnte viele Gründe haben, z. B. ein Wackelkontakt im Stecker, ein billiges Kabel oder ein USB 3 Kabel. Fastboot ist aus irgendeinem Grund im Gegensatz zu ADB recht empfindlich.

Sebastian -

Was gibt es für Möglichkeiten den bootloader anderweitig zu entriegeln? ich habe jetzt schon viele Kabeln an unterschiedlichen buchsen verbunden, unterschiedliche treiber und adb tools versucht. ich verzweifle allmählich.

rene -

Was für ein Handy hast du denn? Es könnte auch sein, dass der Bootloader auf deinem Handy nicht entsperrt werden kann.

Sebastian -

Need more simple detailed instructions

Robert Wymore - 回复

so i ordered one of the galaxy knockoffs from amazon. So its unlocked and has dual sim etc. Has a vanilla version of stock android 13 and could be a cool phone. In my developer options it has oem unlocking built in and also a DSU loader. very robust developer options. It does not seem to want to reboot in to bootloader with the commands. I dont know if its already unlocked and i just need to load a rom or what? on amazon its called the Yemjaw C24 ultra. galaxy s24 clone i believe. I'm hoping i can get something else loaded on here, as specs wise its a powerful phone that is being underutilized by the crappy rom it came installed with.

Joshua Hayes - 回复

Im using a Samsung Galaxy M215F (Turkey)

when i try both of the fastboot commands, it doesnt seem to do anything. it takes abnormally long and only stops upon device disconnect

emir eri - 回复

Somebody did this to my phone and installed spyware hack apps you name it destroyed thousands of devices I go through so many phones because they keep getting on to the next phone I get how do I fix them like is there a way to remove these apks. They passing system app so security does nothing passes.... Also is there a way to know if the apps on a new phone are legit system apps or there shouldn't be hundreds of network overlay stacking tethering apps etc is there a list somewhere ?

Megz - 回复

i tried to unlock the bootloder of my infinix hot 40i and bot comand's faild to work pls if you know how to unlock it pleas advice

Blacknight Ravana - 回复

how to get the unlock code for specific smartphone like Huawei P30 pro? i have tried all steps many times but it does not work!!! i need to get the code but i do not know where to get!! i have checked many website including Huawei official site and AI chat tools, where are trusted sources to get unlocking code for android smartphones??

Roman Ismaeel - 回复

Am using sumsang A04e please help with guid on how to unlock payments from watu credit

Isaac12 - 回复

Thx for that tutorial, top quality !

Guilbault Frederic - 回复

Bonsoir je suis ravis de tomber sur cet site internet.je suis un dépanneur j'aimerais bien me lancer plus profond . quelqu'un peut m'aider

Tianne - 回复

please , is that works with HTC U Ultra ?

George Youssif - 回复

Impressed app and am interested in it

Thomas Luate - 回复

I am the first to start these programm what should I do

Hussein Kassimu Nindi - 回复

Please help me to start this business

Hussein Kassimu Nindi - 回复

Bonjour
Comment revenir à un fonctionnement normal pour éviter le message de sécurité au démarrage et revendre son téléphone ?

Claude PRIMAT - 回复

添加评论

浏览统计数据:

过去 24 小时: 284

过去 7 天: 1,687

过去 30 天: 9,058

总计 247,606