human
How to turn off my Android phone without the power button?
assistant
Turn Off Your Android Phone Without the Power Button
1. Enable USB Debugging on your phone.
2. Download and install the Android SDK Platform Tools.
3. Connect your phone to your computer.
4. Open Command Prompt (Windows) or Terminal (Mac, Linux) in the location of the extracted file.
5. Enter "adb shell reboot -p" (Command Prompt) or ".\adb shell reboot -p" (Terminal, PowerShell).