set file permissions - Galaxy Ace S5830 Q&A, Help & Troubleshooting

so i decided to go back to stock KTM but after installing battery extender kernel (giving me root) i cant set permissions on files to add into system/app. any ideas how to fix that?

Joomlad said:
so i decided to go back to stock KTM but after installing battery extender kernel (giving me root) i cant set permissions on files to add into system/app. any ideas how to fix that?
Click to expand...
Click to collapse
Tru to use adb or terminal emulator.
Type this command in terminal emu.
su
chmod 644 /system/app/
It should work...
Sent from my GT-S5830 using Tapatalk 2

Related

Cannot edit build.prop anymore - read-only.

Using Nook Color, CM7 nighly 107.
Got Netflix working a while back by modifying the build.prop file using ES File Explorer - no issues.
Tried again to make some mods and cannot save it anymore. ES reports "writable - NO"
Tried to "su chmod 666" it and it comes back with "File system read-only"
Is anybody else seeing this? What am I missing?
Thanks...
I encountered a similar situation during the build.prop edit while using ES File Explorer on my NC running CM7 on internal memory.
Possibly, the permissions in the program need to be changed to enable it to "write".
Here's what I did: Menu==>Settings==>Root options. "Check" Root Explorer and if my memory serves me correctly, click "Yes" to get past the "Experimental Feature", toggle the "Cyanogen Mod" (if you're using CM7) radio button, click OK and check the "Mount File System" box to make the system writable.
Now, it should be writable. Hope this helps.
dhyamato said:
... check the "Mount File System" box to make the system writable.
Click to expand...
Click to collapse
Thanks for the tip, that wasn't it
I remember setting those originally. I just checked again and "Root Explorer" and "Mount FIle System" are both checked.
mwilli20 said:
Using Nook Color, CM7 nighly 107.
Got Netflix working a while back by modifying the build.prop file using ES File Explorer - no issues.
Tried again to make some mods and cannot save it anymore. ES reports "writable - NO"
Tried to "su chmod 666" it and it comes back with "File system read-only"
Is anybody else seeing this? What am I missing?
Thanks...
Click to expand...
Click to collapse
In 106 SU wasn't working correctly until I reinstalled it. You can't modify build.prop without superuser rights. Check the thread about SU / Superuser missing in 106 (and I bet 107) for instructions. It worked for me.
DiDGR8 said:
Check the thread about SU / Superuser missing in 106 (and I bet 107) for instructions. It worked for me.
Click to expand...
Click to collapse
Interesting... the OP withdrew his post: (apparently it's back in 107)
http://forum.xda-developers.com/showthread.php?t=1131369
However when I checked it, the SU app was misbehaving, Force closing, refusing to respond to the menu command. So I reinstalled it. Now it's OK.
Unfortunately I still cannot edit the build.prop file.
I don't think it's a superuser problem because without SU access ES cannot even see the system folder!!! I can see it, and edit the file, just cannot save it.
You might try fixing permissions under recovery.
have you tried the app: nook netflix fixer?
I've changed it successfully on the past 6 consecutive nightlies using adbwireless pull/push. However since 106 I've hsd to reflash su. N108 hasn't given me the su issue. Is it fixed?
Same problem with the build.prop file: cannot save changes, or copy over it. Running in nightly 108 today. Tried both Root Explorer and ES File manager.
I think you need to change the build.prop file properties to be rw using chmod. Don't forget to mount system as rw before doing the chmod.
Sent from my Huawei Ascend using XDA App
foltz61 said:
I think you need to change the build.prop file properties to be rw using chmod.
Click to expand...
Click to collapse
Tried that (sudo chmod 666...), get the same message. "file system is read-only"
backup and restore fresh start....?
I'm not great at linux but I do it differently. Try chmod +rw /system/build.prop . Make sure you have system mounted as RW first. I'd also check superuser to make sure whatever terminal/file explorer you are using still has root privileges.
Sent from my Huawei-M860 using XDA App
foltz61 said:
Try chmod +rw /system/build.prop
Click to expand...
Click to collapse
666 is the same thing as +rw in this case...
It looks like the "fresh start" suggestion a couple of posts up is the best
All those numbers always confuse me . Sorry. Good luck.
Sent from my Huawei-M860 using XDA App
bike2002 said:
have you tried the app: nook netflix fixer?
Click to expand...
Click to collapse
Thanks! That did it!
Does anybody know why this app can modify the build.prop file while ES File Explorer cannot?
I had to mount the folder containing build.prop with rw access in order to use chmod. I think the latest version of the netflix fixer may do the same (see my post in that thread). In short, I used;
Code:
su
busybox mount -0 rw,remount /dev/block/mmcblk1p3 /system
in the terminal before using the chmod command in order to give myself rw permissions in the folder. I'm only two days old at this, so it beats me why root doesn't have normal rw permissions on the folder.
NCKevo said:
I had to mount the folder containing build.prop with rw access in order to use chmod...
Click to expand...
Click to collapse
Thanks for the tip. I ran the command successfully (by the way, small typo, I believe it's -o not -0) and was able to chmod and edit the file with vi.
That's where confusion began. I reboot and after the reboot I was able to modify the file without remounting the /system directory. The mount command does not surive a reboot does it?
Have you tried just pulling the build.prop
Code:
c:/<target_folder> adb pull /system/build.prop
then editing it with note pad then pushing it back and rebooting>
mwilli20 said:
That's where confusion began. I reboot and after the reboot I was able to modify the file without remounting the /system directory. The mount command does not surive a reboot does it?
Click to expand...
Click to collapse
That is confusing. What are the full (i.e. ls -l) permissions on the file now? (It's possible that it somehow ended up with o+w, but I don't understand how - vi isn't exactly known for changing permissions on-the-fly.)
Rodney

[Q] Where can I get GTalk for FroyoPro v2.4

Google Talk is gone from the latest FroyoPro v2.4. Does anyone know where to get it?
I tried gapps-gb-20110828-newtalk-signed.zip, but it doesn't work. I guess that one is just for Gingerbread based ROMs.
Any hints? Thanks in advance!
edit: Problem solved! I copied /system/app/Talk.app from FroyoPro v2.3.
Just to leave it for future reference ...
Google Apps @ CyanogenMod Wiki
Since this is Froyo --> CyanogenMod6 row, MDPI column
This will give you gapps-mdpi-20110501-signed.zip
Unpack the ZIP and adb push the "system" directory
EDIT: Goes like this:
adb connect <ip address of your X8>
On Linux: adb push ~/Download/system /system
On Windows: adb push %USERPROFILE%\Downloads\system /system
Once everything's copied over reboot the phone.
Thanks B.Jay!
hey OP, after you get the talk.apk file from v2.3, what do you do then. i try installing it by it won't work. please provide easy steps since im a noob.
Copy it to /system/app and set its permissions to rw-r--r--
I used ES File Explorer for this. And if you use it, don't forget to enable Root Explorer and Mount File System under its settings.
OP thanks.

[Q] Permanently Change Folder Permission

I am trying to change the folder permission of the "data/gps" folder to "rwx rwx rwx", by default, it's set to "rwx --- ---".
I can do this by using ES File Explorer but the folder permission gets reverted to the default upon reboot. So I'm guessing ES File Explorer can't change it permanently.
My question is, is there any method that I can use to change it permanently? I have Terminal Emulator installed, but I've never used it before so I don't want to go around messing with it just yet (unless if I can get a confirmation that it'll do what I need it to do).
I would appreciate any help on this. Thanks.
Update:
I tried it with Terminal Emulator, "chmod 777 /data/gps". No luck, the permissions still reverted to default upon reboot.
I was informed that all scripts placed within "/etc/init.d" folder are executed on boot. So I created a shell script file and placed it in that folder.
#Change folder permission
chmod 777 /data/gps
Click to expand...
Click to collapse
Unfortunately, that didn't work either. I don't know if the script above is incorrect or incomplete. One thing I can't figure out though, are all the scripts in the folder executed with superuser privilege? Correct me if I'm wrong but in order to change the permission for "/data/gps" folder, superuser privilege is required. I have tried the following scripts, nothing works.
#Change folder permission
su chmod 777 /data/gps
Click to expand...
Click to collapse
#Change folder permission
sudo chmod 777 /data/gps
Click to expand...
Click to collapse
#Change folder permission
sudo su chmod 777 /data/gps
Click to expand...
Click to collapse
Anyone with ideas?
UPDATE: I have got this fixed! Turns out that there was nothing wrong with the script. Placing the script in the init.d folder does the trick, it's just that I couldn't get it to work with CM9, it works perfectly on OneCosmic ROM. Maybe CM9 doesn't support init.d?

[Q] Root Explorer no R/W option on /system/app

Hi,
just installed GALACTUSMOD 4.2 XXLT5, i wanted to push/move stock FMRADIO.APK and EMAIL.APK. I already installed Root Explorer to be able to push .apk. but i have one problem. /system has RW option, /system/app no RW option. i tried the other way of pushing using terminal yet still cant locate it. does anyone can fix this? or does anyone can make a tutorial to enable the RW option for /system/app so i could able to move apk's I wanted to have on my phone.
You can't locate what? Check in /preload/symlink/system/app folder. I still don't get what you are trying to achieve. Push apk to phone from pc or?
nokiamodeln91 said:
You can't locate what? Check in /preload/symlink/system/app folder. I still don't get what you are trying to achieve. Push apk to phone from pc or?
Click to expand...
Click to collapse
Hi sir,
Im trying to push Email.apk and FM.apk to GalactusMOD ROM, I'm using root explorer I can locate /preload/symlink/sysmtem/app and system/app but the prob is, there is no R/W option. I cant push or move those APKs. Hope you can help me. thank you
Not sure of the method you are using, but try this.
1. enable USB debugging. Connect phone to PC and open terminal / cmd.
2. run command adb devices to make sure the device is listed.
3. adb root.
4. adb remount
5. adb push Email.apk /system/app
then manually change the permission of the app using root explorer or use chmod command.
nokiamodeln91 said:
Not sure of the method you are using, but try this.
1. enable USB debugging. Connect phone to PC and open terminal / cmd.
2. run command adb devices to make sure the device is listed.
3. adb root.
4. adb remount
5. adb push Email.apk /system/app
then manually change the permission of the app using root explorer or use chmod command.
Click to expand...
Click to collapse
Hello sir,
I've read again all the details of GALACTUSMOD, it says
"My ROM no longer uses System/app! this has all been symlinked to Preload.
so any MODS/THEMES Etc need to be Preload ONLY!!!"
i guess im not gonna able to push or either move apk to system/app
You still can.
nokiamodeln91 said:
You still can.
Click to expand...
Click to collapse
anyway, I got kitkat email, and spirit fm unlocked. thanks for your response. i really dont know how to push apk. using adb no time to read about it. i just know root explorer. maybe someday if i got time. i really need my phone for my clients they're calling and texting.

I've broken my bootanimation :(

Hi guys, I tried to change the bootanimation on my fire tablet (2015), it wasn't located in the media folder but I did find a bootanimation file in system/bin, I backed this up first incase I needed to replace it. On replacing said backup I still don't get the default boot animation, just a blank screen until the lock screen shows up, I've even tried copying the file from another tablet. I'm sure its something to do with permissions but I'm not sure, hoping someone more knowledgeable than me can help.
Thanks
Connorsdad said:
Hi guys, I tried to change the bootanimation on my fire tablet (2015), it wasn't located in the media folder but I did find a bootanimation file in system/bin, I backed this up first incase I needed to replace it. On replacing said backup I still don't get the default boot animation, just a blank screen until the lock screen shows up, I've even tried copying the file from another tablet. I'm sure its something to do with permissions but I'm not sure, hoping someone more knowledgeable than me can help.
Thanks
Click to expand...
Click to collapse
Restore the file to /system/bin and chmod 755
Sorry for being a dumbass, what's chmod 755 ?
Sent from my KFFOWI using Tapatalk
No matter, thanks for helping, will try it.
Sent from my KFFOWI using Tapatalk
csolanol said:
Restore the file to /system/bin and chmod 755
Click to expand...
Click to collapse
Didn't work, thanks for trying.
Sent from my KFFOWI using Tapatalk
Connorsdad said:
Didn't work, thanks for trying.
Sent from my KFFOWI using Tapatalk
Click to expand...
Click to collapse
Restore she file bootanimation to /system/bin/ folder. If you do it with a root file explorer change the permissions to 755. That's rwx-rx-rx.
If you do it using a shell with terminal for android or by adb, type:
1. su (grant SuperSU permissions in the tablet when it asks for it).
2. mount -o remount,rw /system
3. chmod 0755 /system/bin/bootanimation
4. Reboot
I'm using a root file explorer, permissions set as you say but it still isn't working, what should I set Owner and Group to ?
Sent from my KFFOWI using Tapatalk
Connorsdad said:
I'm using a root file explorer, permissions set as you say but it still isn't working, what should I set Owner and Group to ?
Sent from my KFFOWI using Tapatalk
Click to expand...
Click to collapse
root and shell
Permission denied after 'mount -o remount,rw /system'
Sent from my KFFOWI using Tapatalk
I set owner - root and group - shell, still not working :/
Sent from my SM-N9005 using Tapatalk
Any other ideas anyone or is my only option to start again from stock ?
Sent from my SM-N9005 using Tapatalk

Categories

Resources