summaryrefslogtreecommitdiff
path: root/ADMIN.md
blob: acfc041c4d3ee9aa04d93a358ede53afac2add17 (plain)

Phone Administration

Install

Install rescue system

Rescue system is installed using the tool Heimdall, and apps are initially installed using fdroidcl. First install those tools onto your Debian system:

sudo apt install heimdall fdroidcl

Next, locate newest rescue system for your phone:

https://twrp.me/Devices/

Downloading newest rescue system needs faking the refererhint (here using Samsung Galaxy S3 International Exynos as example):

wget --referer=https://eu.twrp.me/i9300/twrp-3.2.1-0-i9300.img.html https://eu.twrp.me/i9300/twrp-3.2.1-0-i9300.img

Install rescue system onto phone using Heimdall:

  1. Fully charge the phone.
  2. Disconnect any cables and turn off the phone.
  3. Press and hold VOL-DOWN+KEY, press POWER until logo appears (~2 seconds), release VOL-DOWN+KEY when next screen appears.
  4. Press VOL-UP when asked.
  5. Connect USB-to-PC data cable.
  6. Execute from terminal: heimdall flash --no-reboot --RECOVERY twrp-[TAB...].img
  7. Disconnect any cables and turn off the phone.

Reset storage

When taking over a phone from someone else, or loosing full-disk-encryption password and needing to start over, reset most possible before installing a fresh system onto phone:

  1. Disconnect any cables and turn off the phone.
  2. Press and hold VOL-UP+KEY, press POWER until logo appears (~2 seconds), release VOL-UP+KEY when next screen appears.
  3. [Swipe] to enter rescue mode
  4. Select Wipe, Format Data; type "yes"
  5. Select HOME, Reboot, Rescue
  6. [Swipe] to enter rescue mode
  7. Select Wipe, Advanced wipe, check all except "Micro SD card" and "USB OTG", [Swipe]
  8. Select HOME, Reboot, Poweroff

Install system

Locate and download newest system for your phone (use menu icon in top left corner):

https://download.lineageos.org/

Install system onto phone:

  1. Fully charge the phone.
  2. Disconnect any cables and turn off the phone.
  3. Press and hold VOL-UP+KEY, press POWER until logo appears (~2 seconds), release VOL-UP+KEY when next screen appears.
  4. [Swipe] to enter rescue mode
  5. Select Wipe; [Swipe]
  6. Select Home, Advanced, ADB Sideload; [Swipe]
  7. Connect USB-to-PC data cable.
  8. Execute from terminal: adb sideload lineage-[TAB...]-signed.zip (takes ~2 minutes)
  9. Select HOME, Wipe; [Swipe]
  10. Select HOME, Reboot, System, Do Not Install - or [Swipe] if no install is offered (takes ~3 minutes)

Add F-droid appstore integration

  1. Disconnect any cables and turn off the phone.
  2. Press and hold VOL-UP+KEY, press POWER until logo appears (~2 seconds), release VOL-UP+KEY when next screen appears.
  3. Select Home, Advanced, ADB Sideload; [Swipe]
  4. Execute from terminal: fdroidcl update fdroidcl download org.fdroid.fdroid.privileged.ota
  5. Connect USB-to-PC data cable.
  6. Execute from terminal: adb sideload ~/.cache/fdroidcl/apks/org.fdroid.fdroid.privileged.ota_[TAB...].zip
  7. Select HOME, Reboot, System (takes ~30 seconds)

Add selected apps, including F-droid appstore

  1. Execute from terminal: fdroidcl install org.dmfs.tasks at.bitfire.davdroid org.birthdayadapter com.zegoggles.smssync com.moez.QKSMS fdroidcl install org.sufficientlysecure.viewer com.llamacorp.equate com.gabm.screenrotationcontrol fdroidcl install net.kismetwireless.android.smarterwifimanager fdroidcl install com.fsck.k9 org.sufficientlysecure.keychain eu.siacs.conversations fdroidcl install net.osmand.plus com.vonglasow.michael.satstat com.rareventure.gps2 de.grobox.liberario org.ametro