All Android phones pass through the native system

1. The mobile phone needs to unlock the bl lock

2. Be ready to deal with low mobile phone packages

Xiaomi bottom package download website: XiaomiROM.com - Xiaomi ROM line flashing package, the latest and historical version download of card flashing package

3. Use the command to flash into the Google system partition

Reference document 1: Redmi K50 is flashed into the native system Pixel Experience and the whole process guide for subsequent optimization

Reference 2: Generic System Image | Android Developers | Android Developers (google.cn)

Reference 3: Mi 9 GSI native system flashing guide – CoderStory

Reference video: Mi 8 refresh native system pixel experience_哔哩哔哩_bilibili

4. Preparation steps for brushing into gsl:

1. The mobile phone must be unlocked with bl lock, each mobile phone is different, the unlocking steps are Baidu

Xiaomi unlock BL reference: Xiaomi mobile phone flashing step 1: unlock BL lock tutorial-Knowledge

2. Check whether the Android version of the mobile phone supports gsl

Open adb input:

adb shell getprop ro.treble.enabled

If the response is false, the device is not GSI compliant and you should not proceed. If the response is 

true, please proceed to the next step.

3. Run the following command to check whether the device supports cross-version installation:

adb shell cat /system/etc/ld.config.version_identifier.txt \| grep -A 20 "\[vendor\]"

Look for namespace.default.isolated in the [vendor] section of the output.

A value of true for this property indicates that the device fully supports the Vendor Native Development Kit (VNDK) , so any GSI operating system (OS) version higher than the device-side OS version can be used. Select the latest GSI OS version available.

If the value of this attribute is false, it means that the device is not fully compatible with VNDK, so only the GSI with the same version as the device-side operating system can be used. For example, if a device running Android 9 (API version 28) is not VNDK compatible, only the Android 9 GSI image can be loaded.

4. The GSI CPU architecture type must match the CPU architecture of the device. To find a suitable CPU architecture for a GSI image, run the following command:

adb shell getprop ro.product.cpu.abi

armeabiv-v7a: ARM processors of the 7th generation and above. Most Android devices produced after May 2011 use it. If you return to this, download the arm32 image

arm64-v8a: The 8th generation, 64-bit ARM processor, which is now the mainstream version, Samsung Galaxy S6 is one of them. If you return this, download the arm64 image

armeabi: The 5th and 6th generation ARM processors, which are mostly used in early mobile phones. If you return this, download the mirror image of arm

Five: Download the gsl image

AOSP download address: https://github.com/phhusson/treble_experimentations/releases?page=9

Other gsl download addresses: https://github.com/phhusson/treble_experimentations/wiki/Generic-System-Image-%28GSI%29-list

Be sure to download the corresponding version, otherwise the phone will be bricked

Six: Enter the gsl image:

1. Restart the phone to fastboot mode, put the downloaded gsl image and vbmeta image in the same folder, and cmd to this folder

2. First enter vbmeta.img

Open adb input: fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img

3. Enter system.img

Enter: fastboot flash system system.img

4. Clear the previous system cache:

Type: fastboot -w

5. Command to restart the system:

Enter: fastboot reboot

Wait for the restart to succeed

Finally, give some small information:

Generally, a GSI flashing package will provide multiple versions, and the different words in the file name are used to distinguish different packages, such as arm and arm64 in the file name indicate different platforms, nosu su distinguishes whether it comes with root, with gapps indicates self With gapps, aonly ab is used to distinguish different partition types and so on. . . Here we need to mention the AB partition. The so-called AB partition simply means that two complete android systems are stored on the mobile phone. One system will be activated when the phone is turned on, and the other system can be directly updated after booting without restarting to enter recovery. Update, and even if the update fails, it will not be bricked. The mobile phone with only dual system is called AB partition mobile phone, and the mobile phone with only one system is called A only. In addition, there is something called "system as root", which means that the original version of the ramdisk stored in the boot partition is directly saved in the system partition, and the system partition is directly mounted to the root path after booting. The system of the AB partition is enabled by default. The A only system does not enable this thing by default. Because of Google's restrictions, the factory is the model with 9.0 system, even if it is A only, it must be system as root. Therefore, the file name of the flashing package you choose must have the letter ab, and choose the flashing package of the AB model. [AB packages are all system as root] If you don't understand this logic, Baidu yourself.

Download address of Xiaomi rescue brick package: https://xiaomirom.com/

twrp download address: Devices

terp flashing case:

Download the correct image file and copy the file into the same folder as your platform-tools. Rename the image to twrp.img and type:

fastboot flash recovery twrp.img

fast boot restart

Note that many devices will automatically replace your custom recovery during first boot. To prevent this, use Google to find the correct key combination to enter recovery. After typing fastboot reboot, hold down the key combination and boot into TWRP. Once TWRP boots, TWRP will patch the stock ROM to prevent the stock ROM from replacing TWRP. If you do not perform this step, you will have to repeat the installation.

 

 

 

 

Guess you like

Origin blog.csdn.net/weixin_56684059/article/details/126987202