[ROOT]Windows/Linux file to root all Firmwares(Should work on all versions)

Search This thread

fiddy619

Senior Member
Nov 2, 2010
781
324
San Diego
Here is a quick batch file that will root your phone. This has been tested on the latest Telus Firmware, and the latest Sprint Firmware, so I assume that it will work on them all... This really only copies some files to your phone, and changes some permissions to the files it copies, so it is essentially harmless if it fails, the only thing that would happen is you wouldn't get root.

Quick disclaimer tho, I'm not responsible if you phone somehow freaks out, and can not be used anymore, but the likeliness of this happening is about as likely as you winning the lottery, so if it does, you might want to buy a lottery ticket.

Directions

1. Unzip the zip file
2. Make sure USB Debugging is on, and you are in Charge only Mode
3. Run the CurrentRoot.bat, wait for the prompt. (Can now be run as admin if you wish, Still works running as regular user tho. Thanks robisodd)
4. Change to MTP Mode
5. Just ignore when your computer asks how to view files on your device.
6. Press enter in the CMD prompt to continue.
7. Done.

New Linux Shell Scrip added for linux users... Thanks Shelnutt2...

Thanks:
jcase
giantpune
shelnutt2
robisodd
 

Attachments

  • Root-Universal-linux.zip
    1.2 MB · Views: 24,875
  • ZV9-ZVB-Universal-Root.zip
    1.9 MB · Views: 69,560
Last edited:

skdubg

Senior Member
Feb 9, 2010
1,134
328
AW: [ROOT]Windows batch file to root all Firmwares(Should work on all versions)

thank you for file
 
  • Like
Reactions: jkgintx

SharkbotJR

Senior Member
Jul 7, 2011
50
11
winnipeg
Re: [ROOT]Windows batch file to root all Firmwares(Should work on all versions)

I like this and I like you. ;)

Sent from my LG-E973 using xda app-developers app
 

benem3000

Senior Member
Mar 25, 2011
151
14
Madera
Confirming this works on latest At&t version (E970) on android 4.0.4 software version E97011c. Tried others but this was only one that I could get to work thank you! :)
 

mellospace

Senior Member
Aug 30, 2008
72
3
I rooted sprint zv9 optimus g using this method a few weeks ago. How do i install the official sprint jelly bean update without unrooting the phone? I still havent being prompted to install the update but I would like to do it manually and keep root. Thanks in advance to anyone who can help me.
 
Last edited:

rxxt

Senior Member
Aug 21, 2010
78
9
Copenhagen
'Root-Universal-linux.zip' fails when I try to extract it. I can only get the 'Root.sh' out, the rest of the file is broken. Redownload did not help.!
Will you maybe try to repack it, possibly in 7z?
 
Last edited:

rxxt

Senior Member
Aug 21, 2010
78
9
Copenhagen
On all the program on Linux I have try, I get 'Unsupported compression method'. I just go to someone having a windows pc and the programs there also get this message. But if I use windows own unzip it works! So now I can move on...
But I never try this before, how have you create this zip file?



all fine here.
zip is not corrupt

What do you use to extract it?
 
Last edited:

fiddy619

Senior Member
Nov 2, 2010
781
324
San Diego
'Root-Universal-linux.zip' fails when I try to extract it. I can only get the 'Root.sh' out, the rest of the file is broken. Redownload did not help.!
Will you maybe try to repack it, possibly in 7z?

I have updated OP, i've used 7zip now to make .zip archive. Hopefully it will work now, if not i will make a .7z file.
 
Last edited:
  • Like
Reactions: rxxt

rxxt

Senior Member
Aug 21, 2010
78
9
Copenhagen
I have updated OP, i've used 7zip now to make .zip archive. Hopefully it will work now, if not i will make a .7z file.

Super, the new zip file works!!

But I had to root my E975 10b with the windows version (which worked fine), because I get this problem on Linux (and I not had the patience to find a solution):

Code:
Press Enter after making the change.

uid=2000(shell) gid=2000(shell) groups=1003(graphics),1004(input),1007(log),1009(mount),1011(adb),1015(sdcard_rw),3001(net_bt_admin),3002(net_bt),3003(inet),3006(net_bw_stats)


If uid=0(root), gid=0(root) is displayed

Press Enter to Continue

;)
 

bhaismachine

Senior Member
Feb 14, 2011
294
133
Dallas
The Linux script gives following error :

Code:
./Root.sh: line 2: $'echo\r': command not found
./Root.sh: line 3: syntax error near unexpected token `$'{\r''
'/Root.sh: line 3: `function pause(){

After fixing the small syntax error in the file I get following problem :

Code:
uid=2000(shell) gid=2000(shell) groups=1003(graphics),1004(input),1007(log),1009(mount),1011(adb),1015(sdcard_rw),3001(net_bt_admin),3002(net_bt),3003(inet),3006(net_bw_stats)

If uid=0(root), gid=0(root) is displayed
 
Last edited:

fiddy619

Senior Member
Nov 2, 2010
781
324
San Diego
Super, the new zip file works!!

But I had to root my E975 10b with the windows version (which worked fine), because I get this problem on Linux (and I not had the patience to find a solution):

Code:
Press Enter after making the change.

uid=2000(shell) gid=2000(shell) groups=1003(graphics),1004(input),1007(log),1009(mount),1011(adb),1015(sdcard_rw),3001(net_bt_admin),3002(net_bt),3003(inet),3006(net_bw_stats)


If uid=0(root), gid=0(root) is displayed

Press Enter to Continue

;)

