I accidently closed the Android system on my smartphone.
When you close the Android system service or application, the phone hangs. A simple restart automatically restores the service and enables it at the startup. This is a service that can be stopped but not disabled.
If you cannot turn off your phone using power button, Just remove the battery and restart the phone.