I'm having trouble disabling some default behavior in my D2G.
I have it rooted and I have tried installing Autostarts -- which identifies that the "Car Dock" or "Home Dock" will start when the docking state changes. Even though I have everything under that section disabled, bringing a magnet such as my case's closure, near the phone still triggers the screen to unlock/display and the app is started.
I'd like to disable these actions from starting on the magnet/dock event.
One thought was to register for the Intent that kicks off the other two, somehow at a higher priority, catch it and discard it such that no other proc sees it. I don't know if that's possible with Android.
EDIT: It would appear that an "orderedBroadcast" can be consumed and discarded if you have the "priority" set high enough to catch it before the other Receivers. A normal broadcast can not. Anyone know where I find out what kind of Intent is being broadcast when the magnet is detected -- I think by this "DockObserver"?
Would also love to know how to debug/test such a custom app (if I have to go that route)...how do you simulate triggering the dock or magnet?
Thanks in advance,
AJ
I have it rooted and I have tried installing Autostarts -- which identifies that the "Car Dock" or "Home Dock" will start when the docking state changes. Even though I have everything under that section disabled, bringing a magnet such as my case's closure, near the phone still triggers the screen to unlock/display and the app is started.
I'd like to disable these actions from starting on the magnet/dock event.
One thought was to register for the Intent that kicks off the other two, somehow at a higher priority, catch it and discard it such that no other proc sees it. I don't know if that's possible with Android.
EDIT: It would appear that an "orderedBroadcast" can be consumed and discarded if you have the "priority" set high enough to catch it before the other Receivers. A normal broadcast can not. Anyone know where I find out what kind of Intent is being broadcast when the magnet is detected -- I think by this "DockObserver"?
Would also love to know how to debug/test such a custom app (if I have to go that route)...how do you simulate triggering the dock or magnet?
Thanks in advance,
AJ
Last edited: