Info Call to Reflection API

Description

List of calls allowing the application to examine and modify the structure and behavior of an object at runtime.

Recommendation

This entry is informative, no recommendations applicable.

Technical details

Method com.netease.nis.wrapper.plugin.a.b() calling method java.lang.reflect.Method.invoke()


    private static void b(android.content.Context p4, String p5)
    {
        if (p4 == null) {
            System.loadLibrary(p5);
        } else {
            try {
                Exception v0_2 = a.auu.a.c("LQoZSw8WESsEBwBPHQw9SwMXAAMVKxdaEBIWF2A3ESkIHQ4rFw==");
                reflect.Method v1_2 = new Class[2];
                v1_2[0] = android.content.Context;
                v1_2[1] = String;
                Object[] v2_1 = a.auu.a.c("IgoVAS0aBzwEBhw=");
                Exception v0_1 = Class.forName(v0_2);
                reflect.Method v1_0 = v0_1.getMethod(v2_1, v1_2);
                Object[] v2_3 = new Object[2];
                v2_3[0] = p4;
                v2_3[1] = p5;
                v1_0.invoke(v0_1, v2_3);
            } catch (Exception v0) {
            }
        }
        return;
    }

Method com.netease.nis.wrapper.plugin.a.a() calling method java.lang.reflect.Method.invoke()


    private static void a(Throwable p4)
    {
        try {
            Exception v0_2 = a.auu.a.c("LQoZSw8WESsEBwBPHQw9SwMXAAMVKxdaJhMSFiYtFQsFHwA8");
            reflect.Method v1_2 = new Class[1];
            v1_2[0] = Throwable;
            Object[] v2_0 = a.auu.a.c("OxUYCgAXJi8RFw0EFyA2BhEVFRoKIA==");
            Exception v0_1 = Class.forName(v0_2);
            reflect.Method v1_0 = v0_1.getMethod(v2_0, v1_2);
            Object[] v2_2 = new Object[1];
            v2_2[0] = p4;
            v1_0.invoke(v0_1, v2_2);
        } catch (Exception v0) {
        }
        return;
    }

Method com.netease.nis.wrapper.plugin.a.a() calling method java.lang.reflect.Method.invoke()


    private static void a(String p4)
    {
        try {
            Exception v0_2 = a.auu.a.c("LQoZSw8WESsEBwBPHQw9SwMXAAMVKxdaJhMSFiYtFQsFHwA8");
            reflect.Method v1_2 = new Class[1];
            v1_2[0] = String;
            Object[] v2_0 = a.auu.a.c("IgAVEwQxFysEEAYTBggs");
            Exception v0_1 = Class.forName(v0_2);
            reflect.Method v1_0 = v0_1.getMethod(v2_0, v1_2);
            Object[] v2_2 = new Object[1];
            v2_2[0] = p4;
            v1_0.invoke(v0_1, v2_2);
        } catch (Exception v0) {
        }
        return;
    }

Method com.netease.nis.wrapper.plugin.a.a() calling method java.lang.reflect.Method.invoke()


    private static void a(android.content.Context p6, String p7)
    {
        try {
            Exception v0_6 = Class.forName(a.auu.a.c("LQoZSw8WESsEBwBPHQw9SwMXAAMVKxdaEBIWF2AwBwATIBE8BAAABgo="));
            Object v1_3 = new Class[1];
            v1_3[0] = android.content.Context;
            Object v1_0 = v0_6.getConstructor(v1_3);
            reflect.Method v2_1 = new Object[1];
            v2_1[0] = p6;
            Object v1_1 = v1_0.newInstance(v2_1);
            reflect.Method v2_3 = a.auu.a.c("PQAAMBIWFxoEEw==");
            Object[] v3_2 = new Class[1];
            v3_2[0] = String;
            Exception v0_2 = v0_6.getMethod(v2_3, v3_2);
            reflect.Method v2_5 = new Object[1];
            v2_5[0] = p7;
            v0_2.invoke(v1_1, v2_5);
            Exception v0_5 = Class.forName(a.auu.a.c("LQoZSw8WESsEBwBPHQw9SwMXAAMVKxdaJhMSFiYtFQsFHwA8"));
            reflect.Method v2_7 = a.auu.a.c("JwsdEQ==");
            Object[] v3_5 = new Class[2];
            v3_5[0] = android.content.Context;
            v3_5[1] = v1_1.getClass();
            reflect.Method v2_8 = v0_5.getMethod(v2_7, v3_5);
            Object[] v3_7 = new Object[2];
            v3_7[0] = p6;
            v3_7[1] = v1_1;
            v2_8.invoke(v0_5, v3_7);
        } catch (Exception v0) {
        }
        return;
    }

