1

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.)

DarkNemesis
  • 109
  • 1
  • 11

1 Answers1

0

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

Daniel Park
  • 141
  • 1
  • 2
  • 3
  • And what if the app is system app instead of third party app? – DarkNemesis Feb 26 '16 at 11:16
  • Doesn't matter. whether it is system app or not, it needs root privilege. Only way to get root privilege is ROOTING the device and create app for root oriented like Root Manager app. – Daniel Park Feb 27 '16 at 05:54
  • I understand that this requires root, but I'd like to know (and it would answer the question) of how to create a new folder and change access permissions. I can create a folder within /data/data/com.termux using a root file manager, but even after changing permissions with the tool provided by the app, com.termux has no rights to view or modify the content of the folder. – Arlo Dec 08 '17 at 09:18