Go Back   Android Forums > Android Phones > HTC EVO 4G > EVO 4G - All Things Root
EVO 4G - All Things Root Rooting, ROMS, Overclocking, etc.

Get excited for the Samsung Galaxy S5! Find everything you need and discuss it in our Galaxy S5 Forum!

test: Reply
 
LinkBack Thread Tools
Old January 8th, 2011, 10:26 AM   #1 (permalink)
Member
Thread Author (OP)
 
Join Date: Jun 2010
Posts: 159
 
Device(s): HTC EVO - 3g Sprint
Carrier: Not Provided

Thanks: 32
Thanked 29 Times in 9 Posts
Send a message via ICQ to xefe Send a message via AIM to xefe Send a message via MSN to xefe Send a message via Yahoo to xefe Send a message via Skype™ to xefe
Default Editing system file

I am trying to edit my root\system\customize\widgets.txt file. However it is showing read only. What program can i use to change a file to not be read only. I have tried astro and es file explorer; neither appears to have an option to do this.

xefe is offline  
Reply With Quote
sponsored links
Old January 8th, 2011, 10:41 AM   #2 (permalink)
Member
 
Join Date: Jul 2010
Posts: 416
 
Device(s):
Carrier: Not Provided

Thanks: 40
Thanked 107 Times in 71 Posts
Default

I use root explorer. You change it in the top right corner.
mdizzle99 is offline  
Reply With Quote
Old January 8th, 2011, 10:47 AM   #3 (permalink)
Member
Thread Author (OP)
 
Join Date: Jun 2010
Posts: 159
 
Device(s): HTC EVO - 3g Sprint
Carrier: Not Provided

Thanks: 32
Thanked 29 Times in 9 Posts
Send a message via ICQ to xefe Send a message via AIM to xefe Send a message via MSN to xefe Send a message via Yahoo to xefe Send a message via Skype™ to xefe
Default

Quote:
Originally Posted by mdizzle99 View Post
I use root explorer. You change it in the top right corner.

Thanks, dont wanna pay 4 bucks to edit a file though
xefe is offline  
Reply With Quote
Old January 8th, 2011, 11:36 AM   #4 (permalink)
Senior Member
 
Join Date: Jun 2010
Location: Near Los Angeles
Posts: 4,418
 
Device(s): Samsung Galaxy Nexus
Carrier: Not Provided

Thanks: 101
Thanked 1,386 Times in 1,050 Posts
Default

There are several ways to actually change permissions on the file, but the safest (and non permanent) way is to use root explorer. ES *does* have an option to use it in root mode (menu->settings->root options-> check "Root Explorer"), BUT I've heard it can cause all kind of problems.

If you have both a terminal emulator and busybox installed, you can definitely do what you need to do. It's more time consuming, but it *will* work. There are many ways to do what you want, including actually changing permissions, but that's not a great idea.

So, install a terminal emulator if you don't have one:

Android Terminal Emulator - Android app on AppBrain

Open it, and verify you have busybox by typing "busybox" without quotes, then enter. If just says anything about not being able to find it, it's not installed. If you get some general information, then a list of commands, you're good. If you need it, here it is:

BusyBox - Android app on AppBrain

Now, you should modify a widget.txt file either from your phone or from your PC. Be careful when doing it from your computer. If you have windows, and you make it in notepad, you could end up with junk character. Make sure to put the widget.txt file on /sdcard. You can copy it there from where ever you have it using ES.

Once that is done, open the terminal again, and type "su" then enter. The prompt should change from $ to #. type the following commands:

cd /system/customize/
cp /sdcard/widget.txt ./
cat widget.txt (note: the output should be the contents of the new widget.txt)

If you get any errors or anything, do this command then try the cp command again:

rm -f widget.txt

Once you have copied the file, type:

ls -l widget.txt

the first column should look something like this:

-r--rwxr-x. The second, third, and fourth characters (-r-) are the most important, as they generally end up getting reset to --- when you copy a file from elsewhere outside of /system. It basically means the system won't be able to read the file, and it will be useless. If you see something like that (----rwxr-x), run this command:

chmod u+r widget.txt

then check again. You should see -r--rwxr-x. If that's the case, you're done.

I know this is very complicated if you've never done anything from the command line, but it *does* work and it's free.
akazabam is offline  
Reply With Quote
The Following User Says Thank You to akazabam For This Useful Post:
xefe (March 8th, 2011)
Old March 8th, 2011, 12:46 AM   #5 (permalink)
New Member
 
Join Date: Mar 2011
Posts: 1
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default problems

Thanks for the info above but I had these problems:
First busybox won't install on my HTC evo. It says root access required.

I tried the commands anyway but after changing to my folder the copy command and rm and ls commands got an access denied - system. Error message


