theblixguy / ForceDoze

Enable Doze mode immediately after screen off and turn off motion sensing to get best battery life

Home Page:https://play.google.com/store/apps/details?id=com.suyashsrijan.forcedoze&hl=en

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How do you run ENABLE_FORCEDOZE via adb

rcmpayne opened this issue · comments

Can you provide a few adb examples how to run some of the brodcasts via adb so i can script this?

examples:
ENABLE_FORCEDOZE
DISABLE_FORCEDOZE
CHANGE_SETTINGS

Trying to figure out how to enable/disable force doze service

adb shell am broadcast -a "android.intent.action.ENABLE_FORCEDOZE" -d "com.suyashsrijan.forcedoze"
Broadcasting: Intent { act=android.intent.action.ENABLE_FORCEDOZE dat=com.suyashsrijan.forcedoze } Broadcast completed: result=0