User Tools

Site Tools


devices:deb

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
devices:deb [2017/07/29 15:36] Sean Rhonedevices:deb [2017/10/29 16:04] (current) – old revision restored (2017/08/01 22:18) Sean Rhone
Line 1: Line 1:
 +====== Information ======
  
 +  * Resources for the Google/ASUS Nexus 7 2013 LTE
 +
 +====== xda-developers ======
 +
 +  * https://forum.xda-developers.com/nexus-7-2013
 +
 +====== Latest platform-tools ======
 +
 +===== Linux =====
 +
 +  * https://dl-ssl.google.com/android/repository/platform-tools-latest-linux.zip
 +
 +===== Windows =====
 +
 +  * https://dl-ssl.google.com/android/repository/platform-tools-latest-windows.zip
 +  * https://dl-ssl.google.com/android/repository/latest_usb_driver_windows.zip
 +
 +====== Factory Image ======
 +
 +  * https://developers.google.com/android/nexus/images#razorg
 +
 +====== Filesystem Maintenance ======
 +
 +===== Notes =====
 +
 +  * Can only be done within TWRP Recovery either via built-in Terminal or over ADB
 +  * Ideal to do before a clean ROM flash, after an improper shutdown, and after configuring all apps/copying over all data
 +
 +===== Quick-command =====
 +
 +==== Normal ====
 +
 +  * Boot into TWRP and immediately run the following
 +  * This expects the usual partitioning ((''firmware'' and ''cache'' with ''ext4'', ''data'' and ''cache'' with ''F2FS''))
 +
 +  adb shell 'umount '/data' && umount '/cache' && umount '/sdcard' && fsck.f2fs -f '/dev/block/mmcblk0p30' && fsck.f2fs -f '/dev/block/mmcblk0p23' && e2fsck -y -f -v '/dev/block/mmcblk0p22' && e2fsck -y -f -v '/dev/block/mmcblk0p4' && mount '/data' && mount '/cache' && mount '/system' && mount '/persist' && rm -Rf '/data/dalvik-cache' && fstrim -v '/data' && fstrim -v '/cache' && fstrim -v '/system' && fstrim -v '/persist' && sync && umount '/data' && umount '/cache' && umount '/system' && umount '/persist' && reboot'
 +
 +==== firmware Partition ====
 +
 +  * Boot into TWRP and immediately run the following
 +  * This expects the usual partitioning ((''firmware'' and ''cache'' with ''ext4'', ''data'' and ''cache'' with ''F2FS''))
 +  * TODO: Fix (maybe need to mount firmware partition before doing fsck?)
 +
 +  adb shell 'mount '/system' && fsck_msdos -p -y '/dev/block/mmcblk0p1' && umount '/system' && reboot'
 +
 +===== Unmount Partitions =====
 +
 +  umount '/data'
 +
 +  umount '/cache'
 +
 +  umount '/sdcard'
 +
 +  umount '/system'
 +
 +  umount '/persist'
 +
 +  umount '/firmware'
 +
 +  umount '/sdcard'
 +
 +===== system + persist Filesystem Maintenance =====
 +
 +  * ext4
 +
 +  e2fsck -y -f -v '/dev/block/mmcblk0p22'
 +
 +  e2fsck -y -f -v '/dev/block/mmcblk0p4'
 +
 +===== data + cache Filesystem Maintenance =====
 +
 +  * F2FS
 +
 +  fsck.f2fs -f '/dev/block/mmcblk0p30'
 +
 +  fsck.f2fs -f '/dev/block/mmcblk0p23'
 +
 +===== firmware Filesystem Maintenance =====
 +
 +  * vfat
 +  * TODO: May require /system to be mounted
 +
 +  fsck_msdos -p -y '/dev/block/mmcblk0p1'
 +
 +===== Mount Partitions =====
 +
 +  mount '/data'
 +
 +  mount '/cache'
 +
 +  mount '/system'
 +
 +  mount '/persist'
 +
 +  mount '/firmware'
 +
 +===== Clear Dalvik/ART Cache =====
 +
 +  mount '/data'
 +
 +  rm -Rf '/data/dalvik-cache'
 +
 +===== fstrim =====
 +
 +  * If done immediately after booting TWRP, ''/data'' and ''/cache'' are already mounted, but ''/system'', ''/persist'', and ''/firmware'' aren't
 +
 +  adb shell
 +
 +  mount '/system' && mount '/persist' && mount '/firmware'
 +
 +  fstrim -v '/system' && fstrim -v '/data' && fstrim -v '/cache' && sync
 +
 +====== Ideal Stack ======
 +
 +  * As of: 2017/07/29
 +
 +  * TWRP
 +  * LineageOS for easy microG + UnifiedNlp
 +  * ElementalX Kernel
 +  * microG
 +  * Magisk
 +
 +====== microG ======
 +
 +===== Flash Order ======
 +
 +  * ROM
 +  * **Reboot** to Recovery
 +  * Erase everything except **System** and format **Data** and **Cache** to **F2FS**
 +  * **Reboot** to Recovery
 +  * Kernel
 +  * Magisk
 +  * **Reboot** to System
 +
 +===== TWRP =====
 +
 +  * https://forum.xda-developers.com/nexus-7-2013/orig-development/recovery-twrpflo3-0-3-0-t3564280
 +
 +===== LineageOS for easy microG + UnifiedNlp =====
 +
 +  * https://forum.xda-developers.com/nexus-6/development/rom-lineageos-easy-microg-unifiednlp-t3632360
 +
 +===== ElementalX Kernel =====
 +
 +  * https://forum.xda-developers.com/showthread.php?t=2389022
 +  * https://elementalx.org/devices/nexus-7-2013/
 +
 +==== Settings ====
 +
 +  * Select thermal throttling: run hot
 +  * Max CPU Frequency: 1728MHz
 +  * GPU Governor: Simple
 +  * I/O Scheduler: ROW
 +  * Readahead Buffer Size: 1024
 +  * Available S2W/DT2W Gestures: Double tap
 +  * Short sweep and Magnetic cover toggles: Disabled
 +  * Sweep2Sleep: Disabled
 +  * Enable USB Fast Charge
 +  * Disable fsync
 +
 +===== Magisk =====
 +
 +==== Official ====
 +
 +  * https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445
 +
 +==== Unofficial ====
 +
 +  * https://forum.xda-developers.com/apps/magisk/unofficial-magisk-v10-beta-built-t3521901
 +
 +===== F-Droid =====
 +
 +==== Install ====
 +
 +  * https://f-droid.org/FDroid.apk
 +
 +  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
 +
 +==== microG Repo ====
 +
 +  * https://microg.org/fdroid/repo?fingerprint=9BD06727E62796C0130EB6DAB39B73157451582CBD138E86C468ACC395D14165
 +
 +  adb shell input text "microg.org/fdroid/repo"
 +
 +  adb shell input text "9BD06727E62796C0130EB6DAB39B73157451582CBD138E86C468ACC395D14165"
 +
 +===== Apps =====
 +
 +==== F-Droid ====
 +
 +=== Core ===
 +
 +  * 7 apps
 +
 +  * FakeStore
 +  * microG DroidGuard Helper
 +  * microG Services Core
 +  * microG Services Framework Proxy
 +  * NominatimNlpBackend
 +  * MozillaNlpBackend
 +  * Yalp Store ((set to spoof Nexus 6 because of https://github.com/yeriomin/YalpStore/issues/213))
 +
 +=== Extra ===
 +
 +  * 16 apps
 +
 +  * OneTimePad
 +  * K-9 Mail
 +  * KeePassDroid
 +  * Conversations
 +  * AndStatus
 +  * M.A.L.P.
 +  * WiFiAnalyzer
 +  * Document Viewer
 +  * Feeder
 +  * Maps & GPS Navigation OsmAnd+
 +  * DAVdroid
 +  * OpenTasks
 +  * Loyalty Card Keychain
 +  * SatStat
 +  * Forecastie
 +  * Firefox Klar
 +
 +==== Yalp Store ====
 +
 +  * 8 apps
 +
 +  * VLC
 +  * Pokémon GO
 +  * Ingress
 +  * Keybase
 +  * Steam
 +  * Obenkyo
 +  * EZVIZ
 +  * VPN.AC Client
 +
 +==== Disable ====
 +
 +  adb shell
 +
 +  su
 +
 +  pm disable 'com.android.email'
 +
 +  pm disable 'org.lineageos.jelly'
 +
 +  pm disable 'com.cyanogenmod.eleven'
 +
 +  pm disable 'org.lineageos.updater'
 +
 +====== Legacy ======
 +
 +===== Flash Order ======
 +
 +  * ROM
 +  * GApps
 +  * **Reboot** to Recovery
 +  * Erase everything except **System** and format **Data** and **Cache** to **F2FS**
 +  * **Reboot** to Recovery
 +  * Kernel
 +  * Magisk
 +  * **Reboot** to Recovery
 +  * Filesystem Maintenance
 +  * **Reboot** to System
 +
 +===== TWRP =====
 +
 +  * https://forum.xda-developers.com/nexus-7-2013/orig-development/recovery-twrpflo3-0-3-0-t3564280
 +
 +===== LineageOS =====
 +
 +  * https://download.lineageos.org/deb
 +  * https://forum.xda-developers.com/nexus-7-2013/development-lte/rom-cyanogenmod-14-1-nexus-7-2013-lte-t3501075
 +
 +  * Passes SafetyNet enough to play Pokemon GO with just LineageOS and Open GApps
 +  * F2FS Works
 +
 +===== ElementalX Kernel =====
 +
 +  * https://forum.xda-developers.com/showthread.php?t=2389022
 +  * https://elementalx.org/devices/nexus-7-2013/
 +
 +==== Settings ====
 +
 +  * Select thermal throttling: run hot
 +  * Max CPU Frequency: 1728MHz
 +  * GPU Governor: Simple
 +  * I/O Scheduler: ROW
 +  * Readahead Buffer Size: 1024
 +  * Available S2W/DT2W Gestures: Double tap
 +  * Short sweep and Magnetic cover toggles: Disabled
 +  * Sweep2Sleep: Disabled
 +  * Enable USB Fast Charge
 +  * Disable fsync
 +
 +===== Magisk =====
 +
 +==== Official ====
 +
 +  * https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445
 +
 +==== Unofficial ====
 +
 +  * https://forum.xda-developers.com/apps/magisk/unofficial-magisk-v10-beta-built-t3521901
 +
 +==== Modules ====
 +
 +=== ART Optimization ===
 +
 +  * https://forum.xda-developers.com/apps/magisk/module-android-runtime-optimization-t3596559
 +
 +  * Use ''Everything''
 +
 +  art_magisk
 +
 +=== Unified Hosts Adblock ===
 +
 +  * https://forum.xda-developers.com/apps/magisk/magisk-unified-hosts-adblocker-t3559019
 +
 +  * Use ''fgp''
 +
 +  hosts
 +
 +===== The Open GApps Project =====
 +
 +  * http://opengapps.org
 +  * https://github.com/opengapps/arm/releases
 +
 +  * Use Pico
 +
 +==== gapps-config.txt ====
 +
 +  * Place on root of Internal Storage
 +
 +  GoogleAssistant
 +  PreODEX