[Full solution] Flash, BL lock, Bootloader, Recovery, Magisk, Root, ADB, wire flash, card flash, 9008, bypass FRP

This article explains how to flash your phone, Root, and most of the problems you may encounter during the process.

You may need to have some understanding of computer reinstallation system, know what partitions, devices, and drivers are, and be familiar with using computers and executing commands in the command window

overview

Flashing a mobile phone, of course, can also be said to be a reinstallation of the system. Generally, when we use a computer to reinstall the system, we use PE or a storage medium with an installation image written, boot, and then install, which is very simple. But the process of flashing a mobile phone is different from Computers are different.

The reason why the computer can reinstall the system at will is because the devices in the computer have the same communication protocol, and the computer has a complete driver, which can be used casually. For example, if I plug in a device that the computer cannot recognize, then only need to start Download the corresponding driver from the official website, then the computer can use this device.

Moreover, many devices in the computer are common protocols, such as storage devices, cameras, audio devices, etc. Many of these devices can be used directly without installing special drivers for them.

1. Partition

For computers, users can partition them at will, but the partitions of mobile phones are pre-partitioned, and users generally do not re-partition them during use, and the partitions in mobile phones are also assigned functions .

Phone partitions include: modem, bootloader, boot, recovery, system, data, cache

Bootloader:
Among them, the bootloader partition, as the name suggests, is used to boot and start, which can be understood as similar to the existence of MBR or GRUB in the computer, which stores the programs used to boot and start.

recovery:
The recovery partition is used for some advanced maintenance of the system, such as restoring the factory settings. Generally, the programs in the recovery partition carried by the mobile phone by default do not contain advanced functions, but we can flash into the third-party recovery , to achieve more functions, this is also the main step of flashing.

boot:
The boot partition contains the system's kernel (Linux)

system:
system partition, including the system body, all parts except the kernel

2. High authority

For a computer, booting into PE through an external device, you can perform any operations on other devices in the physical machine as you like, such as repartitioning, installing the system, etc., but Android cannot do this.

音量-For Android, first we need to enter the bootloader, press and hold the and keys during startup 电源to enter the bootloader, then connect the computer to the mobile phone through a data cable, and then the computer can operate the mobile phone through the "fastboot" tool

However, mobile phones generally restrict the bootloader so that you cannot perform dangerous operations, such as flashing into a third-party recovery, so you need to unlock the BL before using fastboot.

At present, OnePlus and Xiaomi are relatively open, and the official provides a solution to unlock BL, while OPPO and VIVO are closed, basically there is no way to flash and ROOT (except for old phones)

Unlock BL

For the most open OnePlus, there is no difficulty in unlocking the BL lock, but different models have different unlocking methods, some only need to execute instructions, and some need to enter the developer options to open the OEM unlock.

For Xiaomi/Redmi mobile phones, you need to use the official unlocking tool to unlock, and you also need to bind the mobile phone with the Xiaomi account, and then wait for a week or something, in short, it is very troublesome.

For OPPO / vivio, there is no need to flash the phone at all, it is very difficult, oh yes, Huawei is the same

When using the official unlocking tool for BL, the device may not be recognized, you need to install the driver corresponding to the device first, and the corresponding tool generally provides this function.

There are also many wonderful ways to force unlock BL lock on the Internet, even OPPO force unlock BL lock, but it is not suitable for all devices, you can also try, but after unlocking BL lock, you can get Root permission at most and flash third-party systems Forget it, because they are not suitable for OPPO / vivo devices

Preparation

Download Android platform tools (ADB and FastBoot):

Official website: https://developer.android.google.cn/studio/releases/platform-tools

Download the tools suitable for your computer in it, and then unzip it. The downloaded content should at least contain adb.exe and fastboot.exe

Download the flashing package you need:

The commonly used flashing packages are card flashing packages (zip format), which can be installed directly through TWRP, or can be installed on the computer through ADB sideloading.

The following describes the way to install the card brush package through ADB test loading.

The origin of the name of the card flashing package... In the early days, the flashing package was stored in the memory card, and then when installing the system, directly select the flashing package in the memory card in TWRP, and it can be installed. Except for the process of flashing into TWRP, other processes No computer is required to operate.

The flashing package is a flashing package that can be installed directly through FastBoot. It does not need to be flashed into TWRP, but the third-party system will not do this kind of flashing package. Generally, the official supplying the flashing package is used to save bricks (line Brushing the package is a way to brush the machine that will basically not fail)

Flash into TWRP

The full name of TWRP is Team Win Recovery Project, which is a customized recovery image of open source software for Android-based devices. It provides a touch-screen interface with many wonderful small functions, such as erasing mobile phone data, installing system, backup System, let the computer ADB flash into the system through side loading. All in all, it must be used for flashing. (Root is also)

Official website: https://twrp.me/

You need to download the TWRP image (img file) corresponding to your device from the official website of TWRP

  1. The phone enters BootLoader (in the off state, long press 音量-and 电源)
  2. Connect phone and computer

Now use the command line on your computer, execute fastboot devicesto see if the connection is normal, your console should output information similar to the following:

hyxobieieaqgcinr        fastboot

The phone name is on the left, and the current state of the phone is on the right.

  1. Now execute fastboot flash recovery twrp.imgthe command, which twrp.imgshould be the path of the TWRP image file you downloaded.

