Android & ADB

ADB Commands

  • Install an APK file
adb install APKFILENAME
  • Reinstall/update app
adb install -r APKFILENAME
  • Uninstall an app
adb uninstall PACKAGENAME
  • Disable an APP
pm disable NAMEOFPACKAGE
  • List all enabled apps, filter by “calculator”:
pm list packages -e | grep 'calculator'
  • List all disabled apps
pm list packages -d
  • Get information about device and settings through ADB
    • https://technastic.com/adb-shell-commands-list/

Android Intents

  • https://android.stackexchange.com/questions/23687/finding-out-the-intents-an-app-uses-internally
You can use adb to check what intents an app uses. The steps to do this are:

Enable developer options
Under developer options turn on adb debugging
Connect phone to computer
Get adb logs and grep out intents: adb logcat | fgrep -i intent
Trigger the intent on your phone
Inspect logs to find the details of the intent

disable IPV6

  • https://github.com/ukanth/afwall/wiki/CustomScripts#important-notes-about-ipv4-and-ipv6-differences
If you do not need IPv6 or your provider does not support it (native) you can just disable it via net.ipv6.conf.all.disable_ipv6=1 in your build.prop or better in your sysctl.conf file which will be applied right after the boot.

Last updated on July 15, 2024. For any questions/feedback, email me at blog@zinchuk.xyz.