One of our test phones is a OnePlus Nord-series model (the N6x, CPH2971) with a MediaTek chip, running Android 16. It answers calls and WhatsApp for a bot all day, and root lets Pocket hear and speak on calls with no adapter. This is exactly how we rooted it, including the parts that didn't work. Why a bot phone wants root at all is in Rooting a phone so a bot can work on it all day.
What you need
- The phone, charged, with anything you care about backed up. Unlocking wipes it.
- A computer with Android platform-tools (
adbandfastboot). If you can, a Windows PC for the unlock step. More on that below. - The Magisk app from its official GitHub releases.
- The full OTA package for the exact Android build the phone runs, and a payload extractor to pull one image out of it.
1. Unlock the bootloader
- Turn on Developer options (tap the build number seven times in About phone).
- In Developer options, turn on OEM unlocking and USB debugging.
- Reboot to the bootloader with
adb reboot bootloader. - Run
fastboot flashing unlockand confirm on the phone with the volume and power keys. - The phone wipes itself and boots to setup. Set it up again and turn USB debugging back on.
2. Get the stock init_boot image
This phone launched on a recent Android, so Magisk patches init_boot, not boot. The image must match the build the phone is running exactly. A mismatched image can stop it booting.
- Get the full OTA package for your current build. The OS Updater app can fetch the full official package, not just an incremental one.
- Check the package's hash against the published one.
- Extract
init_boot.imgfrom the package'spayload.binwith a payload extractor. - Verify the extractor. Run it on a package whose image you already have and compare hashes. Ours matched byte for byte.
- Copy the stock
init_boot.imgsomewhere safe on your computer. You need it to unroot.
sha256sum init_boot.img
# keep this hash next to the file; compare it after every extract3. Patch it in Magisk
- Install the Magisk app and copy
init_boot.imgto the phone. - In Magisk, tap Install → Select and Patch a File and pick the image.
- Pull the result (
magisk_patched-….imgin Downloads) back to the computer withadb pull.
If you work from a shell instead of the app, Magisk's boot_patch.sh does the same patch. The official install guide covers both.
4. Flash it to the active slot
On Linux, flashing works in fastbootd, the userspace fastboot that Android starts, even though the real bootloader didn't answer. Find the active slot first and flash only that one.
adb shell getprop ro.boot.slot_suffix # prints _a or _b
adb reboot fastboot # fastbootd, not the bootloader
fastboot flash init_boot_a magisk_patched.img # use _b if that is active
fastboot rebootIf you are in the real bootloader and fastboot reboot hangs, hold the power key for about 15 seconds to force a restart. Once the phone is up, open Magisk. It should show an installed version. Grant root only to apps that need it.
5. Stop surprise updates
A system update rewrites init_boot and root is gone. Turning off automatic updates in Settings was not enough on this phone, because the maker's updater apps still fetch updates. With root, disable the updater packages for your user. It is reversible.
adb shell su -c 'pm list packages | grep -i -e ota -e update'
adb shell su -c 'pm disable-user --user 0 <updater package>'
# undo before a deliberate update:
adb shell su -c 'pm enable <updater package>'OnePlus also blocks pm grant and appops set from a plain adb shell. They fail with a permission error. Run them under su -c and they work.
6. After an update: root again
- Fetch the full package for the new build with OS Updater.
- Extract the new
init_boot.img, check its hash, and keep it as the new stock image. - Patch it in Magisk and flash it to the active slot from fastbootd, as above.
Never flash an image patched from an older build. The image must come from the build the phone is running now.
The Pocket trap: an old copy of the app
Hearing call audio needs a permission Android gives only to privileged apps, so a Magisk module makes Pocket privileged. The module copies the app's APK when it is flashed. While root was gone after an update, the module sat idle and the normal app updated. When we re-rooted, the module brought back its months-old copy. It was signed with a different key, so Android treated it as a different app: permissions reset, settings reset, and every update refused.
Pocket's module now refreshes its copy from the installed app on every boot, so the privileged copy is always the build you run. After any reset or re-root, still check by hand:
- Phone control is on in Pocket.
- The WhatsApp switch is on.
- Microphone and answer-calls permissions are granted.
- Pocket's accessibility service is on, and notification access is granted.
- Magisk still grants Pocket root.
How to unroot
Flash the stock init_boot.img you saved back to the active slot the same way, and reboot. Root is gone and the phone runs stock. To relock the bootloader, first make sure every partition is stock, because relocking with modified images can leave the phone unbootable. Relocking wipes the phone again.
Turn it into a bot phone
In Pocket, open Account → Voice → Own SIM. It shows the phone as rooted and asks you to flash the Pocket call-audio module in Magisk and reboot. After that the bot answers and places calls on the SIM, reads hidden WhatsApp notifications, and can run a voicemail box. Details are in Phone control → Root mode. If you'd rather skip root, Pocket Link gives the bot your own number with no root at all.



