For updating purposes without using the Playstore and without additional user input I am trying to replace the shared library file in the lib/arm directory, however I am having trouble with permissions. Is this even possible? If not, what other way would be possible to make it work?
I am developing with Delphi, but am now searching for a more general answer. I can't seem to find anything related to that topic. I know that this is a security risk, but the devices the app is supposed to be running on are not easily accessible to users to confirm the regular apk-update dialogue later and they are aware of the trade-off.
As far as I can tell, it may be that I need to execute shell commands for superuser access, but I am not sure, if this is the right approach or how to accomplish it in-app.