Home > Blockchain >  A question about the permissiones of files generated after the APK installation
A question about the permissiones of files generated after the APK installation

Time:10-09

I know that some directories(e.g. /data/data/{package}/lib) will be generated after APK installation.I want to know whether the permissions(e.g.-rwxr-xr-x) of these directories and files in them can be set at the code level before APK installation?Or is the permission of the files generated during installation granted by the Android system during installation and the permissions cannot be set in advance?How can I do to implement it if the permissions of the generated file can be set in advance?

CodePudding user response:

The files in data/data/package/ are always private to your application. No other process can read or write them (except the system, of course). And there's no way to override those permissions at install time. You probably could at runtime, but I'm not sure why you'd want to.

  • Related