Hello All,
I have a custom board with an am3359 running custom code based off the TI-Android-JB-4.2.2-DevKit-4.1.1 sdk. When I 'adb shell' into the device and run command 'reboot -p' the device/screen will freeze - but it will still be powered on. I see that the kernel/kernel/sys.c kernel_halt() is executed, but this isnt enough to fully power down the device.
Similarly, if I let the mBatteryLevel run down far enough in the frameworks/base/services/java/com/android/server/BatteryService.java - the
shutdownIfNoPowerLocked() method will execute the ACTION_REQUEST_SHUTDOWN intent, which ultimately does the same thing as the 'reboot -p' command ( executes the kernel_halt() function inside kernel/kernel/sys.c ).
How do I get the device to completely shutdown (on both an ACTION_REQUEST_SHUTDOWN and a 'reboot -p' )...? In other words, how to I get the kernel_halt() function to completely turn off the device?
Thanks in advance!
PMIC I'm using is the TPS65910A3
-Jake
am335x, Android, BatteryService.java, mBatteryLevel, system power off