ZTE Grand X 4 - Rooting Progress

This thread is made in an effort to root the ZTE Grand X 4 (Z957). At this point I've made some progress by using the Dirty Cow exploit to access a root shell via ADB, but have been unable to install su to the system partition.

Notes: stock rom, no custom recovery.

Exploit method:
Follow the instructions posted by Arinerron on GitHub regarding CVE-2016-5195 (under 10 posts, cannot share direct link)
When successful you will see "root@financier:/ #" as your shell prompt, however the session will hang after any command. That said, /system/run-as is still updated allowing you to do the following:

$ adb shell
shell@financier:/ $ run-as
uid run-as 2000
uid 0
0 u:r:runas:s0
context 0 u:r:shell:s0
shell@financier:/ # id
uid=0(root) gid=0(root) groups=0(root),1004(input),1007(log),1011(adb),101 5(sdcard_rw),1028(sdcard_r),3001(net_bt_admin),300 2(net_bt),3003(inet),3006(net_bw_stats) context=u:r:shell:s0

you have access to the android system as root within this shell, but this is where I'm getting stuck. I'm not able to find a way to mount the system partition as read/write, and as such unable to install su. Also note that you will need to run the exploit again anytime you reboot the device. I have tried the following methods:

$ adb shell cp /sdcard/Download/su /system/bin/su
cp: /system/bin/su: Read-only file system

shell@financier:/ # mount -o rw,remount /system
mount: Permission denied

adb reboot disemmcwp
#still unable to remount the system partition

At this point I'll share what I've been able to do so far and see if anyone else has ideas for a next step.

Comments

Popular posts from this blog

[Q] Expect to be able to root the Tab 4 ?

Security Question