There must be a way to edit or replace
My hosts file in /system/etc folder without rooting this phone.

I paid for the root access program but it also fails with a message saying the phone isn't rooted.

Any more ideas?
Thanks
tblount is offline  
Reply With Quote
Old March 8th, 2011, 03:20 AM   #6 (permalink)
Senior Member
 
ndh777's Avatar
 
Join Date: Jan 2011
Location: United States
Gender: Male
Posts: 868
 
Device(s): Sprint:Samsung Galaxy SIII-retired; HTC Evo 4G-retired; Samsung Moment-retired
Carrier: Sprint

Thanks: 487
Thanked 187 Times in 123 Posts
Default

Quote:
Originally Posted by tblount View Post
Thanks for the info above but I had these problems:
First busybox won't install on my HTC evo. It says root access required.

I tried the commands anyway but after changing to my folder the copy command and rm and ls commands got an access denied - system. Error message


There must be a way to edit or replace
My hosts file in /system/etc folder without rooting this phone.

I paid for the root access program but it also fails with a message saying the phone isn't rooted.

Any more ideas?
Thanks
Are you absolutely sure that you are rooted? Try getting an app off the Market like Wifi Tether or CacheMate just to test and see if you truly are.
ndh777 is offline  
Reply With Quote
Old March 8th, 2011, 07:20 AM   #7 (permalink)
Senior Member
 
Xtremedays's Avatar
 
Join Date: Apr 2010
Gender: Male
Posts: 2,514
 
Device(s): 2 SG3(rooted stock), 2 KF Reloaded CM9, HTC One X(unrooted), Nook Tablet(rooted), Nexus 7(unrooted)
Carrier: Sprint

Thanks: 374
Thanked 1,073 Times in 691 Posts
Default

You could also install Terminal Emulator from the market. Start it and type su. the $ should change to a # if you are rooted.
Xtremedays is offline  
Reply With Quote
Old March 8th, 2011, 10:05 AM   #8 (permalink)
Senior Member
 
Join Date: Jun 2010
Location: Near Los Angeles
Posts: 4,418
 
Device(s): Samsung Galaxy Nexus
Carrier: Not Provided

Thanks: 101
Thanked 1,386 Times in 1,050 Posts
Default

Quote:
Originally Posted by tblount View Post
Thanks for the info above but I had these problems:
First busybox won't install on my HTC evo. It says root access required.

I tried the commands anyway but after changing to my folder the copy command and rm and ls commands got an access denied - system. Error message


There must be a way to edit or replace
My hosts file in /system/etc folder without rooting this phone.

I paid for the root access program but it also fails with a message saying the phone isn't rooted.

Any more ideas?
Thanks
1) Welcome to the forums .
2) You need busybox before running those commands, so you're going to need to get that installed first.
3) There is no way to modify /system without rooting.
4) Do as others have suggested, and check if you have root by opening the terminal emulator, and typing "su". I'm going to guess you don't have root yet. If you *do*, I forgot a step in the above instructions. You'd need to mount /system as rw by typing this command after su:

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

5) What root method did you try? It sounds like it never rooted your phone. It's probably old. What was it? Do you have a link?
akazabam is offline  
Reply With Quote
The Following User Says Thank You to akazabam For This Useful Post:
xefe (March 8th, 2011)
Old March 8th, 2011, 10:46 AM   #9 (permalink)
Senior Member
 
evomattnc's Avatar
 
Join Date: Feb 2011
Location: NC
Posts: 3,245
 
Device(s): EVO 4G Synergized HC style, Asus EEE Pad Transformer optimized Prime 1.5 style
Carrier: Not Provided

Thanks: 94
Thanked 536 Times in 473 Posts
Default

Quote:
Originally Posted by tblount View Post
Thanks for the info above but I had these problems:
First busybox won't install on my HTC evo. It says root access required.

There must be a way to edit or replace
My hosts file in /system/etc folder without rooting this phone.

I paid for the root access program but it also fails with a message saying the phone isn't rooted.

Any more ideas?
Thanks
Guys he just isnt rooted. He was trying to do this without rooting, though he bought an app for root users. You can not write to the /system without root, thats pretty much the whole point in root.
evomattnc is offline  
Last edited by evomattnc; March 8th, 2011 at 10:48 AM.
Reply With Quote
Old March 8th, 2011, 10:52 AM   #10 (permalink)
Senior Member
 
Join Date: Jun 2010
Location: Near Los Angeles
Posts: 4,418
 
Device(s): Samsung Galaxy Nexus
Carrier: Not Provided

Thanks: 101
Thanked 1,386 Times in 1,050 Posts
Default

