How to check if class exists somewhere in package?

后端 未结 4 729
南笙
南笙 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:43

    You can use

    public static Class forName (String className)
    

    and check the ClassNotFoundException

    http://developer.android.com/reference/java/lang/Class.html#forName%28java.lang.String%29

提交回复
热议问题