android ndk .so共享库的版权保护 [英] Copy protection for android ndk .so shared library

查看:137
本文介绍了android ndk .so共享库的版权保护的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经构建了一个使用我自己的NDK编译的.so共享库的应用程序.我不在乎应用程序的复制保护或模糊处理,它只是一个调用API的客户端,但是我在乎我的本机.so库.

I've built an app that uses my own NDK compiled .so shared library. I don't care about the copy protection or obfuscation of my app, it's just a client calling an API, but I do care of my native .so library.

是否可以通过任何方式保护Android中的本机库,使其无法在我的应用程序之外使用?

Is there any way of copy protecting my native library in android so it can't be used outside my app?

谢谢.

推荐答案

最简单的方法是在.so内部检测应用程序的包名称,如果允许不匹配,则失败.

The simpliest way is to detect inside .so the package name of application and to fail if it mismatches allowed.

这篇关于android ndk .so共享库的版权保护的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