Quote:
Originally Posted by evomattnc View Post
Guys he just isnt rooted. He was trying to do this without rooting, though he bought an app for root users. You can not write to the /system without root, thats pretty much the whole point in root.
Sounds like you're right, and I just misunderstood what he was trying to say.
akazabam is offline  
Reply With Quote
sponsored links
Old March 8th, 2011, 11:08 AM   #11 (permalink)
Senior Member
 
evomattnc's Avatar
 
Join Date: Feb 2011
Location: NC
Posts: 3,245
 
Device(s): EVO 4G Synergized HC style, Asus EEE Pad Transformer optimized Prime 1.5 style
Carrier: Not Provided

Thanks: 94
Thanked 536 Times in 473 Posts
Default

Quote:
Originally Posted by akazabam View Post
Sounds like you're right, and I just misunderstood what he was trying to say.
LOL just figured we should save some typing.
evomattnc is offline  
Reply With Quote
Old March 13th, 2011, 06:42 AM   #12 (permalink)
New Member
 
Join Date: Mar 2011
Posts: 2
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,
I have similar problem, but my phone is rooted for sure. In root explorer in system folders I cant switch R/O to R/W .when I edis some file and go to parent folder and back,changes are gone(everything is as before).

When i try to write commands in terminal emulator as you wrote is tell me somthing like "cant find mount"

Do you hnow where is problem?
thank for answer
ivipopi is offline  
Reply With Quote
Old March 13th, 2011, 11:23 AM   #13 (permalink)
Senior Member
 
Join Date: Jun 2010
Location: Near Los Angeles
Posts: 4,418
 
Device(s): Samsung Galaxy Nexus
Carrier: Not Provided

Thanks: 101
Thanked 1,386 Times in 1,050 Posts
Default

Quote:
Originally Posted by ivipopi View Post
Hi,
I have similar problem, but my phone is rooted for sure. In root explorer in system folders I cant switch R/O to R/W .when I edis some file and go to parent folder and back,changes are gone(everything is as before).

When i try to write commands in terminal emulator as you wrote is tell me somthing like "cant find mount"

Do you hnow where is problem?
thank for answer
Welcome to the forums .

1) Do you have S-OFF in hboot? Just because you might have a rooted ROM doesn't mean you have S-OFF.
2) Do you have busybox installed? I'm going to guess you don't. If not, install it from the market. Busybox will give you the ability to run a lot of different commands from the command line (and some apps even require it).
3) From the terminal, don't forget to type "su" first if you aren't. It wouldn't give you that particular error, but it's just something to remember.
akazabam is offline  
Reply With Quote
Old March 13th, 2011, 02:12 PM   #14 (permalink)
New Member
 
Join Date: Mar 2011
Posts: 2
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

than youm for efford,
I solved my problem by typing commands as was written(mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system cd /system/app).

Before I wrote it bad (i didnt do one "space"),thats why it didnt work.
ivipopi is offline  
Reply With Quote
Old March 13th, 2011, 02:13 PM   #15 (permalink)
Senior Member
 
Join Date: Jun 2010
Location: Near Los Angeles
Posts: 4,418
 
Device(s): Samsung Galaxy Nexus
Carrier: Not Provided

Thanks: 101
Thanked 1,386 Times in 1,050 Posts
Default

Ah, yeah, that'll do it to. Thanks for the update.
akazabam is offline  
Reply With Quote
Old October 20th, 2011, 11:02 AM   #16 (permalink)
New Member
 
Join Date: Jul 2010
Location: New York
Posts: 14
 
Device(s): HTC Evo 4G Fresh 3.5.0.1
Carrier: Not Provided

Thanks: 6
Thanked 1 Time in 1 Post
technicalbeast
Default

Quote:
Originally Posted by akazabam View Post
1) Welcome to the forums .
2) You need busybox before running those commands, so you're going to need to get that installed first.
3) There is no way to modify /system without rooting.
4) Do as others have suggested, and check if you have root by opening the terminal emulator, and typing "su". I'm going to guess you don't have root yet. If you *do*, I forgot a step in the above instructions. You'd need to mount /system as rw by typing this command after su:

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

5) What root method did you try? It sounds like it never rooted your phone. It's probably old. What was it? Do you have a link?

I have full root with s-off running Swagged out ROM(you helped me with the S-off a few months ago) I can not write to system folder with root explorer. I get an error saying the file or folder is read only. I checked to make sure root explorer is in r/w mode, super user is good. I just want to change my boot animation but I know I'm fully rooted because you walked me through it. Any ideas why I can't write to system folder?
Harlem Tech is offline  
Reply With Quote
Old October 20th, 2011, 11:13 AM   #17 (permalink)
DON'T PANIC!!!!!!!!!
 
ocnbrze's Avatar
 
Join Date: May 2010
Location: los angeles
Gender: Male
Posts: 22,554
 
Device(s): Galaxy Note 3, HTC Evo 4g LTE(no longer have), HTC 3vo(no longer have), HTC EVO (not activated)
Carrier: Sprint

