Android: Create a new folder and change it's permissions

3.3k Views Asked by At

I have an app. I want this app to create a new folder which can only be opened by this app and no one else. I want this folder outside the application internal storage, so that it is visible in file manager, but it can't be opened because of folder permission (rwx --- ---).

So is there a way create a folder, make this app its owner, and change its permission so that only this app can open it and no one else (not even file manager or gallery etc.)

1

There are 1 best solutions below

3
On

In order to change file's permission. First you should get root ownership of the device. Which means YOU HAVE TO ROOT the DEVICE!

Android Application SandBox