android - How to broadcast BATTERY_CHANGED intent with extras through ADB shell? -


i trying send battery_changed intent through adb shell. far managed send intent no information:

am broadcast -a android.intent.action.battery_changed 

i created app witch listens intent , here system sends every few seconds:

#intent;action=android.intent.action.battery_changed;launchflags=0x60000010;i.icon-small=17302838;b.present=true;i.scale=100;i.level=100;s.technology=li-ion;i.status=5;i.voltage=4155;i.invalid_charger=0;i.plugged=2;i.health=2;i.temperature=280;end 

when broadcast intent app shows this:

#intent;action=android.intent.action.battery_changed;launchflags=0x10;end 

my question how can broadcast intent through adb shell of these properties/flags (like scale, status, plugged, etc.)?

am broadcast "intent:#intent;action=android.intent.action.battery_changed;i.status=5;i.voltage=4155;i.level=100;end" 

Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -