简体   繁体   English

Android AAR文件可防止反射

[英]Android AAR file protect from reflection

I have big problem with AAR files. 我对AAR文件有很大的疑问。 I want make an AAR file and give it to some other businesses to have payment solutions with our business (like PayPal AAR file) and i don't want they can reflect our class members and they can't have method call (of course in a reflect way) from their apps. 我想制作一个AAR文件并将其提供给其他一些公司来与我们的业务一起使用付款解决方案(例如PayPal AAR文件),但我不希望它们能够反映我们的类成员并且不能进行方法调用(当然在一种反映方式)。 Is there any way to protect my code from reflection. 有什么方法可以保护我的代码不被反射。 Of course java has security manager but in android we just set null to security manager. 当然,Java具有安全管理器,但在android中,我们只是将null设置为安全管理器。

Is there any way to protect my code from reflection. 有什么方法可以保护我的代码不被反射。

Don't publish it. 不要发布它。

Or, don't write it in Java (or any other JVM language), but instead write it in C/C++. 或者,不要以Java(或任何其他JVM语言)编写它,而是以C / C ++编写它。

Otherwise, no. 否则,不会。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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