Skip to content

Instantly share code, notes, and snippets.

gabrielbauman /
Created November 15, 2017 23:53 — forked from aldur/

Root OnePlus5 without unlocking the bootloader

Gain adb root.

$ adb shell am start -n --es "code" "angela"

Download Magisk-v14.0 and extract it somewhere. Download MagiskManager.

# Drop this script in /usr/local/bin and run it with sudo to install/update to the latest maven. Keeps older versions around just in case.
# Works for me on Ubuntu, YMMV.
set -e
# Make sure we can write to /opt
if [ ! -w "/opt" ]; then
echo "/opt is not writeable. Try using sudo!"