How do you change file attributes in android? .. for instance an MP3 file in my media directory shows up as an executable?
I tried droid explorer 9which denotes the file as executable) but was unable to change / apply any different attributes
what am I doing wrong (with droid explorer) . . will root explorer in android itself do the job?
morg01 said:
will root explorer in android itself do the job?
Click to expand...
Click to collapse
Yes, it will. Or, chmod from a terminal session either via "adb shell" or in Android directly.
Thanks for the prompt reply, yeah root explorer had the answer, and I was able to change permissions on the files in question .. . don't know why they keep changing (i've used fix permission via recovery before) hopefully the manual change will stick?
Related
With certain files, SteelH describes using Root Explorer as "like trying to swap the engine of a car while it's running"
I experienced this as I tried to copy back a modified services.jar file with Root Explorer. I ended up using ADB and it worked fine.
Question 1: I did this while the phone was running/OS loaded, but ADB copy method worked while Root Explorer didn't. Why? Does ADB have higher authority in some way?
Question 2: How about using a terminal window on the phone to copy/replace files (if a computer is not handy)? Does it yield the same function/result as Root Explorer or ADB?
Question 3: If I simply want to back up the file, say services.jar or framework.apk, to be copied to SD, can I use Root Explorer for that?
Thanks.
snovvman said:
With certain files, SteelH describes using Root Explorer as "like trying to swap the engine of a car while it's running"
I experienced this as I tried to copy back a modified services.jar file with Root Explorer. I ended up using ADB and it worked fine.
Question 1: I did this while the phone was running/OS loaded, but ADB copy method worked while Root Explorer didn't. Why? Does ADB have higher authority in some way?
Question 2: How about using a terminal window on the phone to copy/replace files (if a computer is not handy)? Does it yield the same function/result as Root Explorer or ADB?
Question 3: If I simply want to back up the file, say services.jar or framework.apk, to be copied to SD, can I use Root Explorer for that?
Thanks.
Click to expand...
Click to collapse
i can't answer all of these authoritatively, but i will say
-i find adb to be the easiest way to do ANY modifications, as long as you know just a handful of commands and remember to remount. also remember to pull anything you are getting ready to mess with, just in case you bork it up. takes a lot less time to push an unmodified file than it does to do a complete restore. especially if you forgot to backup, lol
-if you have a terminal app mounted with rw privileges, you can move whatever you want wherever you want. however, referring back to my last point, adb is easier. i find that trying to type type type things out on a dinky little keyboard is a bigger pain in my butt than using my full size one, especially when i can use cut/paste from the intertubes.
-i think rooted explorere shouldn't have a problem copying a file from /system/ or /data/ to some folder on your sdcard
Thank you for the information. I just copied a file with terminal (on phone) and Root Explorer. Interesting thing: using the CP command, the file that was copied onto the SD showed the current date. The file that was copied using RE has the original date.
hi, i just did exactly what on the guide to permanent root my touch 4g, i ran visionary and do everything what suppose to do, when i open terminal i typed "su" it granted me access, but when i typed....cd/sdcard/root and hit enter, it said....NOT FOUND, can someone please help me
lam824 said:
hi, i just did exactly what on the guide to permanent root my touch 4g, i ran visionary and do everything what suppose to do, when i open terminal i typed "su" it granted me access, but when i typed....cd/sdcard/root and hit enter, it said....NOT FOUND, can someone please help me
Click to expand...
Click to collapse
what method did you use?
i download the two file= wpx and hboot. download astro, visionary 11 and android terminal emulator. i changed the fast boot off,usb dedugging checked, unknown sources checked. both downloaded file were on the astro sdcard at the place it suppose to be,checked r/w before ran visionary and temporary root my device, open terminal typed SU+ enter it grand me access, typed cd/sdcard/root....and it show CANT and DONT FOUND
lam824 said:
i download the two file= wpx and hboot. download astro, visionary 11 and android terminal emulator. i changed the fast boot off,usb dedugging checked, unknown sources checked. both downloaded file were on the astro sdcard at the place it suppose to be,checked r/w before ran visionary and temporary root my device, open terminal typed SU+ enter it grand me access, typed cd/sdcard/root....and it show CANT and DONT FOUND
Click to expand...
Click to collapse
okay. you need a total of three file. in the folder.
Do this,
1) use the Astro manager and go to /mnt/sdcard and create a folder. And name that folder "root" (all lower case). Or you can create a folder via a mounting the SDcard and using a computer.
2) Then download This File.
3) Once you download that extract the file. In that file are three scripts.
4) Move those three scripts to the folder that folder you created in step one.
5) then try your command again.
The reason it's not finding /sdcard/root is because it's simply not there. It cannot find what doesn't exist.
Also make sure its CD / not cd/
I (without heeding the warnings) decided it would be a good idea to delete certain apps (including Hero of Sparta, Lets Golf, etc.) once I got my tablet rooted. Luckily, there are two A500's in my household, so I was able to copy the /system/app directory from the other untouched tablet.
Problem is, I can't seem to copy the directory (or any apps from it) into my tablet. I've used both ASTRO and File Manager HD, but in both, the 'paste' command is greyed out. It's as if I don't have the necessary permissions.
So, what's going on?
did you set the Read-Write permission on that directory?
Post removed
No, thanks for the reminder.
Upon attempting to edit permissions, though, using a terminal emulator, I get an error after typing this:
Code:
su
cd /system/app
chmod 777 /system/app
And the error I get is:
"Unable to chmod /system/app: Read-only file system"
Zen_Jackal said:
No, thanks for the reminder.
Upon attempting to edit permissions, though, using a terminal emulator, I get an error after typing this:
Code:
su
cd /system/app
chmod 777 /system/app
And the error I get is:
"Unable to chmod /system/app: Read-only file system"
Click to expand...
Click to collapse
Silly question, but do you have your system rooted?
Yes, I do. Using GingerBreak as I'm still waiting on that 3.1 update
Zen_Jackal said:
Yes, I do. Using GingerBreak as I'm still waiting on that 3.1 update
Click to expand...
Click to collapse
OK, then try a file explorer like Root Explorer and you should be able to set the rights ro R/W and copy your files over.
Root Explorer worked like a charm. I'm suprised File Manager HD doesn't perform those functions. I got a good feeling when I saw that Root Explorer was requesting superuser permission.
Zen_Jackal said:
Root Explorer worked like a charm. I'm suprised File Manager HD doesn't perform those functions. I got a good feeling when I saw that Root Explorer was requesting superuser permission.
Click to expand...
Click to collapse
Glad to hear that worked. Root Explorer is what I use. Have been for over a year. I think File MAnager HD can also do it, but it is not as straight forward ad Root Explorer. Have fun.
BTW the permission setting 0777 means anyone can access it (or any other application), for the sake of having a better security the permissions should be changed to 445 so only root can access and execute those files (I'm not sure if APKs are considered excutables if they are not the 444 will be the right setting)
Sent from my A500 using Tapatalk
I have rooted and installed CWR. I have Supperuser installed also. When I try to change the gps.conf file to point to us.pool.ntp.org, I get an error saying the that /system is read only. Any ideas on how to fix this?
You need to mount /system as read/write before you can write to it.
In Root Explorer, you can click the R/W (or R/O) button at the top to enable writing.
I tried that and it say the file has been saved. However when I open the file again the changes are not there.
From my post the other day at forums.lenovo.com--
Best: ES File Explorer (with root permission and /system writeable checked in settings)
Navigate to file, click, choose text, choose ES Note Editor, edit the file as needed, choose save when prompted.
You can change permissions with ES as well.
I like that it automatically makes a *.bak file of whatever you edit and save.
I have tried changing the permission using root explorer, which resulted with this error "Permissions change was not successful. Please not that some file systems(eg SD card) do not allow permission changes. " I also tried using ES File Explorer but it still will not allow me to edit or delete the file.
@dwilli40 - Did you set root permission and /system writeable in ES settings?
Yes, I did enable root permission and /system writeable in ES settings.
I had a similar Problem on my device, seems that the normal mount doesn't work always. In my case i got write permission with:
busybox mount -o rw,rewrite /system
Sent from my ThinkPad Tablet using XDA App
if you don't know how to do it manually, use a app !
fasterfix for example....
if it doesn't work, it means that you don't have root
Thanks quyTam . That one did it for me.
Any way to do this without recovery?
It's absolutely no need for recovery !
But root is needed.
I was thinking it did because I couldn't get /system to stay mounted as rw under adb shell or with total commander
What should I be doing?
GPS Monitor Premium is able to do this, too, and more. It's a little heavier, but I don't feel like I need GPS Test anymore. It's a slick little app, and the dev is very kind.
MrKwatz said:
I was thinking it did because I couldn't get /system to stay mounted as rw under adb shell or with total commander
What should I be doing?
Click to expand...
Click to collapse
are you root ?
Did the GPS change you made work? Is you tablet actually grabbing satellites over North America?
Sent from my ThinkPad Tablet using xda premium
quyTam said:
are you root ?
Click to expand...
Click to collapse
Yes.
If I mount from adb shell su and then exit (after checking mount) for adb push it does not retain rw.
Doing the mount command from Total Commander fails. Checking the box to mount /system from ES File Explorer does nothing.
Yes, the change to gps made a huge difference. I went from taking 5 minutes or more to find my location to almost instantly.
dwilli40 said:
Yes, the change to gps made a huge difference. I went from taking 5 minutes or more to find my location to almost instantly.
Click to expand...
Click to collapse
Did you change the gpsconfig.xml file in /system/etc/gps folder? And if you did, which line(s) did you edit? I'm looking at the file in Notepad++ just trying to comb through it all and I don't see us.pool.ntp.org or asia.pool.ntp.ord anywhere..
Thanks
---
Never mind, just found the gps.conf file in the root of /etc. FasterFix did indeed change the Asian setting to a north-american.pool.ntp.org. I'll give this a try today, and if it can't find me in under 3 minutes, i'll try changing it to us.pool.ntp.org and see if that makes a difference.
Hi,
In my kernel several config-files are placed within /sys/kernel. If I wanna change one of the settings I get always an permission error I tried with Terminal emulator and changed the permissions for the dir as well for the file so everybody could write. But vi doesn't save it Trying other root browsers with their editors fail in the same way.
How to change single files properly?
thx
roland
use " echo " command
You need to allow R/W permissions to the system partition.