高通平臺 按鍵 進入 fastboot/recovery/edl 模式

在大多數高通平臺上,默認都提供以下的按鍵功能:

  1. 按住 vol+ 鍵開機,進入 recovery 模式。
  2. 按住 vol- 鍵開機,進入 fastboot 模式。
  3. 按住 vol+ 鍵及 vol- 鍵開機,進入 edl(Emergency Download)模式。

 

高通方案的Android設備主要有以下幾種開機模式,Android、EDL、Fastboot、Recovery和FFBM,其進入及退出的方式如下表。

開機模式屏幕顯示冷啓動熱啓動按鍵退出命令退出
Android/Normal Android界面 按Power鍵 adb reboot 手機短按,VR長按Power鍵 adb shell reboot -p(關機)
Recovery/OTA/卡刷 Recovery界面 按住OK鍵(Vol+)

再按Power鍵
adb reboot recovery 長按Power鍵重啓 adb reboot
Fastboot/線刷 Fastboot界面 按住BACK鍵(Vol-)

再按Power鍵
adb reboot bootloader 長按Power鍵重啓 fastboot reboot fastboot continue(resuming boot)
FFBM/Fast Factory/廠測/半開機 顯示測試列表 misc分區頭部爲ffbm時

按Power鍵
misc分區頭部爲ffbm時,adb reboot 長按Power鍵重啓依然進入FFBM 唯一退出方式擦除misc分區
EDL/緊急下載/9008/磚頭/裸板 無顯示,黑屏 同時按住OK鍵(Vol+)和BACK鍵(Vol-)

再按Power鍵
adb reboot edl

fastboot reboot emergency
長按Power鍵重啓
 

 

refs:

https://nihil.cc/posts/qualcomm_edl_key/

https://www.cnblogs.com/schips/p/ways_to_enter_debug_mode_in_qualcoom_android_device.html

https://blog.csdn.net/jinron10/article/details/104691123

 

fastboot 刷機腳本:flash-all.sh

https://gist.github.com/Lomeli12/73825a287d3cf60414e244aece9b6bdf

#!/bin/bash
reset
set +x
echo "------- LE2117 to LE2115 Conversion Bash Script by Lomeli12@xda -------"
echo "Please make sure you are in bootloader, your screen should say \"Fastboot Mode\" in red."
echo "You should be using the latest Google platform tools from your system's package manager (Apt, Yay, Brew, Scoop, etc)."
echo -e "Do not continue if you are unsure. \n"

# Make sure the user knows the risk and wants to continue
while true; do
    read -p "Are you SURE you want to continue? Your warranty will be void and there's always the possibility you can soft-brick your phone (Y/N) " yn
    case $yn in
        [Yy]* ) 
            break
            ;;
        [Nn]* )
            echo "Conversion canceled"
            exit
            ;;
    esac
done

# Check if fastboot exists. If not, inform the user how to install it
if [ -z $(which fastboot) ]; then
    echo "Something went wrong!"
    echo "Please install Google Platform tools to get fastboot."
    echo "Debian/Ubuntu: apt install android-tools-fastboot"
    echo "macOS: brew install android-platform-tools"
    echo "Windows: scoop install adb"
    echo "Arch: AUR android-sdk-platform-tools (yay -S android-sdk-platform-tools)"
    echo "Conversion canceled"
    exit
fi

# Double check we have all the required images
files=( *."img" )
if [ ${#files[@]} -lt 34 ]; then
    echo "Something went wrong!"
    echo "Your working directory does not contain .img files. Make sure you are executing this script from the payload output directory (where all the .img files are)"
    echo "Conversion canceled"
    exit
fi

# Begin flashing. Cross your fingers nothing goes wrong
echo "Flashing... Your device will reboot a few times, don't panic"
echo "When reporting errors, make sure to include the output of \"fastboot --version\" and any outputs from this script."
set -x
fastboot flash dtbo dtbo.img
fastboot flash splash splash.img
fastboot flash modem modem.img
fastboot flash oplusstanvbk oplusstanvbk.img
fastboot flash oplus_sec oplus_sec.img
fastboot --disable-verity flash vbmeta vbmeta.img
fastboot --disable-verity flash vbmeta_system vbmeta_system.img
fastboot --disable-verity flash vbmeta_vendor vbmeta_vendor.img

fastboot reboot fastboot

fastboot flash aop aop.img
fastboot flash bluetooth bluetooth.img
fastboot flash dsp dsp.img
fastboot flash dtbo dtbo.img
fastboot flash splash splash.img
fastboot flash modem modem.img
fastboot flash oplusstanvbk oplusstanvbk.img
fastboot flash qupfw qupfw.img
fastboot flash oplus_sec oplus_sec.img
fastboot flash multiimgoem multiimgoem.img
fastboot flash uefisecapp uefisecapp.img
fastboot flash abl abl.img
fastboot flash bluetooth bluetooth.img
fastboot flash cpucp cpucp.img
fastboot flash devcfg devcfg.img
fastboot flash featenabler featenabler.img
fastboot flash hyp hyp.img
fastboot flash imagefv imagefv.img
fastboot flash keymaster keymaster.img
fastboot flash qweslicstore qweslicstore.img
fastboot flash shrm shrm.img
fastboot flash tz tz.img
fastboot flash vendor_boot vendor_boot.img
fastboot flash vm-bootsys vm-bootsys.img
fastboot flash xbl xbl.img
fastboot flash xbl_config xbl_config.img

fastboot reboot fastboot

fastboot flash product product.img
fastboot flash system system.img
fastboot flash system_ext system_ext.img
fastboot flash vendor vendor.img
fastboot flash odm odm.img

fastboot reboot bootloader
sleep 25
fastboot -w

set +x
echo -e "Done! \nPlease reboot to recovery via the menus and wipe everything prior to boot"
read -p "Press any key to continue..."

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章