简体   繁体   中英

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM