Hemant Menaria
Hemant Menaria

Reputation: 701

want to set read only permission on sd card

I want to set read-only permission on external micro-sd card programatically, and user should not be able to access it form phone menu too.

or Is there another way to hide that, because client have a video folder which is played by only subscribed users, therefore i want that folder is either read-only or hidden for other users. plz help .

Upvotes: 1

Views: 832

Answers (3)

COD3BOY
COD3BOY

Reputation: 12092

It's not a reasonable way to say that I have some of my apps data in an sd-card, so no one else should access that!, Better try some alternative like encrypting your data, so that even if someone accessed, they must not be able to read it!

Upvotes: 1

user370305
user370305

Reputation: 109237

You can't get any kind of this, So if possible store the video in internal storage (but if device can rooted then also user can access it), or store in a web server and at a play time play from web. And only option is as per David Schwartz suggested do encryption/Decryption for it.

Upvotes: 1

David Schwartz
David Schwartz

Reputation: 182763

That is not a sensible way to accomplish what you are trying to do. You should be storing the data encrypted and decrypting it strictly in your application. You will never get any kind of 'hiding' to work right.

Upvotes: 2

Related Questions