Reputation: 21
My phone has a strange problem: the touchscreen doesn't work when unplugged from the charger. I want to try to fool Android by sending a broadcast (or whatever) that will make the system think it's charging so that my touchscreen starts working.
Should I send a broadcast event ACTION_POWER_CONNECTED
via code? or something else?
I have root, so I don't mind an implementation that involves su
.
Upvotes: 2
Views: 2349
Reputation: 24820
As 323go has suggested , you might have a hardware problem. So broadcasting an intent might not help.Anyway If you have a rooted phone, On adb shell give below command
am broadcast -a android.intent.action.YOURINTENT
Upvotes: 0
Reputation: 14274
You seem to have a hardware problem. While you can't send system broadcasts from your own processes, even if you could, I doubt it would fix your touchscreen.
Upvotes: 1