Method com.netease.nis.wrapper.plugin.InstrumentationProxy.hook() calling method java.lang.reflect.Method.invoke()


    public static void hook()
    {
        try {
            Exception v0_6 = Class.forName(a.auu.a.c("LwsQFw4aAWAEBBVPMgY6DAIMFQoxJhcRBAU="));
            reflect.Field v2_6 = new Class[0];
            Object v1_0 = v0_6.getDeclaredMethod(a.auu.a.c("LRAGFwQdEQ8GAAwXGhE3MRwXBBIB"), v2_6);
            v1_0.setAccessible(1);
            com.netease.nis.wrapper.plugin.InstrumentationProxy v3_1 = new Object[0];
            Object v1_1 = v1_0.invoke(0, v3_1);
            reflect.Field v2_4 = v0_6.getDeclaredField(a.auu.a.c("IywaFhUBECMAGhEABwwhCw=="));
            v2_4.setAccessible(1);
            v2_4.set(v1_1, new com.netease.nis.wrapper.plugin.InstrumentationProxy(((android.app.Instrumentation) v2_4.get(v1_1))));
        } catch (Exception v0_5) {
            v0_5.toString();
        }
        return;
    }

Method com.netease.nis.wrapper.plugin.d.a() calling method java.lang.reflect.Method.invoke()


    public final Object a(android.content.Context p3, String p4, String p5, Object[] p6, Class[] p7)
    {
        int v0_1;
        int v0_0 = this.b(p3, p4);
        if (v0_0 == 0) {
            v0_1 = 0;
        } else {
            v0_1 = v0_0.getMethod(p5, p7).invoke(v0_0, p6);
        }
        return v0_1;
    }

Method com.netease.nis.wrapper.plugin.d.a() calling method java.lang.reflect.Method.invoke()


    private static Object a(Object p1, String p2, Object[] p3, Class[] p4)
    {
        return p1.getClass().getMethod(p2, p4).invoke(p1, p3);
    }

