T
T
TheMade2022-04-20 05:44:52
Android
TheMade, 2022-04-20 05:44:52

How to download all Android NDK .so files from outside?

I need to load .so files compiled with Android NDK from external storage in Android, for example in "/sdcard/myapp/mods" path.
And also use in these files the substitution of functions in the original .so files in the APK file.
Is it possible to implement this without root rights?
If yes, how to implement it?
And also, how will the path to the .so file located in the APK file look like relative to the file located along the path "/sdcard/myapp/mods", and is it possible to replace functions in this way?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
rPman, 2022-04-20
@TheMade

External drives are mounted in android with noexec options and that's right, don't leave such a hole in the standard, you want to see what happens in the end - enjoy windows with garbage in the profile in appdata. The restriction applies only to native code, in other cases, the interpreter can be distributed with the application itself, and it, in turn, will run scripts or pseudocode from anywhere.
The application itself does not have access to the application's private directory, only the data directory. And this is also true. Updating libraries should be done with regular tools - by installing apk
Or require such rightsto your application, then it will be able to update itself without questions, or request the installation of an apk file and let the user decide whether he wants it or not

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question