I am having trouble debugging some code in my DeviceBootReceiver (handles android.intent.action.BOOT_COMPLETED intent). I want to debug this bit, but how does one keep the debugger alive, when the device reboots? Is there any hack that anyone has come across for this?
What I want to do :
Any thoughts?
This will make sure that when your app is executed, for example when it receives a BOOT_COMPLETED
broadcast, the debugger gets attached first.
Hope it helps.
You can re-broadcast the intent by yourself via adb shell:
$ adb shell am broadcast -a android.intent.action.BOOT_COMPLETED
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With