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
178 stars 37 forks source link

Works on Android 14? #92

Closed Lumexio closed 5 months ago

Lumexio commented 5 months ago

Forget it i figure out. Here the required commands after android 6+

Non-root workaround

Remember that this a nice choice when you don't want to root <3

adb -d shell pm grant com.suyashsrijan.forcedoze android.permission.DUMP

WRITE_SECURE_SETTINGS command

adb -d shell pm grant com.suyashsrijan.forcedoze android.permission.WRITE_SECURE_SETTINGS

Enable logs:

adb shell pm grant com.suyashsrijan.forcedoze android.permission.READ_LOGS