設為首頁收藏本站

艾歐踢論壇

 找回密碼
 立即註冊

QQ登錄

只需一步,快速開始

搜索
熱搜: 活動 交友 discuz
查看: 1234|回復: 0
打印 上一主題 下一主題

Android bootloader/fastboot mode anrecovery mode explained/Android boot pro...

[複製鏈接]
跳轉到指定樓層
樓主
發表於 2017-4-18 04:00:22 | 只看該作者 回帖獎勵 |倒序瀏覽 |閱讀模式
Android bootloader/fastboot mode and recovery mode explained/Android boot process
Besides normal booting of an android device, there are two more systems maintenance mode. The bootloader or fastboot mode and the recovery mode. We can get into both the modes via startup key combinations or by using adb commands.
Android booting process, recovery mode, boot-loader/fastboot mode
What is a bootloader and how to get into the bootloader mode on your android device?
A bootloader is a computer program that loads an operating system (OS) or runtime environment for the computer after completion of the self-tests.
Bootloader is like BOIS to your computer. It is the first thing that runs when you boot up your Android device. It packages the instructions to boot operating system kernel. Basically, Android device has a storage space(disk) that has several partitions, which holds the Android system file in one and all the app data in another. Bootloader serves as a security checkpoint that is responsible for checking and initializing the hardware and starting software. You can get into this mode using adb command as well as by pressing device-specific buttons.
To enter into fastboot mode using adb command use the following steps:
  • Ensure you have adb and fastboot tools installed on your system
  • Appropriate usb drivers installed on the PC for your android device
  • USB debugging is activated on your phone
  • Connect your android device with your computer over a usb 2 port
Test the connectivity using the following command (provided your phone screen is unlocked)
adb devices
should give output such as
List of devices attached
…………………… device
to get into fastboot mode use the following command
adb reboot-bootloader
Once you enter your device screen shall indicate that has entered in fastboot mode
the following command will list the connected device which is in fastboot mode
fastboot devices
shall display something like
mt6582_phone fastboot
On the device screen you should see something like the following

Some of the most commonly used “fastboot” commands include:
  • flash – rewrites a partition with a binary image stored on the host computer
  • erase – erases a specific partition
  • reboot – reboots the device into either the main operating system, the system recovery partition or back into its boot loader
  • devices – displays a list of all devices (with the serial number) connected to the host computer
  • format – formats a specific partition; the file system of the partition must be recognized by the device
to get out of the bootloader/fastboot mode
use
fastboot continue
or
fastboot reboot
Fastboot/recovery more (Summery)
Fastboot mode/recovery mode is mostly used to erase or install various images such as system, boot, userdata, and more. You may end up using fastboot tool and fastboot/recovery mode when you are installing a custom rom or restoring factory image on your android device.
What is android recovery mode, custom recovery and how to get into the recovery mode?
Android devices come with Google’s recovery environment, this is also known “stock recovery.” You can boot to the recovery system by pressing device-specific buttons as your android device or use adb command that boots your device to recovery mode.
These options can be selected using the volume up/down button and power button. In this mode, adb or fastboot tools has no use.
There are various custom recovery /third party recovery environments are available such as Cyanogen recovery, ClockworkMod recovery (CWM), Team Win Recovery Project (TWRP) etc. You can install custom recovery from the bootloader/fastboot mode. Custom recovery images are usually has additional features such as better backup and recovery. In general, custom recoveries are only necessary if you plan on flashing a custom ROM. Most Android users wouldn’t even notice a difference between a device with the stock recovery system installed and one with a custom recovery.
To enter into recovery mode using adb command use the following steps:
  • Ensure you have adb and fastboot tools installed on your system
  • Appropriate usb drivers installed on the PC for your android device
  • USB debugging is activated on your phone
  • Connect your android device with your computer over a usb 2 port
Test the connectivity using the following command (provided your phone screen is unlocked)
adb devices
should give output such as
List of devices attached
…………………… device
to get into recovery mode use the following command
adb reboot recovery
Once in recovery mode, shall see a recovery menu, which provides list of fixed options. such as
  • reboot system
  • apply update from SD card
  • apply update from cache
  • wipe data/factory reset
  • backup user data
  • restore user data
To exit the recovery mode, select reboot system now and the system will boot back into the installed system.


分享到:  QQ好友和群QQ好友和群 QQ空間QQ空間 騰訊微博騰訊微博 騰訊朋友騰訊朋友
收藏收藏 轉播轉播 分享分享 分享淘帖
回復

使用道具 舉報

您需要登錄後才可以回帖 登錄 | 立即註冊

本版積分規則

小黑屋|Archiver|手機版|艾歐踢創新工坊    

GMT+8, 2024-5-15 20:46 , Processed in 0.241034 second(s), 24 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回復 返回頂部 返回列表