I am seeing an issue with my android images where the command adb reboot bootloader
simply reboots back the android, instead of going to bootloader mode.
In order to fix the issue, I did some study and find that there are acually two things, adb
and adbd
and the host and target devices communicate using the TCP protocol over sockets.
So, the interesting thing is commands like adb shell
and adb devices
are working but not the reboot bootloader
. I want to understand what the adbd
on receiving the reboot bootloader
. Does it change the boor order, sets some flag, changes EFI vars....?
Can you please point to some good links or understanding you can share?
PS : I am working on embedded device environ, similar to raspberry pi...
This command reboots your device in normal mode. You'll typically run this command after you've flashed something to your device and need to reboot. This command can also be useful if you're encountering issues with your Android device – for example, if your smartphone suddenly becomes unresponsive.
Type adb reboot and press Enter. It will soon restart the phone.
It's a mode just like recovery mode but allows you to flash custom files using ADB and fastboot. Reboot to recovery – it reboots your device into the recovery mode.
If you unlocked the bootloader, you are then allowed to install a custom OS. If done correctly, you can customize your phone to a greater extent. But you need to note that it may also cause your phone and downloaded apps to stop working properly. And, unlocking the bootloader will delete all data on your phone.
This is how adb reboot bootloader
works on a standard Android device connected via USB
(the only transport supported by the standard Android bootloader in the fastboot
mode):
adb
client sends the reboot bootloader
command to the adb
server (over TCP)adb
server forwards the reboot bootloader
command to the adbd
on the device (over USB)adbd
sets the sys.powerctl
property to reboot,bootloader
sys.powerctl
change triggers the init.rc
rule which runs powerctl
init
's built-in_NR_reboot
syscallreboot to bootloader
flag and reboots the deviceOn the next power up the bootloader would see the flag and go to the fastboot
mode. But only if USB
is connected.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With