theblixguy / ForceDoze

Enable Doze mode immediately after screen off and turn off motion sensing to get best battery life
https://play.google.com/store/apps/details?id=com.suyashsrijan.forcedoze&hl=en
GNU General Public License v3.0
179 stars 37 forks source link

How do you run ENABLE_FORCEDOZE via adb #49

Open rcmpayne opened 7 years ago

rcmpayne commented 7 years ago

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

rcmpayne commented 7 years ago

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

Hydeez commented 1 week ago

adb shell am broadcast -a com.akylas.enforcedoze.ENABLE_FORCEDOZE com.akylas.enforcedoze adb shell am broadcast -a com.akylas.enforcedoze.DISABLE_FORCEDOZE com.akylas.enforcedoze

I didn't try change settings.