Android
see also:
Device specific tutorials
secret menus
Samsung Test Menu | *#0*# |
---|
"ROM"s
TWRP
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
Heimdall
Download: https://glassechidna.com.au/heimdall/
heimdall flash --RECOVERY filename.img
adb
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.
Backup
see Backup#ADB
sideload connection failed: insufficient permissions for device
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
logcat to file:
adb logcat -d > logcat-`date +%F_%H-%M-%S`.txt
fastboot
reboot into fastboot mode via adb | adb reboot-bootloader |
---|---|
load image | fastboot boot boot.img |
flash kernel | fastboot flash boot boot.img |
Recommended root procedures
Magisk!
Replace SuperSU with Magisk
- Download Magisk Manager
- Launch Magisk Manager, grant permissions
- tap on "Download & Install," then confirm your choice by hitting "Install" on the popup
- Magisk modules can be downloaded from the Modules section in Magisk Manager
useful software
- adb – android debugging bridge, get a shell on your Android and more
- scrcpy – mirror your Android device's screen to your computer