Page 1 of 3

full root achieved on nsz-gs7 now!

Posted: Fri Jul 26, 2013 3:24 am
by dexter
Thanks to the guys with gtvhacker making the temp root.

i have now achieved static root, changing the /system
# pwd
pwd
/system/xbin
# ls -l
ls -l
-rwsr-xr-x root root 1062992 2013-07-23 20:06 busybox
-rwxr-xr-x root shell 70604 2008-08-01 14:00 dexdump
-rwxr-xr-x root shell 11736 2008-08-01 14:00 fw_loader
-rwxr-xr-x root shell 67736 2008-08-01 14:00 hciconfig
-rwxr-xr-x root shell 189380 2008-08-01 14:00 hcidump
-rwxr-xr-x root shell 40736 2008-08-01 14:00 hcitool
-rwxr-xr-x root shell 31432 2008-08-01 14:00 hidd
-rwxr-xr-x root shell 10360 2008-08-01 14:00 mfgbridge_trigger
-rwsr-xr-x root root 91992 2013-07-23 20:06 su


i am sorry, that i cannot provide you with the installer solution, but im sure someone can put something together to install the replacement /system filesystem here, or actually ask for permission from the guys that made it for the Acer A1-810 on xda developer forum, which is similar to this hack.

the big secret to writing the new filesystem:

1. follow gtvhacker instructions to get temp root on your box.
2. as root do a chmod 777 /dev/block/mmcblk0 ; chmod 777 /dev/block/mmcblk0p11
3. dump the filesystem: /data/local/tmp/busybox cat /dev/block/mmcblk0p11 >/mnt/media/usb.E234-1928/system.fs
4. on a linux box: mount the dumped filesystem (system.fs) with -oloop to be able to modify it.
ie. mount -oloop /tmp/system.fs /tmp/1
5. copy your busybox and su to the /system/xbin/ folder where you mounted the system.fs
6. umount your dumped filesystem from location you mounted it.
7. write back the newly modified filesystem (i renamed it now to system.with_root) .
/data/local/tmp/busybox dd if=/mnt/media/usb.E234-1928/system.with_root of=/dev/block/mmcblk0 seek=149248 bs=4096

Re: full root achieved on nsz-gs7 now!

Posted: Fri Jul 26, 2013 4:55 am
by mruno
awesome. great work, thanks!

Re: full root achieved on nsz-gs7 now!

Posted: Fri Jul 26, 2013 9:32 am
by bovoro
that´s great!!! , but im still on "command / data / local / tmp / busybox telnetd-p 8899-l sh" and get error : / data / local / tmp / busybox: not found

Re: full root achieved on nsz-gs7 now!

Posted: Fri Jul 26, 2013 10:30 am
by bovoro
I could finally access the temporary root, but when I run
/data/local/tmp/busybox dd of=/mnt/media/usb.875D-B7C8/system.fs of=mmcblk0 skip=149248 bs=4096 count=1047552

I get this error:

dd: can not open 'mmcblk0': Read-only file system

Re: full root achieved on nsz-gs7 now!

Posted: Fri Jul 26, 2013 8:19 pm
by webdude12
How did you get past the /data/local/tmp/busybox error??

Re: full root achieved on nsz-gs7 now!

Posted: Fri Jul 26, 2013 8:44 pm
by bovoro
you need to put manually busybox and give permission Dexter told me in other post:

Dexter say:
@bovoro
you need to manually copy busybox to the /data/local/tmp
and set permissions "chmod 755 busybox" on it.

I wonder if this new temp root, allow for a user to write back data to the /dev/mmcblk0p11 partition now? anyone tested?
i got a modified partition but it did not work with system priv. maybe now?

Re: full root achieved on nsz-gs7 now!

Posted: Fri Jul 26, 2013 8:59 pm
by bovoro
@ Dexter, I think some command is wrong, the resulting dump size is 3.99GB, and rewrite it in mmcblk0, all the free space on my Google TV disappears.

Re: full root achieved on nsz-gs7 now!

Posted: Fri Jul 26, 2013 11:25 pm
by dexter
bovoro wrote:@ Dexter, I think some command is wrong, the resulting dump size is 3.99GB, and rewrite it in mmcblk0, all the free space on my Google TV disappears.
i have rewritten the dump of the partition9 instruction, which is pretty much the same and works without block calculation.

Re: full root achieved on nsz-gs7 now!

Posted: Sat Jul 27, 2013 9:58 am
by bovoro
cool im root now, can we install superuser.apk ?

Re: full root achieved on nsz-gs7 now!

Posted: Sat Jul 27, 2013 10:34 am
by dexter
bovoro wrote:cool im root now, can we install superuser.apk ?
yes, i believe superSU can be installed and works. but you cannot upgrade since /system is still ro mounted.

so you might need to use the latest su command with supersu for proper functionality.
i think i tested my su command to work i posted.