File Permissions

DustyStew

New Member
Licensed User
Longtime User
I am just starting with B4A. When using the File methods, what is the user ID? Is it possible to change the user, for instance, to system?
My experiments keep running into permission problems.
 

JonPM

Well-Known Member
Licensed User
Longtime User
Not sure what you mean exactly. You are using these file methods? Not too sure what you mean about user ID? I'm pretty sure any time you need to write/read files on the device your app will need some kind of permission.
 
Upvote 0

DustyStew

New Member
Licensed User
Longtime User
system permissions

Any application will run as a particular user, presumably the user who ran the program. The application then has the permissions of that that user.

Files have owners. Some files are owned by root, some by system, some by other individual users, and so on.

From the Linux shell, I cannot access a particular file if I am just a regular user. But if I change to being the user "system" (by entering "su system" on a rooted device) I can now access that file.

If I want to access a file owned by "system", can I do that from B4A?
 
Upvote 0
Top