• Announcements

    • Reminder - MoDaCo position on illegal content   07/30/15

      ILLEGAL CONTENT I'd like to just reaffirm MoDaCo's position regarding piracy and illegal content in the light of some recent questions / postings. Posts will be censored by myself or my moderation team if the contain or link to: Illegal / pirated / cracked software or sites that host such softwareNintendo emulators / ROMs or sites hosting them (in light of Nintendo's legal stance)CUSTOM ROMS You may discuss and post links to custom device ROMs on MoDaCo, provided the following rules are adhered to: ROMs must not contain any illegal 3rd party software (this includes trial versions included without permission)ROMs must give full credit to the original authorISSUES If you have any issues with this policy, please contact PaulOBrien directly via PM.
    • Reminder: Selling items on the forum directly is not allowed   07/30/15

      Please note that selling items on the forum directly is not allowed by the forum rules. There is a forum for eBay auctions whereby you can list the items on eBay and link to them there. This is the ONLY forum for this type of activity. You may also advertise links to the eBay forum in your signature. Please note that selling directly in contravention of these rules will result in a warning / suspension / ban.

How to root gt540 2.1

31 posts in this topic

Posted

please i want to know how i can root my gt540 v20b

i read this but i dont understand any thing

adb push rageagainstthecage-arm5.bin /data/local/tmp/rageagainstthecage

adb push su /data/local/tmp/

adb push busybox /data/local/tmp/

adb shell

$chmod 4755 /data/local/tmp/rageagainstthecage

$chmod 4755 /data/local/tmp/busybox

$ cd /data/local/tmp

$ ./rageagainstthecage

adb shell

# mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system

# mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 / (maybe this not neccesseary)

# cd /data/local/tmp

# ./busybox cp su /system/bin

# ./busybox cp busybox /system/bin

# cd /system/bin

#chmod 4755 su

#chmod 4755 busybox

#su

#id

the id should be 0 and gid should be 0

#busybox --install /system/bin

#cd /system/xbin

#ln -s /system/bin/su su

#cd /system/bin

#cat sh > su

#reboot

after the phone reboot

adb shell

$su

#

Now you should be able to install any app that require root.

I left out to push the Superuser.apk to /system/app beacuse the app2sd script or the vnc server install does not opened it but they works

0

Share this post


Link to post
Share on other sites

Posted

please i want to know how i can root my gt540 v20b

i read this but i dont understand any thing

Haha me and u both buddy.

0

Share this post


Link to post
Share on other sites

Posted

Haha me and u both buddy.

id wait for a simpler way if u dont understand all the terminal parts etc. Im gonna wait itl come easy eventually

0

Share this post


Link to post
Share on other sites

Posted (edited)

Big thanks to joestone for figuring out how to root 2.1. B)

Sorry if my English is not good. :lol:

First, you need to install USB drivers to connect via ADB.

http://www.mediafire.com/download.php?yda4dtfc64n3gcb (run all the .exe files)

Active USB Debugging Mode on your phone.

Settings \ Applications \ Development \ USB Debugging

Use USB cable to connect your phone to your computer.

Download and extract this.

http://www.mediafire.com/?kttu0932adgmtgd

Copy C:\Windows\System32\cmd.exe to the folder that you extract the .zip file. (the path to cmd.exe may be different depend on your Windows Version)

Run cmd.exe

Test if you installed USB drivers successfully.

Type adb shell

91324458.png

If it says "error device not found", try to restart your computer, reinstall the USB drivers.

-------------------------------------------------------------------------------------------------------------------------------

Method 1

Type:

adb push rageagainstthecage-arm5.bin /data/local/tmp/rageagainstthecage

adb shell chmod 4755 /data/local/tmp/rageagainstthecage

adb shell /data/local/tmp/rageagainstthecage

Wait untill ADB connection is reset.

25673593.png

Then type:

adb shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system

adb push su /system/xbin/su

adb shell chmod 4755 /system/xbin/su

adb push su /system/bin/su

adb shell chmod 4755 /system/bin/su

adb shell rm /data/local/tmp/rageagainstthecage

47057790.png

Go to market and install Superuser, or you can just download it here and install. I recommend you to download the lastest version from market.

Now you can reboot your phone. Type

adb shell reboot

Method 2

I also make root.bat in case you don't want to type those commands.

Run root.bat

Go to market and install Superuser, or you can just download it here and install. I recommend you to download the lastest version from market.

Reboot your phone.

