Galaxy S3 i9300
Xperia Z3 Compact z3c
Motorola Moto X4 payton
Samsung Test Menu *#0*#

Best custom firmware: LineageOS (→ devices it supports)


  • if you need parted, it has to be in the TWRP image! (e.g.
  • flash with Heimdall


heimdall flash --RECOVERY filename.img

Activate debugging!

  • To enable Developer Options, open the Settings screen, scroll down to the bottom, and tap About phone or About tablet.
  • Scroll down to the bottom of the About screen and find the Build number.
  • Tap the Build number field seven times to enable Developer Options. Tap a few times and you’ll see a toast notification with a countdown that reads “You are now X steps way from being a developer.”
  • When you’re done, you’ll see the message “You are now a developer!”. Congratulations. Don’t let this newfound power go to your head.
adb devices
adb backup -all -shared -f `date -I`.ab
Flag Result
-f <file> Write to <file>, else backup.ab
-apk|-noapk enable/disable backup of the .apks themselves
-obb|-noobb enable/disable backup of any installed apk expansion (aka .obb) files associated with each application
-shared|-noshared enable/disable backup of the device's shared storage / SD card contents
-all back up all installed applications
-system|-nosystem toggles whether -all automatically includes system applications
<packages…> list of applications to be backed up. If -all or -shared flags are passed, package list is optional.

Kill the user started adb server:

adb kill-server

Start server as root:

sudo adb start-server

Or you can basically do any adb command with sudo to start it. I typically use:

sudo adb devices

This starts the ADB server and tells me my phone is definitely hooked up.

logcat to file:

adb logcat -d > logcat-`date +%F_%H-%M-%S`.txt
reboot into fastboot mode via adb adb reboot-bootloader
load image fastboot boot boot.img
flash kernel fastboot flash boot boot.img


  1. Download Magisk Manager
  2. Launch Magisk Manager, grant permissions
  3. tap on "Download & Install," then confirm your choice by hitting "Install" on the popup
  4. Magisk modules can be downloaded from the Modules section in Magisk Manager
  • adb – android debugging bridge, get a shell on your Android and more
  • scrcpy – mirror your Android device's screen to your computer
  • Last modified: 2019-12-20 14:21