Thanks: 28,912
Thanked 13,990 Times in 8,951 Posts
ocnbrze@gmail.com
Default

Quote:
Originally Posted by Harlem Tech View Post
I have full root with s-off running Swagged out ROM(you helped me with the S-off a few months ago) I can not write to system folder with root explorer. I get an error saying the file or folder is read only. I checked to make sure root explorer is in r/w mode, super user is good. I just want to change my boot animation but I know I'm fully rooted because you walked me through it. Any ideas why I can't write to system folder?
check your superuser app. does it list root explorer as being allowed access? sometimes it will deny apps access and it will say so in the app. and if that is not the case then try and uninstall and reinstall the root explorer.

also make sure that you have mounted as r/w.
__________________
“The Guide is definitive. Reality is frequently inaccurate.”.......Hitchhiker's Guide to the Universe
“I seldom end up where I wanted to go, but almost always end up where I need to be.”.......Douglas Adams
ocnbrze is offline  
Last edited by ocnbrze; October 20th, 2011 at 11:16 AM.
Reply With Quote
Old October 20th, 2011, 11:46 AM   #18 (permalink)
New Member
 
Join Date: Jul 2010
Location: New York
Posts: 14
 
Device(s): HTC Evo 4G Fresh 3.5.0.1
Carrier: Not Provided

Thanks: 6
Thanked 1 Time in 1 Post
technicalbeast
Default

Quote:
Originally Posted by ocnbrze View Post
check your superuser app. does it list root explorer as being allowed access? sometimes it will deny apps access and it will say so in the app. and if that is not the case then try and uninstall and reinstall the root explorer.

also make sure that you have mounted as r/w.
I don't believe I'm mounted as R/W but everything else checks out. I don't even care about the new boot animation anymore, now I just want to understand it. I have S-off, I have flashed plenty of roms, flashed new radios and kernels....I'm getting a migrain. Someone help.
Harlem Tech is offline  
Reply With Quote
Old October 20th, 2011, 11:54 AM   #19 (permalink)
DON'T PANIC!!!!!!!!!
 
ocnbrze's Avatar
 
Join Date: May 2010
Location: los angeles
Gender: Male
Posts: 22,554
 
Device(s): Galaxy Note 3, HTC Evo 4g LTE(no longer have), HTC 3vo(no longer have), HTC EVO (not activated)
Carrier: Sprint

Thanks: 28,912
Thanked 13,990 Times in 8,951 Posts
ocnbrze@gmail.com
Default

Quote:
Originally Posted by Harlem Tech View Post
I don't believe I'm mounted as R/W but everything else checks out. I don't even care about the new boot animation anymore, now I just want to understand it. I have S-off, I have flashed plenty of roms, flashed new radios and kernels....I'm getting a migrain. Someone help.
ok so at the top of root explorer there should be a button where you can mount as r/w that is what gives you the ability to read and write on to the system partitions.
ocnbrze is offline  
Reply With Quote
Old August 20th, 2013, 11:52 AM   #20 (permalink)
New Member
 
Join Date: Aug 2013
Posts: 1
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi

I also tried to follow akazabam's post to edit the file STATE in /sys/devices/virtual/switch/hdmi/state but the file cannot be saved (it also cannot be deleted with Operation not permitted message from the terminal screen of Android terminal emulator). I have rooted my phone, which is an Alcatel OT-995, I have busybox. Any suggestion?
naiponnoi is offline  
Reply With Quote
sponsored links
Old August 20th, 2013, 07:58 PM   #21 (permalink)
DON'T PANIC!!!!!!!!!
 
ocnbrze's Avatar
 
Join Date: May 2010
Location: los angeles
Gender: Male
Posts: 22,554
 
Device(s): Galaxy Note 3, HTC Evo 4g LTE(no longer have), HTC 3vo(no longer have), HTC EVO (not activated)
Carrier: Sprint

Thanks: 28,912
Thanked 13,990 Times in 8,951 Posts
ocnbrze@gmail.com
Default

Quote:
Originally Posted by naiponnoi View Post
Hi

I also tried to follow akazabam's post to edit the file STATE in /sys/devices/virtual/switch/hdmi/state but the file cannot be saved (it also cannot be deleted with Operation not permitted message from the terminal screen of Android terminal emulator). I have rooted my phone, which is an Alcatel OT-995, I have busybox. Any suggestion?
welcome to AF!!!!!!

just an fyi this is the htc evo 4g root forum so be careful on what your read or follow. somethings here are specific to the evo vs your phone.

what exactly are you trying to do?
ocnbrze is offline  
Reply With Quote
Reply


Go Back   Android Forums > Android Phones > HTC EVO 4G > EVO 4G - All Things Root

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 02:30 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.