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


adb reboot recovery
adb shell twrp wipe data
adb shell twrp wipe cache
adb shell twrp wipe dalvik
#adb shell twrp wipe system


#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


adb devices
adb reboot bootloader

Siteload image

adb sideload

# install sdk

sudo apt-get install -y sun-java6-jdk
wget -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

#sudo snap install scrcpy
sudo apt install ffmpeg libsdl2-2.0-0 adb wget \
    gcc git pkg-config meson ninja-build libsdl2-dev \
    libavcodec-dev libavdevice-dev libavformat-dev libavutil-dev \
    libswresample-dev libusb-1.0-0 libusb-1.0-0-dev
git clone
cd scrcpy

HTC One M7

# install rwrp
# flash
fastboot reboot recovery
# boot to recovery
adb reboot recovery
adb shell twrp wipe data
adb shell twrp wipe cache
adb shell twrp wipe dalvik
# flash lineageos
adb shell twrp sideload zip from host adb
adb sideload Downloads/
# OPTIONAL: flash open gapps
adb shell twrp sideload zip from host adb
adb sideload Downloads/
# reboot to system
adb reboot


flash TWRP and LineageOS on a HTC One M8:
adb reboot bootloader
fastboot oem get_identifier_token
# Download Unlock_code.bin from
fastboot flash unlocktoken Unlock_code.bin
#fastboot flash recovery twrp-3.4.0-1-m8.img 
fastboot flash recovery  Downloads/lineage-17.1-20210305-recovery-m8.img
#adb sideload
adb sideload Downloads/
adb sideload Downloads/

SP Flash Tool - Download SmartPhone Flash Tool

# complie libpng
sudo apt install build-essential zlib1g-dev
mkdir src
tar Jxfv libpng_1.2.54.orig.tar.xz
cd libpng-1.2.54
sudo make install
sudo ln -s /usr/local/lib/ /usr/lib/
sudo ln -s /usr/local/lib/ /usr/lib/

sudo wget -q -O /tmp/libpng12.deb && dpkg -i /tmp/libpng12.deb && rm /tmp/libpng12.deb
dpkg -x libpng12-0_1.2.54-1ubuntu1.1_amd64.deb
ln -s ./usr/lib/x86_64-linux-gnu/ .
sudo adduser username dialout
newgrp - dialout
wget -q -P /tmp
unzip /tmp/SP_Flash_Tool_exe_Linux_*.zip -d /tmp/
cd /tmp/SP_Flash_Tool_exe_Linux_*/
# sudo add-apt-repository ppa:rock-core/qt4
#sudo apt update
#sudo apt install libqtwebkit4
sudo ./flash_tool
adb shell pm list packages -f
adb shell am start -a android.intent.action.DELETE -d package:com.s0up.goomanager
# remoutn system
mount -o remount,rw /dev/block/mtdblock3
# move apk to sdcard ?
for i in VideoEditor.apk CMWallpapers.apk CMUpdater.apk Mms.apk; do
    cp /system/app/$i /mnt/sdcard/apk/$i
    rm /system/app/$i
    ln -s /mnt/sdcard/apk/$i /system/app/$i
# install
adb install <app.apk>
# uninstall
adb uninstall <package name>
cd /data/data
rm -r com.tmobile.themechooser
rm -r com.tmobile.thememanager
rm -r
rm -r
/data/dalvik-cache # rm *Wallpapers*
pm uninstall
pm disable com.package 
# market in emulator (1.6 only)
wget -P /tmp/
unzip /tmp/ -C /tmp
cp /tmp/system.img ~/android-sdk-linux_86/platforms/android-8/images

# create new android 2.2

# Links

# dropbox
wget -P /tmp/ && adb install /tmp/Dropbox.apk

# xbmc remote
wget -P /tmp/ && adb install /tmp/XBMC_Remote_v0.8.3_r688_signed.apk

# sipdroid
wget -P /tmp/ && adb install /tmp/Sipdroid*.apk

# netcounter
wget -P /tmp/ && adb install /tmp/netcounter*.apk

# unyaffs
sudo wget -O /usr/sbin/unyaffs
sudo chmod a+x /usr/sbin/unyaffs

# my apps - Navigation - Grant and manage Superuser rights for your phone - Video player, with FLV support on HTC Wildfire
xmc remote - Free SMS send - VoIP an chat
mixzing - Music Player with folder support
barcode scanner - Send URL to you phone from browser
ebay - Wifi finder - Backup and restore your whole mobile device

ssh droid
terminal emulatro
connect b

Extact android backup
chmod 777 unyaffs
./unyaffs system.yaffs2.img

Android on PC

Run Android apps under Linux with waydroid

Allow write for unprivileged user

# /etc/udev/rules.d/70-android.rules
SUBSYSTEM=="usb", ATTRS{idVendor}=="0bb4", MODE="0666"

Links - Install ADB And Fastboot Android Tools In Ubuntu Via PPA - Top 40 Android apps - nVidia Tegra - Skype for Android - unyaffs is a program to extract files from a yaffs image