Any way to find out if the device is booted with fastboot?

Since HTC started using Fastboot settings, apps are

android.intent.action.BOOT_COMPLETED

Fight boot while booting the device on HTC devices. I have a similar application that depends on the above action action. But since HTC turns off the power and uses it differently using fastboot (another term is Hibernation), my application never works fine. I tried using ACTION_USER_PRESENT and ACTION_SCREEN_ON , but it looked more like a hack than fix for my problem. Have any of you encountered the same problem and found a better way to handle this? Please help. SKU

+5
source share
2 answers

I found the intent action that HTC uses during power-up of the Fastboot and power-down. I thought about sharing it here, as it might be useful for someone else who is facing the same problem as me.

Here's what you need to register with AndroidManifest.xml under your recipient.

<receiver android:name="com.my.app.MyReceiver">
     <intent-filter>
         <action android:name="android.intent.action.BOOT_COMPLETED"/>
         <action android:name="android.intent.action.QUICKBOOT_POWERON"/>
     </intent-filter>
</receiver>

Hope this was helpful

+4
source

In case someone is programming with HTC Droid DNA as their goal, I find that its “fast boot” does not send “ android.intent.action.QUICKBOOT_POWERON ”, but it sends “ com.htc.intent.action.QUICKBOOT_POWERON "

, -, , .

+12

All Articles