Table of Contents

Information

xda-developers

Latest platform-tools

Linux

Windows

Factory Image

Filesystem Maintenance

Notes

Quick-commands

adb shell "umount '/sdcard' && umount '/cache' && umount '/data' && e2fsck -y -f -v '/dev/block/mmcblk0p39' && e2fsck -y -f -v '/dev/block/mmcblk0p40' && e2fsck -y -f -v '/dev/block/mmcblk0p41' && e2fsck -y -f -v '/dev/block/dm-0' && mount '/system' && mount '/data' && mount '/cache' && mount '/vendor' && rm -Rf '/data/dalvik-cache' && fstrim -v '/system' && fstrim -v '/data' && fstrim -v '/cache' && fstrim -v '/vendor' && sync && umount '/system' && umount '/data' && umount '/cache' && umount '/vendor' && reboot"

Information

Wipe Partitions

fastboot erase bootloader
fastboot erase radio
fastboot erase recovery
fastboot erase boot
fastboot erase vendor
fastboot format vendor
fastboot -w

Unmount Partitions

umount '/sdcard'
umount '/data'
umount '/cache'
umount '/system'

ext4 Filesystem Maintenance

e2fsck -y -f -v '/dev/block/dm-0'
e2fsck -y -f -v '/dev/block/mmcblk0p39'
e2fsck -y -f -v '/dev/block/mmcblk0p40'
e2fsck -y -f -v '/dev/block/mmcblk0p41'

Mount Partitions

mount '/system'
mount '/data'
mount '/cache'
mount '/vendor'

Clear Dalvik/ART Cache

adb shell
mount '/data'
rm -Rf '/data/dalvik-cache'

fstrim

adb shell
mount '/system' && mount '/vendor'
fstrim -v '/system' && fstrim -v '/data' && fstrim -v '/cache' && fstrim -v '/vendor' && sync

Quick-command

adb shell "mount '/system' && mount '/vendor' && fstrim -v '/system' && fstrim -v '/data' && fstrim -v '/cache' && fstrim -v '/vendor' && sync"

Flash Base

sudo fastboot flash 'bootloader' ~/'Downloads/bullhead-'*'/bootloader-bullhead-'*'.img' && sudo fastboot reboot-bootloader && sleep 5 && sudo fastboot flash 'radio' ~/'Downloads/bullhead-'*'/radio-bullhead-'*'.img' && sudo fastboot reboot-bootloader

Flash Other

unar -o  ~/'Downloads/bullhead-'* ~/'Downloads/bullhead-'*'/image-bullhead-'*'.zip' && sudo fastboot flash 'boot' ~/'Downloads/bullhead-'*'/image-bullhead-'*'/boot.img' && sudo fastboot flash 'vendor' ~/'Downloads/bullhead-'*'/image-bullhead-'*'/vendor.img' && sudo fastboot reboot-bootloader

Ideal Stack

Flash Order

TWRP

FrancoKernel

Balanced StereoSound & StereoRecord patch

LineageOS

ROM

APN

Apps

F-Droid

Install

wget -O ~/'Downloads/FDroid.apk' 'https://f-droid.org/FDroid.apk' && adb install ~/'Downloads/FDroid.apk' && adb shell 'sync' && rm -fv ~/'Downloads/FDroid.apk' && sync

Apps

Yalp Store

Disabled Apps

Firefox Klar

StartPage

adb shell input text "https://www.startpage.com/do/dsearch?query=%s"
https://www.startpage.com/do/dsearch?query=%s

DAVdroid

adb shell input text "https://posteo.de:8443/"
https://posteo.de:8443/
1)
not Legacy
2)
this should already be installed at this point :p
3)
set to spoof Nexus 5X just in-case: https://github.com/yeriomin/YalpStore/issues/213
4)
K-9 replaces it
5)
Firefox Klar replaces it
6)
VLC replaces it