If flashing was successful, your console should output something similar to the following:

Sending 'recovery' (65536 KB)                      OKAY [  1.670s]
Writing 'recovery'                                 OKAY [  0.538s]
Finished. Total time: 2.228s

After performing the above steps, TWRP will be flashed into your mobile phone successfully, but note that TWRP may be overwritten by your mobile phone system, if you restart your mobile phone at this time and enter the mobile phone system, your TWRP may be Lost (MIUI likes to do this)

  1. Execute fastboot reboot recoveryto restart the phone directly into recovery

If you successfully enter, the words TEAMWIN will be displayed on your screen (it looks weird, I didn't recognize it at first)

clear phone data

There are many on the Internet, such as double clearing, triple clearing, and four clearing. In fact, it is just to clear the data of several partitions. When installing the system, you should refer to the official tutorial of the system installation. For example, Pixel Experience only needs to clear Data Partitioned data can be

Select Wipe on the TWRP main page and there are the default Sanqing and the formatted Data on the right.

There are different opinions about Shuangqing on the Internet. Some people say to clear Data + Cache, and some say to clear Cache + Dalvik. Cache + Dalvik

If you want to clear more data, such as clearing the System partition and Internal Storage partition, use the Advanced button on the left to finish the job.

I am a naive critic, this article was written, and I accidentally operated it, and then my mobile phone data was wiped out by my hand! (It’s so miserable, I don’t like it...)

Side Loading Flash Pack

Now, open the command line on the computer and execute it adb devices. If the device is connected normally, the following will be displayed:

List of devices attached
hyxobieieaqgcinr        recovery

On the TWRP main page of the mobile phone, click Advanced in the lower left corner, click ADB Sideload, then slide the slider to start Sideload

Then execute it on the computer adb sideload xxx.zip, where xxx.zipis the card swiping package you downloaded.

Wait for the completion, and then restart the phone (there is a Reboot System button on the phone, or you can execute it on the computer to adb rebootrestart the phone

After restarting, if there is no problem with all operations, and the twrp and flashing packages are compatible with the phone, then you have probably entered the system now.

Magical Root

Magisk (also known as a mask) is an open source Android (version 5.0 and above) custom tool suite with built-in Magisk Manager (graphical management interface), Root, startup scripts, SElinux patches and startup authentication/ dm-verity/Force encryption removal function.

In short, this thing can be used to get Root privileges, and the operation steps are extremely simple.

  1. Download the Magisk installation package (an apk file)
  2. Copy the apk file and change the suffix to zip
  3. The phone enters Recovery and prepares for sideload
  4. computer executionadb sideload magisk.zip

That's right, Magisk flashing, like flashing into the system, is done through sideloading. (Note, no need to clear data)

After the operation is completed and restarted, there will be a Magisk software with a strange icon on your mobile phone. Click it, and it will prompt you to "install complete Magisk" or something. The next step is to install the Magisk software directly on your mobile phone. You You can directly use the installation package just now for installation. Of course, the simpler way is:

  1. The computer executes adb install magisk.apk, and then the mobile phone is directly installed with the Magisk software.

After the above steps are completed, your phone is rooted successfully, and other software can request Root permission, and all you need is to agree or deny it in Magisk.

9008

This thing is a flashing method supported only by the Snapdragon processor, and enters the corresponding mode by shorting the designated contacts on the motherboard or shorting two lines through the wonderful deep flashing line

Because I haven't used this method yet (my mobile phone Redmi Note 8 Pro is a MediaTek processor), so I won't talk about it here, there are already complete tutorials on the Internet.

Bypass FRP

If you flash into the international version of the mobile phone system, and it requires Google verification, such as native systems such as Pixel Experience, you may encounter problems that cannot be verified. After all, Google services cannot be accessed normally in China.

This problem is because in the previous old system, there was a Google account logged in, and this data was not cleared before flashing. The following solutions are given for reference:

  • Connect the mobile phone to the computer WiFi and use the agent on the computer. (Science Internet)
  • To clear the FRP data directly, just use adb, execute adb shellto enter the phone command line, and execute the following command:
dd if=/dev/zero of=/dev/block/bootdevice/by-name/frp
dd if=/dev/zero of=/dev/block/bootdevice/by-name/config
  • In Google account management, find the device (current mobile phone) that you have logged into your Google account, and then log out of the account.

Any of the above schemes can be used directly, but there is no guarantee that all mobile phones can be bypassed. For example, I have measured that the third scheme cannot be used, and the second scheme can be used directly, but some other users have reported that on Android 13 Solution 3 needs to be used to solve it.
Solution 1 has not passed the test here, but in theory this is completely usable

If dd if=/dev/zero of=/dev/block/bootdevice/by-name/frpthe execution fails during execution, additional parameters can be added, as follows:
dd if=/dev/zero of=/dev/block/bootdevice/by-name/frp bs=512 count=1024

Summarize

Created with Raphaël 2.3.0 开始 手机有 BL 锁? 解 BL 锁 成功? 准备工作(下载所需 TWRP 和刷机包) 刷入 TWRP 清除手机数据 通过侧加载刷入刷机包 结束 yes no yes no

Guess you like

Origin blog.csdn.net/m0_46555380/article/details/127450706