I want to setup some tablets in a way that they automatically turn on and open my application when connected in a power source. Those tablets will be all COSU devices and my application is a single app. I have read the docs and the closest policy that I have found was stayOnPluggedModes
in this page, and the description is not very clear (at least to me).
Unfortunately, at the moment, I am unable to test if this policy works. So, is the stayOnPluggedModes
policy the right one for what I need? If not, what are my options (excluding everything bellow, because it voids the device warrant)?
- Use RTC wake alarm
- Replacing the battery animation script
- Alter off-mode-charge with Fastboot
- Delete system/bin/charge_only_mode
- Change the bootloader
And also this one doesn't work because it requires the device to be asleep.