How to check if class exists somewhere in package?

后端 未结 4 731
南笙
南笙 2020-11-29 08:49

I\'m currently dealing with a particular issue with my paid application. Internally it contains a licensing check. The app is patched by hackers by modifying the app apk/j

4条回答
  •  生来不讨喜
    2020-11-29 09:37

    How does it get loaded if it's a random class in a random package?

    That being said, see http://download.oracle.com/javase/6/docs/api/java/lang/System.html#getProperties%28%29 and java.class.path. For normal java apps, you have to walk the classpath and then search the entries (for jars) or directories (for .class files). But in a container-class-loader environment, this will fail to work (and I'm not sure how that applies to an android environment).

提交回复
热议问题