Table of Contents

Information

xda-developers

Latest platform-tools

Linux

Windows

Factory Image

Filesystem Maintenance

Information

Slot A

Slot B

Shared

Format

Information

Unmount

umount '/data' '/sdcard' '/system' '/vendor'

Slot A

echo "Formatting Slot A's /system partition..." && make_ext4fs -v '/dev/block/sda33' && echo 'Done'

Slot B

echo "Formatting Slot B's /system partition..." && make_ext4fs -v '/dev/block/sda34' && echo 'Done'

Shared

echo "Formatting /data partition..." && make_ext4fs -v '/dev/block/sda35' && echo 'Done'

e2fsck

Information

Unmount

umount '/data' '/sdcard' '/system' '/vendor'

Slot A

e2fsck -y -f -v '/dev/block/sda31'
e2fsck -y -f -v '/dev/block/sda33'

Slot B

e2fsck -y -f -v '/dev/block/sda32'
e2fsck -y -f -v '/dev/block/sda34'

Shared

e2fsck -y -f -v '/dev/block/sda35'

fstrim

Information

umount '/data' '/sdcard' '/system' '/vendor' || mount '/dev/block/sda35' '/data' && echo 'Mounted /data partition and trimming...' && fstrim -v '/data' && umount '/data' && mount '/dev/block/sda31' '/vendor' && mount '/dev/block/sda33' '/system' && echo 'Mounted Slot A /system and /vendor partitions and trimming...' && fstrim -v '/system' && fstrim -v '/vendor' && sync && umount '/system' '/vendor' && mount '/dev/block/sda32' '/vendor' && mount '/dev/block/sda34' '/system' && echo 'Mounted Slot B /system and /vendor partitions and trimming...' && fstrim -v '/system' && fstrim -v '/vendor' && sync && umount '/vendor' '/system' && reboot bootloader

Legacy Commands

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

Ideal Stack

Flash Order

TWRP

LineageOS

ROM

Apps

F-Droid

Install

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

Apps

Yalp Store

Disabled Apps

GUI

adb shell

pm disable 'com.qualcomm.ltebc_vzw'
pm disable 'qualcomm.com.vzw_msdc_api'
pm disable 'com.android.vzwomatrigger'
pm disable 'com.google.android.carrier.authdialog'
pm disable 'com.verizon.mips.services'
pm disable 'com.android.email'
pm disable 'org.lineageos.eleven'
pm disable 'org.lineageos.jelly'
pm disable 'org.lineageos.updater'

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)
for initial flash; not to be installed
2)
microG is necessary for Simple banking app, along with Pokemon GO and Ingress
3)
this should already be installed at this point :p
4)
K-9 replaces it
5)
Firefox Klar replaces it
6)
VLC replaces it