-------------------------------------------------------------------------------------------------------------------------------

Test if Superuser worked or not:

adb shell

$ su

Now Superuser Request will appear on your phone, chose Allow.

#id

uid=0(root) gid=0(root)

su1.png

87333967.png

To make Titanium work, press Promblem? button and let it download busybox (about 1MB)

titan.png

Now you can uninstall stock apps

titan2.png

-------------------------------------------------------------------------------------------------------------------------------

If you want to unroot your phone, just reflash it with 2.1 ROM.

Installed apps, contacts, SMS, settings... will NOT be lost.

It just removes su from /system/bin and /system/xbin. All stock apps will be back too.

If you are failed to reflash in Normal Mode, try to do it in Download Mode.

-------------------------------------------------------------------------------------------------------------------------------

In case you want to unroot without reflashing, type:

su

mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system

rm /system/bin/su

rm /system/xbin/su

reboot

90167964.png

This method will not bring uninstalled stock apps back.

Edited by doubletakeit
0

Share this post


Link to post
Share on other sites

Posted

I found I had to restart the adb server after running rageagainstthecage as it suggested.

adb kill-server

then

adb shell mount... etc etc

do you need to mount the file system back to read only once done?

ie

adb shell mount -o remount,ro -t yaffs2 /dev/block/mtdblock4 /system

0

Share this post


Link to post
Share on other sites

Posted

It just auto reset ADB connection for me, I don't have to restart adb server.

I also don't mount file system back ro mode. Is it OK if leave file system in rw mode?

0

Share this post


Link to post
Share on other sites

Posted

I think it OK. I'd made file system writable when using 1.6, and it's fine :lol:.

0

Share this post


Link to post
Share on other sites

Posted

I think file system is mounted back to ro after rebooting. It doesn't allow me to edit file system.

adb shell

$ rm /system/bin/su

rm /system/bin/su

rm failed for /system/bin/su, Read-only file system

$

0

Share this post


Link to post
Share on other sites

Posted

doubletakeit Be careful with this commands dude :lol: If you want to see how your phone mount partitions use busybox, just type busybox mount and this will show you the information who you need.

Btw it's true really partitions are mount r/o when you reboot the phone.

0

Share this post


Link to post
Share on other sites

Posted

thank you doubletakeit its works B) you are great :lol:

0

Share this post


Link to post
Share on other sites

Posted (edited)

Now you can uninstall stock apps

Seeing as they changed the camera performance, I upped the original camera app from 1.6 here!.

Wondering if replacing the new one with this one will re-enable .mp4 recording?

I'm at work, so won't be rooting till later, if someone want's to try

Edited by RottenFoxBreath
0

Share this post


Link to post
Share on other sites

Posted

If you want to unroot your phone, just reflash it with 2.1 ROM.

Installed apps, contacts, SMS, settings... will NOT be lost.

It just remove su from /system/bin and /system/xbin. All stock apps will be back too.

If you are failed to reflash in Normal Mode, try to do it in Download Mode.

0

Share this post


Link to post
Share on other sites

Posted

Seeing as they changed the camera performance, I upped the original camera app from 1.6 here!.

Wondering if replacing the new one with this one will re-enable .mp4 recording?

I'm at work, so won't be rooting till later, if someone want's to try

It doesn't work for me. It was forceclosed. :lol:

0

Share this post


Link to post
Share on other sites

Posted (edited)

It works for me, too :lol:) /Method 2/

Edited by stbozhanov
0

Share this post


Link to post
Share on other sites

Posted

:lol: I rooted my phone successfully using doubletakeit method, however once in a while it would pop up an error saying

"There was an error processing your request. Try again later."

Anyone else having the same problem?

0

Share this post


Link to post
Share on other sites

Posted

:lol: I rooted my phone successfully using doubletakeit method, however once in a while it would pop up an error saying

"There was an error processing your request. Try again later."

Anyone else having the same problem?

Is that error on your computer or on your phone?

0

Share this post


Link to post
Share on other sites

Posted

Big thanks to joestone for figuring out how to root 2.1. B)

Sorry if my English is not good. :lol:

First, you need to install USB drivers to connect via ADB.

http://www.mediafire.com/download.php?yda4dtfc64n3gcb (run all the .exe files)

Active USB Debugging Mode on your phone.

Settings \ Applications \ Development \ USB Debugging

Use USB cable to connect your phone to your computer.

Download and extract this.

