flash-base.sh
from the latest Factory Image/data
and /cache
to be ext4
/data
to be encryptedadb shell "umount '/sdcard' && umount '/cache' && umount '/data' && e2fsck -y -f -v '/dev/block/mmcblk0p41' && e2fsck -y -f -v '/dev/block/mmcblk0p26' && e2fsck -y -f -v '/dev/block/mmcblk0p21' && e2fsck -y -f -v '/dev/block/mmcblk0p1' && e2fsck -y -f -v '/dev/block/dm-0' && e2fsck -y -f -v '/dev/block/mmcblk0p38' && mount '/system' && mount '/data' && mount '/cache' && mount '/firmware' && rm -Rf '/data/dalvik-cache' && fstrim -v '/system' && fstrim -v '/data' && fstrim -v '/cache' && fstrim -v '/firmware' && sync && umount '/system' && umount '/data' && umount '/cache' && umount '/firmware' && reboot"
/data
and /cache
to be ext4
/data
to be unencryptedadb shell "umount '/data' && umount '/cache' && umount '/sdcard' && e2fsck -y -f -v '/dev/block/mmcblk0p41' && e2fsck -y -f -v '/dev/block/mmcblk0p26' && e2fsck -y -f -v '/dev/block/mmcblk0p21' && e2fsck -y -f -v '/dev/block/mmcblk0p1' && e2fsck -y -f -v '/dev/block/mmcblk0p42' && e2fsck -y -f -v '/dev/block/mmcblk0p38' && mount '/system' && mount '/data' && mount '/cache' && mount '/firmware' && rm -Rf '/data/dalvik-cache' && fstrim -v '/system' && fstrim -v '/data' && fstrim -v '/cache' && fstrim -v '/firmware' && sync && umount '/system' && umount '/data' && umount '/cache' && umount '/firmware' && reboot"
/dev/block/mmcblk0p41
is /system
/dev/block/mmcblk0p38
is /cache
/dev/block/mmcblk0p42
is /data
and /sdcard
/dev/block/mmcblk0p1
is /firmware
ext4
umount '/system'
umount '/cache'
umount '/data'
umount '/sdcard'
umount '/firmware'
umount '/system' '/cache' '/data' '/sdcard' '/firmware'
e2fsck -y -f -v '/dev/block/mmcblk0p41'
e2fsck -y -f -v '/dev/block/mmcblk0p38'
e2fsck -y -f -v '/dev/block/mmcblk0p42'
e2fsck -y -f -v '/dev/block/mmcblk0p1'
mount '/system'
mount '/data'
mount '/cache'
mount '/firmware'
mount -a
adb shell
mount '/data'
rm -Rf '/data/dalvik-cache'
/data
and /cache
are already mounted, but /system
and /firmware
aren'tadb shell
mount '/system' && mount '/firmware'
fstrim -v '/system' && fstrim -v '/data' && fstrim -v '/cache' && fstrim -v '/firmware' && sync
adb shell "mount -a || fstrim -v '/system' && fstrim -v '/data' && fstrim -v '/cache' && fstrim -v '/firmware' && sync"
sudo fastboot erase 'all'
~/Downloads
sudo fastboot flash 'bootloader' ~/'Downloads/shamu-'*'/bootloader-shamu-moto-'*'.img' && sudo fastboot reboot-bootloader && sleep 5 && sudo fastboot flash 'radio' ~/'Downloads/shamu-'*'/radio-shamu-'*'.img' && sudo fastboot reboot-bootloader
nano ~/'Downloads/99-kernel.sh' && adb push ~/'Downloads/99-kernel.sh' '/storage/emulated/0' && rm ~/'Downloads/99-kernel.sh' && sync
#!/system/bin/sh # I/O Scheduler (noop) echo noop > /sys/block/mmcblk0/queue/scheduler echo noop > /sys/block/mmcblk0rpmb/queue/scheduler # fsync (disabled) echo N > /sys/module/sync/parameters/fsync_enabled # Vibration Intensity (75) echo 75 > /sys/drv2605/rtp_strength # Display Profile (obsanity_standard) echo 245 245 256 > /sys/devices/platform/kcal_ctrl.0/kcal echo 273 > /sys/devices/platform/kcal_ctrl.0/kcal_sat echo 255 > /sys/devices/platform/kcal_ctrl.0/kcal_val echo 255 > /sys/devices/platform/kcal_ctrl.0/kcal_cont echo 0 > /sys/devices/platform/kcal_ctrl.0/kcal_hue
adb shell
su
mv '/storage/emulated/0/99-kernel.sh' '/magisk/.core/service.d/99-kernel.sh' && chown 'root':'root' '/magisk/.core/service.d/99-kernel.sh' && chmod '755' '/magisk/.core/service.d/99-kernel.sh' && sync
cat '/sys/block/mmcblk0/queue/scheduler' '/sys/block/mmcblk0rpmb/queue/scheduler'
cat '/sys/module/sync/parameters/fsync_enabled'
cat '/sys/drv2605/rtp_strength'
cat '/sys/devices/platform/kcal_ctrl.0/kcal' '/sys/devices/platform/kcal_ctrl.0/kcal_sat' '/sys/devices/platform/kcal_ctrl.0/kcal_val' '/sys/devices/platform/kcal_ctrl.0/kcal_cont' '/sys/devices/platform/kcal_ctrl.0/kcal_hue'
wget -O ~/'Downloads/FDroid.apk' 'https://f-droid.org/FDroid.apk' && adb install ~/'Downloads/FDroid.apk' && adb shell 'sync' && rm -f ~/'Downloads/FDroid.apk' && sync
adb shell input text "microg.org/fdroid/repo"
adb shell input text "9BD06727E62796C0130EB6DAB39B73157451582CBD138E86C468ACC395D14165"
cd
into the directory containing the APKsnano 'apk.sh' && chmod +x 'apk.sh'
#!/bin/sh for file in *.apk do adb install $file done
./'apk.sh'
com.google.android.apps.tycho
is Project Ficom.google.android.apps.gcs
is Google Connectivity Services 3)org.lineageos.updater
isn't usable with custom LineageOS buildsadb shell
su
pm disable 'com.android.email'
pm disable 'com.google.android.apps.gcs'
pm disable 'org.lineageos.jelly'
pm disable 'com.cyanogenmod.eleven'
pm disable 'com.google.android.apps.tycho'
pm disable 'org.lineageos.updater'
sudo dnf install 'sqlite' && sync
wget -O ~/'Downloads/FastLacellsGenerator-master.zip' 'https://github.com/sobrus/FastLacellsGenerator/archive/master.zip' && unzip ~/'Downloads/FastLacellsGenerator-master.zip' -d ~/'Downloads'
TOKEN
should be a OpenCelliD API tokenMMC
includes all USnano ~/'Downloads/FastLacellsGenerator-master/config'
MCC="310|311|312|313|316" TOKEN="x"
lacells.db
isn't around 300MB+, this is a problemcd ~/'Downloads/FastLacellsGenerator-master' && ~/'Downloads/FastLacellsGenerator-master/flg'
adb push ~/'Downloads/FastLacellsGenerator-master/lacells.db' '/storage/emulated/0/LocalGSMBackend/lacells.db.new'
rm -Rf ~/'Downloads/FastLacellsGenerator-master.zip' ~/'Downloads/FastLacellsGenerator-master' && sync
/storage/emulated/0/LocalGSMBackend
adb shell input text "/storage/emulated/0/LocalGSMBackend"
# No Debug logs # https://github.com/opengapps/opengapps/wiki/Advanced-Features-and-Options#debug-logs #NoDebug # Smart Pre-ODEXing of APKs # https://github.com/opengapps/opengapps/wiki/Advanced-Features-and-Options#skip-smart-pre-odexing-of-apks PreODEX # Exclude GApps # https://github.com/opengapps/opengapps/wiki/Advanced-Features-and-Options#include-or-exclude-gapps # Expects Nano package DialerFramework CalSync GoogleTTS PackageInstallerGoogle BatteryUsage FaceDetect FaceUnlock Speech # Remove Stock apps # https://github.com/opengapps/opengapps/wiki/Advanced-Features-and-Options#remove-stock-apps # Expects LineageOS (Eleven) (Email) (Jelly)
adb shell
su
pm disable 'com.google.android.syncadapters.calendar'
pm disable 'com.google.android.syncadapters.contacts'
pm disable 'com.android.email'
pm disable 'org.lineageos.jelly'
pm disable 'com.cyanogenmod.eleven'
wm density '493'
wm density '240'
wm density reset
wm size 2160x3840
wm size 1080x1920
wm size 540x960
wm size reset
flash-base.sh
from the latest Factory Image