user1675613
user1675613

Reputation: 21

Trigger android Battery charging Broadcast event

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

Answers (2)

nandeesh
nandeesh

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

323go
323go

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

Related Questions