http://www.mediafire.com/?32okt277fofgckd

Copy C:\Windows\System32\cmd.exe to the folder that you extract the .zip file. (the path to cmd.exe may be different depend on your Windows Version)

Run cmd.exe

Test if you install USB drivers successfully.

Type adb shell

91324458.png

If it says "error device not found", try to restart your computer, reinstall the USB drivers.

-------------------------------------------------------------------------------------------------------------------------------

Method 1

Type

adb push rageagainstthecage-arm5.bin /data/local/tmp/rageagainstthecage

adb shell chmod 4755 /data/local/tmp/rageagainstthecage

adb shell /data/local/tmp/rageagainstthecage

Wait untill ADB connection is reset.

25673593.png

Then type

adb shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system

adb push su /system/xbin/su

adb shell chmod 4755 /system/xbin/su

adb push su /system/bin/su

adb shell chmod 4755 /system/bin/su

47057790.png

Go to market and install Superuser, or you can just download it here and install. I recommend you to download the lastest version from market.

Now you can reboot your phone. Type

adb shell reboot

Method 2

I also make root1.bat and root2.bat in case you don't want to type those commands.

Run root1.bat and wait untill ADB connection is reset.

Run root2.bat.

Go to market and install Superuser, or you can just download it here and install. I recommend you to download the lastest version from market.

Reboot your phone.

-------------------------------------------------------------------------------------------------------------------------------

Test if Superuser works or not:

adb shell

$ su

Now Superuser Request will appear on your phone, chose Allow.

#id

uid=0(root) gid=0(root)

su1.png

87333967.png

To make Titanium work, press Promblem? button and let it download busybox (about 1MB)

titan.png

Now you can uninstall stock apps

titan2.png

-------------------------------------------------------------------------------------------------------------------------------

If you want to unroot your phone, just reflash it with 2.1 ROM.

Installed apps, contacts, SMS, settings... will NOT be lost.

It just remove su from /system/bin and /system/xbin. All stock apps will be back too.

If you are failed to reflash in Normal Mode, try to do it in Download Mode.

You can make 1 script from 2. Just push adb wait-for-device after rageagainstthecage and you can follow with the content of the second script . This case you need to push the Superuser.apk and chmod it from the script according to original process.

You can make an unroot script (bat) with the following :

create an sh script with the following:

su

mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system

rm /system/su

rm /system/xbin/su

rm /system/app/Superuser.apk

then copy it to the /data/local/tmp with adb push

run this sh script with adb shell

then remove the sh with adb shell rm /data/local/tmp/unroot.sh

after then reboot

adb shell reboot

Flashing is always a dangerous process . Failure in flashing can brick the phone . I prefer the unroot method.

0

Share this post


Link to post
Share on other sites

Posted

Is that error on your computer or on your phone?

on the phone.

0

Share this post


Link to post
Share on other sites

Posted (edited)

You can make 1 script from 2. Just push adb wait-for-device after rageagainstthecage and you can follow with the content of the second script . This case you need to push the Superuser.apk and chmod it from the script according to original process.

You can make an unroot script (bat) with the following :

create an sh script with the following:

su

mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system

rm /system/su

rm /system/xbin/su

rm /system/app/Superuser.apk

then copy it to the /data/local/tmp with adb push

run this sh script with adb shell

then remove the sh with adb shell rm /data/local/tmp/unroot.sh

after then reboot

adb shell reboot

Flashing is always a dangerous process . Failure in flashing can brick the phone . I prefer the unroot method.

Thanks for the tip.

What is the different between pushing superuser.apk to /system/app and installing it from market?

Edited by doubletakeit
0

Share this post


Link to post
Share on other sites

Posted (edited)

Thanks for the tip.

What is the different between pushing superuser.apk to /system/app and installing it from market?

