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