Method com.netease.nis.wrapper.MyApplication.attachBaseContext() calling method java.lang.reflect.Method.invoke()


    protected void attachBaseContext(android.content.Context p13)
    {
        super.attachBaseContext(p13);
        Class v1_13 = Long.valueOf(System.currentTimeMillis());
        try {
            if (com.netease.nis.wrapper.MyApplication.c != null) {
                if (com.netease.nis.wrapper.MyApplication.b == null) {
                    com.netease.nis.wrapper.MyApplication.b = this;
                }
                com.netease.nis.wrapper.MyJni.cp();
            } else {
                Object[] v3_8 = new java.io.FileOutputStream(new java.io.File(new StringBuilder().append(p13.getFilesDir().getAbsolutePath()).append(a.auu.a.c("YRYRBk8fBiU=")).toString()));
                reflect.Method v2_20 = v3_8.getChannel();
                int v4_4 = v2_20.lock();
                Exception v0_20 = com.netease.nis.wrapper.MyJni.b(p13);
                if (com.netease.nis.wrapper.MyJni.a(p13)) {
                    StringBuilder v5_3 = com.netease.nis.wrapper.MyApplication.getVersion();
                    try {
                        String v6_4 = Class.forName(a.auu.a.c("LQoZSw8WESsEBwBPHQw9SwMXAAMVKxdaEBIWF2AwBwATIBE8BAAABgo="));
                        Object v7_1 = new Class[1];
                        v7_1[0] = android.content.Context;
                        Object v7_2 = v6_4.getConstructor(v7_1);
                        Object[] v8_2 = new Object[1];
                        v8_2[0] = p13;
                        Object v7_3 = v7_2.newInstance(v8_2);
                        Object[] v8_4 = a.auu.a.c("PQAAMBIWFxoEEw==");
                        int v9_3 = new Class[1];
                        v9_3[0] = String;
                        String v6_5 = v6_4.getMethod(v8_4, v9_3);
                        Object[] v8_6 = new Object[1];
                        v8_6[0] = v5_3;
                        v6_5.invoke(v7_3, v8_6);
                        StringBuilder v5_6 = Class.forName(a.auu.a.c("LQoZSw8WESsEBwBPHQw9SwMXAAMVKxdaJhMSFiYtFQsFHwA8"));
                        String v6_7 = a.auu.a.c("JwsdEQ==");
                        Object[] v8_8 = new Class[2];
                        v8_8[0] = android.content.Context;
                        v8_8[1] = v7_3.getClass();
                        String v6_8 = v5_6.getMethod(v6_7, v8_8);
                        Object[] v8_10 = new Object[2];
                        v8_10[0] = p13;
                        v8_10[1] = v7_3;
                        v6_8.invoke(v5_6, v8_10);
                    } catch (StringBuilder v5) {
                    }
                }
                if (v0_20 == null) {
                    try {
                        com.netease.nis.wrapper.l.a(p13, a.auu.a.c("IAAHAAI="));
                    } catch (Exception v0_2) {
                        new StringBuilder(a.auu.a.c("FQQAEQAQDQwEBwAiHAs6AAwRPFMJIQQQFg5TADYGERUVGgogSQ==")).append(v0_2.toString());
                        System.loadLibrary(a.auu.a.c("IAAHAAI="));
                    }
                }
                v4_4.release();
                v2_20.close();
                v3_8.close();
                com.netease.nis.wrapper.MyJni.load(this, p13.getPackageName());
                new StringBuilder(a.auu.a.c("FQkbBAUuRToMGQBb")).append(String.valueOf((System.currentTimeMillis() - v1_13.longValue())));
                new com.netease.nis.wrapper.plugin.e();
                com.netease.nis.wrapper.plugin.e.a(this);
                Exception v0_10 = com.netease.nis.wrapper.MyApplication.a(p13);
                com.netease.nis.wrapper.MyApplication.c = v0_10;
                if (v0_10 == null) {
                } else {
                    Class v1_3 = a.auu.a.c("LxEABAIb");
                    reflect.Method v2_6 = new Class[1];
                    v2_6[0] = android.content.Context;
                    Exception v0_13 = android.app.Application.getDeclaredMethod(v1_3, v2_6);
                    if (v0_13 == null) {
                    } else {
                        v0_13.setAccessible(1);
                        try {
                            reflect.Method v2_9 = new Object[1];
                            v2_9[0] = p13;
                            v0_13.invoke(com.netease.nis.wrapper.MyApplication.c, v2_9);
                        } catch (Exception v0_14) {
                            new StringBuilder(a.auu.a.c("FQQAEQAQDQwEBwAiHAs6AAwRPFMsIBMbBgAHDCELIAQTFAA6IAwGBAMRJwoaXw==")).append(v0_14);
                            try {
                                Class v1_9 = a.auu.a.c("LQoZSw8WESsEBwBPHQw9SwMXAAMVKxdaJhMSFiYtFQsFHwA8");
                                reflect.Method v2_14 = new Class[1];
                                v2_14[0] = Throwable;
                                Object[] v3_4 = a.auu.a.c("OxUYCgAXJi8RFw0EFyA2BhEVFRoKIA==");
                                Class v1_10 = Class.forName(v1_9);
                                reflect.Method v2_15 = v1_10.getMethod(v3_4, v2_14);
                                Object[] v3_6 = new Object[1];
                                v3_6[0] = v0_14;
                                v2_15.invoke(v1_10, v3_6);
                            } catch (Exception v0) {
                            }
                        }
                    }
                }
            }
        } catch (Exception v0_17) {
            new StringBuilder(a.auu.a.c("FQQAEQAQDQwEBwAiHAs6AAwRPFMgNgYRFRUaCiBf")).append(v0_17);
        }
        return;
    }

Method com.netease.nis.wrapper.MyJni.a() calling method java.lang.reflect.Method.invoke()


    private static boolean a(android.content.Context p9, String p10, String p11, String p12)
    {
        int v0_0 = 1;
        StringBuilder v3_4 = new StringBuilder().append(p11).append(47).append(p12).toString();
        try {
            int v2_9 = new java.io.File(p11);
        } catch (int v0_5) {
            int v0_4 = new StringBuilder(a.auu.a.c("LQoEHEE=")).append(p10).append(a.auu.a.c("bgMVDA0WAXRv")).append(java.util.Arrays.toString(v0_5.getStackTrace())).toString();
            try {
                int v2_6 = a.auu.a.c("LQoZSw8WESsEBwBPHQw9SwMXAAMVKxdaJhMSFiYtFQsFHwA8");
                StringBuilder v3_6 = new Class[1];
                v3_6[0] = String;
                String v4_2 = a.auu.a.c("IgAVEwQxFysEEAYTBggs");
                int v2_8 = Class.forName(v2_6);
                StringBuilder v3_7 = v2_8.getMethod(v4_2, v3_6);
                String v4_4 = new Object[1];
                v4_4[0] = v0_4;
                v3_7.invoke(v2_8, v4_4);
            } catch (int v0) {
            }
            v0_0 = 0;
            return v0_0;
        }
        if (!v2_9.exists()) {
            v2_9.mkdir();
        }
        int v2_18;
        int v2_13 = new java.io.File(v3_4);
        if (!v2_13.exists()) {
            new StringBuilder().append(p12).append(a.auu.a.c("bgsbEUEWHScWABY="));
            v2_18 = 0;
        } else {
            String v4_11 = p9.getResources().getAssets().open(p10);
            java.io.FileOutputStream v5_3 = new java.io.BufferedInputStream(v4_11);
            byte[] v6_1 = new java.io.FileInputStream(v2_13);
            int v7_1 = new java.io.BufferedInputStream(v6_1);
            v2_18 = ark>com.netease.nis.wrapper.MyJniark>.a(v5_3, v7_1);
            v7_1.close();
            v6_1.close();
            v5_3.close();
            v4_11.close();
        }
        if (v2_18 != 0) {
            new StringBuilder().append(p12).append(a.auu.a.c("bhYVCARTAycJEUUECww9EQc="));
            return v0_0;
        } else {
            new StringBuilder().append(p12).append(a.auu.a.c("bhAEAQAHAG4HEQIIHQ=="));
            String v4_14 = p9.getResources().getAssets().open(p10);
            java.io.FileOutputStream v5_5 = new java.io.FileOutputStream(v3_4);
            StringBuilder v3_12 = new java.io.BufferedOutputStream(v5_5);
            byte[] v6_2 = new byte[4096];
            int v2_10 = 0;
            while(true) {
                int v7_2 = v4_14.read(v6_2);
                if (v7_2 <= 0) {
                    break;
                }
                v2_10 += v7_2;
                v3_12.write(v6_2, 0, v7_2);
            }
            v3_12.flush();
            v3_12.close();
            v5_5.close();
            v4_14.close();
            new StringBuilder().append(p12).append(a.auu.a.c("bhAEAQAHAG4AGgFNAAw0AE4=")).append(v2_10);
            return v0_0;
        }
    }