I think when you install from market it will not installed to the system/app folder and after a factory reset there is no superuser app. (I didn't try , my theory is working after factory reset)

In my idea the rooting is done in 1 click (type). For example the user extract the zip to c:\

cd to the folder and type root and pressing enter.Or simply put the phone to usb debug mode double click to root.bat and the phone is rooted and the same if unroot . The script is doing everything including the superuser app. This works if there is no net on the phone.

This is the idea behind the unroot , the user type unroot and the phone unrooting itself and after restart there is no superuser app , no su .The phone is on the factory rom again without modifications.

According to the 1 click method manual is simple because there is a DOS screen where the user starts the script , there is a screen , where the phone opens the superuser app and that's all . Your manual is great , I thought my manual in the other topic (screenshot from dos window) is enuogh for everybody, but ...

Will you do the script ?

Edited by joestone
0

Share this post


Link to post
Share on other sites

Posted (edited)

I think when you install from market it will not installed to the system/app folder and after a factory reset there is no superuser app. (I didn't try , my theory is working after factory reset)

In my idea the rooting is done in 1 click (type). For example the user extract the zip to c:\

cd to the folder and type root and pressing enter.Or simply put the phone to usb debug mode double click to root.bat and the phone is rooted and the same if unroot . The script is doing everything including the superuser app. This works if there is no net on the phone.

This is the idea behind the unroot , the user type unroot and the phone unrooting itself and after restart there is no superuser app , no su .The phone is on the factory rom again without modifications.

According to the 1 click method manual is simple because there is a DOS screen where the user starts the script , there is a screen , where the phone opens the superuser app and that's all . Your manual is great , I thought my manual in the other topic (screenshot from dos window) is enuogh for everybody, but ...

Will you do the script ?

I can't make unroot.sh run

90073211.png

unroot.bat

adb push unroot.sh /data/local/tmp/unroot.sh

adb shell chmod 4755 /data/local/tmp/unroot.sh

adb shell /data/local/tmp/unroot.sh

adb shell rm /data/local/tmp/unroot.sh
unroot.sh
su

mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system

rm /system/bin/su

rm /system/xbin/su

rm /system/app/Superuser.apk

Edited by doubletakeit
0

Share this post


Link to post
Share on other sites

Posted (edited)

How about using rageagainstthecage to remove the su and superuser.apk?

unroot.bat

adb push rageagainstthecage-arm5.bin /data/local/tmp/rageagainstthecage

adb shell chmod 4755 /data/local/tmp/rageagainstthecage

adb shell /data/local/tmp/rageagainstthecage

adb wait-for-device

adb shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system

adb shell rm /system/bin/su

adb shell rm /system/xbin/su

adb shell rm /system/app/Superuser.apk

adb shell rm /data/local/tmp/rageagainstthecage

adb shell reboot
and here's the root.bat
adb push rageagainstthecage-arm5.bin /data/local/tmp/rageagainstthecage

adb shell chmod 4755 /data/local/tmp/rageagainstthecage

adb shell /data/local/tmp/rageagainstthecage

adb wait-for-device

adb shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system

adb push Superuser.apk /system/app

adb shell chmod 755 /system/app/Superuser.apk

adb push su /system/xbin/su

adb shell chmod 4755 /system/xbin/su

adb push su /system/bin/su

adb shell chmod 4755 /system/bin/su

adb shell rm /data/local/tmp/rageagainstthecage

adb shell reboot

Edited by doubletakeit
0

Share this post


Link to post
Share on other sites

Posted

Nice one guys, SU is working fine. I must admit I used the root.bat as I felt a little lazy.

0

Share this post


Link to post
Share on other sites

Posted

I have made a new topic for newbies to unroot the phone with 1 click.

0

Share this post


Link to post
Share on other sites

Posted

How about using rageagainstthecage to remove the su and superuser.apk?

unroot.bat

adb push rageagainstthecage-arm5.bin /data/local/tmp/rageagainstthecage

adb shell chmod 4755 /data/local/tmp/rageagainstthecage

adb shell /data/local/tmp/rageagainstthecage

adb wait-for-device

adb shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system

adb shell rm /system/bin/su

adb shell rm /system/xbin/su

adb shell rm /system/app/Superuser.apk

adb shell rm /data/local/tmp/rageagainstthecage

adb shell reboot
and here's the root.bat
adb push rageagainstthecage-arm5.bin /data/local/tmp/rageagainstthecage

adb shell chmod 4755 /data/local/tmp/rageagainstthecage

adb shell /data/local/tmp/rageagainstthecage

adb wait-for-device

adb shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system

adb push Superuser.apk /system/app

adb shell chmod 755 /system/app/Superuser.apk

adb push su /system/xbin/su

adb shell chmod 4755 /system/xbin/su

adb push su /system/bin/su

adb shell chmod 4755 /system/bin/su

adb shell rm /data/local/tmp/rageagainstthecage

adb shell reboot

Greaat JOB !

Thanks.

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

MoDaCo is part of the MoDaCo.network, © Paul O'Brien 2002-2015. MoDaCo uses IntelliTxt technology.