ADB

adb 指令可在 android 系統或是 recovery 中使用

adb reboot                          (重新開機)
adb reboot bootloader               (重新開機至 bootloader)
adb reboot recovery                 (重新開機至 recovery)
adb reboot download                 (重新開機至 download)
adb reboot oem-78                   (重新開機至 RUU 模式)
adb install <apk_file>              (透過 adb 安裝 apk)
adb push <file> <phone_location>    (將檔案傳輸至手機)
adb pull <phone_location>           (從手機中抓取檔案)
adb shell                           (透過 adb 模式使用手機終端)
adb getprop                         (取得手機資訊)

FASTBOOT

fastboot 指令僅能在 fastboot 模式中使用

fastboot flash unlocktoken <filename>
fastboot flash boot <filename>
fastboot flash recovery <filename>
fastboot flash system <filename>
fastboot flash zip <filename>
fastboot getvar all                  (取得 fastboot 狀態資訊)
fastboot reboot                      (重新開機)
fastboot reboot-bootloader           (重新開機至 bootloader)
fastboot oem reboot-download         (重新開機至 download)
fastboot oem reboot-recovery         (重新開機至 recovery)
fastboot oem rebootRUU               (重新開機至 RUU 模式)
fastboot oem lock                    (將 bootloader 設定為 RELOCKED)
fastboot oem get_identifier_token    (取得手機解鎖必要資訊)
fastboot oem readmeid                (取得手機 MEID 碼)
fastboot oem readcid                 (取得手機 CID 碼)
fastboot oem readimei                (取得手機 IMEI 碼)
fastboot oem readimei2               (取得手機 IMEI2 碼)
fastboot oem readsecureflag          (取得 Security Lock 狀態)

以下指令需要 S-OFF

fastboot oem writemeid <string>           (寫入手機 MEID 碼)
fastboot oem writecid <string>            (寫入手機 CID 碼)
fastboot oem writeimei <string>           (寫入手機 IMEI 碼)
fastboot oem writeimei2 <string>          (寫入手機 IMEI2 碼)
fastboot oem writesecureflag <0|1|2|3>    (寫入 Security Lock 狀態)
fastboot oem listpartitions               (列出手機 emmc 分區表)