Just See The ADB Installation Script At The Repo Root Instead If You Don't Want To Read All Of This Install Stuff
- Enable OEM Unlocking On Your Android Device (Some Devices Do Not Support This Feature)
- Go To Settings --> About Phone --> Software Information --> Click The Build Number Many Times Until It Asks For Your Pin Or Says You're A Developer
- Go Back To The Main Settings Page --> System --> Developer Options
- Toggle OEM Unlocking, THIS WILL ERASE ALL OF YOUR DATA LATER ON!!!
- Get A Computer With Platform Tools Installed (ADB & Fastboot)
- Windows
- Click This To Download Platform Tools
- Unzip It
- When You Have A Terminal In The Directory Of Platform Tools, You Can Run ADB & Fastboot Commands
- Click This To Download Platform Tools
- Linux
- Download ADB & Fastboot Via Your Distribution's Package Manager
- Pacman
sudo pacman -S android-tools
- Debian
sudo apt install adb fastboot
- Fedora
sudo dnf install android-tools
- Pacman
- If Your Distro Does Not Use One Of These Package Managers, Either Try Typing
adb,fastboot, orandroid-toolsInto Your Package Manager's Installation Command, or Follow This Guide, This Following Guide Works Without Sudo Permissions- Click This
- Unzip It
- When You Have A Terminal In The Directory Of Platform Tools, You Can Run ADB & Fastboot Commands
- Click This
- macOS
- Open Your Terminal
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" brew install --cask android-platform-tools -y
- Open Your Terminal
- Download ADB & Fastboot Via Your Distribution's Package Manager
- Windows
- First, Find The Stock Firmware For Your Device Here
- Find the
init_boot.imgand pull it to the Downloads folder
- Find the
- Second, Download Magisk
adb install Magisk-v30.7.apk
Linux馃惂 / macOS馃崕
adb push ~/Downloads/init_boot.img /sdcard/DownloadWindows馃獰
adb push "%USERPROFILE%\Downloads\init_boot.img" /sdcard/Download- Patch the image in Magisk, then pull it back to your computer
Linux馃惂 / macOS馃崕
adb pull /sdcard/Download/magisk-patched* ~/Downloads/root_init_boot.imgWindows馃獰
adb pull /sdcard/Download/magisk-patched* "\%USERPROFILE%\Downloads\root_init_boot.img"- It Is Now Time To Unlock Your Bootloader, Please Make Sure You Enabled OEM Unlocking Earlier
- Reboot Into Your Bootloader Interface And Proceed With The Unlock, Confirming On Your Device With Volume Buttons & Power Key
adb reboot bootloader && fastboot flashing unlock- If This Did Not Activate The Prompt But OEM Unlocking Is Enabled And You're In Fastboot, Try This
fastboot flashing oem unlock-
If This Failed, Stop Here, You May Be Missing Fastboot Drivers, Does Your Device Show Up When You Type
fastboot devices? -
Once Your Bootloader Is Unlocked, The Phone Will Factory Reset And Boot Into Android Setup, You're Close! Turn Off The Phone And Hold The Power Button With The Volume Key Until You Boot Back Into The Bootloader (Key Combination May Be Different On Select Devices)
-
Flash Your Patched Image
fastboot flash init_boot root_init_boot.img && fastboot reboot- Congratulations! You're Done! You're Semi-Rooted And Free To Do Anything On Android Now! When You Setup Your Phone, There Will Be A System App For Magisk In Your App Drawer, This Is Called A Stub, Once You Try To Open It, It Will Install The Full Magisk App And Then Fully Patch Your Device To Give You Full Root Access!
- These Are Just Some Things You Can Use After Rooting To Make Your Android Experience With Root Worth It!
- Android Debloat And Flasher Script is a script I have made in Python for cross platform stability that lets you debloat or flash to an Android device!
- LSPosed/Vector Is A Very Good Implementation of Xposed, Which Uses Root To Allow The User To Hook Apps Into System Processes, Download It Here!
- Droidify Is An App Store Of A Collection Of Free And Open Source (FOSS) Apps That You Can Download, Some Apps Available In Droidify Are Directly Reliant On LSPosed/Vector
- Play Integrity
- When you unlock an Android bootloader, root the device, or flash a custom ROM, your device is considered "bad" to Google's servers. Apps that rely on Play Integrity will fail to work (signing in may not work or the app will just not open), this is device dependent, Google Pixels are typically very good at Play Integrity, even with unlocked, modded devices. Although Pixels are typically safe, other phones tend to have broken integrity just from unlocking the bootloader - Magisk modules do exist to help you, though, but on select devices, you'll need to flash all of these.