[Huawei MediaPad X2] dfsteen:
All,

I've moved this to it's own thread just to keep thing separate.

In case you are uncomfortable with kingroot, or you want a less intrusive install (since we don't need any exploits to root this device - kudos Huawei!) I have built a modified version of the boot image that uses supersu by chainfire instead. This is based on the work done here http://cn.club.vmall.com/space-uid-5467988.html, so we still owe them thanks. All this does, is move the Superuser.apk package into the system partition so that it can be installed as an administrative application, add in a /sbin/su file, and copy /sbin/su into /sbin/xbin so we can use it. Here is a full diff for the 0012 version from the default boot.img supplied by Huawei:

diff: ./charger: No such file or directory
diff: ~/mediapad/dload.012/boot/filesystem/charger: No such file or directory
diff -r ./default.prop ~/mediapad/dload.012/boot/filesystem/default.prop
4c4
< ro.secure=0
---
> ro.secure=1
6,7c6,7
< ro.debuggable=1
< ro.adb.secure=0
---
> ro.debuggable=0
> ro.adb.secure=1
diff -r ./init.rc ~/mediapad/dload.012/boot/filesystem/init.rc
528,532d527
< service load_boot /sbin/load_boot
< class main
< seclabel u:r:install_recovery:s0
< oneshot
<
Only in ./sbin: load_boot
Only in ./sbin: su

load_boot contains the following:

#!/system/bin/sh

/sbin/su --auto-daemon &

if [ ! -e /system/app/Superuser.apk ];then
mount -o rw,remount /system
cp -rpf /data/local/tmp/Superuser.apk /system/app/Superuser.apk
chmod 644 /system/app/Superuser.apk
fi

if [ ! -e /system/xbin/su ];then
mount -o rw,remount /system
cp -rpf /sbin/su /system/xbin/
chmod 06755 /system/xbin/su
fi

The /sbin/su file has an md5sum:

md5sum sbin/su
cd029c6b8b7065ff8ff2860137aeff99 sbin/su

and that matches the md5sum of the su included with v2.46 of chainfires supersu ZIP file (in the link below). So from a security perspective, I think we are pretty clean.

To use this, do the following:

0) Make sure you have unlocked the bootloader first!!!

1) Download chainfires Superuser from here: https://download.chainfire.eu/696/SuperSU/UPDATE-SuperSU-v2.46.zip , and extract the Superuser.apk file from the common folder.

2) adb shell "rm -rf /data/local/tmp/*"

3) adb push <path_to>/Superuser..apk /data/local/tmp/Superuser.apk

4) adb reboot bootloader

( your device will restart)

5) fastboot flash boot <path_to>/super_boot.img

6) fastboot reboot

7) Open the supersu App and update su (otherwise you may have strange issues)

That's it! You're rooted!

This does not do any odd exploits or camera driver adjustments or anything so there shouldn't be any issues with the camera or sound, but, as always, no guarantees.

File is to big too upload here so grab it from here:

703L

b012:

https://www.dropbox.com/s/7wqs6qghphy42sl/super_boot.b012.img?dl=0

b013 - untested for now!!! Tested and works fine:

https://www.dropbox.com/s/9so1wdbofhlbcmo/super_boot.b013.img?dl=0

b015 - Tested and works fine:

https://www.dropbox.com/s/cs767z8yjyfsfku/super_boot.703L.B015.img?dl=0

b106 - Tested and works fine:

https://www.dropbox.com/s/4qvtvpemiko01ie/super_boot.703L.B106.img?dl=0

702L

b003 - Untested! - Potentially Insecure! - I got the link for the 702L image from xda, NOT from emui.com. So I can't speak to the security:

https://www.dropbox.com/s/fp1cj25m1zzqq0m/super_boot.702L.B003.img?dl=0