### GENERAL
adb start-server # start the daemon
# then on the phone accept the debugging from
# a specific server (on a device with dev mode and usb debugging enabled)
adb shell # enter shell with the connected device
adb devices # list connected devices
# list
cmd package list packages
### (UN)INSTALL
adb install com.android.custom.apk # install custom APK
pm uninstall $PACKAGE # uninstall package (use -k to keep app files and cache)
# OR IF THE ABOVE ERRORS OUT
adb uninstall --user 0 $PACKAGE
# reinstal system package
cmd package install-existing $PACKAGE
# query all permissions for a package
appops get me.zhanghai.android.files
# enable storage access
termux-setup-storage # this will create a symlink set to /storage/emulated/** in termux home dir
ls ~/storage/shared
### white cursor
# Android => Settings => Dark Mode settings => disable dark mode for Termux
echo "cursor= #FFFFFF" > ~/.termux/colors.properties
termux-reload-settings
### git
# write ~ path in .ssh/config
# ensure .ssh/config is 600
echo '192.168.1.69 dc-1.aisp.aperture.local' >> ~/.hosts
echo "HOSTALIASES=~/.hosts" > ~/.bashrc
wget g -O /dev/null