Skip to content

Commit

Permalink
Update user.md
Browse files Browse the repository at this point in the history
Fix in indentation
  • Loading branch information
petrnalevka committed Jun 22, 2023
1 parent 64520bb commit 18c6c19
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions _vendors-content/general/user.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,49 +3,49 @@ manufacturer:
- general
---

## Android 6+
### Android 6+

Always check the following setting:
Always check the following setting:

- on older devices:<br>
_Phone settings > Battery & power saving > Battery usage > Ignore optimizations > Turn on_ to ignore battery optimization for your app.
- on older devices:<br>
_Phone settings > Battery & power saving > Battery usage > Ignore optimizations > Turn on_ to ignore battery optimization for your app.

- on newer devices:<br>
_Settings > Apps > Your app > Battery > Optimize battery usage > All (from the top) > Your app_ (toggle to disable).
- on newer devices:<br>
_Settings > Apps > Your app > Battery > Optimize battery usage > All (from the top) > Your app_ (toggle to disable).

## Android 8+
### Android 8+

Check if **Phone settings > Apps & Notifications > Your app > Background restrictions** or **Background limits** are not enabled for the app.
Check if **Phone settings > Apps & Notifications > Your app > Background restrictions** or **Background limits** are not enabled for the app.

If all fails you can turn Doze mode off completely.
If all fails you can turn Doze mode off completely.

## Turn off doze on Android 6.0 and earlier
## Turn off doze on Android 6.0 and earlier

In **Settings > Developer options**. (If you don't know how to enable developer options, Google should help.)
In **Settings > Developer options**. (If you don't know how to enable developer options, Google should help.)

## Turn off doze on Android 7+
### Turn off doze on Android 7+

Requires expert skills
Requires expert skills

`dumpsys deviceidle disable`
`dumpsys deviceidle disable`

## If all fails
### If all fails

Look for any vendor-specific battery saver on your device and ideally uninstall if possible, disable if possible.
Look for any vendor-specific battery saver on your device and ideally uninstall if possible, disable if possible.


If not, you are left with the option to root your device or uninstall it though **adb** (requires some expert skills though):
If not, you are left with the option to root your device or uninstall it though **adb** (requires some expert skills though):

`adb shell`
`adb shell`

`pm uninstall --user 0 com.useless.piece.of.trash`
`pm uninstall --user 0 com.useless.piece.of.trash`


Look through the vendor-specific phone settings and search for anything related to battery optimization or background processing.
If you find it try to disable it.
Look through the vendor-specific phone settings and search for anything related to battery optimization or background processing.
If you find it try to disable it.


Try the generic approach below as some vendors tend to hook more fuctionality into this than AOSP
Try the generic approach below as some vendors tend to hook more functionality into this than AOSP


**Phone settings > Battery & power saving > Battery usage > Ignore optimizations > Turn on** to ignore battery optimization for your app.
**Phone settings > Battery & power saving > Battery usage > Ignore optimizations > Turn on** to ignore battery optimization for your app.

0 comments on commit 18c6c19

Please sign in to comment.