Cheatsheet for Setting up Android Smartphones
Quickly setting up Android smartphones for development. This article is part of the Edge Development Cheatsheet series. This is mostly based on my personal development requirements, which are focused on AI-related computing tasks. Specifically, I run DNNs in a Linux-like environment. So it might not perfectly suits you if you’re more interested in App development and GUI debugging. Register your new device to activate the warranty (if you are not going to root the system). Root is required to obtain advanced system control (as super user). Magisk 中文网教程:https://magiskcn.com This section continues with an OnePlus example, as it is the most root-friendly Chinese smartphone brand. Requirements: Magisk 中文网教程:https://magiskcn.com/oneplus-unlock-qualcomm#google_vignette Magisk 中文网教程:https://magiskcn.com/oneplus-init-boot After rebooting, enter the Magisk app and check the “Magisk” version. You should be able to see the correct version displayed after a successful rooting. It is recommended to turn off all settings that might influence system performance and version stability. Specifically: How to install: First and foremost, setup the proxy. TODO: details F-Droid is an installable catalogue of FOSS (Free and Open Source Software) applications for the Android platform. Use it as an alternative to Google Play. F-Droid site: https://f-droid.org/ Installation by F-Droid is recommended. Check out the Termux Setup Cheatsheet. Use it as an alternative to the system default browser, which often has limited functionalities. I recommend Edge as it is the most available one (in Chinese app stores). See more of the Edge Development Cheatsheet series.First Boot
Register
Root the System
Unlock Bootloader
adb reboot bootloader
bootloader flashing unlock
Root with Magisk
payload-dumper-go -p init_boot <extracted>/payload.bin
adb reboot bootloader
fastboot flash init_boot magisk_patched-xxx.img
fastboot reboot
System Setting
Developer Option
System Update
Battery Management
Apps
Clash for Android (CFA)
F-Droid
Termux
Microsoft Edge