Fastboot
fastboot devices
fastboot getvar all
fastboot flash recovery recovery.img
fastboot flash boot_a twrp-3.3.0-2-tissot.img
fastboot boot twrp-3.3.0-2-tissot.img
#fastboot reboot recovery
fastboot reboot emergency
# fastboot flashing unlock
fastboot oem unlock
#fastboot erase data
TWRP
https://twrp.me/faq/openrecoveryscript.html
adb reboot recovery
adb shell twrp wipe data
adb shell twrp wipe cache
adb shell twrp wipe dalvik
#adb shell twrp wipe system
ADB
https://developer.mozilla.org/de/Firefox_OS/Debugging/Installing_ADB
#dep?# sudo add-apt-repository -y ppa:nilarimogard/webupd8
sudo apt-get install android-tools-adb android-tools-fastboot
adb shell COMMAND
adb pull PATH
adb push FILE PATH
adb reboot edl
Recovery
https://techrrival.com/flash-recovery-adb-fastboot/
adb devices
adb reboot bootloader
# or
adb reboot-bootloaderSiteload image
adb sideload lineage-17.1-20200914-UNOFFICIAL-m7.zip# install sdk
sudo apt-get install -y sun-java6-jdk
wget http://dl.google.com/android/android-sdk_r08-linux_86.tgz -P /tmp/
tar xzf /tmp/android-sdk_r*-linux_86.tgz -C ~/
echo "export PATH=\${PATH}:${HOME}/android-sdk-linux_86/tools" >> ~/.bashrc
# copy file to android
adb push /home/user1234/file.txt /sdcard
# ADB: error: insufficient permissions for device
adb kill-server
sudo adb start-server
adb devices
Control android from Linux
https://github.com/Genymobile/scrcpy/blob/master/doc/linux.md