简体   繁体   中英

Preventing Android NDK shared library from being lifted

My Android app has a Java part and a NDK shared library. I don't want unauthorized people to use the shared library. So what are the ways to prevent other from taking the .so out of the apk file, and then using it in their own app? Thanks a lot!

There's no way you can prevent someone from taking .so files out of your apk.

Instead you can encrypt your native bridge code and your java source code, to make them almost unreadable.

Make sure you can read the encrypted code, or at least have your own decryption methods.

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