Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,728,048 Members 46,491 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 1896
Posts: 3,159
Join Date: Jan 2011
Location: HENDERSONVILLE
Delete

Sent from my PARANOID HAMMERHEAD
 
Aerowinder
Old
#3  
Recognized Contributor
Thanks Meter 1191
Posts: 3,019
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 1553
Posts: 5,646
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 9720
Posts: 20,875
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

Pale Moon Browser Ported to Android

Having a wide choice of third party applications is one of the most beautiful things that Android has to … more

Partial Android Wear Source Uploaded to AOSP

2014 is certainly shaping up to be theyear of the wearables. And thanks to its innovative … more

Street Panorama Combines Google Maps and Street View into One App

Google Maps is a must have application forevery amateur world explorer. … more

XDA Behind the Scenes, Part 3

This is the last part of a series of articles that reveals some of the processes, technology, and systems that … more