Skip to content

Instantly share code, notes, and snippets.

@sulincix
Last active August 10, 2024 01:48
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>

disable proxy on command line

settings delete global http_proxy
settings delete global global_http_proxy_host
settings delete global global_http_proxy_port
settings delete global global_http_proxy_username
settings delete global global_http_proxy_password
settings delete global global_http_proxy_exclusion_list
settings delete global global_proxy_pac_url
reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment