[Miscellaneous Android Development] nikagl:
Hi all,

*Q&A Thread is here*

Automatic process:

Please use the root from scratch method (only on UNIX!) from the Acer Iconia Toolkit thread

Manual process:

I have succeeded to root Acer Liquid S1 (S510 / A10). In the Acer Iconia Toolkit thread [MENTION=5737085]Optimissimus99[/MENTION] mentioned to use the MTK Logger when using a Kitkat ROM. Using [MENTION=1829889]vache[/MENTION]'s S1 root sources I figured out how root was done with JB using the Network Utility, so I tried doing the same steps using the MTK Logger.

Requirements:

Acer Liquid S1 (S510 / A10)

Being able to follow procedure to the step

Have an Ubuntu installation (I used 14.10)

Post screenshots, clear steps and results when asking for help

Getting root can be achieved with these steps:

Copy or download a busybox file (I used the one from the Iconia Toolkit) to your /sdcard

Using MTK Logger Util

Open engineering mode (for instance with MTK Engineering Mode)

Swipe to Log and Debugging screen

Open MTKLogger

Click on Settings

Click Run Command and execute the following commands:

cp /sdcard/busybox /data/local/tmp

chmod 755 /data/local/tmp/busybox

/data/local/tmp/busybox telnetd -l /system/bin/sh -p 1234

Using Terminal

ls -la /data/local/tmp/busybox

This should show correct execute permissions on busybox

/data/local/tmp/busybox telnet 127.0.0.1 1234

This should open Telnet correctly

cat /proc/dumchar_info | grep "android"

This should show the size of your system image. In my case:

"android 0x0000000040000000 0x0000000005d00000 2 /dev/block/mmcblk0p5”

so quickly calculating (using the code from Vache’s S1 Root tool)

l_seekBlocks = systemEndAddr / 4096; var endA = addrs[2]; endAddr = Convert.ToInt64(endA, 16); 0x0000000005d00000 97517568/4096 = 23808

l_countBlocks = systemStartAddr / 4096; var startA = addrs[1]; startAddr = Convert.ToInt64(startA, 16); 0x0000000040000000 1073741824/4096 = 262144

dd if=/dev/block/mmcblk0 bs=4096 skip=23808 count=262144 | gzip >/storage/sdcard1/system.img.gz

This should create your gzipped ROM dump on the external sdcard.

Within Ubuntu

Transfer the system.img.gz file to Ubuntu

Transfer extracted SuperSU (I used UPDATE-SuperSU-v2.40.zip)

Run the following code:

gunzip system.img.gz
sudo mkdir /media/iconia
sudo mount -o loop system.img /media/iconia
sudo mv /media/iconia/etc/install-recovery.sh /media/iconia/etc/install-recovery_original.sh
sudo mkdir /media/iconia/bin/.ext
sudo chmod 0777 /media/iconia/bin/.ext
sudo cp UPDATE-SuperSU-v2.40/common/Superuser.apk /media/iconia/app/Superuser.apk
sudo cp UPDATE-SuperSU-v2.40/common/install-recovery.sh /media/iconia/etc/install-recovery.sh
sudo cp UPDATE-SuperSU-v2.40/armv7/su /media/iconia/xbin/daemonsu
sudo cp UPDATE-SuperSU-v2.40/armv7/su /media/iconia/xbin/sugote
sudo cp UPDATE-SuperSU-v2.40/armv7/su /media/iconia/xbin/su
sudo cp UPDATE-SuperSU-v2.40/armv7/su /media/iconia/bin/.ext/.su
sudo cp /media/iconia/bin/mksh /media/iconia/xbin/sugote-mksh
sudo cp UPDATE-SuperSU-v2.40/armv7/supolicy /media/iconia/xbin/supolicy
sudo cp UPDATE-SuperSU-v2.40/armv7/libsupol.so /media/iconia/lib/libsupol.so
sudo chmod 0644 /media/iconia/app/Superuser.apk
sudo chmod 0755 /media/iconia/etc/install-recovery.sh
sudo chmod 0755 /media/iconia/xbin/daemonsu
sudo chmod 0755 /media/iconia/xbin/su
sudo chmod 0755 /media/iconia/bin/.ext/.su
sudo chmod 0755 /media/iconia/xbin/sugote
sudo chmod 0755 /media/iconia/xbin/sugote-mksh
sudo chmod 0755 /media/iconia/xbin/supolicy
sudo chmod 0644 /media/iconia/lib/libsupol.so
sudo ln -s /media/iconia/etc/install-recovery.sh /media/iconia/bin/install-recovery.sh
sudo umount /media/iconia
sudo rm -rf /media/iconia
mv system.img systemrooted.img
gzip systemrooted.img

Check for errors - if there is any, fix them :)

Next steps is to reload the system image with the following command:

copy systemrooted.img.gz to device

start mtklogger (see above 2.3 / 2.4)

start telnetdaemon (see above 2.5.3)

start terminal (see 3)

start telnet (see 3.2)

Run the command:

/data/local/tmp/busybox zcat /storage/sdcard1/systemrooted.img.gz | dd of=/dev/block/mmcblk0 bs=4096 seek=23808 count=262144

As I do not have much time, I am not sure when I can do this... will post progress in this thread.

Next steps in the development:

Add Xposed Framework

Thanks go to [MENTION=1829889]vache[/MENTION] [MENTION=2205551]paugustin[/MENTION] [MENTION=4493088]Shreps[/MENTION] [MENTION=5737085]Optimissimus99[/MENTION] for providing some of the above info and helping me with this device!

Regards,

Nika.