admin:android:start

Android

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

Best custom firmware: LineageOS (→ devices it supports)

Download: https://twrp.me/

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

Download: https://glassechidna.com.au/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.

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

Magisk!

  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: 2020-10-20 11:28