ORIGIN

Reboot phone on computer

Android 1 mins187 words

I accidentally put my phone in the sea once, and then keep the power on and it broke down. After fixing it, the power off/on button is broken, so I can’t turn off or reboot my phone by pushing the button. So, I use this way:

Install tools

1
2
3
4
5
6
7
8
9
➜  ~ yay android-tools                                     
3 aur/android-tools-git r44324.ea57928f00-1 (+2 0.00%)
Android platform tools
2 archlinuxcn/android-sdk-platform-tools 29.0.5-1 (4.3 MiB 23.3 MiB) (Installed)
Platform-Tools for Google Android SDK (adb and fastboot)
1 community/android-tools 29.0.5-2 (1.8 MiB 8.6 MiB)
Android platform tools
==> Packages to install (eg: 1 2 3, 1-3 or ^4)
==> 2

Set environment path

1
2
3
➜  ~ sudo find / -name "adb"                                          
[sudo] password for o_oyao:
/opt/android-sdk/platform-tools/adb

this find where is your adb

Then set the path(temporary).

1
➜  ~ export PATH=$PATH:/opt/android-sdk/platform-tools 

No space after the “:”

Reboot

Plug USB in your phone and turn on developer mode and open USB debugging.

1
2
➜  ~ adb shell
HWHWI:/ $ reboot
TOP
COMMENT
  • ABOUT
  • |
o_oyao
  The Jigsaw puzzle is incomplete with even one missing piece. And I want to be the last piece to make the puzzle complete.
Like my post?
Default QR Code
made with ❤️ by o_oyao
©o_oyao 2019-2024

|