# Android # TWRP - Team Win Recovery Project - is custom recovery image. it facilitates users to install third-party firmware and back up the current system. # usb debug sudo apt install android-tools-adb adb devices -l - add user to plugdev group - /etc/udev/rules.d/40-piksi.rules `SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4ee7", MODE="0600", OWNER="yourusername"` sudo udevadm control --reload-rules # on macos ANDROID_HOME=~/Library/Android/sdk PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools adb devices -l cd /data/local mkdir workspace cd workspace # compiledSdkVersion 22 # buildToolsVersion ’26.1.1’ # set default usb mode settings > system > developer options > usb mode settings > connected devices # to start adbd server on phone su setprop service.adb.tcp.port 5555 stop adbd start adbd - list devices connected to pc `adb devices` - if no permissions then ```/etc/udev/rules.d/51-android.rules SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4ee7",\ MODE="0666", GROUP="plugdev" ``` - add user to `plugdev` group - `sudo udevadm control --reload-rules` - reconnect the device # Open interactive shell adb connect 192.168.1.105 adb shell # copy files from phone to pc adb pull /data/sdcard/gentoo.tar.gz i:/Gowtham/software/Linux # copy files from pc to phone adb push # reboot adb reboot ## install apk adb install Magisk-v27.0.apk # termux # ------ sshd # starts ssh server on port 8022 Ctrl+A # move cursor to beginning of line VolumeUp+A # Left arrow key # fastboot - `sudo apt install # root install adb on pc download twrp.img and Magisk.zip to pc connect phone to pc adb push twrp.img /sdcard/ adb push twrp-installer.zip /sdcard/ adb push Magisk.zip /sdcard/ adb reboot bootloader fastboot boot twrp.img install -> twrp-installer.zip uncheck, reboot after flash swipe to flash reboot->recovery install -> magisck.zip uncheck, reboot after flash swipe to flash reboot->normal ## pixel3a - Android version 12(SnowCone(S)) BuildTools-31 - ## pixel8 - fastbootmode: powerBtn+upBtn->restart->hold downBtn till fastboot screen - fasbboot flash init_boot magisk_patched-28000_Ba59w.img