The Linux script gives following error :

Code:
./Root.sh: line 2: $'echo\r': command not found
./Root.sh: line 3: syntax error near unexpected token `$'{\r''
'/Root.sh: line 3: `function pause(){

After fixing the small syntax error in the file I get following problem :

Code:
uid=2000(shell) gid=2000(shell) groups=1003(graphics),1004(input),1007(log),1009(mount),1011(adb),1015(sdcard_rw),3001(net_bt_admin),3002(net_bt),3003(inet),3006(net_bw_stats)

If uid=0(root), gid=0(root) is displayed

I will look into this, it looks like its not getting root shell, so, i'm guessing the initial exploit isn't working, I will fix and repost.

**EDIT**

I have updated the shell script, so if someone could please test that is using Linux, i would appreciate it. :)
 
Last edited:

rxxt

Senior Member
Aug 21, 2010
78
9
Copenhagen
The Linux script gives following error :

Code:
./Root.sh: line 2: $'echo\r': command not found
./Root.sh: line 3: syntax error near unexpected token `$'{\r''
'/Root.sh: line 3: `function pause(){


Yes, it's because it need to be converted to UNIX format, I did it by run this:

Code:
dos2unix Root.sh


EDIT:
I just try the new script, first I have to do Root.sh executable, then I again need to convert it to UNIX by 'dos2unix'.
And now there is a new problem in line 23:
Code:
Device found

Beginning Root Process
Root.sh: line 23: /sdcard/G_security: No such file or directory

Now change from Charge Only to MTP
No need to disconnect USB
Press Enter after making the change.


uid=2000(shell) gid=2000(shell) groups=1003(graphics),1004(input),1007(log),1009(mount),1011(adb),1015(sdcard_rw),3001(net_bt_admin),3002(net_bt),3003(inet),3006(net_bw_stats)

If uid=0(root), gid=0(root) is displayed

But my device is already rooted, don't know if that affect anything..?
 
Last edited:
  • Like
Reactions: fiddy619

fiddy619

Senior Member
Nov 2, 2010
781
324
San Diego
Yes, it's because it need to be converted to UNIX format, I did it by run this:

Code:
dos2unix Root.sh


EDIT:
I just try the new script, first I have to do Root.sh executable, then I again need to convert it to UNIX by 'dos2unix'.
And now there is a new problem in line 23:
Code:
Device found

Beginning Root Process
Root.sh: line 23: /sdcard/G_security: No such file or directory

Now change from Charge Only to MTP
No need to disconnect USB
Press Enter after making the change.


uid=2000(shell) gid=2000(shell) groups=1003(graphics),1004(input),1007(log),1009(mount),1011(adb),1015(sdcard_rw),3001(net_bt_admin),3002(net_bt),3003(inet),3006(net_bw_stats)

If uid=0(root), gid=0(root) is displayed

But my device is already rooted, don't know if that affect anything..?

It wont affect anything, however, It does still need to be fixed... Thanks for testing, i will fix it...


**EDIT**

OK, fixed again hopefully... this time hopefully it works. If someone could test again, i would appreciate it. Thanks
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 139
    Here is a quick batch file that will root your phone. This has been tested on the latest Telus Firmware, and the latest Sprint Firmware, so I assume that it will work on them all... This really only copies some files to your phone, and changes some permissions to the files it copies, so it is essentially harmless if it fails, the only thing that would happen is you wouldn't get root.

    Quick disclaimer tho, I'm not responsible if you phone somehow freaks out, and can not be used anymore, but the likeliness of this happening is about as likely as you winning the lottery, so if it does, you might want to buy a lottery ticket.

    Directions

    1. Unzip the zip file
    2. Make sure USB Debugging is on, and you are in Charge only Mode
    3. Run the CurrentRoot.bat, wait for the prompt. (Can now be run as admin if you wish, Still works running as regular user tho. Thanks robisodd)
    4. Change to MTP Mode
    5. Just ignore when your computer asks how to view files on your device.
    6. Press enter in the CMD prompt to continue.
    7. Done.

    New Linux Shell Scrip added for linux users... Thanks Shelnutt2...

    Thanks:
    jcase
    giantpune
    shelnutt2
    robisodd
    2
    Dear mate,
    Thank you very much for your awesome root method. It is Very easy & efficient. May I ask a question, If I set phone's factory default setting, Root & SuperSU will lost? I am on v10f Singapore Rom which latest version here. Thanks.

    Sent from my HUAWEI MediaPad using xda premium

    Not 100% sure, but i do think so. But it may just wipe data, and if that is the case, then you should actually keep root. If however, it does do a factory reset, then it is very likely that you will have to re-root. But if that is the case, just re-run the .bat/.sh file, and your all good... lol
    1
    AW: [ROOT]Windows batch file to root all Firmwares(Should work on all versions)

    thank you for file
    1
    'Root-Universal-linux.zip' fails when I try to extract it. I can only get the 'Root.sh' out, the rest of the file is broken. Redownload did not help.!
    Will you maybe try to repack it, possibly in 7z?

    I have updated OP, i've used 7zip now to make .zip archive. Hopefully it will work now, if not i will make a .7z file.
    1
    Any confirmation that this works on LS-970?


    Went ahead and did it...confirmed!!