Skip to content

Instantly share code, notes, and snippets.

@sulincix
Last active November 29, 2023 07:27
Show Gist options
  • Save sulincix/7b5c04dc9a1497e87d5e18da7cf77656 to your computer and use it in GitHub Desktop.
Save sulincix/7b5c04dc9a1497e87d5e18da7cf77656 to your computer and use it in GitHub Desktop.
Android Tricks

Android 13 battery

adb shell device_config put activity_manager bg_auto_restrict_abusive_apps 1
adb shell device_config put activity_manager bg_current_drain_auto_restrict_abusive_apps_enabled 1

dexopt

adb shell cmd package bg-dexopt-job

remove system package

# list all packages
adb shell pm list packages
# remove package
adb shell pm uninstall -k --user 0 <pkgname>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment