dimanche 9 juillet 2023

Why is the method list obtained by the reflection call inconsistent with android SDK

The system version of my phone is Android 13, and the API version is 32. I used reflection to get the method list of AccessibilityManager.java, but the list is inconsistent with SDK. For example, there is no public method getClient in the method list of reflection calls.

        try {
            Class clazz= Class.forName("android.view.accessibility.AccessibilityManager");
            Method[] methods = clazz.getMethods();
            for(Method method:methods){
                Log.e(TAG,method.getName());
            }
        }
        catch(Exception e){
            e.printStackTrace();
        }

enter image description here

enter image description here

I tried to change the API version to 33 34, the result is the same. I'm a bit confused why they don't match





Aucun commentaire:

Enregistrer un commentaire