Q版本刷GSI注意事项

问题描述

 Q版本要跑cts-on-gsi和跑VTS的机器刷GSI方式有差异,请参考下表。
 前提条件:
 adb和fastboot需要升级到最新版本,否则执行fastboot reboot fastboot会出现unknown command的错误。
 Google官网最新platform tools下载路径如下:

解决方案

For Q new devices:
32bit GSI signed-aosp_arm-user
64bit GSI signed-aosp_arm64-user
CTS-on-GSI flash GSI

(Cannot have root permission)

1. Flash MTK user full load and boot to home screen

2. Settings -> System -> Developer options -> OEM unlocking

3. "adb reboot bootloader" or "press volume up key + power key and select fastboot"

4. fastboot flashing unlock (press volumn up key)

5. fastboot reboot fastboot (Please do not select any option before flashing)

6. fastboot flash system system.img (Google signed GSI system.img)

7. fastboot flash system_a system.img (Google signed GSI system.img)

(A/B load special, replace step 6)

8. fastboot flash system_b system.img (Google signed GSI system.img)

(A/B load special, replace step 6)

9. fastboot reboot bootloader

10. fastboot flashing lock

11. fastboot reboot

VTS flash GSI

(Need root permission)

1. Flash MTK user full load and boot to home screen

2. Settings -> System -> Developer options -> OEM unlocking

3. "adb reboot bootloader" or "press volume up key + power key and select fastboot"

4. fastboot flashing unlock (press volumn up key)

5. fastboot flash boot boot-debug.img (Please get boot-debug.img from MTK load.)

6. fastboot reboot fastboot (Please do not select any option before flashing)

7. fastboot flash system system.img (Google signed GSI system.img)

8. fastboot flash system_a system.img (Google signed GSI system.img)

(A/B load special, replace step 7)

9. fastboot flash system_b system.img (Google signed GSI system.img)

(A/B load special, replace step 7)

10. fastboot reboot

 For devices from P OTA to Q :

1. Flash MTK user full load
2. Boot to home screen
3. Settings -> System -> Developer options -> OEM unlocking
4. Reboot phone into fastboot mode by "adb reboot bootloader" or "press volume up key + power key"
5. Connect phone to PC and then type following commands
6. fastboot flashing unlock (press volumn up key)
7. fastboot erase system

For projects which don't have vbmeta partition, please use following step 8.
8. fastboot flash --disable-verification boot boot.img

For projects which have vbmeta partition, please use following step 8.
8. fastboot flash --disable-verification vbmeta vbmeta.img (vbmeta.img is MTK's vbmeta.img. Please get it from MTK load.)

9. fastboot flash system system.img (system.img is GSI.)
10. fastboot reboot

If the project enables A/B update feature, you need to change steps to flash system partition as below.
fastboot flash system_a system.img (system.img is GSI.)
fastboot flash system_b system.img (system.img is GSI.)

作者: RESSRC

个人资源站

发表评论

邮箱地址不会被公开。 必填项已用*标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据