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
source
share