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.
Related
RESOLVED
Dear developers,
I need to make send hardware button work for the menu, because the long press windows make me crazy recalling the current applications instead to give me the real useful menu for the app I use.
I currently use desire on hd2. So searching in the previous posts I found that I can change /system/usr/keylayout/qwerty.kl
No way, I opened Astro, did not change and save the modifications. Then I tried to download a terminal emulator. Do not give me #, but I thought was normal reading other posts(the phone is already rooted) so I tried chown and chmod, but I do not what I have to write to do the trick of edit with ASTRO the 2 lines I need to put the menu (for the apps) in SEND hw button. Furthermore trying using $ ls -latr I discovered that the qwerty.kl is a link that refer to etc/keymap directory. So I tried to use ASTRO to edit the file but also if tell me save, there are not modification, simply the file is not edited.
resolved --> I HAD TO COPY IN SDCARD THE FILE QWERTY BEFORE to MODIFY WITH ASTRO, no need of chmod && Chown
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?
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.
I'm trying to edit the build.prop file on the G2 803 model. It's rooted and unlocked on a stock Bell Rom. The phone has the wi-fi forgetting problem. everytime I reboot it I have to reset the wifi password. I've tried editing the build.prop file to change the wifi.lge.patch line to=false but I can't seem to enter more than 4 characters after the = on that line. Am I missing something?
Use build prop editor free on playstore
_____________________________________Read more write less and be smart
siggey said:
Use build prop editor free on playstore
_____________________________________Read more write less and be smart
Click to expand...
Click to collapse
Thanks, I tried that but the changes don't appear to stick.
Fraggle_Shamy said:
Thanks, I tried that but the changes don't appear to stick.
Click to expand...
Click to collapse
Reason 1: Some build.prop values get their values from the ramdisk on each boot, so that's why some values wont stick.
Reason 2 (requires root): build.prop is located in /system. Your /system may be read-only, we want it to be read-write to make changes, so.. run the following command in a Terminal Emulator downloaded from the play store. Run the following commands,
Code:
su
mount -o rw,remount /system
Now make your build.prop changes. Once finished run the following command to get your system back to how it was,
Code:
mount -o ro,remount /system
If the app isnt helping you, download a file explorer such as ES and navigate to /system/build.prop, open the file and edit the values you want.
Note: It's nice to hit the "Thanks" button under our posts if you indeed are thankful. Saying thanks and not hitting the thanks button is a slap in the face .
Thanks for the suggestion, but the emulator didn't help. I'm guessing it's because it's locked to the boot rom (your first suggestion)? Any way around this? I have anohter 803 that doesn't have this issue. Can I copy the ROM from that phone to the problematic one?
Fraggle_Shamy said:
Thanks for the suggestion, but the emulator didn't help. I'm guessing it's because it's locked to the boot rom (your first suggestion)? Any way around this? I have anohter 803 that doesn't have this issue. Can I copy the ROM from that phone to the problematic one?
Click to expand...
Click to collapse
Try this. (Pretty much the same as a previous suggestion, doubt it will work)
Get a root capable browser. Jrummy has one that's free, I think it's called Root Browser.
Browse to /system there should be a button to mount it r/w, if not it may prompt you when you go to edit the file... Long click the file, and try to open for editing. (it may be some other combination, I don't have my phone handy right now). Make the a change or two, reboot and see if they stick.
Or the other thing you cna do is:
The other thing you can try is to do is check if they're being set on boot.
adb pull /*.rc
which will pull all of the ramdisk's initialization scripts into your current folder on your computer. Look through them and see if the values are indeed being set by the boot image. If they are, you'll need something like AIK (android image kitchen) to extract the ramdisk, either change or delete those lines, rebuild the boot.img and flash it (using flashify or manually using adb and dd). You have to rebuild them into the boot.img, any changes you make to them directly on the phone will never stay as they get re-created every boot. It's a pretty roundabout way to do it, but it's entirely possible to do.
A much easier, and less likely to cause you issues would simply be to create an init.d script that sets it. This will occur after whatever is setting it in your boot.img so there would be no need to recreate that.
create a file in /etc/init.d called something like... "Set_wifi_pass" set the permissions so that it can be executed and read by everyone.
Then enter the following:
Code:
[B][I]#!/system/bin/sh[/I][/B]
setprop wifi.lge.patch = WifiPassword
You can check that it worked by going through adb shell with
adb shell
getprop wifi.lge.patch
which should return that value you set. Same thing that build.prop is ultimately doing, just in a different way.
Hope that helps.
When i try to edit files in the root directory of the switch on android, i cannot edit because of permissions.
I ran chmod in TWRP from terminal multiple times but cannot fix the permissions issue.
anyone know how to fix it? I am trying to edit some files in system/usr/keylayouts.
Try 'sudo su' and then do chmod.
Or install MiXPlorer, give it root access and give it the perms with it's GUI (it's under the info sign when u select the file u want to alter)