If this is your first time at the forum you may need to REGISTER to post as well as access all site features. CLICK THIS BAR FOR QUICK AND EASY REGISTRATION
Init ver(0.1) : Worked only for OTA1 and only if the /system partition was automatically mounted in recoveryUpdate (0.2): Using signed update to get /system partition mounted, worked for OTA1, not for OTA2 since ADBD is without ro.kernel.qemu mode.Update (0.3): Remove dependency on ro.kernel.qemu and use "command injection" instead, works for both OTA1, and OTA2 (has problems with installing root tools after rooting)Update (0.4): Do not use "mv" across file systems, and get root tools (su, Superuser.apk) installed properlyPlease report if you have issues.
/system/bin/mount
/system/bin/cat /system/etc/install-recovery.sh
/system/bin/ls -l /cache
/system/bin/ls -l /cache/recovery
/system/bin/ls -l /tmp/recovery.log
ls -l /system/xbin/suif it is there, check:ls -l /system/app/Superuser.apkif ok:ls -l /system/xbin/busybox
cat /data/local/pwn/su > /system/xbin/suln -s /system/xbin/su /system/bin/suchown root /system/xbin/suchmod 6755 /system/xbin/sucat /data/local/pwn/Superuser.apk > /system/app/Superuser.apkcat /data/local/pwn/busybox > /system/xbin/busyboxchmod 755 /system/xbin/busybox/system/xbin/busybox --install /system/xbin/cat /data/local/pwn-bak/install-recovery.sh.orig > /system/etc/install-recovery.sh
adb push Superuser.apk /data/local/pwn/Superuser.apkadb push busybox /data/local/pwn/busyboxadb push su /data/local/pwn/su
cat /data/local/pwn/su > /system/xbin/suln -s /system/xbin/su /system/bin/su...............
The exploit uses the following things:1. If you enable USB Debuging, the setting is stored in persistent property, and the init.rc in recovery starts adb if persist.service.adb.enable=12. if you wipe cache (in recovery), it is immediately recreated and /cache/recovery with rwxrwxrwx perms. Also there is file log file created there, etc ... this is all clear from the scripts ....Here is the part that needs new idea:In OTA1 and some OTA2 (WE confirmed for now), the /system partition is not mounted properly in recovery during init. And even adb is running, i can not get shell to run a command (ln, rm, etc). The only thing i can do is pull, push (... things that do not need /system/bin/sh).However, if you select update package, the partition is mounted properly (by the update-binary), but this would work only when you install update. Does somebody have idea how to fix this so that we can root those guys too with this exploit?Note: On next normal boot (after cache wipe in recovery), during init (before adb is started) the permissions of /cache are fixed, so that shell user does not have access to it.
is it possible to create one, or a series, of "update.zip" files for the commands in your script?
It WORKS!, Root for everybody (even those stuck on OTA1) !!!instructions updated.1. Just get from http://download.lenovo.com/slates/think/tablet1/ your current update2. rename it to update.zip and put it on external sd card (not the internal one), 3. In recovery, before wiping out the cache, go to apply update, and try to apply it. It will fail but will mount the /system partition(i have to update the script to use absolute paths to the commands: instead adb shell 'ln ... ' use adb shell '/system/bin/ln ...', etc since in some cases (OTA1) the system PATH is not correct)4. run the modified exploit script
8. Waiting for device to restart...Installing root tools...remount failed: Operation not permittedrm failed for /system/xbin/su, Read-only file systemrm failed for /system/bin/su, Read-only file systemError: Could not access the Package Manager. Is the system running?rm failed for /system/app/Superuser.apk, Read-only file systemfailed to copy 'su' to '/system/xbin/su': Read-only file systemlink failed Read-only file systemUnable to chmod /system/xbin/su: No such file or directoryUnable to chmod /system/xbin/su: No such file or directoryfailed to copy 'Superuser.apk' to '/system/app/Superuser.apk': Read-only file systemfailed to copy 'busybox' to '/system/xbin/busybox': Read-only file systemUnable to chmod /system/xbin/busybox: Read-only file system--install: applet not found9. Cleaning up...rm failed for /data/local.prop, Permission deniedRebooting...Waiting for device to restart...