====== Android ====== see also: * [[guide:android:start|Android User Guide]] * [[cli|Command line tools]] ===== Device specific tutorials ===== ^ Galaxy S3 | [[.:i9300]] | ^ Xperia Z3 Compact | [[.:z3c]] | ^ Motorola Moto X4 | [[.:payton]] | ^ Google Pixel 6a | [[.:bluejay]] | ==== secret menus ==== ^ Samsung Test Menu | *#0*# | ===== "ROM"s ===== Best custom firmware: [[https://lineageos.org/|LineageOS]] (→ [[https://wiki.lineageos.org/devices/|devices]] it supports) ===== 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|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 * [[https://github.com/Genymobile/scrcpy|scrcpy]] – mirror your Android device's screen to your computer