I have an AOSP 5.1 - build on my Allwinner A33 device.
When long-pressing the "Power-Button" the device starts the "shutdown"-procedure. It shows a dialog "Power off" along with a spinner (see screenshot). This is visible for ~ 3.5s - 4.5s, then the device is off.
However when I connect to adb and enter adb shell reboot -p
the device goes off immediately (-p
stands for "poweroff")
So what is the difference between those two possibilities to shutdown an android device?
- Is the adb-command somehow "dangerous" because it works much faster?
- Can I tweak the "normal"-shutdown to be faster?
- If so, which files in the AOSP do I need to modify?