Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Any way to know if Device booted from a fastboot?

Ever since HTC started using Fastboot settings, apps depending on

android.intent.action.BOOT_COMPLETED

struggle to boot along with the device boot on HTC devices. I have a similar application which depends on the above intent action. But since HTC does its power off and power on differently by using fastboot(other term used - Hibernation) my App never get to work normally. I tried using ACTION_USER_PRESENT and ACTION_SCREEN_ON, but it seemed to be more of hack than a fix for my problem. Do any of you came across same kind of problem and found a better way to deal with it? Please help. SKU

like image 656
sku Avatar asked Jul 27 '12 17:07

sku


1 Answers

In case anyone is programming with an HTC Droid DNA as their target, I discovered that its "fast boot" doesn't send "android.intent.action.QUICKBOOT_POWERON", but rather sends "com.htc.intent.action.QUICKBOOT_POWERON".

I hope this helps someone somewhere as it took me hours to figure this out.

like image 76
Michael Scandizzo Avatar answered Sep 24 '22 19:09

Michael Scandizzo