Skip to content

Instantly share code, notes, and snippets.

@xarinatan
Last active August 27, 2024 00:15
Show Gist options
  • Save xarinatan/6cd115b3b5ae3c926737ea51ab18d373 to your computer and use it in GitHub Desktop.
Save xarinatan/6cd115b3b5ae3c926737ea51ab18d373 to your computer and use it in GitHub Desktop.
How to root your Huawei Mediapad T1-701w

How to root a Huawei Mediapad T1-701(w)

Note: you will need to unlock the device, which voids your warranty.

Prerequisites

Download this package that already contains everything

OR

Download all of the below, and put the mann1 and rooted_boot.img in the platform-tools folder from the ADB Platform Tools package.

How to root

Install the Drivers

  • Disconnect the Mediapad from your PC
  • Enable Developer mode by going to Settings->About Tablet and tapping on the Build number until it says you're a developer.
  • Go to the 'Advanced settings' menu that now appears in Settings and enable USB Debugging.
  • Install the ADB drivers from clockworkmod.
  • Connect the mediapad to your PC
  • Get the ADB drivers working. It should do this automatically but if it doesn't, override the driver by going to Device manager in windows, finding the 'ADB Interface' and Updating its driver, pointing it to the universal driver folder or files if you have to force it.
  • execute adb reboot-bootloader from within the platform-tools folder
  • Install the fastboot drivers from the Drivers/X64 directory, again you may need to force the installation manually.

Unlocking the tablet

  • Go to the Huawei Bootloader Unlock request page https://emui.huawei.com/en/plugin.php?id=unlock . This requires registration, but is otherwise free. After you registered/logged in you may need to revisit the link to get to the unlock page.
  • On the unlock page, fill in the details of your tablet and submit it. If all goes well it should display your unlock code! Write this down somewhere until you're done.
  • Note: You will need to boot the tablet in order to get the 'product ID' from within the Calculator application. execute fastboot reboot to get the tablet booted, then open the calculator application and enter ()()1357946()()=, it will show your product ID in a separate window.
  • execute fastboot oem unlock YOUR-UNLOCK-KEY from within the platform-tools folder to unlock the tablet. If all goes well it should say SUCCESS, if not you can try again, it should say 'already unlocked' if it's already unlocked.

Root the tablet

  • execute fastboot flash boot rooted_boot.img from the platform-tools folder to install the rooted boot image. Your tablet is now rooted, but you'll need SuperSu to use it.
  • execute fastboot reboot to reboot the tablet into normal mode again
  • Wait for it to boot, then execute adb root followed by adb shell. If all goes well you should see root@yourdevice:/ #. The # indicates you're root. If you see $ then something went wrong.
  • exit out of the adb shell, and execute adb push mann1 /sdcard/ to copy the SuperSu files to the tablet's internal storage.
  • adb shell back into the tablet and make sure you're root
  • Now to install SuperSu, execute all of the following commands inside the adb shell. Some commands may give an error depending on your device (e.g mount)- that's okay, just continue until the end. It's okay to copy-paste the whole thing at once:
mount -o rw,remount /system
mount -o rw,remount /etc
mkdir /system/bin/.ext
mkdir /etc/init.d
pm uninstall eu.chainfire.supersu >/dev/null  2>&1

cat /sdcard/mann1/busybox > /system/bin/busybox
cat /sdcard/mann1/su > /system/xbin/su
cat /sdcard/mann1/Superuser.apk > /system/app/Superuser.apk
cat /sdcard/mann1/su > /system/xbin/daemonsu
cat /sdcard/mann1/su > /system/xbin/sugote
cat /system/bin/sh > /system/xbin/sugote-mksh
cat /sdcard/mann1/supolicy > /system/xbin/supolicy
cat /sdcard/mann1/otasurvival.sh > /system/xbin/otasurvival.sh
cat /sdcard/mann1/libsupol.so > /system/lib/libsupol.so
cat /sdcard/mann1/su > /system/bin/.ext/.su
cat /sdcard/mann1/su > /etc/.installed_su_daemon
cat /sdcard/mann1/install-recovery.sh > /etc/install-recovery.sh
cat /sdcard/mann1/99SuperSUDaemon > /etc/init.d/99SuperSUDaemon

chown 0.0 /system/bin/busybox
chmod 0755 /system/bin/busybox
chown 0.0 /system/app/Superuser.apk
chmod 0755 /system/app/Superuser.apk
chown 0.0 /system/xbin/su
chmod 0755 /system/xbin/su
chown 0.0 /system/xbin/sugote
chmod 0755 /system/xbin/sugote
chown 0.0 /system/xbin/sugote-mksh
chmod 0755 /system/xbin/sugote-mksh
chown 0.0 /system/xbin/daemonsu
chmod 0755 /system/xbin/daemonsu
chown 0.0 /system/xbin/supolicy
chmod 0755 /system/xbin/supolicy
chown 0.0 /system/xbin/otasurvival.sh
chmod 0755 /system/xbin/otasurvival.sh
chown 0.0 /system/lib/libsupol.so
chmod 0755 /system/lib/libsupol.so
chown 0.0 /system/bin/.ext/.su
chmod 0755 /system/bin/.ext/.su
chown 0.0 /etc/.installed_su_daemon
chmod 0755 /etc/.installed_su_daemon
chown 0.0 /etc/install-recovery.sh
chmod 0755 /etc/install-recovery.sh
chown 0.0 /etc/init.d/99SuperSUDaemon
chmod 0755 /etc/init.d/99SuperSUDaemon
daemonsu -d
reboot
  • And that's it! Your device should reboot, after which SuperSu is installed and working, and you can make use of any root apps.
@MooonWalker
Copy link

The URL " https://emui.huawei.com/en/plugin.php?id=unlock " is not reachable so it seems the above scenario is obsolete?

@FahadBinHussain
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment