Android rooting - Linux port of DooMLoRD script - ICS as well as Gingerbread

Search This thread

amishxda

Senior Member
Dec 31, 2011
466
269
Update: I have now also made a Linux port for DooMLoRD's rooting of ICS phones.(Sony Xperia only)

Please see attached file: Xperia-2011-ICS-ROOT-emu-Linux.zip

Note: You need flashtool for linux. Procedure remains the same as for windows.

Original script thread: http://xdaforums.com/showthread.php?t=1601038
Rooting procedure: http://talk.sonymobile.com/thread/41119?start=0&tstart=0

Please update Superuser app as well as SU binary to the latest version after rooting is done successfully.

Update: Updated as per DooMLoRD's v4.0 script with zergRush binary of 21 Nov 2011 and with makespace which deletes Google Maps if there is not enough space.(< 6MB).

Hello

I am completely new to Android but not at all new to Linux.

I used paxchristos script (ran commands manually though) to root my Sony Ericsson Live with Walkman. (WT19i / Android 2.3.4 / Build 4.0.2.A.0.58)

Source threads used:
http://xdaforums.com/showthread.php?t=1319653
http://xdaforums.com/showthread.php?p=18615502

In an attached file, I fixed/modified/added few things in paxchristos script. Here is the detail:

1) Fixed error in symlinking su. (source/destination were same)
2) Don't delete (and recreate) /data/local/tmp/ directory unnecessarily, just delete its contents.
3) Create /data/local/tmp if it does not exist.
4) Uses dd instead of cp (because DooMLoRD's script does, dont know why!). Update: as per anantshri, dd is used because cp has been known to give errors.
5) If your system already has 'adb' then it uses system 'adb' instead of one in zip-archive.
6) Updated zip archive to contain the latest files from DooMLoRD's archive (paxchristos archive seemed old)

Please try/verify and let me know if I missed something.

Thanks.
 

Attachments

  • zergRush_automated_Linux_root.zip
    1.1 MB · Views: 17,674
  • Xperia-2011-ICS-ROOT-emu-Linux.zip
    1.1 MB · Views: 5,407
Last edited:

amishxda

Senior Member
Dec 31, 2011
466
269
Thanks, I am still getting used to this forum.

Have already found answers to many of my questions regarding Android.

One thing that shocked me is Android uses Java and not C. I would have preferred C anyday.
 

anantshri

Senior Member
Feb 22, 2011
687
320
Bangalore
anantshri.info
ohk so few things
1) yes java is used mainly in Android, However look at NDK if you are a C fan.
2) dd command is used in scripts to avoid cp related issues. coz last i remember we encountered multiple errors based on scenarios where cp used to fail but dd used to work. so dd is defacto there.
@doomLord, Correct me if i am wrong.
 

amishxda

Senior Member
Dec 31, 2011
466
269
Ah that clears dd confusion. Till now I was wondering why he chose dd? I thought may be because dd was faster for internal memory to internal memory transfer.

Since DooMLoRD is good programmer I knew there has to be a reason. And that is why I changed paxchristos script to use dd.
 
Last edited:

fhagur

New member
Jan 21, 2012
3
0
Sao Paulo
Have used the script with Sony Ericsson Xperia Mini E10a Latin America.
Script runned, ADB found the device, device has rebooted correctly but... no root after reboot. Checked with Root Checker from Market.

Anyway, great script! Should work for some models.
 

Leduck

Member
Sep 1, 2011
16
3
Curitiba
On my phone (Milestone 2 with Gingerbread 2.3.6) the root process worked, but part of the space check it returns 90% of free space, the software does not correctly identify and delete my google maps. The following screen to evaluate and correct the bug. And congratulations for the initiative, I'd have to do it by hand when I found your script ready.

---------------------------------------------------------------
Easy rooting toolkit (v4.0)
created by DooMLoRD
using exploit zergRush (Revolutionary Team)
This script has been ported by paxchristos and modified by amish
Credits go to all those involved in making this possible!
---------------------------------------------------------------
[*] This script will:
(1) root ur device using latest zergRush exploit (16 Nov)
(2) install Busybox (1.18.4)
(3) install SU files (binary: 3.0.3 and apk: 3.0.6)
(4) some checks for free space, tmp directory
(will remove Google Maps if required)
[*] Before u begin:
(1) make sure u have installed adb drivers for ur device
(2) enable 'USB DEBUGGING'
from (Menu\Settings\Applications\Development)
(3) enable 'UNKNOWN SOURCES'
from (Menu\Settings\Applications)
(4) [OPTIONAL] increase screen timeout to 10 minutes
(5) connect USB cable to PHONE and then connect to PC
(6) skip 'PC Companion Software' prompt on device
---------------------------------------------------------------
CONFIRM ALL THE ABOVE THEN
PRESS ENTER WITHIN 120 seconds TO CONTINUE OR ctrl-c to cancel

--Starting---
---Killing the adb server to make sure that there are no problems---
---Waiting for Device---
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
---Cleaning out any previous zergRush attempts---
mkdir failed for /data/local/tmp, File exists
rm failed for /data/local/tmp/*, No such file or directory
---Pushing zergRush---
531 KB/s (23060 bytes in 0.042s)
---Fixing permissions for zergRush---
---Running zergRush---
If it gets stuck here for a long time then try:
1)disconnect usb cable and reconnect it
2)toggle 'Usb Debugging' (first disable it then reenable it)

[**] Zerg rush - Android 2.2/2.3 local root
[**] (C) 2011 Revolutionary. All rights reserved.

[**] Parts of code from Gingerbreak, (C) 2010-2011 The Android Exploid Crew.

[+] Found a GingerBread ! 0x00000118
[*] Scooting ...
[*] Sending 149 zerglings ...
[*] Sending 189 zerglings ...
[+] Zerglings found a way to enter ! 0x18
[+] Overseer found a path ! 0x000151e0
[*] Sending 189 zerglings ...
[+] Zerglings caused crash (good news): 0x4011ccd4 0x0074
[*] Researching Metabolic Boost ...
[+] Speedlings on the go ! 0xafd19413 0xafd3925f
[*] Sending 181 zerglings ...

[+] Rush did it ! It's a GG, man !
[+] Killing ADB and restarting as root... enjoy!
---Waiting for Device---
---Pushing busybox---
2011 KB/s (1075144 bytes in 0.522s)
---Fixing busybox permissions---
---remounting system---
---checking free space on /system---
10 KB/s (439 bytes in 0.040s)
--- Free space on /system : 90% bytes
test: 90%: bad number
--- NOT enough free space on /system!!!
--- making free space by removing Google Maps

---copying busybox to /system/xbin---
2099+1 records in
2099+1 records out
1075144 bytes transferred in 0.084 secs (12799333 bytes/sec)
---fixing ownership and permissions---
---installing busybox---
---cleaning up---
---pushing SU binary---
546 KB/s (22228 bytes in 0.039s)
---correcting ownership and permissions for SU---
---correcting symlinks---
---Pushing Superuser app---
2160 KB/s (785801 bytes in 0.355s)
--cleaning---
---rebooting---
---All done, your Xperia has been rooted by DooMLoRD---
---This script has been ported by paxchristos and modified by amish!!---
---If have any questions, feel free to email me @ nielson.peter@gmail.com---
 
  • Like
Reactions: LordCashern

amishxda

Senior Member
Dec 31, 2011
466
269
Umm.... Freespace checking script was not developed by me. I have copied it directly from DooMLoRD script AS IS (had not tested it either). I think we dont need it anyway. It will be very rare that person rooting wud have run out of space. Person can re-install Google Maps (so no big harm done by bug)

But when I get the time I will check the DooMLoRD's script if there exist a bug.


Please click on THANKS if u liked my script :D
 
Last edited:

Leduck

Member
Sep 1, 2011
16
3
Curitiba
Your script has saved me a lot of work, because I'm tired of borrowing the notebook of my wife for flashing my phone and was looking for solutions for linux, missing root can do, I do not want to use SuperOneclick (did not want to install it just for Mono ) and go on to adapt the script DoomLord for Linux, which you did very well done. Now I can do everything on my computer with linux, what about the bug, I realized that the program was part of the original script, but I made a warning to those who wish, like me, deactivate the check room not to lose Google Maps (or have to reinstall the Market).
 

laloi

Member
Mar 1, 2007
22
0
adb drivers in linux ?

Hy ! Can I use this script to root my Galaxy Note ? And can you say me how to install adb drivers in linux, plz ?
 

amishxda

Senior Member
Dec 31, 2011
466
269
Just try it.

ADB is already there with script.

If you have fedora then u can install adb by running:

yum install android-tools
 
  • Like
Reactions: laloi

amishxda

Senior Member
Dec 31, 2011
466
269
well in linux there is nothing like drivers u can say

very few hardware require driver.

and when android itself is born from linux, linux shud already have support for it :)
 
  • Like
Reactions: laloi

laloi

Member
Mar 1, 2007
22
0
Everything went well, thank you very much! We should just specify the need to execute the file "runme-linux" as root (with "sudo") ;-).

I would not to abuse, but would it be possible to have the same thing for unroot, please ? :D
 

laloi

Member
Mar 1, 2007
22
0
Easy unroot for linux

Hy,

I used Amish translation to do the same for the DooMLoRD's Unrooting Script. I succesfully tried it with my phone, but REMEMBER YOU ARE DOING THIS AT YOUR OWN RISK (I suppose you know this song ;-))

DooMLoRD's instructions :
so here is the unrooting script to be USED ONLY AND ONLY IF U HAVE USED MY FILES (Easy Rooting Toolkit) FOR ROOTING

[ WARNING ]

if u have used any other way/solution for rooting then PLEASE DO NOT RUN THIS... you MIGHT END UP with damaged system...

(thats cause some ppl create symlinks for busybox in /system/bin/ which wipes out stock symlinks to /system/bin/toolbox and breaks/damages system)

More informations here http://xdaforums.com/showthread.php?p=18615502 and here http://xdaforums.com/showthread.php?t=1329360
 

Attachments

  • DooMLoRD_v1_UNROOTING_Linux.zip
    670.5 KB · Views: 113

amishxda

Senior Member
Dec 31, 2011
466
269
I havent unrooted but I think unrooting wud be nothing but removing busybox symlinks (and busybox itself) and removing su binary and superuser.apk.
 

amishxda

Senior Member
Dec 31, 2011
466
269
btw there is no need to run "runme-linux" as super user.

it works as normal user (recommended)
 

laloi

Member
Mar 1, 2007
22
0
btw there is no need to run "runme-linux" as super user.

it works as normal user (recommended)

If I run the script without sudo, the script block just after "* daemon started successfully *"

You can see below the console log :

Code:
---------------------------------------------------------------
                Easy rooting toolkit (v4.0)
                   created by DooMLoRD
        using exploit zergRush (Revolutionary Team)
 This script has been ported by paxchristos and modified by amish
   Credits go to all those involved in making this possible!
---------------------------------------------------------------
 [*] This script will:
     (1) root ur device using latest zergRush exploit (16 Nov)
     (2) install Busybox (1.18.4)
     (3) install SU files (binary: 3.0.3 and apk: 3.0.6)
     (4) some checks for free space, tmp directory
         (will remove Google Maps if required)
 [*] Before u begin:
     (1) make sure u have installed adb drivers for ur device
     (2) enable 'USB DEBUGGING'
           from (Menu\Settings\Applications\Development)
     (3) enable 'UNKNOWN SOURCES'
           from (Menu\Settings\Applications)
     (4) [OPTIONAL] increase screen timeout to 10 minutes
     (5) connect USB cable to PHONE and then connect to PC
     (6) skip 'PC Companion Software' prompt on device
---------------------------------------------------------------
 CONFIRM ALL THE ABOVE THEN
 PRESS ENTER WITHIN 120 seconds TO CONTINUE OR ctrl-c to cancel

--Starting---
---Killing the adb server to make sure that there are no problems---
---Waiting for Device---
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
^C [COLOR="Red"](because no reaction after 5 minutes)[/COLOR]
error: protocol fault (no status)
---Cleaning out any previous zergRush attempts---
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
error: insufficient permissions for device
error: insufficient permissions for device
---Pushing zergRush---
error: insufficient permissions for device
---Fixing permissions for zergRush---
error: insufficient permissions for device
---Running zergRush---
If it gets stuck here for a long time then try:
1)disconnect usb cable and reconnect it
2)toggle 'Usb Debugging' (first disable it then reenable it)
error: insufficient permissions for device
---Waiting for Device---
^C

If I run the same script as root (with "sudo"), the script continues without problem.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 24
    Update: I have now also made a Linux port for DooMLoRD's rooting of ICS phones.(Sony Xperia only)

    Please see attached file: Xperia-2011-ICS-ROOT-emu-Linux.zip

    Note: You need flashtool for linux. Procedure remains the same as for windows.

    Original script thread: http://xdaforums.com/showthread.php?t=1601038
    Rooting procedure: http://talk.sonymobile.com/thread/41119?start=0&tstart=0

    Please update Superuser app as well as SU binary to the latest version after rooting is done successfully.

    Update: Updated as per DooMLoRD's v4.0 script with zergRush binary of 21 Nov 2011 and with makespace which deletes Google Maps if there is not enough space.(< 6MB).

    Hello

    I am completely new to Android but not at all new to Linux.

    I used paxchristos script (ran commands manually though) to root my Sony Ericsson Live with Walkman. (WT19i / Android 2.3.4 / Build 4.0.2.A.0.58)

    Source threads used:
    http://xdaforums.com/showthread.php?t=1319653
    http://xdaforums.com/showthread.php?p=18615502

    In an attached file, I fixed/modified/added few things in paxchristos script. Here is the detail:

    1) Fixed error in symlinking su. (source/destination were same)
    2) Don't delete (and recreate) /data/local/tmp/ directory unnecessarily, just delete its contents.
    3) Create /data/local/tmp if it does not exist.
    4) Uses dd instead of cp (because DooMLoRD's script does, dont know why!). Update: as per anantshri, dd is used because cp has been known to give errors.
    5) If your system already has 'adb' then it uses system 'adb' instead of one in zip-archive.
    6) Updated zip archive to contain the latest files from DooMLoRD's archive (paxchristos archive seemed old)

    Please try/verify and let me know if I missed something.

    Thanks.
    2
    ohk so few things
    1) yes java is used mainly in Android, However look at NDK if you are a C fan.
    2) dd command is used in scripts to avoid cp related issues. coz last i remember we encountered multiple errors based on scenarios where cp used to fail but dd used to work. so dd is defacto there.
    @doomLord, Correct me if i am wrong.
    1
    Updated to match with DooMLoRD's v4 script. See update on first post for details.
    1
    On my phone (Milestone 2 with Gingerbread 2.3.6) the root process worked, but part of the space check it returns 90% of free space, the software does not correctly identify and delete my google maps. The following screen to evaluate and correct the bug. And congratulations for the initiative, I'd have to do it by hand when I found your script ready.

    ---------------------------------------------------------------
    Easy rooting toolkit (v4.0)
    created by DooMLoRD
    using exploit zergRush (Revolutionary Team)
    This script has been ported by paxchristos and modified by amish
    Credits go to all those involved in making this possible!
    ---------------------------------------------------------------
    [*] This script will:
    (1) root ur device using latest zergRush exploit (16 Nov)
    (2) install Busybox (1.18.4)
    (3) install SU files (binary: 3.0.3 and apk: 3.0.6)
    (4) some checks for free space, tmp directory
    (will remove Google Maps if required)
    [*] Before u begin:
    (1) make sure u have installed adb drivers for ur device
    (2) enable 'USB DEBUGGING'
    from (Menu\Settings\Applications\Development)
    (3) enable 'UNKNOWN SOURCES'
    from (Menu\Settings\Applications)
    (4) [OPTIONAL] increase screen timeout to 10 minutes
    (5) connect USB cable to PHONE and then connect to PC
    (6) skip 'PC Companion Software' prompt on device
    ---------------------------------------------------------------
    CONFIRM ALL THE ABOVE THEN
    PRESS ENTER WITHIN 120 seconds TO CONTINUE OR ctrl-c to cancel

    --Starting---
    ---Killing the adb server to make sure that there are no problems---
    ---Waiting for Device---
    * daemon not running. starting it now on port 5037 *
    * daemon started successfully *
    ---Cleaning out any previous zergRush attempts---
    mkdir failed for /data/local/tmp, File exists
    rm failed for /data/local/tmp/*, No such file or directory
    ---Pushing zergRush---
    531 KB/s (23060 bytes in 0.042s)
    ---Fixing permissions for zergRush---
    ---Running zergRush---
    If it gets stuck here for a long time then try:
    1)disconnect usb cable and reconnect it
    2)toggle 'Usb Debugging' (first disable it then reenable it)

    [**] Zerg rush - Android 2.2/2.3 local root
    [**] (C) 2011 Revolutionary. All rights reserved.

    [**] Parts of code from Gingerbreak, (C) 2010-2011 The Android Exploid Crew.

    [+] Found a GingerBread ! 0x00000118
    [*] Scooting ...
    [*] Sending 149 zerglings ...
    [*] Sending 189 zerglings ...
    [+] Zerglings found a way to enter ! 0x18
    [+] Overseer found a path ! 0x000151e0
    [*] Sending 189 zerglings ...
    [+] Zerglings caused crash (good news): 0x4011ccd4 0x0074
    [*] Researching Metabolic Boost ...
    [+] Speedlings on the go ! 0xafd19413 0xafd3925f
    [*] Sending 181 zerglings ...

    [+] Rush did it ! It's a GG, man !
    [+] Killing ADB and restarting as root... enjoy!
    ---Waiting for Device---
    ---Pushing busybox---
    2011 KB/s (1075144 bytes in 0.522s)
    ---Fixing busybox permissions---
    ---remounting system---
    ---checking free space on /system---
    10 KB/s (439 bytes in 0.040s)
    --- Free space on /system : 90% bytes
    test: 90%: bad number
    --- NOT enough free space on /system!!!
    --- making free space by removing Google Maps

    ---copying busybox to /system/xbin---
    2099+1 records in
    2099+1 records out
    1075144 bytes transferred in 0.084 secs (12799333 bytes/sec)
    ---fixing ownership and permissions---
    ---installing busybox---
    ---cleaning up---
    ---pushing SU binary---
    546 KB/s (22228 bytes in 0.039s)
    ---correcting ownership and permissions for SU---
    ---correcting symlinks---
    ---Pushing Superuser app---
    2160 KB/s (785801 bytes in 0.355s)
    --cleaning---
    ---rebooting---
    ---All done, your Xperia has been rooted by DooMLoRD---
    ---This script has been ported by paxchristos and modified by amish!!---
    ---If have any questions, feel free to email me @ nielson.peter@gmail.com---
    1
    Just try it.

    ADB is already there with script.

    If you have fedora then u can install adb by running:

    yum install android-tools