Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,741,801 Members 44,341 Now Online
XDA Developers Android and Mobile Development Forum

[Q] Change file permissions sdcard

Tip us?
 
kabuki-joe
Old
#1  
kabuki-joe's Avatar
Junior Member - OP
Thanks Meter 0
Posts: 8
Join Date: Jan 2011
Location: kingston
Question [Q] Change file permissions sdcard

hello, ive been doing some searching but havent been able to figure out how to change the permissions of a file thats in /sdcard on 4.4.2.
If this is actually possible could someone please point me in the right direction.

Thanks
 
CRIME INC.
Old
(Last edited by CRIME INC.; 6th June 2014 at 01:59 PM.)
#2  
CRIME INC.'s Avatar
Senior Member
Thanks Meter 1909
Posts: 3,170
Join Date: Jan 2011
Location: HENDERSONVILLE
Delete

Sent from my PARANOID HAMMERHEAD
 
Aerowinder
Old
#3  
Recognized Contributor
Thanks Meter 1193
Posts: 3,038
Join Date: Aug 2012
Quote:
Originally Posted by kabuki-joe View Post
hello, ive been doing some searching but havent been able to figure out how to change the permissions of a file thats in /sdcard on 4.4.2.
If this is actually possible could someone please point me in the right direction.

Thanks
I don't think you can.
 

Google Firmware: Google
USB Drivers: Google | Mirror
ADB+ADB Drivers: 19.0.2 (4.4.4) + Koush Universal ADB Drivers

TWRP Official: hammerhead | flo
TWRP Holofied: hammerhead | flo

Gapps: BaNkS

Superuser: Chainfire | Mirror
 
Ben36
Old
#4  
Ben36's Avatar
Senior Member
Thanks Meter 1570
Posts: 5,713
Join Date: Jun 2012
You can't if it's on sd card as it doesn't need permissions. Move it to system and you can

Sent from my Nexus 5 using Tapatalk
 
kabuki-joe
Old
#5  
kabuki-joe's Avatar
Junior Member - OP
Thanks Meter 0
Posts: 8
Join Date: Jan 2011
Location: kingston
I wanted to make a file read only, but i guess it cant be done. Thanks for the replies
 
kabuki-joe
Old
#6  
kabuki-joe's Avatar
Junior Member - OP
Thanks Meter 0
Posts: 8
Join Date: Jan 2011
Location: kingston
just to inform anyone that may be searching for this as well, the reason it cant be done is a limitation of FAT32 which doesnt allow file permissions.
 
rootSU
Old
#7  
rootSU's Avatar
Senior Member
Thanks Meter 10065
Posts: 21,193
Join Date: Aug 2010
Location: Oxenhope, West Yorkshire, UK
Quote:
Originally Posted by kabuki-joe View Post
just to inform anyone that may be searching for this as well, the reason it cant be done is a limitation of FAT32 which doesnt allow file permissions.
Couple of things...

1) Your /sdcard is not formatted in FAT32
2) The limitation is that Android is designed specifically to not allow you to change /sdcard permissions. /sdcard is mounted at boot with a specific set of permissions which are what the system wishes to maintain at all times, for all files.
Want to root/unroot? All important guides and info threads are contained within the "Sticky Roll-up" thread in General. Click the link below to get there!



Philz Touch Recovery with passkey secure lock

I do NOT reply to support queries over PM.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


XDA PORTAL POSTS

Enjoy Wallpaper Overload with PhotoPhase

We don’t usually feature live wallpapers on the XDA Portal unless they are somewhat innovative … more

Monitor What Your Phone’s Camera Sees with Android Wear

Having a smart device strapped to your wrist certainly has its merits. A … more

Mod Lets You Have Stereo Speakers on Your Sony Xperia Z1 (Sort Of)

The stereo speakers onthe Sony Xperia Z2areprobably a relatively large … more

Give Your Screen Some Color with HexaTime Live Wallpaper

We don’t often cover very many live wallpapers here on the XDA Portal. You may … more