Sinigr
Sinigr

Reputation: 154

Dynamically load shared library from sd card

I want to dynamically load library from SD card, with dlopen, but when I do it, get error: dlopen failed: couldn't map "/storage/emulated/0/Documents/Tests/armeabi-v7a/libtest.so" segment 2: Operation not permitted

When i use it for internal storage it's work. What can i do to solve this problem?

Upvotes: 1

Views: 1485

Answers (1)

Dan Albert
Dan Albert

Reputation: 10499

This is disallowed by Android's security policy. Anyone can write to that location, so loading code from it is an easily exploitable attack vector.

Upvotes: 2

Related Questions