Potentially Use non-random initialization vector (IV)

Description

Use of a non-random initialization vector makes the application vulnerable to dictionary attacks.

The following example demonstrates improper settings of hardcoded static IV:

public class InsecureExample {
    @Override
    public void run() throws Exception{
        byte[] IV = "0123456789abcdef".getBytes();
        String clearText = "Jan van Eyck was here 1434";
        String key = "ThisIs128bitSize";
        SecretKeySpec skeySpec = new SecretKeySpec(key.getBytes(), "AES");
        Cipher cipher = Cipher.getInstance("AES/CBC/PKCS5Padding");
        cipher.init(Cipher.ENCRYPT_MODE, skeySpec, new IvParameterSpec(IV));
        byte[] encryptedMessage = cipher.doFinal(clearText.getBytes());
        Log.i(TAG, String.format("Message: %s", Base64.encodeToString(encryptedMessage, Base64.DEFAULT)));
    }
}

Recommendation

Properly initialize the IV with a secure random value

Technical details
[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/d$3;', 'run', '()V'), ('Lcom/baidu/android/pushservice/d;', 'a', '(Z)V'), ('Lcom/baidu/android/pushservice/f;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/f;'), ('Lcom/baidu/android/pushservice/f;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'g', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'a', '(Landroid/content/Context; Z Z)V'), ('Lcom/baidu/android/pushservice/i/k;', 'd', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'u', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'b', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/Object;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.d$3.run():


    public void run()
    {
        com.baidu.android.pushservice.f.a.c("PushConnection", " -- Send Timeout --", com.baidu.android.pushservice.d.c(this.a).getApplicationContext());
        if (com.baidu.android.pushservice.d.i(this.a)) {
            com.baidu.android.pushservice.d.d(this.a, 0);
        }
        this.a.a(0);
        com.baidu.android.pushservice.d.e(this.a);
        String v0_6 = new StringBuilder();
        v0_6.append("PushConnection Send Timeout ");
        v0_6.append(com.baidu.android.pushservice.d.c(this.a).getPackageName());
        v0_6.append(" lastSocketError ");
        v0_6.append(com.baidu.android.pushservice.jni.PushSocket.getLastSocketError());
        v0_6.append(" socketfd ");
        v0_6.append(com.baidu.android.pushservice.d.h());
        v0_6.append(System.currentTimeMillis());
        com.baidu.android.pushservice.i.l.b(v0_6.toString(), com.baidu.android.pushservice.d.c(this.a).getApplicationContext());
        return;
    }

Method com.baidu.android.pushservice.d.a():


    public void a(boolean p5)
    {
        com.baidu.android.pushservice.g.h v5_18;
        int v0_1 = com.baidu.android.pushservice.i.g.d(this.l);
        if (android.text.TextUtils.equals(this.B, v0_1)) {
            int v1_7 = this.e();
            if (p5 == null) {
                this.x = 0;
                this.z = 0;
                if (!com.baidu.android.pushservice.i.g.a(this.l)) {
                    this.w = (this.w + 1);
                } else {
                    com.baidu.android.pushservice.g.h v5_3 = this.w;
                    if (v5_3 > null) {
                        this.w = (v5_3 - 1);
                        this.f();
                    }
                }
            } else {
                if (com.baidu.android.pushservice.i.g.a(this.l)) {
                    this.f();
                    this.x = (this.x + 1);
                    if (this.x >= 3) {
                        this.x = 0;
                        com.baidu.android.pushservice.g.h v5_10 = this.w;
                        if (v5_10 < (this.v.length - 1)) {
                            this.x = 0;
                            this.w = (v5_10 + 1);
                        }
                    }
                    if (this.z >= 30) {
                        this.z = 0;
                        com.baidu.android.pushservice.g.h v5_14 = new com.baidu.android.pushservice.g.h();
                        v5_14.d = "030101";
                        v5_14.e = System.currentTimeMillis();
                        v5_14.f = com.baidu.android.pushservice.g.a.b.b(this.l);
                        v5_14.a = this.e();
                        com.baidu.android.pushservice.g.o.a(this.l, v5_14);
                    }
                }
            }
            v5_18 = new StringBuilder();
            v5_18.append("RTC stat change from ");
            v5_18.append(v1_7);
            v5_18.append(" to ");
            v5_18.append(this.e());
        } else {
            this.w = this.g();
            this.x = 0;
            v5_18 = new StringBuilder();
            v5_18.append("RTC stat change ");
            v5_18.append(this.e());
            v5_18.append(" because of network changing");
        }
        com.baidu.android.pushservice.i.l.b(v5_18.toString(), this.l);
        this.B = v0_1;
        com.baidu.android.pushservice.f.a(this.l).a(this.e());
        return;
    }

Method com.baidu.android.pushservice.f.a():


    public static declared_synchronized com.baidu.android.pushservice.f a(android.content.Context p2)
    {
        try {
            if (com.baidu.android.pushservice.f.c == null) {
                com.baidu.android.pushservice.f.c = new com.baidu.android.pushservice.f(p2);
            }
        } catch (com.baidu.android.pushservice.f v2_1) {
            throw v2_1;
        }
        return com.baidu.android.pushservice.f.c;
    }

Method com.baidu.android.pushservice.f.<init>():


    private f(android.content.Context p3)
    {
        this.h = Boolean.valueOf(0);
        this.p = new com.baidu.android.pushservice.f$2(this);
        this.q = new com.baidu.android.pushservice.f$3(this);
        this.r = new com.baidu.android.pushservice.f$4(this);
        this.k = new android.os.Handler(p3.getMainLooper());
        this.j = p3.getApplicationContext();
        this.e = com.baidu.android.pushservice.f.d;
        com.baidu.android.pushservice.i.l.g(this.j.getApplicationContext());
        return;
    }

Method com.baidu.android.pushservice.i.l.g():


    public static void g(android.content.Context p1)
    {
        com.baidu.android.pushservice.i.l.a(p1, 0, 0);
        return;
    }

Method com.baidu.android.pushservice.i.l.a():


    public static void a(android.content.Context p7, boolean p8, boolean p9)
    {
        short v1_3 = new StringBuilder();
        v1_3.append(p7.getPackageName());
        v1_3.append(": updateServiceInfo isForce = ");
        v1_3.append(p8);
        v1_3.append(",isSend = ");
        v1_3.append(p9);
        com.baidu.android.pushservice.f.a.a("Utility", v1_3.toString(), p7.getApplicationContext());
        short v1_2 = 0;
        String v0_2 = p7.getSharedPreferences("pst", 0);
        int v2_2 = com.baidu.android.pushservice.i.l.d(p7, p7.getPackageName());
        if ((v0_2.getInt("pr_app_v", 0) < v2_2) || (p8 != null)) {
            String v8_1 = com.baidu.android.pushservice.i.l.c(p7);
            if ((com.baidu.android.pushservice.b.e.k(p7)) && (!com.baidu.android.pushservice.b.e.c(p7))) {
                v1_2 = 1;
            }
            long v3_4 = 0;
            if ((v8_1 == null) && (v1_2 == 0)) {
                com.baidu.android.pushservice.c.c.a(p7, com.baidu.android.pushservice.i.l.f(p7));
            } else {
                com.baidu.android.pushservice.c.c.a(p7, 0);
            }
            if (com.baidu.android.pushservice.i.l.D(p7)) {
                String v8_2;
                android.content.SharedPreferences$Editor v5_3 = new StringBuilder();
                v5_3.append(p7.getPackageName());
                v5_3.append(".push_sync");
                android.content.SharedPreferences$Editor v5_6 = p7.getSharedPreferences(v5_3.toString(), 5).edit();
                if ((v8_1 == null) && (v1_2 == 0)) {
                    v8_2 = "priority2";
                    v3_4 = com.baidu.android.pushservice.i.l.f(p7);
                } else {
                    v8_2 = "priority2";
                }
                v5_6.putLong(v8_2, v3_4);
                v5_6.putInt("version2", com.baidu.android.pushservice.a.a());
                v5_6.commit();
            }
            com.baidu.android.pushservice.c.c.b(p7, ((long) com.baidu.android.pushservice.a.a()));
            String v8_5 = v0_2.edit();
            v8_5.putInt("pr_app_v", v2_2);
            v8_5.commit();
        }
        if (p9) {
            com.baidu.android.pushservice.i.k.d(p7);
        }
        return;
    }

Method com.baidu.android.pushservice.i.k.d():


    public static void d(android.content.Context p5)
    {
        com.baidu.android.pushservice.b.e.a(p5).e();
        if ((!com.baidu.android.pushservice.b.e.k(p5)) || (com.baidu.android.pushservice.b.e.c(p5))) {
            boolean v0_1 = com.baidu.android.pushservice.i.l.u(p5);
            int v1_0 = p5.getPackageName();
            com.baidu.android.pushservice.i.k.a = com.baidu.android.pushservice.i.l.v(p5);
            String v2_1 = 0;
            if ((com.baidu.android.pushservice.a.a(v1_0)) && (!v1_0.equals(com.baidu.android.pushservice.i.k.a))) {
                v0_1 = v1_0;
                v2_1 = 1;
            }
            com.baidu.android.pushservice.a.c(p5, v2_1);
            if ((android.text.TextUtils.isEmpty(v0_1)) || ((!v0_1.equals(com.baidu.android.pushservice.i.k.a)) || (v2_1 != null))) {
                com.baidu.android.pushservice.i.k.a(p5, v0_1);
            }
            if ((p5.getPackageName().startsWith("com.baidu.searchbox")) && ((!com.baidu.android.pushservice.job.a.b()) && ((!com.baidu.android.pushservice.i.l.l(p5)) && ((!com.baidu.android.pushservice.b.e.c(p5)) && ((android.os.Build$VERSION.SDK_INT > 22) || ((!com.baidu.android.pushservice.i.l.d()) && (!com.baidu.android.pushservice.i.l.e()))))))) {
                com.baidu.android.pushservice.job.a.a(p5);
                com.baidu.android.pushservice.job.a.a(1);
            }
            com.baidu.android.pushservice.h.d.a().a(new com.baidu.android.pushservice.i.k$1("checkAndStartPushService", 98, p5.getApplicationContext()));
            return;
        } else {
            return;
        }
    }

Method com.baidu.android.pushservice.i.l.u():


    public static String u(android.content.Context p4)
    {
        if (!com.baidu.android.pushservice.i.l.E(p4)) {
            java.util.Iterator v0_5 = com.baidu.android.pushservice.i.a.a(p4, "com.baidu.push.cur_pkg");
            String v1_6 = com.baidu.android.pushservice.i.l.s(p4);
            if ((android.text.TextUtils.isEmpty(v0_5)) || (!v1_6.contains(v0_5))) {
                if (!v1_6.isEmpty()) {
                    java.util.Iterator v0_2 = v1_6.iterator();
                    while (v0_2.hasNext()) {
                        String v1_2 = ((String) v0_2.next());
                        if ((!com.baidu.android.pushservice.i.l.z(p4, v1_2)) && ((com.baidu.android.pushservice.i.l.o(p4, v1_2)) && (com.baidu.android.pushservice.i.l.h(p4, v1_2)))) {
                            return v1_2;
                        }
                    }
                }
            } else {
                if ((com.baidu.android.pushservice.i.l.o(p4, v0_5)) && (com.baidu.android.pushservice.i.l.h(p4, v0_5))) {
                    return v0_5;
                }
            }
        } else {
            java.util.Iterator v0_4 = com.baidu.android.pushservice.i.l.s(p4);
            String v1_4 = com.baidu.android.pushservice.i.l.p(p4);
            if (!v0_4.isEmpty()) {
                String v1_5 = v1_4.iterator();
                while (v1_5.hasNext()) {
                    boolean v2_9 = ((android.content.pm.ResolveInfo) v1_5.next()).activityInfo.packageName;
                    if ((v0_4.contains(v2_9)) && ((com.baidu.android.pushservice.i.l.o(p4, v2_9)) && (com.baidu.android.pushservice.i.l.h(p4, v2_9)))) {
                        return v2_9;
                    }
                }
            }
        }
        return 0;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.b():


    private static Object b(android.content.Context p1, String p2)
    {
        if (!com.baidu.android.pushservice.i.l.u(p1, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            return 0;
        } else {
            try {
                return com.baidu.android.pushservice.i.a.a(p1).opt(p2);
            } catch (Throwable v1_2) {
                throw v1_2;
            }
        }
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/d$a;', 'run', '()V'), ('Lcom/baidu/android/pushservice/d;', 'a', '(Z)V'), ('Lcom/baidu/android/pushservice/f;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/f;'), ('Lcom/baidu/android/pushservice/f;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'g', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'a', '(Landroid/content/Context; Z Z)V'), ('Lcom/baidu/android/pushservice/i/k;', 'd', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'u', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'b', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/Object;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.d$a.run():


    public void run()
    {
        while (!com.baidu.android.pushservice.d.j(this.a)) {
            try {
                com.baidu.android.pushservice.d v0_1 = com.baidu.android.pushservice.jni.PushSocket.a(com.baidu.android.pushservice.d.c(this.a), com.baidu.android.pushservice.d.h());
            } catch (com.baidu.android.pushservice.d v0_3) {
                com.baidu.android.pushservice.f.a.b("PushConnection", "Get message exception", com.baidu.android.pushservice.d.c(this.a).getApplicationContext());
                com.baidu.android.pushservice.g.o.a(com.baidu.android.pushservice.d.c(this.a), v0_3);
                v0_1 = 0;
            }
            this.a.a.removeCallbacks(com.baidu.android.pushservice.d.k(this.a));
            if (com.baidu.android.pushservice.d.i(this.a)) {
                com.baidu.android.pushservice.d.d(this.a, 0);
                this.a.a(1);
            }
            if ((v0_1 != null) && (v0_1.length != 0)) {
                try {
                    com.baidu.android.pushservice.d v0_17 = this.a.b.a(v0_1, v0_1.length);
                } catch (com.baidu.android.pushservice.d v0_18) {
                    long v2_23 = new StringBuilder();
                    v2_23.append("Read message exception ");
                    v2_23.append(com.baidu.android.pushservice.i.l.a(v0_18));
                    com.baidu.android.pushservice.f.a.c("PushConnection", v2_23.toString(), com.baidu.android.pushservice.d.c(this.a).getApplicationContext());
                    com.baidu.android.pushservice.d.e(this.a);
                    android.content.Context v1_10 = new StringBuilder();
                    v1_10.append("PushConnection Read message exception ");
                    v1_10.append(com.baidu.android.pushservice.d.c(this.a).getPackageName());
                    v1_10.append(com.baidu.android.pushservice.i.l.a(v0_18));
                    v1_10.append(" lastSocketError ");
                    com.baidu.android.pushservice.d v0_11 = com.baidu.android.pushservice.jni.PushSocket.getLastSocketError();
                }
                if (v0_17 != null) {
                    try {
                        this.a.b.b(v0_17);
                    } catch (com.baidu.android.pushservice.d v0_22) {
                        long v2_30 = new StringBuilder();
                        v2_30.append("Handle message exception ");
                        v2_30.append(com.baidu.android.pushservice.i.l.a(v0_22));
                        com.baidu.android.pushservice.f.a.b("PushConnection", v2_30.toString(), com.baidu.android.pushservice.d.c(this.a).getApplicationContext());
                        android.content.Context v1_1 = new StringBuilder();
                        v1_1.append("PushConnection Handle message exception ");
                        v1_1.append(com.baidu.android.pushservice.d.c(this.a).getPackageName());
                        v1_1.append(com.baidu.android.pushservice.i.l.a(v0_22));
                        v1_1.append(" lastSocketError ");
                        v1_1.append(com.baidu.android.pushservice.jni.PushSocket.getLastSocketError());
                        v1_1.append(" socketfd ");
                        v1_1.append(com.baidu.android.pushservice.d.h());
                        v1_1.append(System.currentTimeMillis());
                        com.baidu.android.pushservice.i.l.b(v1_1.toString(), com.baidu.android.pushservice.d.c(this.a).getApplicationContext());
                        com.baidu.android.pushservice.d.e(this.a);
                    }
                }
                com.baidu.android.pushservice.d.b(this.a, 0);
            } else {
                v0_11 = com.baidu.android.pushservice.jni.PushSocket.getLastSocketError();
                long v2_8 = new StringBuilder();
                v2_8.append("Receive err,errno:");
                v2_8.append(v0_11);
                com.baidu.android.pushservice.f.a.a("PushConnection", v2_8.toString(), com.baidu.android.pushservice.d.c(this.a).getApplicationContext());
                com.baidu.android.pushservice.d.a(this.a, "039913", v0_11);
                com.baidu.android.pushservice.d.e(this.a);
                v1_10 = new StringBuilder();
                v1_10.append("PushConnection Receive err ");
                v1_10.append(com.baidu.android.pushservice.d.c(this.a).getPackageName());
                v1_10.append(" lastSocketError ");
            }
            v1_10.append(v0_11);
            v1_10.append(" socketfd ");
            v1_10.append(com.baidu.android.pushservice.d.h());
            v1_10.append(System.currentTimeMillis());
            com.baidu.android.pushservice.i.l.b(v1_10.toString(), com.baidu.android.pushservice.d.c(this.a).getApplicationContext());
        }
        return;
    }

Method com.baidu.android.pushservice.d.a():


    public void a(boolean p5)
    {
        com.baidu.android.pushservice.g.h v5_18;
        int v0_1 = com.baidu.android.pushservice.i.g.d(this.l);
        if (android.text.TextUtils.equals(this.B, v0_1)) {
            int v1_7 = this.e();
            if (p5 == null) {
                this.x = 0;
                this.z = 0;
                if (!com.baidu.android.pushservice.i.g.a(this.l)) {
                    this.w = (this.w + 1);
                } else {
                    com.baidu.android.pushservice.g.h v5_3 = this.w;
                    if (v5_3 > null) {
                        this.w = (v5_3 - 1);
                        this.f();
                    }
                }
            } else {
                if (com.baidu.android.pushservice.i.g.a(this.l)) {
                    this.f();
                    this.x = (this.x + 1);
                    if (this.x >= 3) {
                        this.x = 0;
                        com.baidu.android.pushservice.g.h v5_10 = this.w;
                        if (v5_10 < (this.v.length - 1)) {
                            this.x = 0;
                            this.w = (v5_10 + 1);
                        }
                    }
                    if (this.z >= 30) {
                        this.z = 0;
                        com.baidu.android.pushservice.g.h v5_14 = new com.baidu.android.pushservice.g.h();
                        v5_14.d = "030101";
                        v5_14.e = System.currentTimeMillis();
                        v5_14.f = com.baidu.android.pushservice.g.a.b.b(this.l);
                        v5_14.a = this.e();
                        com.baidu.android.pushservice.g.o.a(this.l, v5_14);
                    }
                }
            }
            v5_18 = new StringBuilder();
            v5_18.append("RTC stat change from ");
            v5_18.append(v1_7);
            v5_18.append(" to ");
            v5_18.append(this.e());
        } else {
            this.w = this.g();
            this.x = 0;
            v5_18 = new StringBuilder();
            v5_18.append("RTC stat change ");
            v5_18.append(this.e());
            v5_18.append(" because of network changing");
        }
        com.baidu.android.pushservice.i.l.b(v5_18.toString(), this.l);
        this.B = v0_1;
        com.baidu.android.pushservice.f.a(this.l).a(this.e());
        return;
    }

Method com.baidu.android.pushservice.f.a():


    public static declared_synchronized com.baidu.android.pushservice.f a(android.content.Context p2)
    {
        try {
            if (com.baidu.android.pushservice.f.c == null) {
                com.baidu.android.pushservice.f.c = new com.baidu.android.pushservice.f(p2);
            }
        } catch (com.baidu.android.pushservice.f v2_1) {
            throw v2_1;
        }
        return com.baidu.android.pushservice.f.c;
    }

Method com.baidu.android.pushservice.f.<init>():


    private f(android.content.Context p3)
    {
        this.h = Boolean.valueOf(0);
        this.p = new com.baidu.android.pushservice.f$2(this);
        this.q = new com.baidu.android.pushservice.f$3(this);
        this.r = new com.baidu.android.pushservice.f$4(this);
        this.k = new android.os.Handler(p3.getMainLooper());
        this.j = p3.getApplicationContext();
        this.e = com.baidu.android.pushservice.f.d;
        com.baidu.android.pushservice.i.l.g(this.j.getApplicationContext());
        return;
    }

Method com.baidu.android.pushservice.i.l.g():


    public static void g(android.content.Context p1)
    {
        com.baidu.android.pushservice.i.l.a(p1, 0, 0);
        return;
    }

Method com.baidu.android.pushservice.i.l.a():


    public static void a(android.content.Context p7, boolean p8, boolean p9)
    {
        short v1_3 = new StringBuilder();
        v1_3.append(p7.getPackageName());
        v1_3.append(": updateServiceInfo isForce = ");
        v1_3.append(p8);
        v1_3.append(",isSend = ");
        v1_3.append(p9);
        com.baidu.android.pushservice.f.a.a("Utility", v1_3.toString(), p7.getApplicationContext());
        short v1_2 = 0;
        String v0_2 = p7.getSharedPreferences("pst", 0);
        int v2_2 = com.baidu.android.pushservice.i.l.d(p7, p7.getPackageName());
        if ((v0_2.getInt("pr_app_v", 0) < v2_2) || (p8 != null)) {
            String v8_1 = com.baidu.android.pushservice.i.l.c(p7);
            if ((com.baidu.android.pushservice.b.e.k(p7)) && (!com.baidu.android.pushservice.b.e.c(p7))) {
                v1_2 = 1;
            }
            long v3_4 = 0;
            if ((v8_1 == null) && (v1_2 == 0)) {
                com.baidu.android.pushservice.c.c.a(p7, com.baidu.android.pushservice.i.l.f(p7));
            } else {
                com.baidu.android.pushservice.c.c.a(p7, 0);
            }
            if (com.baidu.android.pushservice.i.l.D(p7)) {
                String v8_2;
                android.content.SharedPreferences$Editor v5_3 = new StringBuilder();
                v5_3.append(p7.getPackageName());
                v5_3.append(".push_sync");
                android.content.SharedPreferences$Editor v5_6 = p7.getSharedPreferences(v5_3.toString(), 5).edit();
                if ((v8_1 == null) && (v1_2 == 0)) {
                    v8_2 = "priority2";
                    v3_4 = com.baidu.android.pushservice.i.l.f(p7);
                } else {
                    v8_2 = "priority2";
                }
                v5_6.putLong(v8_2, v3_4);
                v5_6.putInt("version2", com.baidu.android.pushservice.a.a());
                v5_6.commit();
            }
            com.baidu.android.pushservice.c.c.b(p7, ((long) com.baidu.android.pushservice.a.a()));
            String v8_5 = v0_2.edit();
            v8_5.putInt("pr_app_v", v2_2);
            v8_5.commit();
        }
        if (p9) {
            com.baidu.android.pushservice.i.k.d(p7);
        }
        return;
    }

Method com.baidu.android.pushservice.i.k.d():


    public static void d(android.content.Context p5)
    {
        com.baidu.android.pushservice.b.e.a(p5).e();
        if ((!com.baidu.android.pushservice.b.e.k(p5)) || (com.baidu.android.pushservice.b.e.c(p5))) {
            boolean v0_1 = com.baidu.android.pushservice.i.l.u(p5);
            int v1_0 = p5.getPackageName();
            com.baidu.android.pushservice.i.k.a = com.baidu.android.pushservice.i.l.v(p5);
            String v2_1 = 0;
            if ((com.baidu.android.pushservice.a.a(v1_0)) && (!v1_0.equals(com.baidu.android.pushservice.i.k.a))) {
                v0_1 = v1_0;
                v2_1 = 1;
            }
            com.baidu.android.pushservice.a.c(p5, v2_1);
            if ((android.text.TextUtils.isEmpty(v0_1)) || ((!v0_1.equals(com.baidu.android.pushservice.i.k.a)) || (v2_1 != null))) {
                com.baidu.android.pushservice.i.k.a(p5, v0_1);
            }
            if ((p5.getPackageName().startsWith("com.baidu.searchbox")) && ((!com.baidu.android.pushservice.job.a.b()) && ((!com.baidu.android.pushservice.i.l.l(p5)) && ((!com.baidu.android.pushservice.b.e.c(p5)) && ((android.os.Build$VERSION.SDK_INT > 22) || ((!com.baidu.android.pushservice.i.l.d()) && (!com.baidu.android.pushservice.i.l.e()))))))) {
                com.baidu.android.pushservice.job.a.a(p5);
                com.baidu.android.pushservice.job.a.a(1);
            }
            com.baidu.android.pushservice.h.d.a().a(new com.baidu.android.pushservice.i.k$1("checkAndStartPushService", 98, p5.getApplicationContext()));
            return;
        } else {
            return;
        }
    }

Method com.baidu.android.pushservice.i.l.u():


    public static String u(android.content.Context p4)
    {
        if (!com.baidu.android.pushservice.i.l.E(p4)) {
            java.util.Iterator v0_5 = com.baidu.android.pushservice.i.a.a(p4, "com.baidu.push.cur_pkg");
            String v1_6 = com.baidu.android.pushservice.i.l.s(p4);
            if ((android.text.TextUtils.isEmpty(v0_5)) || (!v1_6.contains(v0_5))) {
                if (!v1_6.isEmpty()) {
                    java.util.Iterator v0_2 = v1_6.iterator();
                    while (v0_2.hasNext()) {
                        String v1_2 = ((String) v0_2.next());
                        if ((!com.baidu.android.pushservice.i.l.z(p4, v1_2)) && ((com.baidu.android.pushservice.i.l.o(p4, v1_2)) && (com.baidu.android.pushservice.i.l.h(p4, v1_2)))) {
                            return v1_2;
                        }
                    }
                }
            } else {
                if ((com.baidu.android.pushservice.i.l.o(p4, v0_5)) && (com.baidu.android.pushservice.i.l.h(p4, v0_5))) {
                    return v0_5;
                }
            }
        } else {
            java.util.Iterator v0_4 = com.baidu.android.pushservice.i.l.s(p4);
            String v1_4 = com.baidu.android.pushservice.i.l.p(p4);
            if (!v0_4.isEmpty()) {
                String v1_5 = v1_4.iterator();
                while (v1_5.hasNext()) {
                    boolean v2_9 = ((android.content.pm.ResolveInfo) v1_5.next()).activityInfo.packageName;
                    if ((v0_4.contains(v2_9)) && ((com.baidu.android.pushservice.i.l.o(p4, v2_9)) && (com.baidu.android.pushservice.i.l.h(p4, v2_9)))) {
                        return v2_9;
                    }
                }
            }
        }
        return 0;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.b():


    private static Object b(android.content.Context p1, String p2)
    {
        if (!com.baidu.android.pushservice.i.l.u(p1, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            return 0;
        } else {
            try {
                return com.baidu.android.pushservice.i.a.a(p1).opt(p2);
            } catch (Throwable v1_2) {
                throw v1_2;
            }
        }
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/d/a$a;', 'a', '(Ljava/lang/Boolean;)V'), ('Lcom/baidu/android/pushservice/i;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/i;'), ('Lcom/baidu/android/pushservice/i;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/PushSettings;', 'a', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'b', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/Object;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.d.a$a.a():


    public void a(Boolean p4)
    {
        android.content.Context v0_1 = new StringBuilder();
        v0_1.append("RequetChannelListener#isGetChannelToken#isSucceed=");
        v0_1.append(p4);
        com.baidu.android.pushservice.i.l.b(v0_1.toString(), this.a.a);
        if (!p4.booleanValue()) {
            if (!com.baidu.android.pushservice.i.a(this.a.a).e()) {
                this.a.a(10002);
                com.baidu.android.pushservice.i.l.b("RequetChannelListener#isGetChannelToken#isSucceed=false, errorcode=10002", this.a.a);
            }
        } else {
            String v4_9 = this.a.c();
            android.content.Context v1_2 = new StringBuilder();
            v1_2.append("netWorkConnect connectResult: ");
            v1_2.append(v4_9);
            com.baidu.android.pushservice.f.a.c("AbstractProcessor", v1_2.toString(), this.a.a);
        }
        return;
    }

Method com.baidu.android.pushservice.i.a():


    public static declared_synchronized com.baidu.android.pushservice.i a(android.content.Context p2)
    {
        try {
            if (com.baidu.android.pushservice.i.a == null) {
                com.baidu.android.pushservice.i.a = new com.baidu.android.pushservice.i(p2);
            }
        } catch (com.baidu.android.pushservice.i v2_1) {
            throw v2_1;
        }
        return com.baidu.android.pushservice.i.a;
    }

Method com.baidu.android.pushservice.i.<init>():


    private i(android.content.Context p2)
    {
        this.d = com.baidu.android.pushservice.i.i.a(p2, "com.baidu.pushservice.channel_token");
        this.b = com.baidu.android.pushservice.PushSettings.a(p2);
        if (com.baidu.android.pushservice.b.e.b(p2)) {
            this.e = com.baidu.android.pushservice.i.i.a(p2, "com.baidu.pushservice.channel_token_new");
            this.c = com.baidu.android.pushservice.PushSettings.b(p2);
        }
        this.g = 0;
        this.h = p2;
        return;
    }

Method com.baidu.android.pushservice.PushSettings.a():


    public static String a(android.content.Context p3)
    {
        String v0_2 = com.baidu.android.pushservice.i.a.a(p3, "com.baidu.pushservice.channel_id");
        if (android.text.TextUtils.isEmpty(v0_2)) {
            v0_2 = com.baidu.android.pushservice.i.i.a(p3, "com.baidu.pushservice.channel_id");
            if (android.text.TextUtils.isEmpty(v0_2)) {
                v0_2 = com.baidu.android.pushservice.c.c.a(p3, 0);
                if (android.text.TextUtils.isEmpty(v0_2)) {
                    int v1_3 = com.baidu.android.pushservice.i.l.n(p3).iterator();
                    while (v1_3.hasNext()) {
                        v0_2 = com.baidu.android.pushservice.c.d.a(p3, ((String) v1_3.next()));
                        if (!android.text.TextUtils.isEmpty(v0_2)) {
                            com.baidu.android.pushservice.PushSettings.a(p3, v0_2, 0);
                            break;
                        }
                    }
                }
            }
        }
        return v0_2;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.b():


    private static Object b(android.content.Context p1, String p2)
    {
        if (!com.baidu.android.pushservice.i.l.u(p1, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            return 0;
        } else {
            try {
                return com.baidu.android.pushservice.i.a.a(p1).opt(p2);
            } catch (Throwable v1_2) {
                throw v1_2;
            }
        }
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/PushManager;', 'delTags', '(Landroid/content/Context; Ljava/util/List;)V'), ('Lcom/baidu/android/pushservice/e;', 'b', '(Landroid/content/Context; Landroid/content/Intent;)V'), ('Lcom/baidu/android/pushservice/e;', 'a', '(Landroid/content/Context; Landroid/content/Intent;)Z'), ('Lcom/baidu/android/pushservice/h;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/h;'), ('Lcom/baidu/android/pushservice/h;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/i;'), ('Lcom/baidu/android/pushservice/i;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/PushSettings;', 'a', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'b', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/Object;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.PushManager.delTags():


    public static void delTags(android.content.Context p4, java.util.List p5)
    {
        if ((p5 != null) && (p5.size() != 0)) {
            android.content.Intent v0_1 = com.baidu.android.pushservice.e.a(p4);
            if (v0_1 != null) {
                String v1_0 = "[";
                String v5_7 = p5.iterator();
                while (v5_7.hasNext()) {
                    android.content.Context v2_6 = ((String) v5_7.next());
                    StringBuilder v3_1 = new StringBuilder();
                    v3_1.append(v1_0);
                    v3_1.append("\"");
                    String v1_6 = v3_1.toString();
                    StringBuilder v3_3 = new StringBuilder();
                    v3_3.append(v1_6);
                    v3_3.append(v2_6);
                    String v1_7 = v3_3.toString();
                    android.content.Context v2_8 = new StringBuilder();
                    v2_8.append(v1_7);
                    v2_8.append("\",");
                    v1_0 = v2_8.toString();
                }
                if (v1_0.length() > 0) {
                    v1_0 = v1_0.substring(0, (v1_0.length() - 1));
                }
                String v5_4 = new StringBuilder();
                v5_4.append(v1_0);
                v5_4.append("]");
                String v5_5 = v5_4.toString();
                v0_1.putExtra("method", "method_del_tags");
                v0_1.putExtra("tags", v5_5);
                com.baidu.android.pushservice.f.a.a("PushManager", "a delTags intent send", p4.getApplicationContext());
                com.baidu.android.pushservice.e.b(p4, v0_1);
            } else {
                return;
            }
        }
        return;
    }

Method com.baidu.android.pushservice.e.b():


    public static void b(android.content.Context p1, android.content.Intent p2)
    {
        if (!com.baidu.android.pushservice.e.a(p1, p2)) {
            p1.sendBroadcast(p2);
        }
        return;
    }

Method com.baidu.android.pushservice.e.a():


    public static boolean a(android.content.Context p0, android.content.Intent p1)
    {
        return com.baidu.android.pushservice.h.a(p0).a(p1);
    }

Method com.baidu.android.pushservice.h.a():


    public static declared_synchronized com.baidu.android.pushservice.h a(android.content.Context p2)
    {
        try {
            if (com.baidu.android.pushservice.h.c == null) {
                com.baidu.android.pushservice.h.c = new com.baidu.android.pushservice.h(p2);
            }
        } catch (com.baidu.android.pushservice.h v2_1) {
            throw v2_1;
        }
        return com.baidu.android.pushservice.h.c;
    }

Method com.baidu.android.pushservice.h.<init>():


    private h(android.content.Context p1)
    {
        this.a = p1;
        com.baidu.android.pushservice.a.b.a(p1);
        com.baidu.android.pushservice.i.a(p1);
        com.baidu.android.pushservice.h.d.a();
        return;
    }

Method com.baidu.android.pushservice.i.a():


    public static declared_synchronized com.baidu.android.pushservice.i a(android.content.Context p2)
    {
        try {
            if (com.baidu.android.pushservice.i.a == null) {
                com.baidu.android.pushservice.i.a = new com.baidu.android.pushservice.i(p2);
            }
        } catch (com.baidu.android.pushservice.i v2_1) {
            throw v2_1;
        }
        return com.baidu.android.pushservice.i.a;
    }

Method com.baidu.android.pushservice.i.<init>():


    private i(android.content.Context p2)
    {
        this.d = com.baidu.android.pushservice.i.i.a(p2, "com.baidu.pushservice.channel_token");
        this.b = com.baidu.android.pushservice.PushSettings.a(p2);
        if (com.baidu.android.pushservice.b.e.b(p2)) {
            this.e = com.baidu.android.pushservice.i.i.a(p2, "com.baidu.pushservice.channel_token_new");
            this.c = com.baidu.android.pushservice.PushSettings.b(p2);
        }
        this.g = 0;
        this.h = p2;
        return;
    }

Method com.baidu.android.pushservice.PushSettings.a():


    public static String a(android.content.Context p3)
    {
        String v0_2 = com.baidu.android.pushservice.i.a.a(p3, "com.baidu.pushservice.channel_id");
        if (android.text.TextUtils.isEmpty(v0_2)) {
            v0_2 = com.baidu.android.pushservice.i.i.a(p3, "com.baidu.pushservice.channel_id");
            if (android.text.TextUtils.isEmpty(v0_2)) {
                v0_2 = com.baidu.android.pushservice.c.c.a(p3, 0);
                if (android.text.TextUtils.isEmpty(v0_2)) {
                    int v1_3 = com.baidu.android.pushservice.i.l.n(p3).iterator();
                    while (v1_3.hasNext()) {
                        v0_2 = com.baidu.android.pushservice.c.d.a(p3, ((String) v1_3.next()));
                        if (!android.text.TextUtils.isEmpty(v0_2)) {
                            com.baidu.android.pushservice.PushSettings.a(p3, v0_2, 0);
                            break;
                        }
                    }
                }
            }
        }
        return v0_2;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.b():


    private static Object b(android.content.Context p1, String p2)
    {
        if (!com.baidu.android.pushservice.i.l.u(p1, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            return 0;
        } else {
            try {
                return com.baidu.android.pushservice.i.a.a(p1).opt(p2);
            } catch (Throwable v1_2) {
                throw v1_2;
            }
        }
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/PushManager;', 'listTags', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/e;', 'b', '(Landroid/content/Context; Landroid/content/Intent;)V'), ('Lcom/baidu/android/pushservice/e;', 'a', '(Landroid/content/Context; Landroid/content/Intent;)Z'), ('Lcom/baidu/android/pushservice/h;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/h;'), ('Lcom/baidu/android/pushservice/h;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/i;'), ('Lcom/baidu/android/pushservice/i;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/PushSettings;', 'a', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'b', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/Object;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.PushManager.listTags():


    public static void listTags(android.content.Context p4)
    {
        android.content.Intent v0 = com.baidu.android.pushservice.e.a(p4);
        if (v0 != null) {
            v0.putExtra("method", "method_listtags");
            com.baidu.android.pushservice.f.a.a("PushManager", "a listTags intent send", p4.getApplicationContext());
            com.baidu.android.pushservice.e.b(p4, v0);
            return;
        } else {
            return;
        }
    }

Method com.baidu.android.pushservice.e.b():


    public static void b(android.content.Context p1, android.content.Intent p2)
    {
        if (!com.baidu.android.pushservice.e.a(p1, p2)) {
            p1.sendBroadcast(p2);
        }
        return;
    }

Method com.baidu.android.pushservice.e.a():


    public static boolean a(android.content.Context p0, android.content.Intent p1)
    {
        return com.baidu.android.pushservice.h.a(p0).a(p1);
    }

Method com.baidu.android.pushservice.h.a():


    public static declared_synchronized com.baidu.android.pushservice.h a(android.content.Context p2)
    {
        try {
            if (com.baidu.android.pushservice.h.c == null) {
                com.baidu.android.pushservice.h.c = new com.baidu.android.pushservice.h(p2);
            }
        } catch (com.baidu.android.pushservice.h v2_1) {
            throw v2_1;
        }
        return com.baidu.android.pushservice.h.c;
    }

Method com.baidu.android.pushservice.h.<init>():


    private h(android.content.Context p1)
    {
        this.a = p1;
        com.baidu.android.pushservice.a.b.a(p1);
        com.baidu.android.pushservice.i.a(p1);
        com.baidu.android.pushservice.h.d.a();
        return;
    }

Method com.baidu.android.pushservice.i.a():


    public static declared_synchronized com.baidu.android.pushservice.i a(android.content.Context p2)
    {
        try {
            if (com.baidu.android.pushservice.i.a == null) {
                com.baidu.android.pushservice.i.a = new com.baidu.android.pushservice.i(p2);
            }
        } catch (com.baidu.android.pushservice.i v2_1) {
            throw v2_1;
        }
        return com.baidu.android.pushservice.i.a;
    }

Method com.baidu.android.pushservice.i.<init>():


    private i(android.content.Context p2)
    {
        this.d = com.baidu.android.pushservice.i.i.a(p2, "com.baidu.pushservice.channel_token");
        this.b = com.baidu.android.pushservice.PushSettings.a(p2);
        if (com.baidu.android.pushservice.b.e.b(p2)) {
            this.e = com.baidu.android.pushservice.i.i.a(p2, "com.baidu.pushservice.channel_token_new");
            this.c = com.baidu.android.pushservice.PushSettings.b(p2);
        }
        this.g = 0;
        this.h = p2;
        return;
    }

Method com.baidu.android.pushservice.PushSettings.a():


    public static String a(android.content.Context p3)
    {
        String v0_2 = com.baidu.android.pushservice.i.a.a(p3, "com.baidu.pushservice.channel_id");
        if (android.text.TextUtils.isEmpty(v0_2)) {
            v0_2 = com.baidu.android.pushservice.i.i.a(p3, "com.baidu.pushservice.channel_id");
            if (android.text.TextUtils.isEmpty(v0_2)) {
                v0_2 = com.baidu.android.pushservice.c.c.a(p3, 0);
                if (android.text.TextUtils.isEmpty(v0_2)) {
                    int v1_3 = com.baidu.android.pushservice.i.l.n(p3).iterator();
                    while (v1_3.hasNext()) {
                        v0_2 = com.baidu.android.pushservice.c.d.a(p3, ((String) v1_3.next()));
                        if (!android.text.TextUtils.isEmpty(v0_2)) {
                            com.baidu.android.pushservice.PushSettings.a(p3, v0_2, 0);
                            break;
                        }
                    }
                }
            }
        }
        return v0_2;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.b():


    private static Object b(android.content.Context p1, String p2)
    {
        if (!com.baidu.android.pushservice.i.l.u(p1, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            return 0;
        } else {
            try {
                return com.baidu.android.pushservice.i.a.a(p1).opt(p2);
            } catch (Throwable v1_2) {
                throw v1_2;
            }
        }
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/PushManager;', 'reStartWork', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i/k;', 'd', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'u', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'b', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/Object;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.PushManager.reStartWork():


    public static void reStartWork(android.content.Context p3)
    {
        String v1_1 = new StringBuilder();
        v1_1.append("reStartWork from ");
        v1_1.append(p3.getPackageName());
        com.baidu.android.pushservice.f.a.a("PushManager", v1_1.toString(), p3);
        com.baidu.android.pushservice.i.k.d(p3);
        return;
    }

Method com.baidu.android.pushservice.i.k.d():


    public static void d(android.content.Context p5)
    {
        com.baidu.android.pushservice.b.e.a(p5).e();
        if ((!com.baidu.android.pushservice.b.e.k(p5)) || (com.baidu.android.pushservice.b.e.c(p5))) {
            boolean v0_1 = com.baidu.android.pushservice.i.l.u(p5);
            int v1_0 = p5.getPackageName();
            com.baidu.android.pushservice.i.k.a = com.baidu.android.pushservice.i.l.v(p5);
            String v2_1 = 0;
            if ((com.baidu.android.pushservice.a.a(v1_0)) && (!v1_0.equals(com.baidu.android.pushservice.i.k.a))) {
                v0_1 = v1_0;
                v2_1 = 1;
            }
            com.baidu.android.pushservice.a.c(p5, v2_1);
            if ((android.text.TextUtils.isEmpty(v0_1)) || ((!v0_1.equals(com.baidu.android.pushservice.i.k.a)) || (v2_1 != null))) {
                com.baidu.android.pushservice.i.k.a(p5, v0_1);
            }
            if ((p5.getPackageName().startsWith("com.baidu.searchbox")) && ((!com.baidu.android.pushservice.job.a.b()) && ((!com.baidu.android.pushservice.i.l.l(p5)) && ((!com.baidu.android.pushservice.b.e.c(p5)) && ((android.os.Build$VERSION.SDK_INT > 22) || ((!com.baidu.android.pushservice.i.l.d()) && (!com.baidu.android.pushservice.i.l.e()))))))) {
                com.baidu.android.pushservice.job.a.a(p5);
                com.baidu.android.pushservice.job.a.a(1);
            }
            com.baidu.android.pushservice.h.d.a().a(new com.baidu.android.pushservice.i.k$1("checkAndStartPushService", 98, p5.getApplicationContext()));
            return;
        } else {
            return;
        }
    }

Method com.baidu.android.pushservice.i.l.u():


    public static String u(android.content.Context p4)
    {
        if (!com.baidu.android.pushservice.i.l.E(p4)) {
            java.util.Iterator v0_5 = com.baidu.android.pushservice.i.a.a(p4, "com.baidu.push.cur_pkg");
            String v1_6 = com.baidu.android.pushservice.i.l.s(p4);
            if ((android.text.TextUtils.isEmpty(v0_5)) || (!v1_6.contains(v0_5))) {
                if (!v1_6.isEmpty()) {
                    java.util.Iterator v0_2 = v1_6.iterator();
                    while (v0_2.hasNext()) {
                        String v1_2 = ((String) v0_2.next());
                        if ((!com.baidu.android.pushservice.i.l.z(p4, v1_2)) && ((com.baidu.android.pushservice.i.l.o(p4, v1_2)) && (com.baidu.android.pushservice.i.l.h(p4, v1_2)))) {
                            return v1_2;
                        }
                    }
                }
            } else {
                if ((com.baidu.android.pushservice.i.l.o(p4, v0_5)) && (com.baidu.android.pushservice.i.l.h(p4, v0_5))) {
                    return v0_5;
                }
            }
        } else {
            java.util.Iterator v0_4 = com.baidu.android.pushservice.i.l.s(p4);
            String v1_4 = com.baidu.android.pushservice.i.l.p(p4);
            if (!v0_4.isEmpty()) {
                String v1_5 = v1_4.iterator();
                while (v1_5.hasNext()) {
                    boolean v2_9 = ((android.content.pm.ResolveInfo) v1_5.next()).activityInfo.packageName;
                    if ((v0_4.contains(v2_9)) && ((com.baidu.android.pushservice.i.l.o(p4, v2_9)) && (com.baidu.android.pushservice.i.l.h(p4, v2_9)))) {
                        return v2_9;
                    }
                }
            }
        }
        return 0;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.b():


    private static Object b(android.content.Context p1, String p2)
    {
        if (!com.baidu.android.pushservice.i.l.u(p1, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            return 0;
        } else {
            try {
                return com.baidu.android.pushservice.i.a.a(p1).opt(p2);
            } catch (Throwable v1_2) {
                throw v1_2;
            }
        }
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/PushManager;', 'resumeWork', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'a', '(Landroid/content/Context; Z Z)V'), ('Lcom/baidu/android/pushservice/i/k;', 'd', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'u', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'b', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/Object;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.PushManager.resumeWork():


    public static void resumeWork(android.content.Context p1)
    {
        if (!com.baidu.android.pushservice.e.l(p1)) {
            com.baidu.android.pushservice.a.b(p1, 1);
            com.baidu.android.pushservice.i.l.a(p1, 1, 1);
            com.baidu.android.pushservice.a.a(p1, 1);
            com.baidu.android.pushservice.i.k.a(p1);
            com.baidu.android.pushservice.e.b(p1, 0);
            return;
        } else {
            return;
        }
    }

Method com.baidu.android.pushservice.i.l.a():


    public static void a(android.content.Context p7, boolean p8, boolean p9)
    {
        short v1_3 = new StringBuilder();
        v1_3.append(p7.getPackageName());
        v1_3.append(": updateServiceInfo isForce = ");
        v1_3.append(p8);
        v1_3.append(",isSend = ");
        v1_3.append(p9);
        com.baidu.android.pushservice.f.a.a("Utility", v1_3.toString(), p7.getApplicationContext());
        short v1_2 = 0;
        String v0_2 = p7.getSharedPreferences("pst", 0);
        int v2_2 = com.baidu.android.pushservice.i.l.d(p7, p7.getPackageName());
        if ((v0_2.getInt("pr_app_v", 0) < v2_2) || (p8 != null)) {
            String v8_1 = com.baidu.android.pushservice.i.l.c(p7);
            if ((com.baidu.android.pushservice.b.e.k(p7)) && (!com.baidu.android.pushservice.b.e.c(p7))) {
                v1_2 = 1;
            }
            long v3_4 = 0;
            if ((v8_1 == null) && (v1_2 == 0)) {
                com.baidu.android.pushservice.c.c.a(p7, com.baidu.android.pushservice.i.l.f(p7));
            } else {
                com.baidu.android.pushservice.c.c.a(p7, 0);
            }
            if (com.baidu.android.pushservice.i.l.D(p7)) {
                String v8_2;
                android.content.SharedPreferences$Editor v5_3 = new StringBuilder();
                v5_3.append(p7.getPackageName());
                v5_3.append(".push_sync");
                android.content.SharedPreferences$Editor v5_6 = p7.getSharedPreferences(v5_3.toString(), 5).edit();
                if ((v8_1 == null) && (v1_2 == 0)) {
                    v8_2 = "priority2";
                    v3_4 = com.baidu.android.pushservice.i.l.f(p7);
                } else {
                    v8_2 = "priority2";
                }
                v5_6.putLong(v8_2, v3_4);
                v5_6.putInt("version2", com.baidu.android.pushservice.a.a());
                v5_6.commit();
            }
            com.baidu.android.pushservice.c.c.b(p7, ((long) com.baidu.android.pushservice.a.a()));
            String v8_5 = v0_2.edit();
            v8_5.putInt("pr_app_v", v2_2);
            v8_5.commit();
        }
        if (p9) {
            com.baidu.android.pushservice.i.k.d(p7);
        }
        return;
    }

Method com.baidu.android.pushservice.i.k.d():


    public static void d(android.content.Context p5)
    {
        com.baidu.android.pushservice.b.e.a(p5).e();
        if ((!com.baidu.android.pushservice.b.e.k(p5)) || (com.baidu.android.pushservice.b.e.c(p5))) {
            boolean v0_1 = com.baidu.android.pushservice.i.l.u(p5);
            int v1_0 = p5.getPackageName();
            com.baidu.android.pushservice.i.k.a = com.baidu.android.pushservice.i.l.v(p5);
            String v2_1 = 0;
            if ((com.baidu.android.pushservice.a.a(v1_0)) && (!v1_0.equals(com.baidu.android.pushservice.i.k.a))) {
                v0_1 = v1_0;
                v2_1 = 1;
            }
            com.baidu.android.pushservice.a.c(p5, v2_1);
            if ((android.text.TextUtils.isEmpty(v0_1)) || ((!v0_1.equals(com.baidu.android.pushservice.i.k.a)) || (v2_1 != null))) {
                com.baidu.android.pushservice.i.k.a(p5, v0_1);
            }
            if ((p5.getPackageName().startsWith("com.baidu.searchbox")) && ((!com.baidu.android.pushservice.job.a.b()) && ((!com.baidu.android.pushservice.i.l.l(p5)) && ((!com.baidu.android.pushservice.b.e.c(p5)) && ((android.os.Build$VERSION.SDK_INT > 22) || ((!com.baidu.android.pushservice.i.l.d()) && (!com.baidu.android.pushservice.i.l.e()))))))) {
                com.baidu.android.pushservice.job.a.a(p5);
                com.baidu.android.pushservice.job.a.a(1);
            }
            com.baidu.android.pushservice.h.d.a().a(new com.baidu.android.pushservice.i.k$1("checkAndStartPushService", 98, p5.getApplicationContext()));
            return;
        } else {
            return;
        }
    }

Method com.baidu.android.pushservice.i.l.u():


    public static String u(android.content.Context p4)
    {
        if (!com.baidu.android.pushservice.i.l.E(p4)) {
            java.util.Iterator v0_5 = com.baidu.android.pushservice.i.a.a(p4, "com.baidu.push.cur_pkg");
            String v1_6 = com.baidu.android.pushservice.i.l.s(p4);
            if ((android.text.TextUtils.isEmpty(v0_5)) || (!v1_6.contains(v0_5))) {
                if (!v1_6.isEmpty()) {
                    java.util.Iterator v0_2 = v1_6.iterator();
                    while (v0_2.hasNext()) {
                        String v1_2 = ((String) v0_2.next());
                        if ((!com.baidu.android.pushservice.i.l.z(p4, v1_2)) && ((com.baidu.android.pushservice.i.l.o(p4, v1_2)) && (com.baidu.android.pushservice.i.l.h(p4, v1_2)))) {
                            return v1_2;
                        }
                    }
                }
            } else {
                if ((com.baidu.android.pushservice.i.l.o(p4, v0_5)) && (com.baidu.android.pushservice.i.l.h(p4, v0_5))) {
                    return v0_5;
                }
            }
        } else {
            java.util.Iterator v0_4 = com.baidu.android.pushservice.i.l.s(p4);
            String v1_4 = com.baidu.android.pushservice.i.l.p(p4);
            if (!v0_4.isEmpty()) {
                String v1_5 = v1_4.iterator();
                while (v1_5.hasNext()) {
                    boolean v2_9 = ((android.content.pm.ResolveInfo) v1_5.next()).activityInfo.packageName;
                    if ((v0_4.contains(v2_9)) && ((com.baidu.android.pushservice.i.l.o(p4, v2_9)) && (com.baidu.android.pushservice.i.l.h(p4, v2_9)))) {
                        return v2_9;
                    }
                }
            }
        }
        return 0;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.b():


    private static Object b(android.content.Context p1, String p2)
    {
        if (!com.baidu.android.pushservice.i.l.u(p1, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            return 0;
        } else {
            try {
                return com.baidu.android.pushservice.i.a.a(p1).opt(p2);
            } catch (Throwable v1_2) {
                throw v1_2;
            }
        }
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/PushManager;', 'setTags', '(Landroid/content/Context; Ljava/util/List;)V'), ('Lcom/baidu/android/pushservice/e;', 'b', '(Landroid/content/Context; Landroid/content/Intent;)V'), ('Lcom/baidu/android/pushservice/e;', 'a', '(Landroid/content/Context; Landroid/content/Intent;)Z'), ('Lcom/baidu/android/pushservice/h;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/h;'), ('Lcom/baidu/android/pushservice/h;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/i;'), ('Lcom/baidu/android/pushservice/i;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/PushSettings;', 'a', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'b', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/Object;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.PushManager.setTags():


    public static void setTags(android.content.Context p4, java.util.List p5)
    {
        if ((p5 != null) && (p5.size() != 0)) {
            android.content.Intent v0_1 = com.baidu.android.pushservice.e.a(p4);
            if (v0_1 != null) {
                String v1_0 = "[";
                String v5_7 = p5.iterator();
                while (v5_7.hasNext()) {
                    android.content.Context v2_6 = ((String) v5_7.next());
                    StringBuilder v3_1 = new StringBuilder();
                    v3_1.append(v1_0);
                    v3_1.append("\"");
                    String v1_6 = v3_1.toString();
                    StringBuilder v3_3 = new StringBuilder();
                    v3_3.append(v1_6);
                    v3_3.append(v2_6);
                    String v1_7 = v3_3.toString();
                    android.content.Context v2_8 = new StringBuilder();
                    v2_8.append(v1_7);
                    v2_8.append("\",");
                    v1_0 = v2_8.toString();
                }
                if (v1_0.length() > 0) {
                    v1_0 = v1_0.substring(0, (v1_0.length() - 1));
                }
                String v5_4 = new StringBuilder();
                v5_4.append(v1_0);
                v5_4.append("]");
                String v5_5 = v5_4.toString();
                v0_1.putExtra("method", "method_set_tags");
                v0_1.putExtra("tags", v5_5);
                com.baidu.android.pushservice.f.a.a("PushManager", "a setTags intent send ", p4.getApplicationContext());
                com.baidu.android.pushservice.e.b(p4, v0_1);
            } else {
                return;
            }
        }
        return;
    }

Method com.baidu.android.pushservice.e.b():


    public static void b(android.content.Context p1, android.content.Intent p2)
    {
        if (!com.baidu.android.pushservice.e.a(p1, p2)) {
            p1.sendBroadcast(p2);
        }
        return;
    }

Method com.baidu.android.pushservice.e.a():


    public static boolean a(android.content.Context p0, android.content.Intent p1)
    {
        return com.baidu.android.pushservice.h.a(p0).a(p1);
    }

Method com.baidu.android.pushservice.h.a():


    public static declared_synchronized com.baidu.android.pushservice.h a(android.content.Context p2)
    {
        try {
            if (com.baidu.android.pushservice.h.c == null) {
                com.baidu.android.pushservice.h.c = new com.baidu.android.pushservice.h(p2);
            }
        } catch (com.baidu.android.pushservice.h v2_1) {
            throw v2_1;
        }
        return com.baidu.android.pushservice.h.c;
    }

Method com.baidu.android.pushservice.h.<init>():


    private h(android.content.Context p1)
    {
        this.a = p1;
        com.baidu.android.pushservice.a.b.a(p1);
        com.baidu.android.pushservice.i.a(p1);
        com.baidu.android.pushservice.h.d.a();
        return;
    }

Method com.baidu.android.pushservice.i.a():


    public static declared_synchronized com.baidu.android.pushservice.i a(android.content.Context p2)
    {
        try {
            if (com.baidu.android.pushservice.i.a == null) {
                com.baidu.android.pushservice.i.a = new com.baidu.android.pushservice.i(p2);
            }
        } catch (com.baidu.android.pushservice.i v2_1) {
            throw v2_1;
        }
        return com.baidu.android.pushservice.i.a;
    }

Method com.baidu.android.pushservice.i.<init>():


    private i(android.content.Context p2)
    {
        this.d = com.baidu.android.pushservice.i.i.a(p2, "com.baidu.pushservice.channel_token");
        this.b = com.baidu.android.pushservice.PushSettings.a(p2);
        if (com.baidu.android.pushservice.b.e.b(p2)) {
            this.e = com.baidu.android.pushservice.i.i.a(p2, "com.baidu.pushservice.channel_token_new");
            this.c = com.baidu.android.pushservice.PushSettings.b(p2);
        }
        this.g = 0;
        this.h = p2;
        return;
    }

Method com.baidu.android.pushservice.PushSettings.a():


    public static String a(android.content.Context p3)
    {
        String v0_2 = com.baidu.android.pushservice.i.a.a(p3, "com.baidu.pushservice.channel_id");
        if (android.text.TextUtils.isEmpty(v0_2)) {
            v0_2 = com.baidu.android.pushservice.i.i.a(p3, "com.baidu.pushservice.channel_id");
            if (android.text.TextUtils.isEmpty(v0_2)) {
                v0_2 = com.baidu.android.pushservice.c.c.a(p3, 0);
                if (android.text.TextUtils.isEmpty(v0_2)) {
                    int v1_3 = com.baidu.android.pushservice.i.l.n(p3).iterator();
                    while (v1_3.hasNext()) {
                        v0_2 = com.baidu.android.pushservice.c.d.a(p3, ((String) v1_3.next()));
                        if (!android.text.TextUtils.isEmpty(v0_2)) {
                            com.baidu.android.pushservice.PushSettings.a(p3, v0_2, 0);
                            break;
                        }
                    }
                }
            }
        }
        return v0_2;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.b():


    private static Object b(android.content.Context p1, String p2)
    {
        if (!com.baidu.android.pushservice.i.l.u(p1, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            return 0;
        } else {
            try {
                return com.baidu.android.pushservice.i.a.a(p1).opt(p2);
            } catch (Throwable v1_2) {
                throw v1_2;
            }
        }
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/PushManager;', 'startWork', '(Landroid/content/Context; I Ljava/lang/String;)V'), ('Lcom/baidu/android/pushservice/g;', 'b', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/PushSettings;', 'a', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'b', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/Object;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.PushManager.startWork():


    public static void startWork(android.content.Context p3, int p4, String p5)
    {
        if (!com.baidu.android.pushservice.e.l(p3)) {
            com.baidu.android.pushservice.e.a = p4;
            com.baidu.android.pushservice.e.b = p5;
            com.baidu.android.pushservice.g.b(p3);
            String v5_2 = com.baidu.android.pushservice.i.l.l(p3, p5);
            com.baidu.android.pushservice.i.i.a(p3, "com.baidu.android.pushservice.CHECK_SDK", v5_2);
            String v1_1 = new StringBuilder();
            v1_1.append("startWork from ");
            v1_1.append(p3.getPackageName());
            v1_1.append(" checkResult: ");
            v1_1.append(v5_2);
            com.baidu.android.pushservice.f.a.a("PushManager", v1_1.toString(), p3.getApplicationContext());
            String v0_3 = new StringBuilder();
            v0_3.append("startWork from ");
            v0_3.append(p3.getPackageName());
            v0_3.append(" checkResult: ");
            v0_3.append(v5_2);
            com.baidu.android.pushservice.i.l.b(v0_3.toString(), p3);
            if (((!android.text.TextUtils.equals("com.baidu.android.pushservice.CHECK_SDK_RESULT_OK", v5_2)) && (com.baidu.android.pushservice.PushSettings.d(p3))) || (p4 != 0)) {
                if (p4 != 0) {
                    android.util.Log.e("BDPushSDK-PushManager", "Wrong LOGIN TYPE, Please use LOGIN_TYPE_API_KEY !");
                }
                com.baidu.android.pushservice.e.d(p3, 10101, v5_2);
            } else {
                com.baidu.android.pushservice.e.a(p3, p4, com.baidu.android.pushservice.e.b);
            }
            com.baidu.android.pushservice.i.l.B(p3);
            return;
        } else {
            return;
        }
    }

Method com.baidu.android.pushservice.g.b():

Couldn't retrieve source code

Method com.baidu.android.pushservice.PushSettings.a():


    public static String a(android.content.Context p3)
    {
        String v0_2 = com.baidu.android.pushservice.i.a.a(p3, "com.baidu.pushservice.channel_id");
        if (android.text.TextUtils.isEmpty(v0_2)) {
            v0_2 = com.baidu.android.pushservice.i.i.a(p3, "com.baidu.pushservice.channel_id");
            if (android.text.TextUtils.isEmpty(v0_2)) {
                v0_2 = com.baidu.android.pushservice.c.c.a(p3, 0);
                if (android.text.TextUtils.isEmpty(v0_2)) {
                    int v1_3 = com.baidu.android.pushservice.i.l.n(p3).iterator();
                    while (v1_3.hasNext()) {
                        v0_2 = com.baidu.android.pushservice.c.d.a(p3, ((String) v1_3.next()));
                        if (!android.text.TextUtils.isEmpty(v0_2)) {
                            com.baidu.android.pushservice.PushSettings.a(p3, v0_2, 0);
                            break;
                        }
                    }
                }
            }
        }
        return v0_2;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.b():


    private static Object b(android.content.Context p1, String p2)
    {
        if (!com.baidu.android.pushservice.i.l.u(p1, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            return 0;
        } else {
            try {
                return com.baidu.android.pushservice.i.a.a(p1).opt(p2);
            } catch (Throwable v1_2) {
                throw v1_2;
            }
        }
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/PushManager;', 'stopWork', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/e;', 'g', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/e;', 'b', '(Landroid/content/Context; Landroid/content/Intent;)V'), ('Lcom/baidu/android/pushservice/e;', 'a', '(Landroid/content/Context; Landroid/content/Intent;)Z'), ('Lcom/baidu/android/pushservice/h;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/h;'), ('Lcom/baidu/android/pushservice/h;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/i;'), ('Lcom/baidu/android/pushservice/i;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/PushSettings;', 'a', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'b', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/Object;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.PushManager.stopWork():


    public static void stopWork(android.content.Context p3)
    {
        if (!com.baidu.android.pushservice.e.l(p3)) {
            boolean v1_12 = new StringBuilder();
            v1_12.append("stopWork from");
            v1_12.append(p3.getPackageName());
            com.baidu.android.pushservice.f.a.a("PushManager", v1_12.toString(), p3.getApplicationContext());
            int v0_2 = new StringBuilder();
            v0_2.append("stopWork from");
            v0_2.append(p3.getPackageName());
            v0_2.append(" at time of ");
            v0_2.append(System.currentTimeMillis());
            com.baidu.android.pushservice.i.l.b(v0_2.toString(), p3);
            com.baidu.android.pushservice.e.g(p3);
            com.baidu.android.pushservice.a.b(p3, 0);
            com.baidu.android.pushservice.i.l.a(p3, 1, 1);
            com.baidu.android.pushservice.a.a(p3, 1);
            com.baidu.android.pushservice.i.l.f(p3, p3.getPackageName());
            boolean v1_10 = p3.getSharedPreferences("com.baidu.pushservice.BIND_CACHE", 0).edit();
            v1_10.putBoolean("bind_status", 0);
            v1_10.commit();
            if (com.baidu.android.pushservice.a.d(p3)) {
                com.baidu.android.pushservice.a.c(p3, 0);
            }
            com.baidu.android.pushservice.job.a.a();
            return;
        } else {
            return;
        }
    }

Method com.baidu.android.pushservice.e.g():


    public static void g(android.content.Context p3)
    {
        android.content.Intent v0 = com.baidu.android.pushservice.e.a(p3);
        if (v0 != null) {
            v0.putExtra("method", "method_unbind");
            com.baidu.android.pushservice.e.b(p3, v0);
            return;
        } else {
            return;
        }
    }

Method com.baidu.android.pushservice.e.b():


    public static void b(android.content.Context p1, android.content.Intent p2)
    {
        if (!com.baidu.android.pushservice.e.a(p1, p2)) {
            p1.sendBroadcast(p2);
        }
        return;
    }

Method com.baidu.android.pushservice.e.a():


    public static boolean a(android.content.Context p0, android.content.Intent p1)
    {
        return com.baidu.android.pushservice.h.a(p0).a(p1);
    }

Method com.baidu.android.pushservice.h.a():


    public static declared_synchronized com.baidu.android.pushservice.h a(android.content.Context p2)
    {
        try {
            if (com.baidu.android.pushservice.h.c == null) {
                com.baidu.android.pushservice.h.c = new com.baidu.android.pushservice.h(p2);
            }
        } catch (com.baidu.android.pushservice.h v2_1) {
            throw v2_1;
        }
        return com.baidu.android.pushservice.h.c;
    }

Method com.baidu.android.pushservice.h.<init>():


    private h(android.content.Context p1)
    {
        this.a = p1;
        com.baidu.android.pushservice.a.b.a(p1);
        com.baidu.android.pushservice.i.a(p1);
        com.baidu.android.pushservice.h.d.a();
        return;
    }

Method com.baidu.android.pushservice.i.a():


    public static declared_synchronized com.baidu.android.pushservice.i a(android.content.Context p2)
    {
        try {
            if (com.baidu.android.pushservice.i.a == null) {
                com.baidu.android.pushservice.i.a = new com.baidu.android.pushservice.i(p2);
            }
        } catch (com.baidu.android.pushservice.i v2_1) {
            throw v2_1;
        }
        return com.baidu.android.pushservice.i.a;
    }

Method com.baidu.android.pushservice.i.<init>():


    private i(android.content.Context p2)
    {
        this.d = com.baidu.android.pushservice.i.i.a(p2, "com.baidu.pushservice.channel_token");
        this.b = com.baidu.android.pushservice.PushSettings.a(p2);
        if (com.baidu.android.pushservice.b.e.b(p2)) {
            this.e = com.baidu.android.pushservice.i.i.a(p2, "com.baidu.pushservice.channel_token_new");
            this.c = com.baidu.android.pushservice.PushSettings.b(p2);
        }
        this.g = 0;
        this.h = p2;
        return;
    }

Method com.baidu.android.pushservice.PushSettings.a():


    public static String a(android.content.Context p3)
    {
        String v0_2 = com.baidu.android.pushservice.i.a.a(p3, "com.baidu.pushservice.channel_id");
        if (android.text.TextUtils.isEmpty(v0_2)) {
            v0_2 = com.baidu.android.pushservice.i.i.a(p3, "com.baidu.pushservice.channel_id");
            if (android.text.TextUtils.isEmpty(v0_2)) {
                v0_2 = com.baidu.android.pushservice.c.c.a(p3, 0);
                if (android.text.TextUtils.isEmpty(v0_2)) {
                    int v1_3 = com.baidu.android.pushservice.i.l.n(p3).iterator();
                    while (v1_3.hasNext()) {
                        v0_2 = com.baidu.android.pushservice.c.d.a(p3, ((String) v1_3.next()));
                        if (!android.text.TextUtils.isEmpty(v0_2)) {
                            com.baidu.android.pushservice.PushSettings.a(p3, v0_2, 0);
                            break;
                        }
                    }
                }
            }
        }
        return v0_2;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.b():


    private static Object b(android.content.Context p1, String p2)
    {
        if (!com.baidu.android.pushservice.i.l.u(p1, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            return 0;
        } else {
            try {
                return com.baidu.android.pushservice.i.a.a(p1).opt(p2);
            } catch (Throwable v1_2) {
                throw v1_2;
            }
        }
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/PushMessageReceiver;', 'handleXiaomiMessageCallBack', '(Landroid/content/Context; Lcom/xiaomi/mipush/sdk/MiPushMessage; I)V'), ('Lcom/baidu/android/pushservice/i/l;', 'B', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/h;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/h;'), ('Lcom/baidu/android/pushservice/h;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/i;'), ('Lcom/baidu/android/pushservice/i;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/PushSettings;', 'a', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'b', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/Object;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.PushMessageReceiver.handleXiaomiMessageCallBack():


    private void handleXiaomiMessageCallBack(android.content.Context p6, com.xiaomi.mipush.sdk.MiPushMessage p7, int p8)
    {
        try {
            String v0 = p7.getContent();
            com.baidu.android.pushservice.message.i v1_1 = new com.baidu.android.pushservice.message.i();
            boolean v2 = com.baidu.android.pushservice.PushMessageReceiver.msgFromXMConsole(v0);
        } catch (Throwable) {
            return;
        }
        if (!v2) {
            v0 = v1_1.b(p6, v0);
        } else {
            v1_1.m = com.baidu.android.pushservice.message.a.k.b.a();
        }
        if ((p8 == com.baidu.android.pushservice.PushMessageReceiver$b.a(com.baidu.android.pushservice.PushMessageReceiver$b.c)) || (!com.baidu.android.pushservice.i.l.y(p6, v1_1.l))) {
            if (v1_1.m != com.baidu.android.pushservice.message.a.k.l.a()) {
                if ((v1_1.m == com.baidu.android.pushservice.message.a.k.g.a()) || ((v1_1.m == com.baidu.android.pushservice.message.a.k.c.a()) || ((v1_1.m == com.baidu.android.pushservice.message.a.k.b.a()) || ((v1_1.m == com.baidu.android.pushservice.message.a.k.f.a()) || ((v1_1.m == com.baidu.android.pushservice.message.a.k.d.a()) || (v1_1.m == com.baidu.android.pushservice.message.a.k.e.a())))))) {
                    if (p8 != com.baidu.android.pushservice.PushMessageReceiver$b.a(com.baidu.android.pushservice.PushMessageReceiver$b.a)) {
                        if (p8 != com.baidu.android.pushservice.PushMessageReceiver$b.a(com.baidu.android.pushservice.PushMessageReceiver$b.b)) {
                            if (p8 == com.baidu.android.pushservice.PushMessageReceiver$b.a(com.baidu.android.pushservice.PushMessageReceiver$b.c)) {
                                this.onNotificationClicked(p6, p7.getTitle(), p7.getDescription(), v0);
                            }
                        } else {
                            this.onNotificationArrived(p6, p7.getTitle(), p7.getDescription(), v0);
                        }
                    } else {
                        this.onMessage(p6, v0, 0);
                    }
                }
            } else {
                com.baidu.android.pushservice.i.l.B(p6);
            }
        } else {
        }
        if ((v2) || (p8 != com.baidu.android.pushservice.PushMessageReceiver$b.a(com.baidu.android.pushservice.PushMessageReceiver$b.c))) {
            return;
        } else {
            com.baidu.android.pushservice.g.o.a(p6, v1_1.l, "010205");
            return;
        }
    }

Method com.baidu.android.pushservice.i.l.B():


    public static void B(android.content.Context p3)
    {
        android.content.Intent v0_1 = new android.content.Intent("com.baidu.android.pushservice.action.METHOD");
        v0_1.putExtra("method", "com.baidu.android.pushservice.action.SEND_APPSTAT");
        com.baidu.android.pushservice.h.a(p3.getApplicationContext()).a(v0_1);
        return;
    }

Method com.baidu.android.pushservice.h.a():


    public static declared_synchronized com.baidu.android.pushservice.h a(android.content.Context p2)
    {
        try {
            if (com.baidu.android.pushservice.h.c == null) {
                com.baidu.android.pushservice.h.c = new com.baidu.android.pushservice.h(p2);
            }
        } catch (com.baidu.android.pushservice.h v2_1) {
            throw v2_1;
        }
        return com.baidu.android.pushservice.h.c;
    }

Method com.baidu.android.pushservice.h.<init>():


    private h(android.content.Context p1)
    {
        this.a = p1;
        com.baidu.android.pushservice.a.b.a(p1);
        com.baidu.android.pushservice.i.a(p1);
        com.baidu.android.pushservice.h.d.a();
        return;
    }

Method com.baidu.android.pushservice.i.a():


    public static declared_synchronized com.baidu.android.pushservice.i a(android.content.Context p2)
    {
        try {
            if (com.baidu.android.pushservice.i.a == null) {
                com.baidu.android.pushservice.i.a = new com.baidu.android.pushservice.i(p2);
            }
        } catch (com.baidu.android.pushservice.i v2_1) {
            throw v2_1;
        }
        return com.baidu.android.pushservice.i.a;
    }

Method com.baidu.android.pushservice.i.<init>():


    private i(android.content.Context p2)
    {
        this.d = com.baidu.android.pushservice.i.i.a(p2, "com.baidu.pushservice.channel_token");
        this.b = com.baidu.android.pushservice.PushSettings.a(p2);
        if (com.baidu.android.pushservice.b.e.b(p2)) {
            this.e = com.baidu.android.pushservice.i.i.a(p2, "com.baidu.pushservice.channel_token_new");
            this.c = com.baidu.android.pushservice.PushSettings.b(p2);
        }
        this.g = 0;
        this.h = p2;
        return;
    }

Method com.baidu.android.pushservice.PushSettings.a():


    public static String a(android.content.Context p3)
    {
        String v0_2 = com.baidu.android.pushservice.i.a.a(p3, "com.baidu.pushservice.channel_id");
        if (android.text.TextUtils.isEmpty(v0_2)) {
            v0_2 = com.baidu.android.pushservice.i.i.a(p3, "com.baidu.pushservice.channel_id");
            if (android.text.TextUtils.isEmpty(v0_2)) {
                v0_2 = com.baidu.android.pushservice.c.c.a(p3, 0);
                if (android.text.TextUtils.isEmpty(v0_2)) {
                    int v1_3 = com.baidu.android.pushservice.i.l.n(p3).iterator();
                    while (v1_3.hasNext()) {
                        v0_2 = com.baidu.android.pushservice.c.d.a(p3, ((String) v1_3.next()));
                        if (!android.text.TextUtils.isEmpty(v0_2)) {
                            com.baidu.android.pushservice.PushSettings.a(p3, v0_2, 0);
                            break;
                        }
                    }
                }
            }
        }
        return v0_2;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.b():


    private static Object b(android.content.Context p1, String p2)
    {
        if (!com.baidu.android.pushservice.i.l.u(p1, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            return 0;
        } else {
            try {
                return com.baidu.android.pushservice.i.a.a(p1).opt(p2);
            } catch (Throwable v1_2) {
                throw v1_2;
            }
        }
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/e;', 'a', '(Landroid/content/Context; Landroid/content/Intent;)Z'), ('Lcom/baidu/android/pushservice/h;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/h;'), ('Lcom/baidu/android/pushservice/h;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/i;'), ('Lcom/baidu/android/pushservice/i;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/PushSettings;', 'a', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'b', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/Object;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.e.a():


    public static boolean a(android.content.Context p0, android.content.Intent p1)
    {
        return com.baidu.android.pushservice.h.a(p0).a(p1);
    }

Method com.baidu.android.pushservice.h.a():


    public static declared_synchronized com.baidu.android.pushservice.h a(android.content.Context p2)
    {
        try {
            if (com.baidu.android.pushservice.h.c == null) {
                com.baidu.android.pushservice.h.c = new com.baidu.android.pushservice.h(p2);
            }
        } catch (com.baidu.android.pushservice.h v2_1) {
            throw v2_1;
        }
        return com.baidu.android.pushservice.h.c;
    }

Method com.baidu.android.pushservice.h.<init>():


    private h(android.content.Context p1)
    {
        this.a = p1;
        com.baidu.android.pushservice.a.b.a(p1);
        com.baidu.android.pushservice.i.a(p1);
        com.baidu.android.pushservice.h.d.a();
        return;
    }

Method com.baidu.android.pushservice.i.a():


    public static declared_synchronized com.baidu.android.pushservice.i a(android.content.Context p2)
    {
        try {
            if (com.baidu.android.pushservice.i.a == null) {
                com.baidu.android.pushservice.i.a = new com.baidu.android.pushservice.i(p2);
            }
        } catch (com.baidu.android.pushservice.i v2_1) {
            throw v2_1;
        }
        return com.baidu.android.pushservice.i.a;
    }

Method com.baidu.android.pushservice.i.<init>():


    private i(android.content.Context p2)
    {
        this.d = com.baidu.android.pushservice.i.i.a(p2, "com.baidu.pushservice.channel_token");
        this.b = com.baidu.android.pushservice.PushSettings.a(p2);
        if (com.baidu.android.pushservice.b.e.b(p2)) {
            this.e = com.baidu.android.pushservice.i.i.a(p2, "com.baidu.pushservice.channel_token_new");
            this.c = com.baidu.android.pushservice.PushSettings.b(p2);
        }
        this.g = 0;
        this.h = p2;
        return;
    }

Method com.baidu.android.pushservice.PushSettings.a():


    public static String a(android.content.Context p3)
    {
        String v0_2 = com.baidu.android.pushservice.i.a.a(p3, "com.baidu.pushservice.channel_id");
        if (android.text.TextUtils.isEmpty(v0_2)) {
            v0_2 = com.baidu.android.pushservice.i.i.a(p3, "com.baidu.pushservice.channel_id");
            if (android.text.TextUtils.isEmpty(v0_2)) {
                v0_2 = com.baidu.android.pushservice.c.c.a(p3, 0);
                if (android.text.TextUtils.isEmpty(v0_2)) {
                    int v1_3 = com.baidu.android.pushservice.i.l.n(p3).iterator();
                    while (v1_3.hasNext()) {
                        v0_2 = com.baidu.android.pushservice.c.d.a(p3, ((String) v1_3.next()));
                        if (!android.text.TextUtils.isEmpty(v0_2)) {
                            com.baidu.android.pushservice.PushSettings.a(p3, v0_2, 0);
                            break;
                        }
                    }
                }
            }
        }
        return v0_2;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.b():


    private static Object b(android.content.Context p1, String p2)
    {
        if (!com.baidu.android.pushservice.i.l.u(p1, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            return 0;
        } else {
            try {
                return com.baidu.android.pushservice.i.a.a(p1).opt(p2);
            } catch (Throwable v1_2) {
                throw v1_2;
            }
        }
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/e;', 'b', '(Landroid/content/Context; I)V'), ('Lcom/baidu/android/pushservice/e;', 'a', '(Landroid/content/Context; Landroid/content/Intent;)Z'), ('Lcom/baidu/android/pushservice/h;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/h;'), ('Lcom/baidu/android/pushservice/h;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/i;'), ('Lcom/baidu/android/pushservice/i;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/PushSettings;', 'a', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'b', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/Object;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.e.b():


    public static void b(android.content.Context p3, int p4)
    {
        String v4_1 = com.baidu.android.pushservice.e.a(p3, p4);
        if (v4_1 != null) {
            com.baidu.android.pushservice.f.a.a("PushManagerHandler", "a bind intent send", p3.getApplicationContext());
            com.baidu.android.pushservice.e.a(p3, v4_1);
            com.baidu.android.pushservice.i.l.b("Bind by selfEventHandler", p3);
            return;
        } else {
            return;
        }
    }

Method com.baidu.android.pushservice.e.a():


    public static boolean a(android.content.Context p0, android.content.Intent p1)
    {
        return com.baidu.android.pushservice.h.a(p0).a(p1);
    }

Method com.baidu.android.pushservice.h.a():


    public static declared_synchronized com.baidu.android.pushservice.h a(android.content.Context p2)
    {
        try {
            if (com.baidu.android.pushservice.h.c == null) {
                com.baidu.android.pushservice.h.c = new com.baidu.android.pushservice.h(p2);
            }
        } catch (com.baidu.android.pushservice.h v2_1) {
            throw v2_1;
        }
        return com.baidu.android.pushservice.h.c;
    }

Method com.baidu.android.pushservice.h.<init>():


    private h(android.content.Context p1)
    {
        this.a = p1;
        com.baidu.android.pushservice.a.b.a(p1);
        com.baidu.android.pushservice.i.a(p1);
        com.baidu.android.pushservice.h.d.a();
        return;
    }

Method com.baidu.android.pushservice.i.a():


    public static declared_synchronized com.baidu.android.pushservice.i a(android.content.Context p2)
    {
        try {
            if (com.baidu.android.pushservice.i.a == null) {
                com.baidu.android.pushservice.i.a = new com.baidu.android.pushservice.i(p2);
            }
        } catch (com.baidu.android.pushservice.i v2_1) {
            throw v2_1;
        }
        return com.baidu.android.pushservice.i.a;
    }

Method com.baidu.android.pushservice.i.<init>():


    private i(android.content.Context p2)
    {
        this.d = com.baidu.android.pushservice.i.i.a(p2, "com.baidu.pushservice.channel_token");
        this.b = com.baidu.android.pushservice.PushSettings.a(p2);
        if (com.baidu.android.pushservice.b.e.b(p2)) {
            this.e = com.baidu.android.pushservice.i.i.a(p2, "com.baidu.pushservice.channel_token_new");
            this.c = com.baidu.android.pushservice.PushSettings.b(p2);
        }
        this.g = 0;
        this.h = p2;
        return;
    }

Method com.baidu.android.pushservice.PushSettings.a():


    public static String a(android.content.Context p3)
    {
        String v0_2 = com.baidu.android.pushservice.i.a.a(p3, "com.baidu.pushservice.channel_id");
        if (android.text.TextUtils.isEmpty(v0_2)) {
            v0_2 = com.baidu.android.pushservice.i.i.a(p3, "com.baidu.pushservice.channel_id");
            if (android.text.TextUtils.isEmpty(v0_2)) {
                v0_2 = com.baidu.android.pushservice.c.c.a(p3, 0);
                if (android.text.TextUtils.isEmpty(v0_2)) {
                    int v1_3 = com.baidu.android.pushservice.i.l.n(p3).iterator();
                    while (v1_3.hasNext()) {
                        v0_2 = com.baidu.android.pushservice.c.d.a(p3, ((String) v1_3.next()));
                        if (!android.text.TextUtils.isEmpty(v0_2)) {
                            com.baidu.android.pushservice.PushSettings.a(p3, v0_2, 0);
                            break;
                        }
                    }
                }
            }
        }
        return v0_2;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.b():


    private static Object b(android.content.Context p1, String p2)
    {
        if (!com.baidu.android.pushservice.i.l.u(p1, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            return 0;
        } else {
            try {
                return com.baidu.android.pushservice.i.a.a(p1).opt(p2);
            } catch (Throwable v1_2) {
                throw v1_2;
            }
        }
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/PushSettings;', 'a', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'b', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/Object;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.PushSettings.a():


    public static String a(android.content.Context p3)
    {
        String v0_2 = com.baidu.android.pushservice.i.a.a(p3, "com.baidu.pushservice.channel_id");
        if (android.text.TextUtils.isEmpty(v0_2)) {
            v0_2 = com.baidu.android.pushservice.i.i.a(p3, "com.baidu.pushservice.channel_id");
            if (android.text.TextUtils.isEmpty(v0_2)) {
                v0_2 = com.baidu.android.pushservice.c.c.a(p3, 0);
                if (android.text.TextUtils.isEmpty(v0_2)) {
                    int v1_3 = com.baidu.android.pushservice.i.l.n(p3).iterator();
                    while (v1_3.hasNext()) {
                        v0_2 = com.baidu.android.pushservice.c.d.a(p3, ((String) v1_3.next()));
                        if (!android.text.TextUtils.isEmpty(v0_2)) {
                            com.baidu.android.pushservice.PushSettings.a(p3, v0_2, 0);
                            break;
                        }
                    }
                }
            }
        }
        return v0_2;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.b():


    private static Object b(android.content.Context p1, String p2)
    {
        if (!com.baidu.android.pushservice.i.l.u(p1, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            return 0;
        } else {
            try {
                return com.baidu.android.pushservice.i.a.a(p1).opt(p2);
            } catch (Throwable v1_2) {
                throw v1_2;
            }
        }
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/PushSettings;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)V'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)V'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/Object;)Z'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.PushSettings.a():


    protected static void a(android.content.Context p1, String p2, String p3)
    {
        com.baidu.android.pushservice.i.a.a(p1, "com.baidu.pushservice.channel_id", p2);
        com.baidu.android.pushservice.i.i.a(p1, "com.baidu.pushservice.channel_id", p2);
        com.baidu.android.pushservice.i.a.a(p1, "com.baidu.pushservice.channel_id_new", p3);
        com.baidu.android.pushservice.i.i.a(p1, "com.baidu.pushservice.channel_id_new", p3);
        com.baidu.android.pushservice.c.c.a(p1, p2, p3);
        return;
    }

Method com.baidu.android.pushservice.i.a.a():


    public static void a(android.content.Context p2, String p3, String p4)
    {
        if (p2 != null) {
            try {
            } catch (Exception) {
            }
            if (!android.provider.Settings$System.putString(p2.getContentResolver(), p3, p4)) {
                com.baidu.android.pushservice.i.a.a(p2, p3, p4);
            }
            return;
        } else {
            return;
        }
    }

Method com.baidu.android.pushservice.i.a.a():


    private static boolean a(android.content.Context p6, String p7, Object p8)
    {
        if (com.baidu.android.pushservice.i.l.u(p6, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            try {
                String v2_1 = com.baidu.android.pushservice.i.a.a(p6);
                java.io.FileOutputStream v4 = 0;
            } catch (java.io.Closeable[] v6_7) {
                throw v6_7;
            }
            if (v2_1.opt(p7) != null) {
                v2_1.remove(p7);
            }
            v2_1.put(p7, p8);
            java.io.FileOutputStream v7_2 = new java.io.File(android.os.Environment.getExternalStorageDirectory(), "baidu/pushservice/files");
            if (!v7_2.exists()) {
                v7_2.mkdirs();
            }
            java.io.File v8_4 = new java.io.File(v7_2, ".info");
            java.io.Closeable[] v6_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getEncrypted(p6, "", v2_1.toString());
            if (!android.text.TextUtils.isEmpty(v6_1)) {
                if (v8_4.exists()) {
                    v8_4.delete();
                }
                v8_4.createNewFile();
                java.io.FileOutputStream v7_7 = new java.io.FileOutputStream(v8_4);
                v7_7.write(v6_1.getBytes());
                java.io.Closeable[] v6_5 = new java.io.Closeable[1];
                v6_5[0] = v7_7;
                com.baidu.android.pushservice.e.b.a(v6_5);
                return 1;
            } else {
                java.io.Closeable[] v6_6 = new java.io.Closeable[1];
                v6_6[0] = 0;
                com.baidu.android.pushservice.e.b.a(v6_6);
                return 0;
            }
        }
        return 0;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/PushSettings;', 'a', '(Landroid/content/Context; Z)V'), ('Lcom/baidu/android/pushservice/i/k;', 'a', '(Landroid/content/Context; Landroid/content/Intent;)V'), ('Lcom/baidu/android/pushservice/h;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/h;'), ('Lcom/baidu/android/pushservice/h;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/i;'), ('Lcom/baidu/android/pushservice/i;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/PushSettings;', 'a', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'b', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/Object;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.PushSettings.a():


    private static void a(android.content.Context p4, boolean p5)
    {
        try {
            boolean v0_0 = p4.getPackageName();
            String v1 = com.baidu.android.pushservice.i.l.v(p4);
            String v2 = "com.baidu.android.pushservice.action.OPENDEBUGMODE";
        } catch (Exception) {
            return;
        }
        if (android.text.TextUtils.isEmpty(v1)) {
            return;
        } else {
            if (!v0_0.equals(v1)) {
                if (p5 == null) {
                    v2 = "com.baidu.android.pushservice.action.CLOSEDEBUGMODE";
                }
                com.baidu.android.pushservice.i.k.a(p4, new android.content.Intent(v2));
                return;
            } else {
                return;
            }
        }
    }

Method com.baidu.android.pushservice.i.k.a():


    public static void a(android.content.Context p2, android.content.Intent p3)
    {
        if ((p3 == null) || (android.text.TextUtils.isEmpty(p3.getAction()))) {
            p3 = com.baidu.android.pushservice.i.k.c(p2);
        }
        if ((com.baidu.android.pushservice.b.e.k(p2)) && (!com.baidu.android.pushservice.b.e.c(p2))) {
            com.baidu.android.pushservice.h.a(p2).a(p3);
        } else {
            if ((android.text.TextUtils.isEmpty(com.baidu.android.pushservice.i.k.a)) || (p2.getPackageName().equals(com.baidu.android.pushservice.i.k.a))) {
                com.baidu.android.pushservice.i.k.a = com.baidu.android.pushservice.i.l.v(p2);
            }
            com.baidu.android.pushservice.i.k.a(p2, p3, com.baidu.android.pushservice.i.k.a);
        }
        return;
    }

Method com.baidu.android.pushservice.h.a():


    public static declared_synchronized com.baidu.android.pushservice.h a(android.content.Context p2)
    {
        try {
            if (com.baidu.android.pushservice.h.c == null) {
                com.baidu.android.pushservice.h.c = new com.baidu.android.pushservice.h(p2);
            }
        } catch (com.baidu.android.pushservice.h v2_1) {
            throw v2_1;
        }
        return com.baidu.android.pushservice.h.c;
    }

Method com.baidu.android.pushservice.h.<init>():


    private h(android.content.Context p1)
    {
        this.a = p1;
        com.baidu.android.pushservice.a.b.a(p1);
        com.baidu.android.pushservice.i.a(p1);
        com.baidu.android.pushservice.h.d.a();
        return;
    }

Method com.baidu.android.pushservice.i.a():


    public static declared_synchronized com.baidu.android.pushservice.i a(android.content.Context p2)
    {
        try {
            if (com.baidu.android.pushservice.i.a == null) {
                com.baidu.android.pushservice.i.a = new com.baidu.android.pushservice.i(p2);
            }
        } catch (com.baidu.android.pushservice.i v2_1) {
            throw v2_1;
        }
        return com.baidu.android.pushservice.i.a;
    }

Method com.baidu.android.pushservice.i.<init>():


    private i(android.content.Context p2)
    {
        this.d = com.baidu.android.pushservice.i.i.a(p2, "com.baidu.pushservice.channel_token");
        this.b = com.baidu.android.pushservice.PushSettings.a(p2);
        if (com.baidu.android.pushservice.b.e.b(p2)) {
            this.e = com.baidu.android.pushservice.i.i.a(p2, "com.baidu.pushservice.channel_token_new");
            this.c = com.baidu.android.pushservice.PushSettings.b(p2);
        }
        this.g = 0;
        this.h = p2;
        return;
    }

Method com.baidu.android.pushservice.PushSettings.a():


    public static String a(android.content.Context p3)
    {
        String v0_2 = com.baidu.android.pushservice.i.a.a(p3, "com.baidu.pushservice.channel_id");
        if (android.text.TextUtils.isEmpty(v0_2)) {
            v0_2 = com.baidu.android.pushservice.i.i.a(p3, "com.baidu.pushservice.channel_id");
            if (android.text.TextUtils.isEmpty(v0_2)) {
                v0_2 = com.baidu.android.pushservice.c.c.a(p3, 0);
                if (android.text.TextUtils.isEmpty(v0_2)) {
                    int v1_3 = com.baidu.android.pushservice.i.l.n(p3).iterator();
                    while (v1_3.hasNext()) {
                        v0_2 = com.baidu.android.pushservice.c.d.a(p3, ((String) v1_3.next()));
                        if (!android.text.TextUtils.isEmpty(v0_2)) {
                            com.baidu.android.pushservice.PushSettings.a(p3, v0_2, 0);
                            break;
                        }
                    }
                }
            }
        }
        return v0_2;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.b():


    private static Object b(android.content.Context p1, String p2)
    {
        if (!com.baidu.android.pushservice.i.l.u(p1, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            return 0;
        } else {
            try {
                return com.baidu.android.pushservice.i.a.a(p1).opt(p2);
            } catch (Throwable v1_2) {
                throw v1_2;
            }
        }
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/PushSettings;', 'b', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'b', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/Object;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.PushSettings.b():


    public static String b(android.content.Context p2)
    {
        String v0_2 = com.baidu.android.pushservice.i.a.a(p2, "com.baidu.pushservice.channel_id_new");
        if (android.text.TextUtils.isEmpty(v0_2)) {
            v0_2 = com.baidu.android.pushservice.i.i.a(p2, "com.baidu.pushservice.channel_id_new");
            if (android.text.TextUtils.isEmpty(v0_2)) {
                v0_2 = com.baidu.android.pushservice.c.c.a(p2, 1);
            }
        }
        return v0_2;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.b():


    private static Object b(android.content.Context p1, String p2)
    {
        if (!com.baidu.android.pushservice.i.l.u(p1, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            return 0;
        } else {
            try {
                return com.baidu.android.pushservice.i.a.a(p1).opt(p2);
            } catch (Throwable v1_2) {
                throw v1_2;
            }
        }
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/PushSettings;', 'enableDebugMode', '(Landroid/content/Context; Z)V'), ('Lcom/baidu/android/pushservice/PushSettings;', 'a', '(Landroid/content/Context; Z)V'), ('Lcom/baidu/android/pushservice/i/k;', 'a', '(Landroid/content/Context; Landroid/content/Intent;)V'), ('Lcom/baidu/android/pushservice/h;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/h;'), ('Lcom/baidu/android/pushservice/h;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/i;'), ('Lcom/baidu/android/pushservice/i;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/PushSettings;', 'a', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'b', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/Object;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.PushSettings.enableDebugMode():


    public static void enableDebugMode(android.content.Context p1, boolean p2)
    {
        com.baidu.android.pushservice.PushSettings.a = p2;
        if (!com.baidu.android.pushservice.b.e.k(p1)) {
            com.baidu.android.pushservice.PushSettings.a(p1, p2);
        }
        return;
    }

Method com.baidu.android.pushservice.PushSettings.a():


    private static void a(android.content.Context p4, boolean p5)
    {
        try {
            boolean v0_0 = p4.getPackageName();
            String v1 = com.baidu.android.pushservice.i.l.v(p4);
            String v2 = "com.baidu.android.pushservice.action.OPENDEBUGMODE";
        } catch (Exception) {
            return;
        }
        if (android.text.TextUtils.isEmpty(v1)) {
            return;
        } else {
            if (!v0_0.equals(v1)) {
                if (p5 == null) {
                    v2 = "com.baidu.android.pushservice.action.CLOSEDEBUGMODE";
                }
                com.baidu.android.pushservice.i.k.a(p4, new android.content.Intent(v2));
                return;
            } else {
                return;
            }
        }
    }

Method com.baidu.android.pushservice.i.k.a():


    public static void a(android.content.Context p2, android.content.Intent p3)
    {
        if ((p3 == null) || (android.text.TextUtils.isEmpty(p3.getAction()))) {
            p3 = com.baidu.android.pushservice.i.k.c(p2);
        }
        if ((com.baidu.android.pushservice.b.e.k(p2)) && (!com.baidu.android.pushservice.b.e.c(p2))) {
            com.baidu.android.pushservice.h.a(p2).a(p3);
        } else {
            if ((android.text.TextUtils.isEmpty(com.baidu.android.pushservice.i.k.a)) || (p2.getPackageName().equals(com.baidu.android.pushservice.i.k.a))) {
                com.baidu.android.pushservice.i.k.a = com.baidu.android.pushservice.i.l.v(p2);
            }
            com.baidu.android.pushservice.i.k.a(p2, p3, com.baidu.android.pushservice.i.k.a);
        }
        return;
    }

Method com.baidu.android.pushservice.h.a():


    public static declared_synchronized com.baidu.android.pushservice.h a(android.content.Context p2)
    {
        try {
            if (com.baidu.android.pushservice.h.c == null) {
                com.baidu.android.pushservice.h.c = new com.baidu.android.pushservice.h(p2);
            }
        } catch (com.baidu.android.pushservice.h v2_1) {
            throw v2_1;
        }
        return com.baidu.android.pushservice.h.c;
    }

Method com.baidu.android.pushservice.h.<init>():


    private h(android.content.Context p1)
    {
        this.a = p1;
        com.baidu.android.pushservice.a.b.a(p1);
        com.baidu.android.pushservice.i.a(p1);
        com.baidu.android.pushservice.h.d.a();
        return;
    }

Method com.baidu.android.pushservice.i.a():


    public static declared_synchronized com.baidu.android.pushservice.i a(android.content.Context p2)
    {
        try {
            if (com.baidu.android.pushservice.i.a == null) {
                com.baidu.android.pushservice.i.a = new com.baidu.android.pushservice.i(p2);
            }
        } catch (com.baidu.android.pushservice.i v2_1) {
            throw v2_1;
        }
        return com.baidu.android.pushservice.i.a;
    }

Method com.baidu.android.pushservice.i.<init>():


    private i(android.content.Context p2)
    {
        this.d = com.baidu.android.pushservice.i.i.a(p2, "com.baidu.pushservice.channel_token");
        this.b = com.baidu.android.pushservice.PushSettings.a(p2);
        if (com.baidu.android.pushservice.b.e.b(p2)) {
            this.e = com.baidu.android.pushservice.i.i.a(p2, "com.baidu.pushservice.channel_token_new");
            this.c = com.baidu.android.pushservice.PushSettings.b(p2);
        }
        this.g = 0;
        this.h = p2;
        return;
    }

Method com.baidu.android.pushservice.PushSettings.a():


    public static String a(android.content.Context p3)
    {
        String v0_2 = com.baidu.android.pushservice.i.a.a(p3, "com.baidu.pushservice.channel_id");
        if (android.text.TextUtils.isEmpty(v0_2)) {
            v0_2 = com.baidu.android.pushservice.i.i.a(p3, "com.baidu.pushservice.channel_id");
            if (android.text.TextUtils.isEmpty(v0_2)) {
                v0_2 = com.baidu.android.pushservice.c.c.a(p3, 0);
                if (android.text.TextUtils.isEmpty(v0_2)) {
                    int v1_3 = com.baidu.android.pushservice.i.l.n(p3).iterator();
                    while (v1_3.hasNext()) {
                        v0_2 = com.baidu.android.pushservice.c.d.a(p3, ((String) v1_3.next()));
                        if (!android.text.TextUtils.isEmpty(v0_2)) {
                            com.baidu.android.pushservice.PushSettings.a(p3, v0_2, 0);
                            break;
                        }
                    }
                }
            }
        }
        return v0_2;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.b():


    private static Object b(android.content.Context p1, String p2)
    {
        if (!com.baidu.android.pushservice.i.l.u(p1, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            return 0;
        } else {
            try {
                return com.baidu.android.pushservice.i.a.a(p1).opt(p2);
            } catch (Throwable v1_2) {
                throw v1_2;
            }
        }
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/RegistrationReceiver;', 'a', '(Landroid/content/Context; Lcom/baidu/android/pushservice/a/f;)V'), ('Lcom/baidu/android/pushservice/i/k;', 'a', '(Landroid/content/Context; Landroid/content/Intent;)V'), ('Lcom/baidu/android/pushservice/h;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/h;'), ('Lcom/baidu/android/pushservice/h;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/i;'), ('Lcom/baidu/android/pushservice/i;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/PushSettings;', 'a', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'b', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/Object;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.RegistrationReceiver.a():


    static void a(android.content.Context p3, com.baidu.android.pushservice.a.f p4)
    {
        android.content.Intent v0_1 = new android.content.Intent();
        v0_1.setAction("com.baidu.android.pushservice.action.METHOD");
        v0_1.putExtra("method", "com.baidu.android.pushservice.action.UNBINDAPP");
        v0_1.putExtra("package_name", p4.c());
        v0_1.putExtra("app_id", p4.a());
        v0_1.putExtra("user_id", p4.f);
        com.baidu.android.pushservice.i.k.a(p3, v0_1);
        return;
    }

Method com.baidu.android.pushservice.i.k.a():


    public static void a(android.content.Context p2, android.content.Intent p3)
    {
        if ((p3 == null) || (android.text.TextUtils.isEmpty(p3.getAction()))) {
            p3 = com.baidu.android.pushservice.i.k.c(p2);
        }
        if ((com.baidu.android.pushservice.b.e.k(p2)) && (!com.baidu.android.pushservice.b.e.c(p2))) {
            com.baidu.android.pushservice.h.a(p2).a(p3);
        } else {
            if ((android.text.TextUtils.isEmpty(com.baidu.android.pushservice.i.k.a)) || (p2.getPackageName().equals(com.baidu.android.pushservice.i.k.a))) {
                com.baidu.android.pushservice.i.k.a = com.baidu.android.pushservice.i.l.v(p2);
            }
            com.baidu.android.pushservice.i.k.a(p2, p3, com.baidu.android.pushservice.i.k.a);
        }
        return;
    }

Method com.baidu.android.pushservice.h.a():


    public static declared_synchronized com.baidu.android.pushservice.h a(android.content.Context p2)
    {
        try {
            if (com.baidu.android.pushservice.h.c == null) {
                com.baidu.android.pushservice.h.c = new com.baidu.android.pushservice.h(p2);
            }
        } catch (com.baidu.android.pushservice.h v2_1) {
            throw v2_1;
        }
        return com.baidu.android.pushservice.h.c;
    }

Method com.baidu.android.pushservice.h.<init>():


    private h(android.content.Context p1)
    {
        this.a = p1;
        com.baidu.android.pushservice.a.b.a(p1);
        com.baidu.android.pushservice.i.a(p1);
        com.baidu.android.pushservice.h.d.a();
        return;
    }

Method com.baidu.android.pushservice.i.a():


    public static declared_synchronized com.baidu.android.pushservice.i a(android.content.Context p2)
    {
        try {
            if (com.baidu.android.pushservice.i.a == null) {
                com.baidu.android.pushservice.i.a = new com.baidu.android.pushservice.i(p2);
            }
        } catch (com.baidu.android.pushservice.i v2_1) {
            throw v2_1;
        }
        return com.baidu.android.pushservice.i.a;
    }

Method com.baidu.android.pushservice.i.<init>():


    private i(android.content.Context p2)
    {
        this.d = com.baidu.android.pushservice.i.i.a(p2, "com.baidu.pushservice.channel_token");
        this.b = com.baidu.android.pushservice.PushSettings.a(p2);
        if (com.baidu.android.pushservice.b.e.b(p2)) {
            this.e = com.baidu.android.pushservice.i.i.a(p2, "com.baidu.pushservice.channel_token_new");
            this.c = com.baidu.android.pushservice.PushSettings.b(p2);
        }
        this.g = 0;
        this.h = p2;
        return;
    }

Method com.baidu.android.pushservice.PushSettings.a():


    public static String a(android.content.Context p3)
    {
        String v0_2 = com.baidu.android.pushservice.i.a.a(p3, "com.baidu.pushservice.channel_id");
        if (android.text.TextUtils.isEmpty(v0_2)) {
            v0_2 = com.baidu.android.pushservice.i.i.a(p3, "com.baidu.pushservice.channel_id");
            if (android.text.TextUtils.isEmpty(v0_2)) {
                v0_2 = com.baidu.android.pushservice.c.c.a(p3, 0);
                if (android.text.TextUtils.isEmpty(v0_2)) {
                    int v1_3 = com.baidu.android.pushservice.i.l.n(p3).iterator();
                    while (v1_3.hasNext()) {
                        v0_2 = com.baidu.android.pushservice.c.d.a(p3, ((String) v1_3.next()));
                        if (!android.text.TextUtils.isEmpty(v0_2)) {
                            com.baidu.android.pushservice.PushSettings.a(p3, v0_2, 0);
                            break;
                        }
                    }
                }
            }
        }
        return v0_2;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.b():


    private static Object b(android.content.Context p1, String p2)
    {
        if (!com.baidu.android.pushservice.i.l.u(p1, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            return 0;
        } else {
            try {
                return com.baidu.android.pushservice.i.a.a(p1).opt(p2);
            } catch (Throwable v1_2) {
                throw v1_2;
            }
        }
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/RegistrationReceiver;', 'b', '(Landroid/content/Context; Landroid/content/Intent;)V'), ('Lcom/baidu/android/pushservice/RegistrationReceiver;', 'd', '(Landroid/content/Context; Landroid/content/Intent;)V'), ('Lcom/baidu/android/pushservice/a/h;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/a/h;'), ('Lcom/baidu/android/pushservice/a/h;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/a/e;', '<init>', '(Landroid/content/Context; Lcom/baidu/android/pushservice/a/c;)V'), ('Lcom/baidu/android/pushservice/a/e;', 'a', '()V'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'b', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/Object;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.RegistrationReceiver.b():


    static synthetic void b(android.content.Context p0, android.content.Intent p1)
    {
        com.baidu.android.pushservice.RegistrationReceiver.d(p0, p1);
        return;
    }

Method com.baidu.android.pushservice.RegistrationReceiver.d():


    private static void d(android.content.Context p2, android.content.Intent p3)
    {
        if (!p2.getPackageName().equals(p3.getStringExtra("r_sync_sdk_from"))) {
            String v3_1 = p3.getStringExtra("r_sync_rdata_v2");
            if (!android.text.TextUtils.isEmpty(v3_1)) {
                com.baidu.android.pushservice.a.h.a(p2).a("com.baidu.push.sdkr", v3_1);
            }
            return;
        } else {
            return;
        }
    }

Method com.baidu.android.pushservice.a.h.a():


    public static declared_synchronized com.baidu.android.pushservice.a.h a(android.content.Context p2)
    {
        try {
            if (com.baidu.android.pushservice.a.h.d != null) {
                com.baidu.android.pushservice.a.h.d.b = p2.getApplicationContext();
            } else {
                com.baidu.android.pushservice.a.h.d = new com.baidu.android.pushservice.a.h(p2);
            }
        } catch (com.baidu.android.pushservice.a.h v2_1) {
            throw v2_1;
        }
        return com.baidu.android.pushservice.a.h.d;
    }

Method com.baidu.android.pushservice.a.h.<init>():


    private h(android.content.Context p2)
    {
        super(p2, com.baidu.android.pushservice.a.c.b);
        return;
    }

Method com.baidu.android.pushservice.a.e.<init>():


    public e(android.content.Context p2, com.baidu.android.pushservice.a.c p3)
    {
        this.a = new java.util.ArrayList();
        this.b = p2.getApplicationContext();
        this.c = p3;
        this.a();
        return;
    }

Method com.baidu.android.pushservice.a.e.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.b():


    private static Object b(android.content.Context p1, String p2)
    {
        if (!com.baidu.android.pushservice.i.l.u(p1, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            return 0;
        } else {
            try {
                return com.baidu.android.pushservice.i.a.a(p1).opt(p2);
            } catch (Throwable v1_2) {
                throw v1_2;
            }
        }
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/RegistrationReceiver;', 'd', '(Landroid/content/Context; Landroid/content/Intent;)V'), ('Lcom/baidu/android/pushservice/a/h;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/a/h;'), ('Lcom/baidu/android/pushservice/a/h;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/a/e;', '<init>', '(Landroid/content/Context; Lcom/baidu/android/pushservice/a/c;)V'), ('Lcom/baidu/android/pushservice/a/e;', 'a', '()V'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'b', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/Object;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.RegistrationReceiver.d():


    private static void d(android.content.Context p2, android.content.Intent p3)
    {
        if (!p2.getPackageName().equals(p3.getStringExtra("r_sync_sdk_from"))) {
            String v3_1 = p3.getStringExtra("r_sync_rdata_v2");
            if (!android.text.TextUtils.isEmpty(v3_1)) {
                com.baidu.android.pushservice.a.h.a(p2).a("com.baidu.push.sdkr", v3_1);
            }
            return;
        } else {
            return;
        }
    }

Method com.baidu.android.pushservice.a.h.a():


    public static declared_synchronized com.baidu.android.pushservice.a.h a(android.content.Context p2)
    {
        try {
            if (com.baidu.android.pushservice.a.h.d != null) {
                com.baidu.android.pushservice.a.h.d.b = p2.getApplicationContext();
            } else {
                com.baidu.android.pushservice.a.h.d = new com.baidu.android.pushservice.a.h(p2);
            }
        } catch (com.baidu.android.pushservice.a.h v2_1) {
            throw v2_1;
        }
        return com.baidu.android.pushservice.a.h.d;
    }

Method com.baidu.android.pushservice.a.h.<init>():


    private h(android.content.Context p2)
    {
        super(p2, com.baidu.android.pushservice.a.c.b);
        return;
    }

Method com.baidu.android.pushservice.a.e.<init>():


    public e(android.content.Context p2, com.baidu.android.pushservice.a.c p3)
    {
        this.a = new java.util.ArrayList();
        this.b = p2.getApplicationContext();
        this.c = p3;
        this.a();
        return;
    }

Method com.baidu.android.pushservice.a.e.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.b():


    private static Object b(android.content.Context p1, String p2)
    {
        if (!com.baidu.android.pushservice.i.l.u(p1, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            return 0;
        } else {
            try {
                return com.baidu.android.pushservice.i.a.a(p1).opt(p2);
            } catch (Throwable v1_2) {
                throw v1_2;
            }
        }
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/a/d;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Lcom/baidu/android/pushservice/a/d;'), ('Lcom/baidu/android/pushservice/a/h;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/a/h;'), ('Lcom/baidu/android/pushservice/a/h;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/a/e;', '<init>', '(Landroid/content/Context; Lcom/baidu/android/pushservice/a/c;)V'), ('Lcom/baidu/android/pushservice/a/e;', 'a', '()V'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'b', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/Object;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.a.d.a():


    public static com.baidu.android.pushservice.a.d a(android.content.Context p2, String p3)
    {
        com.baidu.android.pushservice.a.b.a(p2).b(p2);
        com.baidu.android.pushservice.a.c v0_6 = com.baidu.android.pushservice.a.b.a(p2).d(p3);
        if ((v0_6 == null) || (android.text.TextUtils.isEmpty(v0_6.c))) {
            com.baidu.android.pushservice.a.c v0_2 = new StringBuilder();
            v0_2.append("ClientTypeInfo*BBind* isRegisteredClientByAppid not PushClient! appid=");
            v0_2.append(p3);
            com.baidu.android.pushservice.i.l.b(v0_2.toString(), p2);
            com.baidu.android.pushservice.a.d v2_2 = com.baidu.android.pushservice.a.h.a(p2).e(p3);
            if ((v2_2 == null) || (v2_2.c() == null)) {
                return new com.baidu.android.pushservice.a.d(com.baidu.android.pushservice.a.c.d);
            } else {
                com.baidu.android.pushservice.a.d v3_4 = new com.baidu.android.pushservice.a.d(com.baidu.android.pushservice.a.c.b);
                v3_4.b = v2_2;
                return v3_4;
            }
        } else {
            com.baidu.android.pushservice.a.d v2_6 = new com.baidu.android.pushservice.a.d(com.baidu.android.pushservice.a.c.a);
            v2_6.a = v0_6;
            return v2_6;
        }
    }

Method com.baidu.android.pushservice.a.h.a():


    public static declared_synchronized com.baidu.android.pushservice.a.h a(android.content.Context p2)
    {
        try {
            if (com.baidu.android.pushservice.a.h.d != null) {
                com.baidu.android.pushservice.a.h.d.b = p2.getApplicationContext();
            } else {
                com.baidu.android.pushservice.a.h.d = new com.baidu.android.pushservice.a.h(p2);
            }
        } catch (com.baidu.android.pushservice.a.h v2_1) {
            throw v2_1;
        }
        return com.baidu.android.pushservice.a.h.d;
    }

Method com.baidu.android.pushservice.a.h.<init>():


    private h(android.content.Context p2)
    {
        super(p2, com.baidu.android.pushservice.a.c.b);
        return;
    }

Method com.baidu.android.pushservice.a.e.<init>():


    public e(android.content.Context p2, com.baidu.android.pushservice.a.c p3)
    {
        this.a = new java.util.ArrayList();
        this.b = p2.getApplicationContext();
        this.c = p3;
        this.a();
        return;
    }

Method com.baidu.android.pushservice.a.e.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.b():


    private static Object b(android.content.Context p1, String p2)
    {
        if (!com.baidu.android.pushservice.i.l.u(p1, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            return 0;
        } else {
            try {
                return com.baidu.android.pushservice.i.a.a(p1).opt(p2);
            } catch (Throwable v1_2) {
                throw v1_2;
            }
        }
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/a/e;', '<init>', '(Landroid/content/Context; Lcom/baidu/android/pushservice/a/c;)V'), ('Lcom/baidu/android/pushservice/a/e;', 'a', '()V'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'b', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/Object;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.a.e.<init>():


    public e(android.content.Context p2, com.baidu.android.pushservice.a.c p3)
    {
        this.a = new java.util.ArrayList();
        this.b = p2.getApplicationContext();
        this.c = p3;
        this.a();
        return;
    }

Method com.baidu.android.pushservice.a.e.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.b():


    private static Object b(android.content.Context p1, String p2)
    {
        if (!com.baidu.android.pushservice.i.l.u(p1, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            return 0;
        } else {
            try {
                return com.baidu.android.pushservice.i.a.a(p1).opt(p2);
            } catch (Throwable v1_2) {
                throw v1_2;
            }
        }
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/a/e;', 'a', '(Lcom/baidu/android/pushservice/a/a; Z)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)V'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/Object;)Z'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.a.e.a():


    public String a(com.baidu.android.pushservice.a.a p8, boolean p9)
    {
        int v3_2 = 1;
        if (android.text.TextUtils.isEmpty(p8.a())) {
            if (this.c != com.baidu.android.pushservice.a.c.b) {
                android.content.Context v1_6 = this.a.iterator();
                while (v1_6.hasNext()) {
                    boolean v4_2 = ((com.baidu.android.pushservice.a.a) v1_6.next());
                    if ((android.text.TextUtils.isEmpty(p8.b())) || (!android.text.TextUtils.equals(v4_2.b(), p8.b()))) {
                        if (android.text.TextUtils.isEmpty(v4_2.a())) {
                        }
                    }
                }
                v3_2 = 0;
            } else {
                android.content.Context v1_9 = this.a.iterator();
                while (v1_9.hasNext()) {
                    boolean v4_7 = ((com.baidu.android.pushservice.a.a) v1_9.next());
                    if ((!android.text.TextUtils.isEmpty(p8.b())) && ((android.text.TextUtils.equals(v4_7.b(), p8.b())) && ((!android.text.TextUtils.isEmpty(p8.c())) && (android.text.TextUtils.equals(v4_7.c(), p8.c()))))) {
                    }
                }
            }
        } else {
            android.content.Context v1_12 = this.a.iterator();
            while (v1_12.hasNext()) {
                boolean v4_12 = ((com.baidu.android.pushservice.a.a) v1_12.next());
                if (((!android.text.TextUtils.isEmpty(p8.b())) && (android.text.TextUtils.equals(v4_12.b(), p8.b()))) || (p8.a().equals(v4_12.a()))) {
                    this.a.remove(v4_12);
                    if (p9 != null) {
                        this.a.add(p8);
                    }
                }
            }
        }
        if ((v3_2 == 0) && (p9 != null)) {
            this.a.add(p8);
        }
        String v8_2 = this.a(this.a);
        String v9_2 = "";
        switch (com.baidu.android.pushservice.a.e$1.a[this.c.ordinal()]) {
            case 1:
                v9_2 = "com.baidu.push.sdkr";
            case 2:
                break;
            default:
        }
        try {
            String v8_4 = com.baidu.android.pushservice.j.b.a(com.baidu.android.pushservice.jni.BaiduAppSSOJni.encryptAES(v8_2, 0), "utf-8");
            com.baidu.android.pushservice.i.a.a(this.b, v9_2, v8_4);
        } catch (Exception) {
            return "";
        }
        return v8_4;
    }

Method com.baidu.android.pushservice.i.a.a():


    public static void a(android.content.Context p2, String p3, String p4)
    {
        if (p2 != null) {
            try {
            } catch (Exception) {
            }
            if (!android.provider.Settings$System.putString(p2.getContentResolver(), p3, p4)) {
                com.baidu.android.pushservice.i.a.a(p2, p3, p4);
            }
            return;
        } else {
            return;
        }
    }

Method com.baidu.android.pushservice.i.a.a():


    private static boolean a(android.content.Context p6, String p7, Object p8)
    {
        if (com.baidu.android.pushservice.i.l.u(p6, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            try {
                String v2_1 = com.baidu.android.pushservice.i.a.a(p6);
                java.io.FileOutputStream v4 = 0;
            } catch (java.io.Closeable[] v6_7) {
                throw v6_7;
            }
            if (v2_1.opt(p7) != null) {
                v2_1.remove(p7);
            }
            v2_1.put(p7, p8);
            java.io.FileOutputStream v7_2 = new java.io.File(android.os.Environment.getExternalStorageDirectory(), "baidu/pushservice/files");
            if (!v7_2.exists()) {
                v7_2.mkdirs();
            }
            java.io.File v8_4 = new java.io.File(v7_2, ".info");
            java.io.Closeable[] v6_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getEncrypted(p6, "", v2_1.toString());
            if (!android.text.TextUtils.isEmpty(v6_1)) {
                if (v8_4.exists()) {
                    v8_4.delete();
                }
                v8_4.createNewFile();
                java.io.FileOutputStream v7_7 = new java.io.FileOutputStream(v8_4);
                v7_7.write(v6_1.getBytes());
                java.io.Closeable[] v6_5 = new java.io.Closeable[1];
                v6_5[0] = v7_7;
                com.baidu.android.pushservice.e.b.a(v6_5);
                return 1;
            } else {
                java.io.Closeable[] v6_6 = new java.io.Closeable[1];
                v6_6[0] = 0;
                com.baidu.android.pushservice.e.b.a(v6_6);
                return 0;
            }
        }
        return 0;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/a/e;', 'a', '()V'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'b', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/Object;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.a.e.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.b():


    private static Object b(android.content.Context p1, String p2)
    {
        if (!com.baidu.android.pushservice.i.l.u(p1, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            return 0;
        } else {
            try {
                return com.baidu.android.pushservice.i.a.a(p1).opt(p2);
            } catch (Throwable v1_2) {
                throw v1_2;
            }
        }
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/b;', 'uncaughtException', '(Ljava/lang/Thread; Ljava/lang/Throwable;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'f', '(Landroid/content/Context; Ljava/lang/String;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'u', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'b', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/Object;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.b.uncaughtException():


    public void uncaughtException(Thread p1, Throwable p2)
    {
        this.a(p2);
        p1 = this.b;
        com.baidu.android.pushservice.i.l.f(p1, p1.getPackageName());
        return;
    }

Method com.baidu.android.pushservice.i.l.f():


    public static void f(android.content.Context p5, String p6)
    {
        if (com.baidu.android.pushservice.i.l.i(p5, p6)) {
            String v1_3;
            android.content.Intent v0_1 = com.baidu.android.pushservice.i.k.c(p5);
            boolean v2_0 = nan;
            if (com.baidu.android.pushservice.i.l.E(p5)) {
                v0_1.putExtra("method", "pushservice_restart_v3");
                if ((android.text.TextUtils.isEmpty(p6)) || (!p6.equals(com.baidu.android.pushservice.i.l.u(p5)))) {
                    v1_3 = "priority3";
                    v2_0 = com.baidu.android.pushservice.i.l.h(p5);
                } else {
                    v1_3 = "priority3";
                }
            } else {
                v0_1.putExtra("method", "pushservice_restart_v2");
                if ((android.text.TextUtils.isEmpty(p6)) || (!p6.equals(com.baidu.android.pushservice.i.l.u(p5)))) {
                    v1_3 = "priority2";
                } else {
                    v1_3 = "priority2";
                }
            }
            v0_1.putExtra(v1_3, v2_0);
            if (!android.text.TextUtils.isEmpty(p6)) {
                v0_1.setPackage(p6);
                v0_1.setClassName(p6, "com.baidu.android.pushservice.CommandService");
            }
            v0_1.putExtra("command_type", "reflect_receiver");
            try {
                if (p5.startService(v0_1) == null) {
                    if (!com.baidu.android.pushservice.i.l.F(p5)) {
                        if (!android.text.TextUtils.isEmpty(p6)) {
                            v0_1.setPackage(p6);
                        }
                        String v1_15 = com.baidu.android.pushservice.i.l.c(p5, p6, "com.baidu.android.pushservice.action.METHOD");
                        if (!android.text.TextUtils.isEmpty(v1_15)) {
                            v0_1.setClassName(p6, v1_15);
                        }
                        p5.sendBroadcast(v0_1);
                        com.baidu.android.pushservice.a.a(p5, 0);
                        return;
                    } else {
                        return;
                    }
                } else {
                    return;
                }
            } catch (Exception) {
            }
        } else {
            return;
        }
    }

Method com.baidu.android.pushservice.i.l.u():


    public static String u(android.content.Context p4)
    {
        if (!com.baidu.android.pushservice.i.l.E(p4)) {
            java.util.Iterator v0_5 = com.baidu.android.pushservice.i.a.a(p4, "com.baidu.push.cur_pkg");
            String v1_6 = com.baidu.android.pushservice.i.l.s(p4);
            if ((android.text.TextUtils.isEmpty(v0_5)) || (!v1_6.contains(v0_5))) {
                if (!v1_6.isEmpty()) {
                    java.util.Iterator v0_2 = v1_6.iterator();
                    while (v0_2.hasNext()) {
                        String v1_2 = ((String) v0_2.next());
                        if ((!com.baidu.android.pushservice.i.l.z(p4, v1_2)) && ((com.baidu.android.pushservice.i.l.o(p4, v1_2)) && (com.baidu.android.pushservice.i.l.h(p4, v1_2)))) {
                            return v1_2;
                        }
                    }
                }
            } else {
                if ((com.baidu.android.pushservice.i.l.o(p4, v0_5)) && (com.baidu.android.pushservice.i.l.h(p4, v0_5))) {
                    return v0_5;
                }
            }
        } else {
            java.util.Iterator v0_4 = com.baidu.android.pushservice.i.l.s(p4);
            String v1_4 = com.baidu.android.pushservice.i.l.p(p4);
            if (!v0_4.isEmpty()) {
                String v1_5 = v1_4.iterator();
                while (v1_5.hasNext()) {
                    boolean v2_9 = ((android.content.pm.ResolveInfo) v1_5.next()).activityInfo.packageName;
                    if ((v0_4.contains(v2_9)) && ((com.baidu.android.pushservice.i.l.o(p4, v2_9)) && (com.baidu.android.pushservice.i.l.h(p4, v2_9)))) {
                        return v2_9;
                    }
                }
            }
        }
        return 0;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.b():


    private static Object b(android.content.Context p1, String p2)
    {
        if (!com.baidu.android.pushservice.i.l.u(p1, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            return 0;
        } else {
            try {
                return com.baidu.android.pushservice.i.a.a(p1).opt(p2);
            } catch (Throwable v1_2) {
                throw v1_2;
            }
        }
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/c/c;', 'a', '(Landroid/content/Context; Ljava/lang/String; I J [B [B J I)V'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getEncrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'a', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.c.c.a():


    public static void a(android.content.Context p4, String p5, int p6, long p7, byte[] p9, byte[] p10, long p11, int p13)
    {
        try {
            android.database.sqlite.SQLiteDatabase v1 = com.baidu.android.pushservice.c.c.a(p4);
        } catch (String v4_12) {
            throw v4_12;
        }
        if (v1 != null) {
            android.content.ContentValues v2_1 = new android.content.ContentValues();
            v2_1.put(com.baidu.android.pushservice.c.c$d.b.name(), p5);
            v2_1.put(com.baidu.android.pushservice.c.c$d.d.name(), Long.valueOf(p7));
            v2_1.put(com.baidu.android.pushservice.c.c$d.c.name(), Integer.valueOf(p6));
            if ((p9 != null) && (p9.length > 0)) {
                v2_1.put(com.baidu.android.pushservice.c.c$d.g.name(), com.baidu.android.pushservice.jni.BaiduAppSSOJni.getEncrypted(p4, p5, p9));
                v2_1.put(com.baidu.android.pushservice.c.c$d.f.name(), p10);
                v2_1.put(com.baidu.android.pushservice.c.c$d.h.name(), Long.valueOf(p11));
            }
            v2_1.put(com.baidu.android.pushservice.c.c$d.e.name(), Long.valueOf(System.currentTimeMillis()));
            v2_1.put(com.baidu.android.pushservice.c.c$d.i.name(), Integer.valueOf(p13));
            v1.insert("PushMsgInfos", 0, v2_1);
            v1.close();
            return;
        } else {
            return;
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getEncrypted():


    public static byte[] getEncrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_7 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_7 != null) {
                    String v1_3 = new String(v4_7, "utf-8");
                    if (v1_3.length() > 0) {
                        return com.baidu.android.pushservice.j.a.a(v1_3.substring(16), v1_3.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            String v4_5 = new StringBuilder();
            v4_5.append("UnsatisfiedLinkError getEncrypted ");
            v4_5.append(p5);
            com.baidu.android.pushservice.i.l.b(v4_5.toString(), p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.a():


    public static byte[] a(String p2, String p3, byte[] p4)
    {
        javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
        javax.crypto.Cipher v3_3 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
        v3_3.init(1, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
        return v3_3.doFinal(p4);
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/c/d;', 'a', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'u', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'b', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/Object;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.c.d.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.l.u():


    public static String u(android.content.Context p4)
    {
        if (!com.baidu.android.pushservice.i.l.E(p4)) {
            java.util.Iterator v0_5 = com.baidu.android.pushservice.i.a.a(p4, "com.baidu.push.cur_pkg");
            String v1_6 = com.baidu.android.pushservice.i.l.s(p4);
            if ((android.text.TextUtils.isEmpty(v0_5)) || (!v1_6.contains(v0_5))) {
                if (!v1_6.isEmpty()) {
                    java.util.Iterator v0_2 = v1_6.iterator();
                    while (v0_2.hasNext()) {
                        String v1_2 = ((String) v0_2.next());
                        if ((!com.baidu.android.pushservice.i.l.z(p4, v1_2)) && ((com.baidu.android.pushservice.i.l.o(p4, v1_2)) && (com.baidu.android.pushservice.i.l.h(p4, v1_2)))) {
                            return v1_2;
                        }
                    }
                }
            } else {
                if ((com.baidu.android.pushservice.i.l.o(p4, v0_5)) && (com.baidu.android.pushservice.i.l.h(p4, v0_5))) {
                    return v0_5;
                }
            }
        } else {
            java.util.Iterator v0_4 = com.baidu.android.pushservice.i.l.s(p4);
            String v1_4 = com.baidu.android.pushservice.i.l.p(p4);
            if (!v0_4.isEmpty()) {
                String v1_5 = v1_4.iterator();
                while (v1_5.hasNext()) {
                    boolean v2_9 = ((android.content.pm.ResolveInfo) v1_5.next()).activityInfo.packageName;
                    if ((v0_4.contains(v2_9)) && ((com.baidu.android.pushservice.i.l.o(p4, v2_9)) && (com.baidu.android.pushservice.i.l.h(p4, v2_9)))) {
                        return v2_9;
                    }
                }
            }
        }
        return 0;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.b():


    private static Object b(android.content.Context p1, String p2)
    {
        if (!com.baidu.android.pushservice.i.l.u(p1, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            return 0;
        } else {
            try {
                return com.baidu.android.pushservice.i.a.a(p1).opt(p2);
            } catch (Throwable v1_2) {
                throw v1_2;
            }
        }
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/d$2;', 'run', '()V'), ('Lcom/baidu/android/pushservice/d;', 'h', '(Lcom/baidu/android/pushservice/d;)V'), ('Lcom/baidu/android/pushservice/d;', 'i', '()V'), ('Lcom/baidu/android/pushservice/i;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/i;'), ('Lcom/baidu/android/pushservice/i;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/PushSettings;', 'a', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'b', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/Object;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.d$2.run():


    public void run()
    {
        com.baidu.android.pushservice.d.h(this.a);
        return;
    }

Method com.baidu.android.pushservice.d.h():


    static synthetic void h(com.baidu.android.pushservice.d p0)
    {
        p0.i();
        return;
    }

Method com.baidu.android.pushservice.d.i():


    private declared_synchronized void i()
    {
        try {
            if (!this.d) {
                if (!com.baidu.android.pushservice.d.e.booleanValue()) {
                    if (com.baidu.android.pushservice.i.a(this.l).e()) {
                        Thread v0_3 = new StringBuilder();
                        v0_3.append("PushConnection connectImpl from ");
                        v0_3.append(this.l.getPackageName());
                        v0_3.append(" at Time ");
                        v0_3.append(System.currentTimeMillis());
                        com.baidu.android.pushservice.i.l.b(v0_3.toString(), this.l);
                        com.baidu.android.pushservice.d.e = Boolean.valueOf(1);
                        com.baidu.android.pushservice.d.c = -1;
                        Thread v0_10 = new com.baidu.android.pushservice.d$1(this);
                        if (this.r != null) {
                            this.r.interrupt();
                        }
                        this.r = new Thread(v0_10);
                        this.r.setName("PushService-PushService-connect");
                        this.r.start();
                        return;
                    } else {
                        com.baidu.android.pushservice.f.a.a("PushConnection", "re-token", this.l.getApplicationContext());
                        com.baidu.android.pushservice.f.a(this.l).d();
                        return;
                    }
                } else {
                }
            }
        } catch (Thread v0_19) {
            throw v0_19;
        }
        String v1_13 = new StringBuilder();
        v1_13.append("Connect return. mConnected:");
        v1_13.append(this.d);
        v1_13.append(" mConnectting:");
        v1_13.append(com.baidu.android.pushservice.d.e);
        com.baidu.android.pushservice.f.a.c("PushConnection", v1_13.toString(), this.l.getApplicationContext());
        return;
    }

Method com.baidu.android.pushservice.i.a():


    public static declared_synchronized com.baidu.android.pushservice.i a(android.content.Context p2)
    {
        try {
            if (com.baidu.android.pushservice.i.a == null) {
                com.baidu.android.pushservice.i.a = new com.baidu.android.pushservice.i(p2);
            }
        } catch (com.baidu.android.pushservice.i v2_1) {
            throw v2_1;
        }
        return com.baidu.android.pushservice.i.a;
    }

Method com.baidu.android.pushservice.i.<init>():


    private i(android.content.Context p2)
    {
        this.d = com.baidu.android.pushservice.i.i.a(p2, "com.baidu.pushservice.channel_token");
        this.b = com.baidu.android.pushservice.PushSettings.a(p2);
        if (com.baidu.android.pushservice.b.e.b(p2)) {
            this.e = com.baidu.android.pushservice.i.i.a(p2, "com.baidu.pushservice.channel_token_new");
            this.c = com.baidu.android.pushservice.PushSettings.b(p2);
        }
        this.g = 0;
        this.h = p2;
        return;
    }

Method com.baidu.android.pushservice.PushSettings.a():


    public static String a(android.content.Context p3)
    {
        String v0_2 = com.baidu.android.pushservice.i.a.a(p3, "com.baidu.pushservice.channel_id");
        if (android.text.TextUtils.isEmpty(v0_2)) {
            v0_2 = com.baidu.android.pushservice.i.i.a(p3, "com.baidu.pushservice.channel_id");
            if (android.text.TextUtils.isEmpty(v0_2)) {
                v0_2 = com.baidu.android.pushservice.c.c.a(p3, 0);
                if (android.text.TextUtils.isEmpty(v0_2)) {
                    int v1_3 = com.baidu.android.pushservice.i.l.n(p3).iterator();
                    while (v1_3.hasNext()) {
                        v0_2 = com.baidu.android.pushservice.c.d.a(p3, ((String) v1_3.next()));
                        if (!android.text.TextUtils.isEmpty(v0_2)) {
                            com.baidu.android.pushservice.PushSettings.a(p3, v0_2, 0);
                            break;
                        }
                    }
                }
            }
        }
        return v0_2;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.b():


    private static Object b(android.content.Context p1, String p2)
    {
        if (!com.baidu.android.pushservice.i.l.u(p1, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            return 0;
        } else {
            try {
                return com.baidu.android.pushservice.i.a.a(p1).opt(p2);
            } catch (Throwable v1_2) {
                throw v1_2;
            }
        }
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/f;', 'a', '(Landroid/content/Intent;)Z'), ('Lcom/baidu/android/pushservice/f;', 'c', '()Lcom/baidu/android/pushservice/h;'), ('Lcom/baidu/android/pushservice/h;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/h;'), ('Lcom/baidu/android/pushservice/h;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/i;'), ('Lcom/baidu/android/pushservice/i;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/PushSettings;', 'a', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'b', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/Object;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.f.a():


    public boolean a(android.content.Intent p9)
    {
        com.baidu.android.pushservice.f.a.a(com.baidu.android.pushservice.f.b, "PushSDK handleOnStart go", this.j);
        if (p9 == 0) {
            p9 = new android.content.Intent();
            com.baidu.android.pushservice.f.a.c(com.baidu.android.pushservice.f.b, "--- handleOnStart by null intent!", this.j);
        }
        if ((!com.baidu.android.pushservice.b.e.k(this.j)) || (com.baidu.android.pushservice.b.e.c(this.j))) {
            if (!this.h.booleanValue()) {
                this.a();
            }
            try {
                this.k.removeCallbacks(this.p);
            } catch (int v9_3) {
                throw v9_3;
            }
            if (com.baidu.android.pushservice.f.g != null) {
                if (p9.getStringExtra("AlarmAlert") == null) {
                    if (((!"pushservice_restart_v2".equals(p9.getStringExtra("method"))) && (!"pushservice_restart_v3".equals(p9.getStringExtra("method")))) || (com.baidu.android.pushservice.f.g == null)) {
                        if (this.c().a(p9)) {
                            com.baidu.android.pushservice.f.a.c(com.baidu.android.pushservice.f.b, "-- handleOnStart -- intent handled  by mRegistrationService ", this.j);
                            return 1;
                        }
                    } else {
                        int v2_18;
                        if (!com.baidu.android.pushservice.i.l.E(this.j)) {
                            v2_18 = "priority2";
                        } else {
                            v2_18 = "priority3";
                        }
                        boolean v4_8 = p9.getLongExtra(v2_18, 0);
                        int v9_14;
                        com.baidu.android.pushservice.b.e.a(this.j).e();
                        if ((v4_8 <= com.baidu.android.pushservice.i.l.h(this.j)) || (com.baidu.android.pushservice.b.e.a(this.j).b() == 3)) {
                            v9_14 = 0;
                        } else {
                            v9_14 = 1;
                        }
                        int v2_24;
                        if (com.baidu.android.pushservice.b.e.a(this.j).b() != 4) {
                            v2_24 = 0;
                        } else {
                            v2_24 = 1;
                        }
                        if ((v9_14 == 0) || ((!com.baidu.android.pushservice.a.d(this.j)) || (com.baidu.android.pushservice.i.l.c(this.j)))) {
                            if ((v9_14 != 0) || (v2_24 != 0)) {
                                return 0;
                            }
                        } else {
                            return 1;
                        }
                    }
                    this.n();
                    return 1;
                } else {
                    return this.p();
                }
            } else {
                String v1_1 = p9.getAction();
                if ((!"com.baidu.android.pushservice.action.METHOD".equals(v1_1)) && (!"com.baidu.android.pushservice.action.privatenotification.CLICK".equals(v1_1))) {
                    if (!"com.baidu.android.pushservice.action.privatenotification.DELETE".equals(v1_1)) {
                        return 1;
                    } else {
                    }
                }
                return this.c().a(p9);
            }
        } else {
            return 0;
        }
    }

Method com.baidu.android.pushservice.f.c():


    public com.baidu.android.pushservice.h c()
    {
        return com.baidu.android.pushservice.h.a(this.j);
    }

Method com.baidu.android.pushservice.h.a():


    public static declared_synchronized com.baidu.android.pushservice.h a(android.content.Context p2)
    {
        try {
            if (com.baidu.android.pushservice.h.c == null) {
                com.baidu.android.pushservice.h.c = new com.baidu.android.pushservice.h(p2);
            }
        } catch (com.baidu.android.pushservice.h v2_1) {
            throw v2_1;
        }
        return com.baidu.android.pushservice.h.c;
    }

Method com.baidu.android.pushservice.h.<init>():


    private h(android.content.Context p1)
    {
        this.a = p1;
        com.baidu.android.pushservice.a.b.a(p1);
        com.baidu.android.pushservice.i.a(p1);
        com.baidu.android.pushservice.h.d.a();
        return;
    }

Method com.baidu.android.pushservice.i.a():


    public static declared_synchronized com.baidu.android.pushservice.i a(android.content.Context p2)
    {
        try {
            if (com.baidu.android.pushservice.i.a == null) {
                com.baidu.android.pushservice.i.a = new com.baidu.android.pushservice.i(p2);
            }
        } catch (com.baidu.android.pushservice.i v2_1) {
            throw v2_1;
        }
        return com.baidu.android.pushservice.i.a;
    }

Method com.baidu.android.pushservice.i.<init>():


    private i(android.content.Context p2)
    {
        this.d = com.baidu.android.pushservice.i.i.a(p2, "com.baidu.pushservice.channel_token");
        this.b = com.baidu.android.pushservice.PushSettings.a(p2);
        if (com.baidu.android.pushservice.b.e.b(p2)) {
            this.e = com.baidu.android.pushservice.i.i.a(p2, "com.baidu.pushservice.channel_token_new");
            this.c = com.baidu.android.pushservice.PushSettings.b(p2);
        }
        this.g = 0;
        this.h = p2;
        return;
    }

Method com.baidu.android.pushservice.PushSettings.a():


    public static String a(android.content.Context p3)
    {
        String v0_2 = com.baidu.android.pushservice.i.a.a(p3, "com.baidu.pushservice.channel_id");
        if (android.text.TextUtils.isEmpty(v0_2)) {
            v0_2 = com.baidu.android.pushservice.i.i.a(p3, "com.baidu.pushservice.channel_id");
            if (android.text.TextUtils.isEmpty(v0_2)) {
                v0_2 = com.baidu.android.pushservice.c.c.a(p3, 0);
                if (android.text.TextUtils.isEmpty(v0_2)) {
                    int v1_3 = com.baidu.android.pushservice.i.l.n(p3).iterator();
                    while (v1_3.hasNext()) {
                        v0_2 = com.baidu.android.pushservice.c.d.a(p3, ((String) v1_3.next()));
                        if (!android.text.TextUtils.isEmpty(v0_2)) {
                            com.baidu.android.pushservice.PushSettings.a(p3, v0_2, 0);
                            break;
                        }
                    }
                }
            }
        }
        return v0_2;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.b():


    private static Object b(android.content.Context p1, String p2)
    {
        if (!com.baidu.android.pushservice.i.l.u(p1, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            return 0;
        } else {
            try {
                return com.baidu.android.pushservice.i.a.a(p1).opt(p2);
            } catch (Throwable v1_2) {
                throw v1_2;
            }
        }
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/f;', 'c', '()Lcom/baidu/android/pushservice/h;'), ('Lcom/baidu/android/pushservice/h;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/h;'), ('Lcom/baidu/android/pushservice/h;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/i;'), ('Lcom/baidu/android/pushservice/i;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/PushSettings;', 'a', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'b', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/Object;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.f.c():


    public com.baidu.android.pushservice.h c()
    {
        return com.baidu.android.pushservice.h.a(this.j);
    }

Method com.baidu.android.pushservice.h.a():


    public static declared_synchronized com.baidu.android.pushservice.h a(android.content.Context p2)
    {
        try {
            if (com.baidu.android.pushservice.h.c == null) {
                com.baidu.android.pushservice.h.c = new com.baidu.android.pushservice.h(p2);
            }
        } catch (com.baidu.android.pushservice.h v2_1) {
            throw v2_1;
        }
        return com.baidu.android.pushservice.h.c;
    }

Method com.baidu.android.pushservice.h.<init>():


    private h(android.content.Context p1)
    {
        this.a = p1;
        com.baidu.android.pushservice.a.b.a(p1);
        com.baidu.android.pushservice.i.a(p1);
        com.baidu.android.pushservice.h.d.a();
        return;
    }

Method com.baidu.android.pushservice.i.a():


    public static declared_synchronized com.baidu.android.pushservice.i a(android.content.Context p2)
    {
        try {
            if (com.baidu.android.pushservice.i.a == null) {
                com.baidu.android.pushservice.i.a = new com.baidu.android.pushservice.i(p2);
            }
        } catch (com.baidu.android.pushservice.i v2_1) {
            throw v2_1;
        }
        return com.baidu.android.pushservice.i.a;
    }

Method com.baidu.android.pushservice.i.<init>():


    private i(android.content.Context p2)
    {
        this.d = com.baidu.android.pushservice.i.i.a(p2, "com.baidu.pushservice.channel_token");
        this.b = com.baidu.android.pushservice.PushSettings.a(p2);
        if (com.baidu.android.pushservice.b.e.b(p2)) {
            this.e = com.baidu.android.pushservice.i.i.a(p2, "com.baidu.pushservice.channel_token_new");
            this.c = com.baidu.android.pushservice.PushSettings.b(p2);
        }
        this.g = 0;
        this.h = p2;
        return;
    }

Method com.baidu.android.pushservice.PushSettings.a():


    public static String a(android.content.Context p3)
    {
        String v0_2 = com.baidu.android.pushservice.i.a.a(p3, "com.baidu.pushservice.channel_id");
        if (android.text.TextUtils.isEmpty(v0_2)) {
            v0_2 = com.baidu.android.pushservice.i.i.a(p3, "com.baidu.pushservice.channel_id");
            if (android.text.TextUtils.isEmpty(v0_2)) {
                v0_2 = com.baidu.android.pushservice.c.c.a(p3, 0);
                if (android.text.TextUtils.isEmpty(v0_2)) {
                    int v1_3 = com.baidu.android.pushservice.i.l.n(p3).iterator();
                    while (v1_3.hasNext()) {
                        v0_2 = com.baidu.android.pushservice.c.d.a(p3, ((String) v1_3.next()));
                        if (!android.text.TextUtils.isEmpty(v0_2)) {
                            com.baidu.android.pushservice.PushSettings.a(p3, v0_2, 0);
                            break;
                        }
                    }
                }
            }
        }
        return v0_2;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.b():


    private static Object b(android.content.Context p1, String p2)
    {
        if (!com.baidu.android.pushservice.i.l.u(p1, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            return 0;
        } else {
            try {
                return com.baidu.android.pushservice.i.a.a(p1).opt(p2);
            } catch (Throwable v1_2) {
                throw v1_2;
            }
        }
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/d/y;', 'a', '()V'), ('Lcom/baidu/android/pushservice/d/a$a;', 'a', '(Ljava/lang/Boolean;)V'), ('Lcom/baidu/android/pushservice/i;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/i;'), ('Lcom/baidu/android/pushservice/i;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/PushSettings;', 'a', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'b', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/Object;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.d.y.a():


    protected void a()
    {
        do {
            android.content.Context v0_0 = this.b();
            if (this.d) {
                this.d();
            }
        } while((this.b > 0) && (this.d));
        android.content.Intent v1_10 = this.f;
        if (v1_10 == null) {
            com.baidu.android.pushservice.i.l.b("TokenRequester#execute-->mListener is null !!!!!", this.a);
        } else {
            v1_10.a(Boolean.valueOf(v0_0));
        }
        android.content.Intent v1_2 = new StringBuilder();
        v1_2.append("TokenRequester#execute-->RequestTokenThread connectResult: ");
        v1_2.append(v0_0);
        com.baidu.android.pushservice.i.l.b(v1_2.toString(), this.a);
        if (v0_0 != null) {
            com.baidu.android.pushservice.d.b.a(this.a);
            if (com.baidu.android.pushservice.f.a != null) {
                com.baidu.android.pushservice.i.l.b("TokenRequester#execute-->TokenRequester start PushService after Request finish. ", this.a);
                com.baidu.android.pushservice.i.k.a(this.a, new android.content.Intent());
            }
            return;
        } else {
            com.baidu.android.pushservice.i.l.e(this.a);
            return;
        }
    }

Method com.baidu.android.pushservice.d.a$a.a():


    public void a(Boolean p4)
    {
        android.content.Context v0_1 = new StringBuilder();
        v0_1.append("RequetChannelListener#isGetChannelToken#isSucceed=");
        v0_1.append(p4);
        com.baidu.android.pushservice.i.l.b(v0_1.toString(), this.a.a);
        if (!p4.booleanValue()) {
            if (!com.baidu.android.pushservice.i.a(this.a.a).e()) {
                this.a.a(10002);
                com.baidu.android.pushservice.i.l.b("RequetChannelListener#isGetChannelToken#isSucceed=false, errorcode=10002", this.a.a);
            }
        } else {
            String v4_9 = this.a.c();
            android.content.Context v1_2 = new StringBuilder();
            v1_2.append("netWorkConnect connectResult: ");
            v1_2.append(v4_9);
            com.baidu.android.pushservice.f.a.c("AbstractProcessor", v1_2.toString(), this.a.a);
        }
        return;
    }

Method com.baidu.android.pushservice.i.a():


    public static declared_synchronized com.baidu.android.pushservice.i a(android.content.Context p2)
    {
        try {
            if (com.baidu.android.pushservice.i.a == null) {
                com.baidu.android.pushservice.i.a = new com.baidu.android.pushservice.i(p2);
            }
        } catch (com.baidu.android.pushservice.i v2_1) {
            throw v2_1;
        }
        return com.baidu.android.pushservice.i.a;
    }

Method com.baidu.android.pushservice.i.<init>():


    private i(android.content.Context p2)
    {
        this.d = com.baidu.android.pushservice.i.i.a(p2, "com.baidu.pushservice.channel_token");
        this.b = com.baidu.android.pushservice.PushSettings.a(p2);
        if (com.baidu.android.pushservice.b.e.b(p2)) {
            this.e = com.baidu.android.pushservice.i.i.a(p2, "com.baidu.pushservice.channel_token_new");
            this.c = com.baidu.android.pushservice.PushSettings.b(p2);
        }
        this.g = 0;
        this.h = p2;
        return;
    }

Method com.baidu.android.pushservice.PushSettings.a():


    public static String a(android.content.Context p3)
    {
        String v0_2 = com.baidu.android.pushservice.i.a.a(p3, "com.baidu.pushservice.channel_id");
        if (android.text.TextUtils.isEmpty(v0_2)) {
            v0_2 = com.baidu.android.pushservice.i.i.a(p3, "com.baidu.pushservice.channel_id");
            if (android.text.TextUtils.isEmpty(v0_2)) {
                v0_2 = com.baidu.android.pushservice.c.c.a(p3, 0);
                if (android.text.TextUtils.isEmpty(v0_2)) {
                    int v1_3 = com.baidu.android.pushservice.i.l.n(p3).iterator();
                    while (v1_3.hasNext()) {
                        v0_2 = com.baidu.android.pushservice.c.d.a(p3, ((String) v1_3.next()));
                        if (!android.text.TextUtils.isEmpty(v0_2)) {
                            com.baidu.android.pushservice.PushSettings.a(p3, v0_2, 0);
                            break;
                        }
                    }
                }
            }
        }
        return v0_2;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.b():


    private static Object b(android.content.Context p1, String p2)
    {
        if (!com.baidu.android.pushservice.i.l.u(p1, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            return 0;
        } else {
            try {
                return com.baidu.android.pushservice.i.a.a(p1).opt(p2);
            } catch (Throwable v1_2) {
                throw v1_2;
            }
        }
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/d/y;', 'run', '()V'), ('Lcom/baidu/android/pushservice/d/y;', 'a', '()V'), ('Lcom/baidu/android/pushservice/d/a$a;', 'a', '(Ljava/lang/Boolean;)V'), ('Lcom/baidu/android/pushservice/i;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/i;'), ('Lcom/baidu/android/pushservice/i;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/PushSettings;', 'a', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'b', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/Object;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.d.y.run():


    public void run()
    {
        this.a();
        return;
    }

Method com.baidu.android.pushservice.d.y.a():


    protected void a()
    {
        do {
            android.content.Context v0_0 = this.b();
            if (this.d) {
                this.d();
            }
        } while((this.b > 0) && (this.d));
        android.content.Intent v1_10 = this.f;
        if (v1_10 == null) {
            com.baidu.android.pushservice.i.l.b("TokenRequester#execute-->mListener is null !!!!!", this.a);
        } else {
            v1_10.a(Boolean.valueOf(v0_0));
        }
        android.content.Intent v1_2 = new StringBuilder();
        v1_2.append("TokenRequester#execute-->RequestTokenThread connectResult: ");
        v1_2.append(v0_0);
        com.baidu.android.pushservice.i.l.b(v1_2.toString(), this.a);
        if (v0_0 != null) {
            com.baidu.android.pushservice.d.b.a(this.a);
            if (com.baidu.android.pushservice.f.a != null) {
                com.baidu.android.pushservice.i.l.b("TokenRequester#execute-->TokenRequester start PushService after Request finish. ", this.a);
                com.baidu.android.pushservice.i.k.a(this.a, new android.content.Intent());
            }
            return;
        } else {
            com.baidu.android.pushservice.i.l.e(this.a);
            return;
        }
    }

Method com.baidu.android.pushservice.d.a$a.a():


    public void a(Boolean p4)
    {
        android.content.Context v0_1 = new StringBuilder();
        v0_1.append("RequetChannelListener#isGetChannelToken#isSucceed=");
        v0_1.append(p4);
        com.baidu.android.pushservice.i.l.b(v0_1.toString(), this.a.a);
        if (!p4.booleanValue()) {
            if (!com.baidu.android.pushservice.i.a(this.a.a).e()) {
                this.a.a(10002);
                com.baidu.android.pushservice.i.l.b("RequetChannelListener#isGetChannelToken#isSucceed=false, errorcode=10002", this.a.a);
            }
        } else {
            String v4_9 = this.a.c();
            android.content.Context v1_2 = new StringBuilder();
            v1_2.append("netWorkConnect connectResult: ");
            v1_2.append(v4_9);
            com.baidu.android.pushservice.f.a.c("AbstractProcessor", v1_2.toString(), this.a.a);
        }
        return;
    }

Method com.baidu.android.pushservice.i.a():


    public static declared_synchronized com.baidu.android.pushservice.i a(android.content.Context p2)
    {
        try {
            if (com.baidu.android.pushservice.i.a == null) {
                com.baidu.android.pushservice.i.a = new com.baidu.android.pushservice.i(p2);
            }
        } catch (com.baidu.android.pushservice.i v2_1) {
            throw v2_1;
        }
        return com.baidu.android.pushservice.i.a;
    }

Method com.baidu.android.pushservice.i.<init>():


    private i(android.content.Context p2)
    {
        this.d = com.baidu.android.pushservice.i.i.a(p2, "com.baidu.pushservice.channel_token");
        this.b = com.baidu.android.pushservice.PushSettings.a(p2);
        if (com.baidu.android.pushservice.b.e.b(p2)) {
            this.e = com.baidu.android.pushservice.i.i.a(p2, "com.baidu.pushservice.channel_token_new");
            this.c = com.baidu.android.pushservice.PushSettings.b(p2);
        }
        this.g = 0;
        this.h = p2;
        return;
    }

Method com.baidu.android.pushservice.PushSettings.a():


    public static String a(android.content.Context p3)
    {
        String v0_2 = com.baidu.android.pushservice.i.a.a(p3, "com.baidu.pushservice.channel_id");
        if (android.text.TextUtils.isEmpty(v0_2)) {
            v0_2 = com.baidu.android.pushservice.i.i.a(p3, "com.baidu.pushservice.channel_id");
            if (android.text.TextUtils.isEmpty(v0_2)) {
                v0_2 = com.baidu.android.pushservice.c.c.a(p3, 0);
                if (android.text.TextUtils.isEmpty(v0_2)) {
                    int v1_3 = com.baidu.android.pushservice.i.l.n(p3).iterator();
                    while (v1_3.hasNext()) {
                        v0_2 = com.baidu.android.pushservice.c.d.a(p3, ((String) v1_3.next()));
                        if (!android.text.TextUtils.isEmpty(v0_2)) {
                            com.baidu.android.pushservice.PushSettings.a(p3, v0_2, 0);
                            break;
                        }
                    }
                }
            }
        }
        return v0_2;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.b():


    private static Object b(android.content.Context p1, String p2)
    {
        if (!com.baidu.android.pushservice.i.l.u(p1, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            return 0;
        } else {
            try {
                return com.baidu.android.pushservice.i.a.a(p1).opt(p2);
            } catch (Throwable v1_2) {
                throw v1_2;
            }
        }
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/d;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/f;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/f;'), ('Lcom/baidu/android/pushservice/f;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'g', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'a', '(Landroid/content/Context; Z Z)V'), ('Lcom/baidu/android/pushservice/i/k;', 'd', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'u', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'b', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/Object;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.d.<init>():


    private d(android.content.Context p4)
    {
        this.d = 0;
        this.f = 0;
        this.g = new java.util.HashMap();
        this.j = 0;
        this.k = 0;
        this.a = new android.os.Handler();
        this.m = 1;
        this.p = com.baidu.android.pushservice.g.c();
        this.q = 0;
        this.s = new com.baidu.android.pushservice.d$2(this);
        this.t = new com.baidu.android.pushservice.d$3(this);
        this.u = 0;
        int v1_9 = new int[7];
        v1_9 = {180, 300, 360, 420, 540, 720, 900};
        this.v = v1_9;
        this.w = 0;
        this.x = 0;
        this.y = 3;
        this.z = 0;
        this.A = 30;
        this.l = p4;
        int v4_1 = this.g();
        if ((v4_1 >= 0) && (v4_1 < this.v.length)) {
            this.w = v4_1;
        }
        this.m();
        com.baidu.android.pushservice.f.a(this.l).a(this.v[this.w]);
        this.B = com.baidu.android.pushservice.i.g.d(this.l);
        this.q = com.baidu.android.pushservice.g.a(this.l);
        return;
    }

Method com.baidu.android.pushservice.f.a():


    public static declared_synchronized com.baidu.android.pushservice.f a(android.content.Context p2)
    {
        try {
            if (com.baidu.android.pushservice.f.c == null) {
                com.baidu.android.pushservice.f.c = new com.baidu.android.pushservice.f(p2);
            }
        } catch (com.baidu.android.pushservice.f v2_1) {
            throw v2_1;
        }
        return com.baidu.android.pushservice.f.c;
    }

Method com.baidu.android.pushservice.f.<init>():


    private f(android.content.Context p3)
    {
        this.h = Boolean.valueOf(0);
        this.p = new com.baidu.android.pushservice.f$2(this);
        this.q = new com.baidu.android.pushservice.f$3(this);
        this.r = new com.baidu.android.pushservice.f$4(this);
        this.k = new android.os.Handler(p3.getMainLooper());
        this.j = p3.getApplicationContext();
        this.e = com.baidu.android.pushservice.f.d;
        com.baidu.android.pushservice.i.l.g(this.j.getApplicationContext());
        return;
    }

Method com.baidu.android.pushservice.i.l.g():


    public static void g(android.content.Context p1)
    {
        com.baidu.android.pushservice.i.l.a(p1, 0, 0);
        return;
    }

Method com.baidu.android.pushservice.i.l.a():


    public static void a(android.content.Context p7, boolean p8, boolean p9)
    {
        short v1_3 = new StringBuilder();
        v1_3.append(p7.getPackageName());
        v1_3.append(": updateServiceInfo isForce = ");
        v1_3.append(p8);
        v1_3.append(",isSend = ");
        v1_3.append(p9);
        com.baidu.android.pushservice.f.a.a("Utility", v1_3.toString(), p7.getApplicationContext());
        short v1_2 = 0;
        String v0_2 = p7.getSharedPreferences("pst", 0);
        int v2_2 = com.baidu.android.pushservice.i.l.d(p7, p7.getPackageName());
        if ((v0_2.getInt("pr_app_v", 0) < v2_2) || (p8 != null)) {
            String v8_1 = com.baidu.android.pushservice.i.l.c(p7);
            if ((com.baidu.android.pushservice.b.e.k(p7)) && (!com.baidu.android.pushservice.b.e.c(p7))) {
                v1_2 = 1;
            }
            long v3_4 = 0;
            if ((v8_1 == null) && (v1_2 == 0)) {
                com.baidu.android.pushservice.c.c.a(p7, com.baidu.android.pushservice.i.l.f(p7));
            } else {
                com.baidu.android.pushservice.c.c.a(p7, 0);
            }
            if (com.baidu.android.pushservice.i.l.D(p7)) {
                String v8_2;
                android.content.SharedPreferences$Editor v5_3 = new StringBuilder();
                v5_3.append(p7.getPackageName());
                v5_3.append(".push_sync");
                android.content.SharedPreferences$Editor v5_6 = p7.getSharedPreferences(v5_3.toString(), 5).edit();
                if ((v8_1 == null) && (v1_2 == 0)) {
                    v8_2 = "priority2";
                    v3_4 = com.baidu.android.pushservice.i.l.f(p7);
                } else {
                    v8_2 = "priority2";
                }
                v5_6.putLong(v8_2, v3_4);
                v5_6.putInt("version2", com.baidu.android.pushservice.a.a());
                v5_6.commit();
            }
            com.baidu.android.pushservice.c.c.b(p7, ((long) com.baidu.android.pushservice.a.a()));
            String v8_5 = v0_2.edit();
            v8_5.putInt("pr_app_v", v2_2);
            v8_5.commit();
        }
        if (p9) {
            com.baidu.android.pushservice.i.k.d(p7);
        }
        return;
    }

Method com.baidu.android.pushservice.i.k.d():


    public static void d(android.content.Context p5)
    {
        com.baidu.android.pushservice.b.e.a(p5).e();
        if ((!com.baidu.android.pushservice.b.e.k(p5)) || (com.baidu.android.pushservice.b.e.c(p5))) {
            boolean v0_1 = com.baidu.android.pushservice.i.l.u(p5);
            int v1_0 = p5.getPackageName();
            com.baidu.android.pushservice.i.k.a = com.baidu.android.pushservice.i.l.v(p5);
            String v2_1 = 0;
            if ((com.baidu.android.pushservice.a.a(v1_0)) && (!v1_0.equals(com.baidu.android.pushservice.i.k.a))) {
                v0_1 = v1_0;
                v2_1 = 1;
            }
            com.baidu.android.pushservice.a.c(p5, v2_1);
            if ((android.text.TextUtils.isEmpty(v0_1)) || ((!v0_1.equals(com.baidu.android.pushservice.i.k.a)) || (v2_1 != null))) {
                com.baidu.android.pushservice.i.k.a(p5, v0_1);
            }
            if ((p5.getPackageName().startsWith("com.baidu.searchbox")) && ((!com.baidu.android.pushservice.job.a.b()) && ((!com.baidu.android.pushservice.i.l.l(p5)) && ((!com.baidu.android.pushservice.b.e.c(p5)) && ((android.os.Build$VERSION.SDK_INT > 22) || ((!com.baidu.android.pushservice.i.l.d()) && (!com.baidu.android.pushservice.i.l.e()))))))) {
                com.baidu.android.pushservice.job.a.a(p5);
                com.baidu.android.pushservice.job.a.a(1);
            }
            com.baidu.android.pushservice.h.d.a().a(new com.baidu.android.pushservice.i.k$1("checkAndStartPushService", 98, p5.getApplicationContext()));
            return;
        } else {
            return;
        }
    }

Method com.baidu.android.pushservice.i.l.u():


    public static String u(android.content.Context p4)
    {
        if (!com.baidu.android.pushservice.i.l.E(p4)) {
            java.util.Iterator v0_5 = com.baidu.android.pushservice.i.a.a(p4, "com.baidu.push.cur_pkg");
            String v1_6 = com.baidu.android.pushservice.i.l.s(p4);
            if ((android.text.TextUtils.isEmpty(v0_5)) || (!v1_6.contains(v0_5))) {
                if (!v1_6.isEmpty()) {
                    java.util.Iterator v0_2 = v1_6.iterator();
                    while (v0_2.hasNext()) {
                        String v1_2 = ((String) v0_2.next());
                        if ((!com.baidu.android.pushservice.i.l.z(p4, v1_2)) && ((com.baidu.android.pushservice.i.l.o(p4, v1_2)) && (com.baidu.android.pushservice.i.l.h(p4, v1_2)))) {
                            return v1_2;
                        }
                    }
                }
            } else {
                if ((com.baidu.android.pushservice.i.l.o(p4, v0_5)) && (com.baidu.android.pushservice.i.l.h(p4, v0_5))) {
                    return v0_5;
                }
            }
        } else {
            java.util.Iterator v0_4 = com.baidu.android.pushservice.i.l.s(p4);
            String v1_4 = com.baidu.android.pushservice.i.l.p(p4);
            if (!v0_4.isEmpty()) {
                String v1_5 = v1_4.iterator();
                while (v1_5.hasNext()) {
                    boolean v2_9 = ((android.content.pm.ResolveInfo) v1_5.next()).activityInfo.packageName;
                    if ((v0_4.contains(v2_9)) && ((com.baidu.android.pushservice.i.l.o(p4, v2_9)) && (com.baidu.android.pushservice.i.l.h(p4, v2_9)))) {
                        return v2_9;
                    }
                }
            }
        }
        return 0;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.b():


    private static Object b(android.content.Context p1, String p2)
    {
        if (!com.baidu.android.pushservice.i.l.u(p1, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            return 0;
        } else {
            try {
                return com.baidu.android.pushservice.i.a.a(p1).opt(p2);
            } catch (Throwable v1_2) {
                throw v1_2;
            }
        }
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/d;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/d;'), ('Lcom/baidu/android/pushservice/d;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/f;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/f;'), ('Lcom/baidu/android/pushservice/f;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'g', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'a', '(Landroid/content/Context; Z Z)V'), ('Lcom/baidu/android/pushservice/i/k;', 'd', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'u', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'b', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/Object;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.d.a():


    public static com.baidu.android.pushservice.d a(android.content.Context p1)
    {
        if (com.baidu.android.pushservice.d.n == null) {
            com.baidu.android.pushservice.d.n = new com.baidu.android.pushservice.d(p1);
        }
        return com.baidu.android.pushservice.d.n;
    }

Method com.baidu.android.pushservice.d.<init>():


    private d(android.content.Context p4)
    {
        this.d = 0;
        this.f = 0;
        this.g = new java.util.HashMap();
        this.j = 0;
        this.k = 0;
        this.a = new android.os.Handler();
        this.m = 1;
        this.p = com.baidu.android.pushservice.g.c();
        this.q = 0;
        this.s = new com.baidu.android.pushservice.d$2(this);
        this.t = new com.baidu.android.pushservice.d$3(this);
        this.u = 0;
        int v1_9 = new int[7];
        v1_9 = {180, 300, 360, 420, 540, 720, 900};
        this.v = v1_9;
        this.w = 0;
        this.x = 0;
        this.y = 3;
        this.z = 0;
        this.A = 30;
        this.l = p4;
        int v4_1 = this.g();
        if ((v4_1 >= 0) && (v4_1 < this.v.length)) {
            this.w = v4_1;
        }
        this.m();
        com.baidu.android.pushservice.f.a(this.l).a(this.v[this.w]);
        this.B = com.baidu.android.pushservice.i.g.d(this.l);
        this.q = com.baidu.android.pushservice.g.a(this.l);
        return;
    }

Method com.baidu.android.pushservice.f.a():


    public static declared_synchronized com.baidu.android.pushservice.f a(android.content.Context p2)
    {
        try {
            if (com.baidu.android.pushservice.f.c == null) {
                com.baidu.android.pushservice.f.c = new com.baidu.android.pushservice.f(p2);
            }
        } catch (com.baidu.android.pushservice.f v2_1) {
            throw v2_1;
        }
        return com.baidu.android.pushservice.f.c;
    }

Method com.baidu.android.pushservice.f.<init>():


    private f(android.content.Context p3)
    {
        this.h = Boolean.valueOf(0);
        this.p = new com.baidu.android.pushservice.f$2(this);
        this.q = new com.baidu.android.pushservice.f$3(this);
        this.r = new com.baidu.android.pushservice.f$4(this);
        this.k = new android.os.Handler(p3.getMainLooper());
        this.j = p3.getApplicationContext();
        this.e = com.baidu.android.pushservice.f.d;
        com.baidu.android.pushservice.i.l.g(this.j.getApplicationContext());
        return;
    }

Method com.baidu.android.pushservice.i.l.g():


    public static void g(android.content.Context p1)
    {
        com.baidu.android.pushservice.i.l.a(p1, 0, 0);
        return;
    }

Method com.baidu.android.pushservice.i.l.a():


    public static void a(android.content.Context p7, boolean p8, boolean p9)
    {
        short v1_3 = new StringBuilder();
        v1_3.append(p7.getPackageName());
        v1_3.append(": updateServiceInfo isForce = ");
        v1_3.append(p8);
        v1_3.append(",isSend = ");
        v1_3.append(p9);
        com.baidu.android.pushservice.f.a.a("Utility", v1_3.toString(), p7.getApplicationContext());
        short v1_2 = 0;
        String v0_2 = p7.getSharedPreferences("pst", 0);
        int v2_2 = com.baidu.android.pushservice.i.l.d(p7, p7.getPackageName());
        if ((v0_2.getInt("pr_app_v", 0) < v2_2) || (p8 != null)) {
            String v8_1 = com.baidu.android.pushservice.i.l.c(p7);
            if ((com.baidu.android.pushservice.b.e.k(p7)) && (!com.baidu.android.pushservice.b.e.c(p7))) {
                v1_2 = 1;
            }
            long v3_4 = 0;
            if ((v8_1 == null) && (v1_2 == 0)) {
                com.baidu.android.pushservice.c.c.a(p7, com.baidu.android.pushservice.i.l.f(p7));
            } else {
                com.baidu.android.pushservice.c.c.a(p7, 0);
            }
            if (com.baidu.android.pushservice.i.l.D(p7)) {
                String v8_2;
                android.content.SharedPreferences$Editor v5_3 = new StringBuilder();
                v5_3.append(p7.getPackageName());
                v5_3.append(".push_sync");
                android.content.SharedPreferences$Editor v5_6 = p7.getSharedPreferences(v5_3.toString(), 5).edit();
                if ((v8_1 == null) && (v1_2 == 0)) {
                    v8_2 = "priority2";
                    v3_4 = com.baidu.android.pushservice.i.l.f(p7);
                } else {
                    v8_2 = "priority2";
                }
                v5_6.putLong(v8_2, v3_4);
                v5_6.putInt("version2", com.baidu.android.pushservice.a.a());
                v5_6.commit();
            }
            com.baidu.android.pushservice.c.c.b(p7, ((long) com.baidu.android.pushservice.a.a()));
            String v8_5 = v0_2.edit();
            v8_5.putInt("pr_app_v", v2_2);
            v8_5.commit();
        }
        if (p9) {
            com.baidu.android.pushservice.i.k.d(p7);
        }
        return;
    }

Method com.baidu.android.pushservice.i.k.d():


    public static void d(android.content.Context p5)
    {
        com.baidu.android.pushservice.b.e.a(p5).e();
        if ((!com.baidu.android.pushservice.b.e.k(p5)) || (com.baidu.android.pushservice.b.e.c(p5))) {
            boolean v0_1 = com.baidu.android.pushservice.i.l.u(p5);
            int v1_0 = p5.getPackageName();
            com.baidu.android.pushservice.i.k.a = com.baidu.android.pushservice.i.l.v(p5);
            String v2_1 = 0;
            if ((com.baidu.android.pushservice.a.a(v1_0)) && (!v1_0.equals(com.baidu.android.pushservice.i.k.a))) {
                v0_1 = v1_0;
                v2_1 = 1;
            }
            com.baidu.android.pushservice.a.c(p5, v2_1);
            if ((android.text.TextUtils.isEmpty(v0_1)) || ((!v0_1.equals(com.baidu.android.pushservice.i.k.a)) || (v2_1 != null))) {
                com.baidu.android.pushservice.i.k.a(p5, v0_1);
            }
            if ((p5.getPackageName().startsWith("com.baidu.searchbox")) && ((!com.baidu.android.pushservice.job.a.b()) && ((!com.baidu.android.pushservice.i.l.l(p5)) && ((!com.baidu.android.pushservice.b.e.c(p5)) && ((android.os.Build$VERSION.SDK_INT > 22) || ((!com.baidu.android.pushservice.i.l.d()) && (!com.baidu.android.pushservice.i.l.e()))))))) {
                com.baidu.android.pushservice.job.a.a(p5);
                com.baidu.android.pushservice.job.a.a(1);
            }
            com.baidu.android.pushservice.h.d.a().a(new com.baidu.android.pushservice.i.k$1("checkAndStartPushService", 98, p5.getApplicationContext()));
            return;
        } else {
            return;
        }
    }

Method com.baidu.android.pushservice.i.l.u():


    public static String u(android.content.Context p4)
    {
        if (!com.baidu.android.pushservice.i.l.E(p4)) {
            java.util.Iterator v0_5 = com.baidu.android.pushservice.i.a.a(p4, "com.baidu.push.cur_pkg");
            String v1_6 = com.baidu.android.pushservice.i.l.s(p4);
            if ((android.text.TextUtils.isEmpty(v0_5)) || (!v1_6.contains(v0_5))) {
                if (!v1_6.isEmpty()) {
                    java.util.Iterator v0_2 = v1_6.iterator();
                    while (v0_2.hasNext()) {
                        String v1_2 = ((String) v0_2.next());
                        if ((!com.baidu.android.pushservice.i.l.z(p4, v1_2)) && ((com.baidu.android.pushservice.i.l.o(p4, v1_2)) && (com.baidu.android.pushservice.i.l.h(p4, v1_2)))) {
                            return v1_2;
                        }
                    }
                }
            } else {
                if ((com.baidu.android.pushservice.i.l.o(p4, v0_5)) && (com.baidu.android.pushservice.i.l.h(p4, v0_5))) {
                    return v0_5;
                }
            }
        } else {
            java.util.Iterator v0_4 = com.baidu.android.pushservice.i.l.s(p4);
            String v1_4 = com.baidu.android.pushservice.i.l.p(p4);
            if (!v0_4.isEmpty()) {
                String v1_5 = v1_4.iterator();
                while (v1_5.hasNext()) {
                    boolean v2_9 = ((android.content.pm.ResolveInfo) v1_5.next()).activityInfo.packageName;
                    if ((v0_4.contains(v2_9)) && ((com.baidu.android.pushservice.i.l.o(p4, v2_9)) && (com.baidu.android.pushservice.i.l.h(p4, v2_9)))) {
                        return v2_9;
                    }
                }
            }
        }
        return 0;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.b():


    private static Object b(android.content.Context p1, String p2)
    {
        if (!com.baidu.android.pushservice.i.l.u(p1, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            return 0;
        } else {
            try {
                return com.baidu.android.pushservice.i.a.a(p1).opt(p2);
            } catch (Throwable v1_2) {
                throw v1_2;
            }
        }
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/d;', 'h', '(Lcom/baidu/android/pushservice/d;)V'), ('Lcom/baidu/android/pushservice/d;', 'i', '()V'), ('Lcom/baidu/android/pushservice/i;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/i;'), ('Lcom/baidu/android/pushservice/i;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/PushSettings;', 'a', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'b', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/Object;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.d.h():


    static synthetic void h(com.baidu.android.pushservice.d p0)
    {
        p0.i();
        return;
    }

Method com.baidu.android.pushservice.d.i():


    private declared_synchronized void i()
    {
        try {
            if (!this.d) {
                if (!com.baidu.android.pushservice.d.e.booleanValue()) {
                    if (com.baidu.android.pushservice.i.a(this.l).e()) {
                        Thread v0_3 = new StringBuilder();
                        v0_3.append("PushConnection connectImpl from ");
                        v0_3.append(this.l.getPackageName());
                        v0_3.append(" at Time ");
                        v0_3.append(System.currentTimeMillis());
                        com.baidu.android.pushservice.i.l.b(v0_3.toString(), this.l);
                        com.baidu.android.pushservice.d.e = Boolean.valueOf(1);
                        com.baidu.android.pushservice.d.c = -1;
                        Thread v0_10 = new com.baidu.android.pushservice.d$1(this);
                        if (this.r != null) {
                            this.r.interrupt();
                        }
                        this.r = new Thread(v0_10);
                        this.r.setName("PushService-PushService-connect");
                        this.r.start();
                        return;
                    } else {
                        com.baidu.android.pushservice.f.a.a("PushConnection", "re-token", this.l.getApplicationContext());
                        com.baidu.android.pushservice.f.a(this.l).d();
                        return;
                    }
                } else {
                }
            }
        } catch (Thread v0_19) {
            throw v0_19;
        }
        String v1_13 = new StringBuilder();
        v1_13.append("Connect return. mConnected:");
        v1_13.append(this.d);
        v1_13.append(" mConnectting:");
        v1_13.append(com.baidu.android.pushservice.d.e);
        com.baidu.android.pushservice.f.a.c("PushConnection", v1_13.toString(), this.l.getApplicationContext());
        return;
    }

Method com.baidu.android.pushservice.i.a():


    public static declared_synchronized com.baidu.android.pushservice.i a(android.content.Context p2)
    {
        try {
            if (com.baidu.android.pushservice.i.a == null) {
                com.baidu.android.pushservice.i.a = new com.baidu.android.pushservice.i(p2);
            }
        } catch (com.baidu.android.pushservice.i v2_1) {
            throw v2_1;
        }
        return com.baidu.android.pushservice.i.a;
    }

Method com.baidu.android.pushservice.i.<init>():


    private i(android.content.Context p2)
    {
        this.d = com.baidu.android.pushservice.i.i.a(p2, "com.baidu.pushservice.channel_token");
        this.b = com.baidu.android.pushservice.PushSettings.a(p2);
        if (com.baidu.android.pushservice.b.e.b(p2)) {
            this.e = com.baidu.android.pushservice.i.i.a(p2, "com.baidu.pushservice.channel_token_new");
            this.c = com.baidu.android.pushservice.PushSettings.b(p2);
        }
        this.g = 0;
        this.h = p2;
        return;
    }

Method com.baidu.android.pushservice.PushSettings.a():


    public static String a(android.content.Context p3)
    {
        String v0_2 = com.baidu.android.pushservice.i.a.a(p3, "com.baidu.pushservice.channel_id");
        if (android.text.TextUtils.isEmpty(v0_2)) {
            v0_2 = com.baidu.android.pushservice.i.i.a(p3, "com.baidu.pushservice.channel_id");
            if (android.text.TextUtils.isEmpty(v0_2)) {
                v0_2 = com.baidu.android.pushservice.c.c.a(p3, 0);
                if (android.text.TextUtils.isEmpty(v0_2)) {
                    int v1_3 = com.baidu.android.pushservice.i.l.n(p3).iterator();
                    while (v1_3.hasNext()) {
                        v0_2 = com.baidu.android.pushservice.c.d.a(p3, ((String) v1_3.next()));
                        if (!android.text.TextUtils.isEmpty(v0_2)) {
                            com.baidu.android.pushservice.PushSettings.a(p3, v0_2, 0);
                            break;
                        }
                    }
                }
            }
        }
        return v0_2;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.b():


    private static Object b(android.content.Context p1, String p2)
    {
        if (!com.baidu.android.pushservice.i.l.u(p1, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            return 0;
        } else {
            try {
                return com.baidu.android.pushservice.i.a.a(p1).opt(p2);
            } catch (Throwable v1_2) {
                throw v1_2;
            }
        }
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/d;', 'i', '()V'), ('Lcom/baidu/android/pushservice/i;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/i;'), ('Lcom/baidu/android/pushservice/i;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/PushSettings;', 'a', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'b', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/Object;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.d.i():


    private declared_synchronized void i()
    {
        try {
            if (!this.d) {
                if (!com.baidu.android.pushservice.d.e.booleanValue()) {
                    if (com.baidu.android.pushservice.i.a(this.l).e()) {
                        Thread v0_3 = new StringBuilder();
                        v0_3.append("PushConnection connectImpl from ");
                        v0_3.append(this.l.getPackageName());
                        v0_3.append(" at Time ");
                        v0_3.append(System.currentTimeMillis());
                        com.baidu.android.pushservice.i.l.b(v0_3.toString(), this.l);
                        com.baidu.android.pushservice.d.e = Boolean.valueOf(1);
                        com.baidu.android.pushservice.d.c = -1;
                        Thread v0_10 = new com.baidu.android.pushservice.d$1(this);
                        if (this.r != null) {
                            this.r.interrupt();
                        }
                        this.r = new Thread(v0_10);
                        this.r.setName("PushService-PushService-connect");
                        this.r.start();
                        return;
                    } else {
                        com.baidu.android.pushservice.f.a.a("PushConnection", "re-token", this.l.getApplicationContext());
                        com.baidu.android.pushservice.f.a(this.l).d();
                        return;
                    }
                } else {
                }
            }
        } catch (Thread v0_19) {
            throw v0_19;
        }
        String v1_13 = new StringBuilder();
        v1_13.append("Connect return. mConnected:");
        v1_13.append(this.d);
        v1_13.append(" mConnectting:");
        v1_13.append(com.baidu.android.pushservice.d.e);
        com.baidu.android.pushservice.f.a.c("PushConnection", v1_13.toString(), this.l.getApplicationContext());
        return;
    }

Method com.baidu.android.pushservice.i.a():


    public static declared_synchronized com.baidu.android.pushservice.i a(android.content.Context p2)
    {
        try {
            if (com.baidu.android.pushservice.i.a == null) {
                com.baidu.android.pushservice.i.a = new com.baidu.android.pushservice.i(p2);
            }
        } catch (com.baidu.android.pushservice.i v2_1) {
            throw v2_1;
        }
        return com.baidu.android.pushservice.i.a;
    }

Method com.baidu.android.pushservice.i.<init>():


    private i(android.content.Context p2)
    {
        this.d = com.baidu.android.pushservice.i.i.a(p2, "com.baidu.pushservice.channel_token");
        this.b = com.baidu.android.pushservice.PushSettings.a(p2);
        if (com.baidu.android.pushservice.b.e.b(p2)) {
            this.e = com.baidu.android.pushservice.i.i.a(p2, "com.baidu.pushservice.channel_token_new");
            this.c = com.baidu.android.pushservice.PushSettings.b(p2);
        }
        this.g = 0;
        this.h = p2;
        return;
    }

Method com.baidu.android.pushservice.PushSettings.a():


    public static String a(android.content.Context p3)
    {
        String v0_2 = com.baidu.android.pushservice.i.a.a(p3, "com.baidu.pushservice.channel_id");
        if (android.text.TextUtils.isEmpty(v0_2)) {
            v0_2 = com.baidu.android.pushservice.i.i.a(p3, "com.baidu.pushservice.channel_id");
            if (android.text.TextUtils.isEmpty(v0_2)) {
                v0_2 = com.baidu.android.pushservice.c.c.a(p3, 0);
                if (android.text.TextUtils.isEmpty(v0_2)) {
                    int v1_3 = com.baidu.android.pushservice.i.l.n(p3).iterator();
                    while (v1_3.hasNext()) {
                        v0_2 = com.baidu.android.pushservice.c.d.a(p3, ((String) v1_3.next()));
                        if (!android.text.TextUtils.isEmpty(v0_2)) {
                            com.baidu.android.pushservice.PushSettings.a(p3, v0_2, 0);
                            break;
                        }
                    }
                }
            }
        }
        return v0_2;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.b():


    private static Object b(android.content.Context p1, String p2)
    {
        if (!com.baidu.android.pushservice.i.l.u(p1, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            return 0;
        } else {
            try {
                return com.baidu.android.pushservice.i.a.a(p1).opt(p2);
            } catch (Throwable v1_2) {
                throw v1_2;
            }
        }
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/d;', 'l', '()V'), ('Lcom/baidu/android/pushservice/f;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/f;'), ('Lcom/baidu/android/pushservice/f;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'g', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'a', '(Landroid/content/Context; Z Z)V'), ('Lcom/baidu/android/pushservice/i/k;', 'd', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'u', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'b', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/Object;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.d.l():


    private void l()
    {
        java.util.Iterator v0_2 = this.g.keySet();
        long v1 = System.currentTimeMillis();
        com.baidu.android.pushservice.h v3_2 = com.baidu.android.pushservice.f.a(this.l).c();
        if (v3_2 != null) {
            java.util.Iterator v0_1 = v0_2.iterator();
            while (v0_1.hasNext()) {
                Long v4_3 = ((Long) v0_1.next()).longValue();
                if (v4_3 < v1) {
                    v3_2.a(((com.baidu.android.pushservice.d.a) this.g.get(Long.valueOf(v4_3))));
                    this.g.remove(Long.valueOf(v4_3));
                }
            }
        }
        return;
    }

Method com.baidu.android.pushservice.f.a():


    public static declared_synchronized com.baidu.android.pushservice.f a(android.content.Context p2)
    {
        try {
            if (com.baidu.android.pushservice.f.c == null) {
                com.baidu.android.pushservice.f.c = new com.baidu.android.pushservice.f(p2);
            }
        } catch (com.baidu.android.pushservice.f v2_1) {
            throw v2_1;
        }
        return com.baidu.android.pushservice.f.c;
    }

Method com.baidu.android.pushservice.f.<init>():


    private f(android.content.Context p3)
    {
        this.h = Boolean.valueOf(0);
        this.p = new com.baidu.android.pushservice.f$2(this);
        this.q = new com.baidu.android.pushservice.f$3(this);
        this.r = new com.baidu.android.pushservice.f$4(this);
        this.k = new android.os.Handler(p3.getMainLooper());
        this.j = p3.getApplicationContext();
        this.e = com.baidu.android.pushservice.f.d;
        com.baidu.android.pushservice.i.l.g(this.j.getApplicationContext());
        return;
    }

Method com.baidu.android.pushservice.i.l.g():


    public static void g(android.content.Context p1)
    {
        com.baidu.android.pushservice.i.l.a(p1, 0, 0);
        return;
    }

Method com.baidu.android.pushservice.i.l.a():


    public static void a(android.content.Context p7, boolean p8, boolean p9)
    {
        short v1_3 = new StringBuilder();
        v1_3.append(p7.getPackageName());
        v1_3.append(": updateServiceInfo isForce = ");
        v1_3.append(p8);
        v1_3.append(",isSend = ");
        v1_3.append(p9);
        com.baidu.android.pushservice.f.a.a("Utility", v1_3.toString(), p7.getApplicationContext());
        short v1_2 = 0;
        String v0_2 = p7.getSharedPreferences("pst", 0);
        int v2_2 = com.baidu.android.pushservice.i.l.d(p7, p7.getPackageName());
        if ((v0_2.getInt("pr_app_v", 0) < v2_2) || (p8 != null)) {
            String v8_1 = com.baidu.android.pushservice.i.l.c(p7);
            if ((com.baidu.android.pushservice.b.e.k(p7)) && (!com.baidu.android.pushservice.b.e.c(p7))) {
                v1_2 = 1;
            }
            long v3_4 = 0;
            if ((v8_1 == null) && (v1_2 == 0)) {
                com.baidu.android.pushservice.c.c.a(p7, com.baidu.android.pushservice.i.l.f(p7));
            } else {
                com.baidu.android.pushservice.c.c.a(p7, 0);
            }
            if (com.baidu.android.pushservice.i.l.D(p7)) {
                String v8_2;
                android.content.SharedPreferences$Editor v5_3 = new StringBuilder();
                v5_3.append(p7.getPackageName());
                v5_3.append(".push_sync");
                android.content.SharedPreferences$Editor v5_6 = p7.getSharedPreferences(v5_3.toString(), 5).edit();
                if ((v8_1 == null) && (v1_2 == 0)) {
                    v8_2 = "priority2";
                    v3_4 = com.baidu.android.pushservice.i.l.f(p7);
                } else {
                    v8_2 = "priority2";
                }
                v5_6.putLong(v8_2, v3_4);
                v5_6.putInt("version2", com.baidu.android.pushservice.a.a());
                v5_6.commit();
            }
            com.baidu.android.pushservice.c.c.b(p7, ((long) com.baidu.android.pushservice.a.a()));
            String v8_5 = v0_2.edit();
            v8_5.putInt("pr_app_v", v2_2);
            v8_5.commit();
        }
        if (p9) {
            com.baidu.android.pushservice.i.k.d(p7);
        }
        return;
    }

Method com.baidu.android.pushservice.i.k.d():


    public static void d(android.content.Context p5)
    {
        com.baidu.android.pushservice.b.e.a(p5).e();
        if ((!com.baidu.android.pushservice.b.e.k(p5)) || (com.baidu.android.pushservice.b.e.c(p5))) {
            boolean v0_1 = com.baidu.android.pushservice.i.l.u(p5);
            int v1_0 = p5.getPackageName();
            com.baidu.android.pushservice.i.k.a = com.baidu.android.pushservice.i.l.v(p5);
            String v2_1 = 0;
            if ((com.baidu.android.pushservice.a.a(v1_0)) && (!v1_0.equals(com.baidu.android.pushservice.i.k.a))) {
                v0_1 = v1_0;
                v2_1 = 1;
            }
            com.baidu.android.pushservice.a.c(p5, v2_1);
            if ((android.text.TextUtils.isEmpty(v0_1)) || ((!v0_1.equals(com.baidu.android.pushservice.i.k.a)) || (v2_1 != null))) {
                com.baidu.android.pushservice.i.k.a(p5, v0_1);
            }
            if ((p5.getPackageName().startsWith("com.baidu.searchbox")) && ((!com.baidu.android.pushservice.job.a.b()) && ((!com.baidu.android.pushservice.i.l.l(p5)) && ((!com.baidu.android.pushservice.b.e.c(p5)) && ((android.os.Build$VERSION.SDK_INT > 22) || ((!com.baidu.android.pushservice.i.l.d()) && (!com.baidu.android.pushservice.i.l.e()))))))) {
                com.baidu.android.pushservice.job.a.a(p5);
                com.baidu.android.pushservice.job.a.a(1);
            }
            com.baidu.android.pushservice.h.d.a().a(new com.baidu.android.pushservice.i.k$1("checkAndStartPushService", 98, p5.getApplicationContext()));
            return;
        } else {
            return;
        }
    }

Method com.baidu.android.pushservice.i.l.u():


    public static String u(android.content.Context p4)
    {
        if (!com.baidu.android.pushservice.i.l.E(p4)) {
            java.util.Iterator v0_5 = com.baidu.android.pushservice.i.a.a(p4, "com.baidu.push.cur_pkg");
            String v1_6 = com.baidu.android.pushservice.i.l.s(p4);
            if ((android.text.TextUtils.isEmpty(v0_5)) || (!v1_6.contains(v0_5))) {
                if (!v1_6.isEmpty()) {
                    java.util.Iterator v0_2 = v1_6.iterator();
                    while (v0_2.hasNext()) {
                        String v1_2 = ((String) v0_2.next());
                        if ((!com.baidu.android.pushservice.i.l.z(p4, v1_2)) && ((com.baidu.android.pushservice.i.l.o(p4, v1_2)) && (com.baidu.android.pushservice.i.l.h(p4, v1_2)))) {
                            return v1_2;
                        }
                    }
                }
            } else {
                if ((com.baidu.android.pushservice.i.l.o(p4, v0_5)) && (com.baidu.android.pushservice.i.l.h(p4, v0_5))) {
                    return v0_5;
                }
            }
        } else {
            java.util.Iterator v0_4 = com.baidu.android.pushservice.i.l.s(p4);
            String v1_4 = com.baidu.android.pushservice.i.l.p(p4);
            if (!v0_4.isEmpty()) {
                String v1_5 = v1_4.iterator();
                while (v1_5.hasNext()) {
                    boolean v2_9 = ((android.content.pm.ResolveInfo) v1_5.next()).activityInfo.packageName;
                    if ((v0_4.contains(v2_9)) && ((com.baidu.android.pushservice.i.l.o(p4, v2_9)) && (com.baidu.android.pushservice.i.l.h(p4, v2_9)))) {
                        return v2_9;
                    }
                }
            }
        }
        return 0;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.b():


    private static Object b(android.content.Context p1, String p2)
    {
        if (!com.baidu.android.pushservice.i.l.u(p1, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            return 0;
        } else {
            try {
                return com.baidu.android.pushservice.i.a.a(p1).opt(p2);
            } catch (Throwable v1_2) {
                throw v1_2;
            }
        }
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/d;', 'a', '(Z)V'), ('Lcom/baidu/android/pushservice/f;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/f;'), ('Lcom/baidu/android/pushservice/f;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'g', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'a', '(Landroid/content/Context; Z Z)V'), ('Lcom/baidu/android/pushservice/i/k;', 'd', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'u', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'b', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/Object;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.d.a():


    public void a(boolean p5)
    {
        com.baidu.android.pushservice.g.h v5_18;
        int v0_1 = com.baidu.android.pushservice.i.g.d(this.l);
        if (android.text.TextUtils.equals(this.B, v0_1)) {
            int v1_7 = this.e();
            if (p5 == null) {
                this.x = 0;
                this.z = 0;
                if (!com.baidu.android.pushservice.i.g.a(this.l)) {
                    this.w = (this.w + 1);
                } else {
                    com.baidu.android.pushservice.g.h v5_3 = this.w;
                    if (v5_3 > null) {
                        this.w = (v5_3 - 1);
                        this.f();
                    }
                }
            } else {
                if (com.baidu.android.pushservice.i.g.a(this.l)) {
                    this.f();
                    this.x = (this.x + 1);
                    if (this.x >= 3) {
                        this.x = 0;
                        com.baidu.android.pushservice.g.h v5_10 = this.w;
                        if (v5_10 < (this.v.length - 1)) {
                            this.x = 0;
                            this.w = (v5_10 + 1);
                        }
                    }
                    if (this.z >= 30) {
                        this.z = 0;
                        com.baidu.android.pushservice.g.h v5_14 = new com.baidu.android.pushservice.g.h();
                        v5_14.d = "030101";
                        v5_14.e = System.currentTimeMillis();
                        v5_14.f = com.baidu.android.pushservice.g.a.b.b(this.l);
                        v5_14.a = this.e();
                        com.baidu.android.pushservice.g.o.a(this.l, v5_14);
                    }
                }
            }
            v5_18 = new StringBuilder();
            v5_18.append("RTC stat change from ");
            v5_18.append(v1_7);
            v5_18.append(" to ");
            v5_18.append(this.e());
        } else {
            this.w = this.g();
            this.x = 0;
            v5_18 = new StringBuilder();
            v5_18.append("RTC stat change ");
            v5_18.append(this.e());
            v5_18.append(" because of network changing");
        }
        com.baidu.android.pushservice.i.l.b(v5_18.toString(), this.l);
        this.B = v0_1;
        com.baidu.android.pushservice.f.a(this.l).a(this.e());
        return;
    }

Method com.baidu.android.pushservice.f.a():


    public static declared_synchronized com.baidu.android.pushservice.f a(android.content.Context p2)
    {
        try {
            if (com.baidu.android.pushservice.f.c == null) {
                com.baidu.android.pushservice.f.c = new com.baidu.android.pushservice.f(p2);
            }
        } catch (com.baidu.android.pushservice.f v2_1) {
            throw v2_1;
        }
        return com.baidu.android.pushservice.f.c;
    }

Method com.baidu.android.pushservice.f.<init>():


    private f(android.content.Context p3)
    {
        this.h = Boolean.valueOf(0);
        this.p = new com.baidu.android.pushservice.f$2(this);
        this.q = new com.baidu.android.pushservice.f$3(this);
        this.r = new com.baidu.android.pushservice.f$4(this);
        this.k = new android.os.Handler(p3.getMainLooper());
        this.j = p3.getApplicationContext();
        this.e = com.baidu.android.pushservice.f.d;
        com.baidu.android.pushservice.i.l.g(this.j.getApplicationContext());
        return;
    }

Method com.baidu.android.pushservice.i.l.g():


    public static void g(android.content.Context p1)
    {
        com.baidu.android.pushservice.i.l.a(p1, 0, 0);
        return;
    }

Method com.baidu.android.pushservice.i.l.a():


    public static void a(android.content.Context p7, boolean p8, boolean p9)
    {
        short v1_3 = new StringBuilder();
        v1_3.append(p7.getPackageName());
        v1_3.append(": updateServiceInfo isForce = ");
        v1_3.append(p8);
        v1_3.append(",isSend = ");
        v1_3.append(p9);
        com.baidu.android.pushservice.f.a.a("Utility", v1_3.toString(), p7.getApplicationContext());
        short v1_2 = 0;
        String v0_2 = p7.getSharedPreferences("pst", 0);
        int v2_2 = com.baidu.android.pushservice.i.l.d(p7, p7.getPackageName());
        if ((v0_2.getInt("pr_app_v", 0) < v2_2) || (p8 != null)) {
            String v8_1 = com.baidu.android.pushservice.i.l.c(p7);
            if ((com.baidu.android.pushservice.b.e.k(p7)) && (!com.baidu.android.pushservice.b.e.c(p7))) {
                v1_2 = 1;
            }
            long v3_4 = 0;
            if ((v8_1 == null) && (v1_2 == 0)) {
                com.baidu.android.pushservice.c.c.a(p7, com.baidu.android.pushservice.i.l.f(p7));
            } else {
                com.baidu.android.pushservice.c.c.a(p7, 0);
            }
            if (com.baidu.android.pushservice.i.l.D(p7)) {
                String v8_2;
                android.content.SharedPreferences$Editor v5_3 = new StringBuilder();
                v5_3.append(p7.getPackageName());
                v5_3.append(".push_sync");
                android.content.SharedPreferences$Editor v5_6 = p7.getSharedPreferences(v5_3.toString(), 5).edit();
                if ((v8_1 == null) && (v1_2 == 0)) {
                    v8_2 = "priority2";
                    v3_4 = com.baidu.android.pushservice.i.l.f(p7);
                } else {
                    v8_2 = "priority2";
                }
                v5_6.putLong(v8_2, v3_4);
                v5_6.putInt("version2", com.baidu.android.pushservice.a.a());
                v5_6.commit();
            }
            com.baidu.android.pushservice.c.c.b(p7, ((long) com.baidu.android.pushservice.a.a()));
            String v8_5 = v0_2.edit();
            v8_5.putInt("pr_app_v", v2_2);
            v8_5.commit();
        }
        if (p9) {
            com.baidu.android.pushservice.i.k.d(p7);
        }
        return;
    }

Method com.baidu.android.pushservice.i.k.d():


    public static void d(android.content.Context p5)
    {
        com.baidu.android.pushservice.b.e.a(p5).e();
        if ((!com.baidu.android.pushservice.b.e.k(p5)) || (com.baidu.android.pushservice.b.e.c(p5))) {
            boolean v0_1 = com.baidu.android.pushservice.i.l.u(p5);
            int v1_0 = p5.getPackageName();
            com.baidu.android.pushservice.i.k.a = com.baidu.android.pushservice.i.l.v(p5);
            String v2_1 = 0;
            if ((com.baidu.android.pushservice.a.a(v1_0)) && (!v1_0.equals(com.baidu.android.pushservice.i.k.a))) {
                v0_1 = v1_0;
                v2_1 = 1;
            }
            com.baidu.android.pushservice.a.c(p5, v2_1);
            if ((android.text.TextUtils.isEmpty(v0_1)) || ((!v0_1.equals(com.baidu.android.pushservice.i.k.a)) || (v2_1 != null))) {
                com.baidu.android.pushservice.i.k.a(p5, v0_1);
            }
            if ((p5.getPackageName().startsWith("com.baidu.searchbox")) && ((!com.baidu.android.pushservice.job.a.b()) && ((!com.baidu.android.pushservice.i.l.l(p5)) && ((!com.baidu.android.pushservice.b.e.c(p5)) && ((android.os.Build$VERSION.SDK_INT > 22) || ((!com.baidu.android.pushservice.i.l.d()) && (!com.baidu.android.pushservice.i.l.e()))))))) {
                com.baidu.android.pushservice.job.a.a(p5);
                com.baidu.android.pushservice.job.a.a(1);
            }
            com.baidu.android.pushservice.h.d.a().a(new com.baidu.android.pushservice.i.k$1("checkAndStartPushService", 98, p5.getApplicationContext()));
            return;
        } else {
            return;
        }
    }

Method com.baidu.android.pushservice.i.l.u():


    public static String u(android.content.Context p4)
    {
        if (!com.baidu.android.pushservice.i.l.E(p4)) {
            java.util.Iterator v0_5 = com.baidu.android.pushservice.i.a.a(p4, "com.baidu.push.cur_pkg");
            String v1_6 = com.baidu.android.pushservice.i.l.s(p4);
            if ((android.text.TextUtils.isEmpty(v0_5)) || (!v1_6.contains(v0_5))) {
                if (!v1_6.isEmpty()) {
                    java.util.Iterator v0_2 = v1_6.iterator();
                    while (v0_2.hasNext()) {
                        String v1_2 = ((String) v0_2.next());
                        if ((!com.baidu.android.pushservice.i.l.z(p4, v1_2)) && ((com.baidu.android.pushservice.i.l.o(p4, v1_2)) && (com.baidu.android.pushservice.i.l.h(p4, v1_2)))) {
                            return v1_2;
                        }
                    }
                }
            } else {
                if ((com.baidu.android.pushservice.i.l.o(p4, v0_5)) && (com.baidu.android.pushservice.i.l.h(p4, v0_5))) {
                    return v0_5;
                }
            }
        } else {
            java.util.Iterator v0_4 = com.baidu.android.pushservice.i.l.s(p4);
            String v1_4 = com.baidu.android.pushservice.i.l.p(p4);
            if (!v0_4.isEmpty()) {
                String v1_5 = v1_4.iterator();
                while (v1_5.hasNext()) {
                    boolean v2_9 = ((android.content.pm.ResolveInfo) v1_5.next()).activityInfo.packageName;
                    if ((v0_4.contains(v2_9)) && ((com.baidu.android.pushservice.i.l.o(p4, v2_9)) && (com.baidu.android.pushservice.i.l.h(p4, v2_9)))) {
                        return v2_9;
                    }
                }
            }
        }
        return 0;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.b():


    private static Object b(android.content.Context p1, String p2)
    {
        if (!com.baidu.android.pushservice.i.l.u(p1, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            return 0;
        } else {
            try {
                return com.baidu.android.pushservice.i.a.a(p1).opt(p2);
            } catch (Throwable v1_2) {
                throw v1_2;
            }
        }
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/d;', 'b', '()V'), ('Lcom/baidu/android/pushservice/d;', 'i', '()V'), ('Lcom/baidu/android/pushservice/i;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/i;'), ('Lcom/baidu/android/pushservice/i;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/PushSettings;', 'a', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'b', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/Object;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.d.b():


    public void b()
    {
        this.k = 0;
        this.j = 0;
        this.i();
        return;
    }

Method com.baidu.android.pushservice.d.i():


    private declared_synchronized void i()
    {
        try {
            if (!this.d) {
                if (!com.baidu.android.pushservice.d.e.booleanValue()) {
                    if (com.baidu.android.pushservice.i.a(this.l).e()) {
                        Thread v0_3 = new StringBuilder();
                        v0_3.append("PushConnection connectImpl from ");
                        v0_3.append(this.l.getPackageName());
                        v0_3.append(" at Time ");
                        v0_3.append(System.currentTimeMillis());
                        com.baidu.android.pushservice.i.l.b(v0_3.toString(), this.l);
                        com.baidu.android.pushservice.d.e = Boolean.valueOf(1);
                        com.baidu.android.pushservice.d.c = -1;
                        Thread v0_10 = new com.baidu.android.pushservice.d$1(this);
                        if (this.r != null) {
                            this.r.interrupt();
                        }
                        this.r = new Thread(v0_10);
                        this.r.setName("PushService-PushService-connect");
                        this.r.start();
                        return;
                    } else {
                        com.baidu.android.pushservice.f.a.a("PushConnection", "re-token", this.l.getApplicationContext());
                        com.baidu.android.pushservice.f.a(this.l).d();
                        return;
                    }
                } else {
                }
            }
        } catch (Thread v0_19) {
            throw v0_19;
        }
        String v1_13 = new StringBuilder();
        v1_13.append("Connect return. mConnected:");
        v1_13.append(this.d);
        v1_13.append(" mConnectting:");
        v1_13.append(com.baidu.android.pushservice.d.e);
        com.baidu.android.pushservice.f.a.c("PushConnection", v1_13.toString(), this.l.getApplicationContext());
        return;
    }

Method com.baidu.android.pushservice.i.a():


    public static declared_synchronized com.baidu.android.pushservice.i a(android.content.Context p2)
    {
        try {
            if (com.baidu.android.pushservice.i.a == null) {
                com.baidu.android.pushservice.i.a = new com.baidu.android.pushservice.i(p2);
            }
        } catch (com.baidu.android.pushservice.i v2_1) {
            throw v2_1;
        }
        return com.baidu.android.pushservice.i.a;
    }

Method com.baidu.android.pushservice.i.<init>():


    private i(android.content.Context p2)
    {
        this.d = com.baidu.android.pushservice.i.i.a(p2, "com.baidu.pushservice.channel_token");
        this.b = com.baidu.android.pushservice.PushSettings.a(p2);
        if (com.baidu.android.pushservice.b.e.b(p2)) {
            this.e = com.baidu.android.pushservice.i.i.a(p2, "com.baidu.pushservice.channel_token_new");
            this.c = com.baidu.android.pushservice.PushSettings.b(p2);
        }
        this.g = 0;
        this.h = p2;
        return;
    }

Method com.baidu.android.pushservice.PushSettings.a():


    public static String a(android.content.Context p3)
    {
        String v0_2 = com.baidu.android.pushservice.i.a.a(p3, "com.baidu.pushservice.channel_id");
        if (android.text.TextUtils.isEmpty(v0_2)) {
            v0_2 = com.baidu.android.pushservice.i.i.a(p3, "com.baidu.pushservice.channel_id");
            if (android.text.TextUtils.isEmpty(v0_2)) {
                v0_2 = com.baidu.android.pushservice.c.c.a(p3, 0);
                if (android.text.TextUtils.isEmpty(v0_2)) {
                    int v1_3 = com.baidu.android.pushservice.i.l.n(p3).iterator();
                    while (v1_3.hasNext()) {
                        v0_2 = com.baidu.android.pushservice.c.d.a(p3, ((String) v1_3.next()));
                        if (!android.text.TextUtils.isEmpty(v0_2)) {
                            com.baidu.android.pushservice.PushSettings.a(p3, v0_2, 0);
                            break;
                        }
                    }
                }
            }
        }
        return v0_2;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.b():


    private static Object b(android.content.Context p1, String p2)
    {
        if (!com.baidu.android.pushservice.i.l.u(p1, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            return 0;
        } else {
            try {
                return com.baidu.android.pushservice.i.a.a(p1).opt(p2);
            } catch (Throwable v1_2) {
                throw v1_2;
            }
        }
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/d;', 'd', '()V'), ('Lcom/baidu/android/pushservice/d;', 'l', '()V'), ('Lcom/baidu/android/pushservice/f;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/f;'), ('Lcom/baidu/android/pushservice/f;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'g', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'a', '(Landroid/content/Context; Z Z)V'), ('Lcom/baidu/android/pushservice/i/k;', 'd', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'u', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'b', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/Object;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.d.d():


    public void d()
    {
        if (this.b != null) {
            if ((System.currentTimeMillis() - this.u) <= 120000) {
                com.baidu.android.pushservice.f.a.c("PushConnection", "sendHeartbeatMessage ingnored\uff0c because too frequent.", this.l.getApplicationContext());
            } else {
                com.baidu.android.pushservice.h.d.a().a(new com.baidu.android.pushservice.d$4(this, "heartbeat", 98));
            }
        }
        this.l();
        return;
    }

Method com.baidu.android.pushservice.d.l():


    private void l()
    {
        java.util.Iterator v0_2 = this.g.keySet();
        long v1 = System.currentTimeMillis();
        com.baidu.android.pushservice.h v3_2 = com.baidu.android.pushservice.f.a(this.l).c();
        if (v3_2 != null) {
            java.util.Iterator v0_1 = v0_2.iterator();
            while (v0_1.hasNext()) {
                Long v4_3 = ((Long) v0_1.next()).longValue();
                if (v4_3 < v1) {
                    v3_2.a(((com.baidu.android.pushservice.d.a) this.g.get(Long.valueOf(v4_3))));
                    this.g.remove(Long.valueOf(v4_3));
                }
            }
        }
        return;
    }

Method com.baidu.android.pushservice.f.a():


    public static declared_synchronized com.baidu.android.pushservice.f a(android.content.Context p2)
    {
        try {
            if (com.baidu.android.pushservice.f.c == null) {
                com.baidu.android.pushservice.f.c = new com.baidu.android.pushservice.f(p2);
            }
        } catch (com.baidu.android.pushservice.f v2_1) {
            throw v2_1;
        }
        return com.baidu.android.pushservice.f.c;
    }

Method com.baidu.android.pushservice.f.<init>():


    private f(android.content.Context p3)
    {
        this.h = Boolean.valueOf(0);
        this.p = new com.baidu.android.pushservice.f$2(this);
        this.q = new com.baidu.android.pushservice.f$3(this);
        this.r = new com.baidu.android.pushservice.f$4(this);
        this.k = new android.os.Handler(p3.getMainLooper());
        this.j = p3.getApplicationContext();
        this.e = com.baidu.android.pushservice.f.d;
        com.baidu.android.pushservice.i.l.g(this.j.getApplicationContext());
        return;
    }

Method com.baidu.android.pushservice.i.l.g():


    public static void g(android.content.Context p1)
    {
        com.baidu.android.pushservice.i.l.a(p1, 0, 0);
        return;
    }

Method com.baidu.android.pushservice.i.l.a():


    public static void a(android.content.Context p7, boolean p8, boolean p9)
    {
        short v1_3 = new StringBuilder();
        v1_3.append(p7.getPackageName());
        v1_3.append(": updateServiceInfo isForce = ");
        v1_3.append(p8);
        v1_3.append(",isSend = ");
        v1_3.append(p9);
        com.baidu.android.pushservice.f.a.a("Utility", v1_3.toString(), p7.getApplicationContext());
        short v1_2 = 0;
        String v0_2 = p7.getSharedPreferences("pst", 0);
        int v2_2 = com.baidu.android.pushservice.i.l.d(p7, p7.getPackageName());
        if ((v0_2.getInt("pr_app_v", 0) < v2_2) || (p8 != null)) {
            String v8_1 = com.baidu.android.pushservice.i.l.c(p7);
            if ((com.baidu.android.pushservice.b.e.k(p7)) && (!com.baidu.android.pushservice.b.e.c(p7))) {
                v1_2 = 1;
            }
            long v3_4 = 0;
            if ((v8_1 == null) && (v1_2 == 0)) {
                com.baidu.android.pushservice.c.c.a(p7, com.baidu.android.pushservice.i.l.f(p7));
            } else {
                com.baidu.android.pushservice.c.c.a(p7, 0);
            }
            if (com.baidu.android.pushservice.i.l.D(p7)) {
                String v8_2;
                android.content.SharedPreferences$Editor v5_3 = new StringBuilder();
                v5_3.append(p7.getPackageName());
                v5_3.append(".push_sync");
                android.content.SharedPreferences$Editor v5_6 = p7.getSharedPreferences(v5_3.toString(), 5).edit();
                if ((v8_1 == null) && (v1_2 == 0)) {
                    v8_2 = "priority2";
                    v3_4 = com.baidu.android.pushservice.i.l.f(p7);
                } else {
                    v8_2 = "priority2";
                }
                v5_6.putLong(v8_2, v3_4);
                v5_6.putInt("version2", com.baidu.android.pushservice.a.a());
                v5_6.commit();
            }
            com.baidu.android.pushservice.c.c.b(p7, ((long) com.baidu.android.pushservice.a.a()));
            String v8_5 = v0_2.edit();
            v8_5.putInt("pr_app_v", v2_2);
            v8_5.commit();
        }
        if (p9) {
            com.baidu.android.pushservice.i.k.d(p7);
        }
        return;
    }

Method com.baidu.android.pushservice.i.k.d():


    public static void d(android.content.Context p5)
    {
        com.baidu.android.pushservice.b.e.a(p5).e();
        if ((!com.baidu.android.pushservice.b.e.k(p5)) || (com.baidu.android.pushservice.b.e.c(p5))) {
            boolean v0_1 = com.baidu.android.pushservice.i.l.u(p5);
            int v1_0 = p5.getPackageName();
            com.baidu.android.pushservice.i.k.a = com.baidu.android.pushservice.i.l.v(p5);
            String v2_1 = 0;
            if ((com.baidu.android.pushservice.a.a(v1_0)) && (!v1_0.equals(com.baidu.android.pushservice.i.k.a))) {
                v0_1 = v1_0;
                v2_1 = 1;
            }
            com.baidu.android.pushservice.a.c(p5, v2_1);
            if ((android.text.TextUtils.isEmpty(v0_1)) || ((!v0_1.equals(com.baidu.android.pushservice.i.k.a)) || (v2_1 != null))) {
                com.baidu.android.pushservice.i.k.a(p5, v0_1);
            }
            if ((p5.getPackageName().startsWith("com.baidu.searchbox")) && ((!com.baidu.android.pushservice.job.a.b()) && ((!com.baidu.android.pushservice.i.l.l(p5)) && ((!com.baidu.android.pushservice.b.e.c(p5)) && ((android.os.Build$VERSION.SDK_INT > 22) || ((!com.baidu.android.pushservice.i.l.d()) && (!com.baidu.android.pushservice.i.l.e()))))))) {
                com.baidu.android.pushservice.job.a.a(p5);
                com.baidu.android.pushservice.job.a.a(1);
            }
            com.baidu.android.pushservice.h.d.a().a(new com.baidu.android.pushservice.i.k$1("checkAndStartPushService", 98, p5.getApplicationContext()));
            return;
        } else {
            return;
        }
    }

Method com.baidu.android.pushservice.i.l.u():


    public static String u(android.content.Context p4)
    {
        if (!com.baidu.android.pushservice.i.l.E(p4)) {
            java.util.Iterator v0_5 = com.baidu.android.pushservice.i.a.a(p4, "com.baidu.push.cur_pkg");
            String v1_6 = com.baidu.android.pushservice.i.l.s(p4);
            if ((android.text.TextUtils.isEmpty(v0_5)) || (!v1_6.contains(v0_5))) {
                if (!v1_6.isEmpty()) {
                    java.util.Iterator v0_2 = v1_6.iterator();
                    while (v0_2.hasNext()) {
                        String v1_2 = ((String) v0_2.next());
                        if ((!com.baidu.android.pushservice.i.l.z(p4, v1_2)) && ((com.baidu.android.pushservice.i.l.o(p4, v1_2)) && (com.baidu.android.pushservice.i.l.h(p4, v1_2)))) {
                            return v1_2;
                        }
                    }
                }
            } else {
                if ((com.baidu.android.pushservice.i.l.o(p4, v0_5)) && (com.baidu.android.pushservice.i.l.h(p4, v0_5))) {
                    return v0_5;
                }
            }
        } else {
            java.util.Iterator v0_4 = com.baidu.android.pushservice.i.l.s(p4);
            String v1_4 = com.baidu.android.pushservice.i.l.p(p4);
            if (!v0_4.isEmpty()) {
                String v1_5 = v1_4.iterator();
                while (v1_5.hasNext()) {
                    boolean v2_9 = ((android.content.pm.ResolveInfo) v1_5.next()).activityInfo.packageName;
                    if ((v0_4.contains(v2_9)) && ((com.baidu.android.pushservice.i.l.o(p4, v2_9)) && (com.baidu.android.pushservice.i.l.h(p4, v2_9)))) {
                        return v2_9;
                    }
                }
            }
        }
        return 0;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.b():


    private static Object b(android.content.Context p1, String p2)
    {
        if (!com.baidu.android.pushservice.i.l.u(p1, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            return 0;
        } else {
            try {
                return com.baidu.android.pushservice.i.a.a(p1).opt(p2);
            } catch (Throwable v1_2) {
                throw v1_2;
            }
        }
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/e;', 'a', '(Landroid/content/Context; I Ljava/lang/String;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'a', '(Landroid/content/Context; Z Z)V'), ('Lcom/baidu/android/pushservice/i/k;', 'd', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'u', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'b', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/Object;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.e.a():


    public static void a(android.content.Context p11, int p12, String p13)
    {
        if (!com.baidu.android.pushservice.e.l(p11)) {
            String v0_8 = p11.getSharedPreferences("com.baidu.pushservice.BIND_CACHE", 0);
            String v2_6 = v0_8.getBoolean("bind_status", 0);
            boolean v3_1 = v0_8.getString("request_id", "");
            android.content.Context v4_2 = v0_8.getString("appid", "");
            String v5_2 = v0_8.getString("channel_id", "");
            String v6_2 = v0_8.getString("new_channel_id", "");
            String v0_6 = v0_8.getString("user_id", "");
            String v7_2 = com.baidu.android.pushservice.b.e.l(p11);
            long v8_1 = com.baidu.android.pushservice.b.e.k(p11);
            com.baidu.android.pushservice.a.b(p11, 1);
            if (v7_2 == null) {
                com.baidu.android.pushservice.i.l.a(p11, 1, 1);
            } else {
                if (v8_1 == 0) {
                    com.baidu.android.pushservice.i.l.a(p11, 1, v2_6);
                } else {
                    com.baidu.android.pushservice.i.l.a(p11, 1, 0);
                }
            }
            if (v8_1 == 0) {
                com.baidu.android.pushservice.h.d.a().a(new com.baidu.android.pushservice.e$1("getMsgInfo", 99, p11));
            }
            com.baidu.android.pushservice.e.p(p11);
            String v7_5 = new StringBuilder();
            v7_5.append("startWork from");
            v7_5.append(p11.getPackageName());
            v7_5.append(" at time of ");
            v7_5.append(System.currentTimeMillis());
            com.baidu.android.pushservice.i.l.b(v7_5.toString(), p11);
            try {
                String v7_7 = com.baidu.android.pushservice.e.a(v3_1, v4_2, v5_2, v6_2, v0_6);
            } catch (String v0_9) {
                android.content.Context v4_4 = new StringBuilder();
                v4_4.append("error ");
                v4_4.append(v0_9.getMessage());
                com.baidu.android.pushservice.f.a.b("PushManagerHandler", v4_4.toString(), p11.getApplicationContext());
            }
            String v0_12 = com.baidu.android.pushservice.e.b(p11);
            boolean v3_3 = com.baidu.android.pushservice.e.b(p11, p12, p13);
            if ((v2_6 == null) || ((!v3_3) || ((v7_7 == null) || (v0_12 != null)))) {
                com.baidu.android.pushservice.e.c(p11, p12, p13);
            } else {
                android.content.Intent v12_2 = new android.content.Intent();
                v12_2.putExtra("method", "method_bind");
                v12_2.putExtra("error_msg", 0);
                v12_2.putExtra("content", v7_7.getBytes());
                v12_2.putExtra("bind_status", 0);
                String v0_3 = new StringBuilder();
                v0_3.append("new startWork> sendResult to ");
                v0_3.append(p11.getPackageName());
                v0_3.append(" ,method:");
                v0_3.append("method_bind");
                v0_3.append(" ,errorCode : ");
                v0_3.append(0);
                v0_3.append(" ,content : ");
                v0_3.append(v7_7);
                com.baidu.android.pushservice.f.a.a("PushManagerHandler", v0_3.toString(), p11.getApplicationContext());
                com.baidu.android.pushservice.i.l.b(p11, v12_2, "com.baidu.android.pushservice.action.RECEIVE", p11.getPackageName());
            }
            com.baidu.android.pushservice.e.q(p11);
            com.baidu.android.pushservice.e.m(p11);
            return;
        } else {
            return;
        }
    }

Method com.baidu.android.pushservice.i.l.a():


    public static void a(android.content.Context p7, boolean p8, boolean p9)
    {
        short v1_3 = new StringBuilder();
        v1_3.append(p7.getPackageName());
        v1_3.append(": updateServiceInfo isForce = ");
        v1_3.append(p8);
        v1_3.append(",isSend = ");
        v1_3.append(p9);
        com.baidu.android.pushservice.f.a.a("Utility", v1_3.toString(), p7.getApplicationContext());
        short v1_2 = 0;
        String v0_2 = p7.getSharedPreferences("pst", 0);
        int v2_2 = com.baidu.android.pushservice.i.l.d(p7, p7.getPackageName());
        if ((v0_2.getInt("pr_app_v", 0) < v2_2) || (p8 != null)) {
            String v8_1 = com.baidu.android.pushservice.i.l.c(p7);
            if ((com.baidu.android.pushservice.b.e.k(p7)) && (!com.baidu.android.pushservice.b.e.c(p7))) {
                v1_2 = 1;
            }
            long v3_4 = 0;
            if ((v8_1 == null) && (v1_2 == 0)) {
                com.baidu.android.pushservice.c.c.a(p7, com.baidu.android.pushservice.i.l.f(p7));
            } else {
                com.baidu.android.pushservice.c.c.a(p7, 0);
            }
            if (com.baidu.android.pushservice.i.l.D(p7)) {
                String v8_2;
                android.content.SharedPreferences$Editor v5_3 = new StringBuilder();
                v5_3.append(p7.getPackageName());
                v5_3.append(".push_sync");
                android.content.SharedPreferences$Editor v5_6 = p7.getSharedPreferences(v5_3.toString(), 5).edit();
                if ((v8_1 == null) && (v1_2 == 0)) {
                    v8_2 = "priority2";
                    v3_4 = com.baidu.android.pushservice.i.l.f(p7);
                } else {
                    v8_2 = "priority2";
                }
                v5_6.putLong(v8_2, v3_4);
                v5_6.putInt("version2", com.baidu.android.pushservice.a.a());
                v5_6.commit();
            }
            com.baidu.android.pushservice.c.c.b(p7, ((long) com.baidu.android.pushservice.a.a()));
            String v8_5 = v0_2.edit();
            v8_5.putInt("pr_app_v", v2_2);
            v8_5.commit();
        }
        if (p9) {
            com.baidu.android.pushservice.i.k.d(p7);
        }
        return;
    }

Method com.baidu.android.pushservice.i.k.d():


    public static void d(android.content.Context p5)
    {
        com.baidu.android.pushservice.b.e.a(p5).e();
        if ((!com.baidu.android.pushservice.b.e.k(p5)) || (com.baidu.android.pushservice.b.e.c(p5))) {
            boolean v0_1 = com.baidu.android.pushservice.i.l.u(p5);
            int v1_0 = p5.getPackageName();
            com.baidu.android.pushservice.i.k.a = com.baidu.android.pushservice.i.l.v(p5);
            String v2_1 = 0;
            if ((com.baidu.android.pushservice.a.a(v1_0)) && (!v1_0.equals(com.baidu.android.pushservice.i.k.a))) {
                v0_1 = v1_0;
                v2_1 = 1;
            }
            com.baidu.android.pushservice.a.c(p5, v2_1);
            if ((android.text.TextUtils.isEmpty(v0_1)) || ((!v0_1.equals(com.baidu.android.pushservice.i.k.a)) || (v2_1 != null))) {
                com.baidu.android.pushservice.i.k.a(p5, v0_1);
            }
            if ((p5.getPackageName().startsWith("com.baidu.searchbox")) && ((!com.baidu.android.pushservice.job.a.b()) && ((!com.baidu.android.pushservice.i.l.l(p5)) && ((!com.baidu.android.pushservice.b.e.c(p5)) && ((android.os.Build$VERSION.SDK_INT > 22) || ((!com.baidu.android.pushservice.i.l.d()) && (!com.baidu.android.pushservice.i.l.e()))))))) {
                com.baidu.android.pushservice.job.a.a(p5);
                com.baidu.android.pushservice.job.a.a(1);
            }
            com.baidu.android.pushservice.h.d.a().a(new com.baidu.android.pushservice.i.k$1("checkAndStartPushService", 98, p5.getApplicationContext()));
            return;
        } else {
            return;
        }
    }

Method com.baidu.android.pushservice.i.l.u():


    public static String u(android.content.Context p4)
    {
        if (!com.baidu.android.pushservice.i.l.E(p4)) {
            java.util.Iterator v0_5 = com.baidu.android.pushservice.i.a.a(p4, "com.baidu.push.cur_pkg");
            String v1_6 = com.baidu.android.pushservice.i.l.s(p4);
            if ((android.text.TextUtils.isEmpty(v0_5)) || (!v1_6.contains(v0_5))) {
                if (!v1_6.isEmpty()) {
                    java.util.Iterator v0_2 = v1_6.iterator();
                    while (v0_2.hasNext()) {
                        String v1_2 = ((String) v0_2.next());
                        if ((!com.baidu.android.pushservice.i.l.z(p4, v1_2)) && ((com.baidu.android.pushservice.i.l.o(p4, v1_2)) && (com.baidu.android.pushservice.i.l.h(p4, v1_2)))) {
                            return v1_2;
                        }
                    }
                }
            } else {
                if ((com.baidu.android.pushservice.i.l.o(p4, v0_5)) && (com.baidu.android.pushservice.i.l.h(p4, v0_5))) {
                    return v0_5;
                }
            }
        } else {
            java.util.Iterator v0_4 = com.baidu.android.pushservice.i.l.s(p4);
            String v1_4 = com.baidu.android.pushservice.i.l.p(p4);
            if (!v0_4.isEmpty()) {
                String v1_5 = v1_4.iterator();
                while (v1_5.hasNext()) {
                    boolean v2_9 = ((android.content.pm.ResolveInfo) v1_5.next()).activityInfo.packageName;
                    if ((v0_4.contains(v2_9)) && ((com.baidu.android.pushservice.i.l.o(p4, v2_9)) && (com.baidu.android.pushservice.i.l.h(p4, v2_9)))) {
                        return v2_9;
                    }
                }
            }
        }
        return 0;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.b():


    private static Object b(android.content.Context p1, String p2)
    {
        if (!com.baidu.android.pushservice.i.l.u(p1, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            return 0;
        } else {
            try {
                return com.baidu.android.pushservice.i.a.a(p1).opt(p2);
            } catch (Throwable v1_2) {
                throw v1_2;
            }
        }
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/e;', 'b', '(Landroid/content/Context; Landroid/content/Intent;)V'), ('Lcom/baidu/android/pushservice/e;', 'a', '(Landroid/content/Context; Landroid/content/Intent;)Z'), ('Lcom/baidu/android/pushservice/h;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/h;'), ('Lcom/baidu/android/pushservice/h;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/i;'), ('Lcom/baidu/android/pushservice/i;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/PushSettings;', 'a', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'b', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/Object;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.e.b():


    public static void b(android.content.Context p1, android.content.Intent p2)
    {
        if (!com.baidu.android.pushservice.e.a(p1, p2)) {
            p1.sendBroadcast(p2);
        }
        return;
    }

Method com.baidu.android.pushservice.e.a():


    public static boolean a(android.content.Context p0, android.content.Intent p1)
    {
        return com.baidu.android.pushservice.h.a(p0).a(p1);
    }

Method com.baidu.android.pushservice.h.a():


    public static declared_synchronized com.baidu.android.pushservice.h a(android.content.Context p2)
    {
        try {
            if (com.baidu.android.pushservice.h.c == null) {
                com.baidu.android.pushservice.h.c = new com.baidu.android.pushservice.h(p2);
            }
        } catch (com.baidu.android.pushservice.h v2_1) {
            throw v2_1;
        }
        return com.baidu.android.pushservice.h.c;
    }

Method com.baidu.android.pushservice.h.<init>():


    private h(android.content.Context p1)
    {
        this.a = p1;
        com.baidu.android.pushservice.a.b.a(p1);
        com.baidu.android.pushservice.i.a(p1);
        com.baidu.android.pushservice.h.d.a();
        return;
    }

Method com.baidu.android.pushservice.i.a():


    public static declared_synchronized com.baidu.android.pushservice.i a(android.content.Context p2)
    {
        try {
            if (com.baidu.android.pushservice.i.a == null) {
                com.baidu.android.pushservice.i.a = new com.baidu.android.pushservice.i(p2);
            }
        } catch (com.baidu.android.pushservice.i v2_1) {
            throw v2_1;
        }
        return com.baidu.android.pushservice.i.a;
    }

Method com.baidu.android.pushservice.i.<init>():


    private i(android.content.Context p2)
    {
        this.d = com.baidu.android.pushservice.i.i.a(p2, "com.baidu.pushservice.channel_token");
        this.b = com.baidu.android.pushservice.PushSettings.a(p2);
        if (com.baidu.android.pushservice.b.e.b(p2)) {
            this.e = com.baidu.android.pushservice.i.i.a(p2, "com.baidu.pushservice.channel_token_new");
            this.c = com.baidu.android.pushservice.PushSettings.b(p2);
        }
        this.g = 0;
        this.h = p2;
        return;
    }

Method com.baidu.android.pushservice.PushSettings.a():


    public static String a(android.content.Context p3)
    {
        String v0_2 = com.baidu.android.pushservice.i.a.a(p3, "com.baidu.pushservice.channel_id");
        if (android.text.TextUtils.isEmpty(v0_2)) {
            v0_2 = com.baidu.android.pushservice.i.i.a(p3, "com.baidu.pushservice.channel_id");
            if (android.text.TextUtils.isEmpty(v0_2)) {
                v0_2 = com.baidu.android.pushservice.c.c.a(p3, 0);
                if (android.text.TextUtils.isEmpty(v0_2)) {
                    int v1_3 = com.baidu.android.pushservice.i.l.n(p3).iterator();
                    while (v1_3.hasNext()) {
                        v0_2 = com.baidu.android.pushservice.c.d.a(p3, ((String) v1_3.next()));
                        if (!android.text.TextUtils.isEmpty(v0_2)) {
                            com.baidu.android.pushservice.PushSettings.a(p3, v0_2, 0);
                            break;
                        }
                    }
                }
            }
        }
        return v0_2;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.b():


    private static Object b(android.content.Context p1, String p2)
    {
        if (!com.baidu.android.pushservice.i.l.u(p1, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            return 0;
        } else {
            try {
                return com.baidu.android.pushservice.i.a.a(p1).opt(p2);
            } catch (Throwable v1_2) {
                throw v1_2;
            }
        }
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/e;', 'f', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i/k;', 'a', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i/k;', 'd', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'u', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'b', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/Object;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.e.f():


    public static void f(android.content.Context p3)
    {
        int v0_1 = new StringBuilder();
        v0_1.append("startWork at time of ");
        v0_1.append(System.currentTimeMillis());
        com.baidu.android.pushservice.i.l.b(v0_1.toString(), p3);
        if (!com.baidu.android.pushservice.b.e.l(p3)) {
            com.baidu.android.pushservice.i.k.a(p3);
        } else {
            com.baidu.android.pushservice.i.l.a(p3, 1, 1);
        }
        com.baidu.android.pushservice.e.b(p3, 0);
        return;
    }

Method com.baidu.android.pushservice.i.k.a():


    public static void a(android.content.Context p3)
    {
        String v1_1 = new StringBuilder();
        v1_1.append("--- Start Service from ");
        v1_1.append(p3.getPackageName());
        com.baidu.android.pushservice.f.a.a("ServiceUtils", v1_1.toString(), p3.getApplicationContext());
        if (!com.baidu.android.pushservice.a.b(p3)) {
            com.baidu.android.pushservice.i.k.d(p3);
        } else {
            com.baidu.android.pushservice.i.k.b(p3);
            com.baidu.android.pushservice.a.a(p3, 0);
        }
        return;
    }

Method com.baidu.android.pushservice.i.k.d():


    public static void d(android.content.Context p5)
    {
        com.baidu.android.pushservice.b.e.a(p5).e();
        if ((!com.baidu.android.pushservice.b.e.k(p5)) || (com.baidu.android.pushservice.b.e.c(p5))) {
            boolean v0_1 = com.baidu.android.pushservice.i.l.u(p5);
            int v1_0 = p5.getPackageName();
            com.baidu.android.pushservice.i.k.a = com.baidu.android.pushservice.i.l.v(p5);
            String v2_1 = 0;
            if ((com.baidu.android.pushservice.a.a(v1_0)) && (!v1_0.equals(com.baidu.android.pushservice.i.k.a))) {
                v0_1 = v1_0;
                v2_1 = 1;
            }
            com.baidu.android.pushservice.a.c(p5, v2_1);
            if ((android.text.TextUtils.isEmpty(v0_1)) || ((!v0_1.equals(com.baidu.android.pushservice.i.k.a)) || (v2_1 != null))) {
                com.baidu.android.pushservice.i.k.a(p5, v0_1);
            }
            if ((p5.getPackageName().startsWith("com.baidu.searchbox")) && ((!com.baidu.android.pushservice.job.a.b()) && ((!com.baidu.android.pushservice.i.l.l(p5)) && ((!com.baidu.android.pushservice.b.e.c(p5)) && ((android.os.Build$VERSION.SDK_INT > 22) || ((!com.baidu.android.pushservice.i.l.d()) && (!com.baidu.android.pushservice.i.l.e()))))))) {
                com.baidu.android.pushservice.job.a.a(p5);
                com.baidu.android.pushservice.job.a.a(1);
            }
            com.baidu.android.pushservice.h.d.a().a(new com.baidu.android.pushservice.i.k$1("checkAndStartPushService", 98, p5.getApplicationContext()));
            return;
        } else {
            return;
        }
    }

Method com.baidu.android.pushservice.i.l.u():


    public static String u(android.content.Context p4)
    {
        if (!com.baidu.android.pushservice.i.l.E(p4)) {
            java.util.Iterator v0_5 = com.baidu.android.pushservice.i.a.a(p4, "com.baidu.push.cur_pkg");
            String v1_6 = com.baidu.android.pushservice.i.l.s(p4);
            if ((android.text.TextUtils.isEmpty(v0_5)) || (!v1_6.contains(v0_5))) {
                if (!v1_6.isEmpty()) {
                    java.util.Iterator v0_2 = v1_6.iterator();
                    while (v0_2.hasNext()) {
                        String v1_2 = ((String) v0_2.next());
                        if ((!com.baidu.android.pushservice.i.l.z(p4, v1_2)) && ((com.baidu.android.pushservice.i.l.o(p4, v1_2)) && (com.baidu.android.pushservice.i.l.h(p4, v1_2)))) {
                            return v1_2;
                        }
                    }
                }
            } else {
                if ((com.baidu.android.pushservice.i.l.o(p4, v0_5)) && (com.baidu.android.pushservice.i.l.h(p4, v0_5))) {
                    return v0_5;
                }
            }
        } else {
            java.util.Iterator v0_4 = com.baidu.android.pushservice.i.l.s(p4);
            String v1_4 = com.baidu.android.pushservice.i.l.p(p4);
            if (!v0_4.isEmpty()) {
                String v1_5 = v1_4.iterator();
                while (v1_5.hasNext()) {
                    boolean v2_9 = ((android.content.pm.ResolveInfo) v1_5.next()).activityInfo.packageName;
                    if ((v0_4.contains(v2_9)) && ((com.baidu.android.pushservice.i.l.o(p4, v2_9)) && (com.baidu.android.pushservice.i.l.h(p4, v2_9)))) {
                        return v2_9;
                    }
                }
            }
        }
        return 0;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.b():


    private static Object b(android.content.Context p1, String p2)
    {
        if (!com.baidu.android.pushservice.i.l.u(p1, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            return 0;
        } else {
            try {
                return com.baidu.android.pushservice.i.a.a(p1).opt(p2);
            } catch (Throwable v1_2) {
                throw v1_2;
            }
        }
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/e;', 'g', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/e;', 'b', '(Landroid/content/Context; Landroid/content/Intent;)V'), ('Lcom/baidu/android/pushservice/e;', 'a', '(Landroid/content/Context; Landroid/content/Intent;)Z'), ('Lcom/baidu/android/pushservice/h;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/h;'), ('Lcom/baidu/android/pushservice/h;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/i;'), ('Lcom/baidu/android/pushservice/i;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/PushSettings;', 'a', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'b', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/Object;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.e.g():


    public static void g(android.content.Context p3)
    {
        android.content.Intent v0 = com.baidu.android.pushservice.e.a(p3);
        if (v0 != null) {
            v0.putExtra("method", "method_unbind");
            com.baidu.android.pushservice.e.b(p3, v0);
            return;
        } else {
            return;
        }
    }

Method com.baidu.android.pushservice.e.b():


    public static void b(android.content.Context p1, android.content.Intent p2)
    {
        if (!com.baidu.android.pushservice.e.a(p1, p2)) {
            p1.sendBroadcast(p2);
        }
        return;
    }

Method com.baidu.android.pushservice.e.a():


    public static boolean a(android.content.Context p0, android.content.Intent p1)
    {
        return com.baidu.android.pushservice.h.a(p0).a(p1);
    }

Method com.baidu.android.pushservice.h.a():


    public static declared_synchronized com.baidu.android.pushservice.h a(android.content.Context p2)
    {
        try {
            if (com.baidu.android.pushservice.h.c == null) {
                com.baidu.android.pushservice.h.c = new com.baidu.android.pushservice.h(p2);
            }
        } catch (com.baidu.android.pushservice.h v2_1) {
            throw v2_1;
        }
        return com.baidu.android.pushservice.h.c;
    }

Method com.baidu.android.pushservice.h.<init>():


    private h(android.content.Context p1)
    {
        this.a = p1;
        com.baidu.android.pushservice.a.b.a(p1);
        com.baidu.android.pushservice.i.a(p1);
        com.baidu.android.pushservice.h.d.a();
        return;
    }

Method com.baidu.android.pushservice.i.a():


    public static declared_synchronized com.baidu.android.pushservice.i a(android.content.Context p2)
    {
        try {
            if (com.baidu.android.pushservice.i.a == null) {
                com.baidu.android.pushservice.i.a = new com.baidu.android.pushservice.i(p2);
            }
        } catch (com.baidu.android.pushservice.i v2_1) {
            throw v2_1;
        }
        return com.baidu.android.pushservice.i.a;
    }

Method com.baidu.android.pushservice.i.<init>():


    private i(android.content.Context p2)
    {
        this.d = com.baidu.android.pushservice.i.i.a(p2, "com.baidu.pushservice.channel_token");
        this.b = com.baidu.android.pushservice.PushSettings.a(p2);
        if (com.baidu.android.pushservice.b.e.b(p2)) {
            this.e = com.baidu.android.pushservice.i.i.a(p2, "com.baidu.pushservice.channel_token_new");
            this.c = com.baidu.android.pushservice.PushSettings.b(p2);
        }
        this.g = 0;
        this.h = p2;
        return;
    }

Method com.baidu.android.pushservice.PushSettings.a():


    public static String a(android.content.Context p3)
    {
        String v0_2 = com.baidu.android.pushservice.i.a.a(p3, "com.baidu.pushservice.channel_id");
        if (android.text.TextUtils.isEmpty(v0_2)) {
            v0_2 = com.baidu.android.pushservice.i.i.a(p3, "com.baidu.pushservice.channel_id");
            if (android.text.TextUtils.isEmpty(v0_2)) {
                v0_2 = com.baidu.android.pushservice.c.c.a(p3, 0);
                if (android.text.TextUtils.isEmpty(v0_2)) {
                    int v1_3 = com.baidu.android.pushservice.i.l.n(p3).iterator();
                    while (v1_3.hasNext()) {
                        v0_2 = com.baidu.android.pushservice.c.d.a(p3, ((String) v1_3.next()));
                        if (!android.text.TextUtils.isEmpty(v0_2)) {
                            com.baidu.android.pushservice.PushSettings.a(p3, v0_2, 0);
                            break;
                        }
                    }
                }
            }
        }
        return v0_2;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.b():


    private static Object b(android.content.Context p1, String p2)
    {
        if (!com.baidu.android.pushservice.i.l.u(p1, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            return 0;
        } else {
            try {
                return com.baidu.android.pushservice.i.a.a(p1).opt(p2);
            } catch (Throwable v1_2) {
                throw v1_2;
            }
        }
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/f$2;', 'run', '()V'), ('Lcom/baidu/android/pushservice/f;', 'a', '(Landroid/content/Intent;)Z'), ('Lcom/baidu/android/pushservice/f;', 'c', '()Lcom/baidu/android/pushservice/h;'), ('Lcom/baidu/android/pushservice/h;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/h;'), ('Lcom/baidu/android/pushservice/h;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/i;'), ('Lcom/baidu/android/pushservice/i;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/PushSettings;', 'a', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'b', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/Object;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.f$2.run():


    public void run()
    {
        this.a.a(new android.content.Intent());
        return;
    }

Method com.baidu.android.pushservice.f.a():


    public boolean a(android.content.Intent p9)
    {
        com.baidu.android.pushservice.f.a.a(com.baidu.android.pushservice.f.b, "PushSDK handleOnStart go", this.j);
        if (p9 == 0) {
            p9 = new android.content.Intent();
            com.baidu.android.pushservice.f.a.c(com.baidu.android.pushservice.f.b, "--- handleOnStart by null intent!", this.j);
        }
        if ((!com.baidu.android.pushservice.b.e.k(this.j)) || (com.baidu.android.pushservice.b.e.c(this.j))) {
            if (!this.h.booleanValue()) {
                this.a();
            }
            try {
                this.k.removeCallbacks(this.p);
            } catch (int v9_3) {
                throw v9_3;
            }
            if (com.baidu.android.pushservice.f.g != null) {
                if (p9.getStringExtra("AlarmAlert") == null) {
                    if (((!"pushservice_restart_v2".equals(p9.getStringExtra("method"))) && (!"pushservice_restart_v3".equals(p9.getStringExtra("method")))) || (com.baidu.android.pushservice.f.g == null)) {
                        if (this.c().a(p9)) {
                            com.baidu.android.pushservice.f.a.c(com.baidu.android.pushservice.f.b, "-- handleOnStart -- intent handled  by mRegistrationService ", this.j);
                            return 1;
                        }
                    } else {
                        int v2_18;
                        if (!com.baidu.android.pushservice.i.l.E(this.j)) {
                            v2_18 = "priority2";
                        } else {
                            v2_18 = "priority3";
                        }
                        boolean v4_8 = p9.getLongExtra(v2_18, 0);
                        int v9_14;
                        com.baidu.android.pushservice.b.e.a(this.j).e();
                        if ((v4_8 <= com.baidu.android.pushservice.i.l.h(this.j)) || (com.baidu.android.pushservice.b.e.a(this.j).b() == 3)) {
                            v9_14 = 0;
                        } else {
                            v9_14 = 1;
                        }
                        int v2_24;
                        if (com.baidu.android.pushservice.b.e.a(this.j).b() != 4) {
                            v2_24 = 0;
                        } else {
                            v2_24 = 1;
                        }
                        if ((v9_14 == 0) || ((!com.baidu.android.pushservice.a.d(this.j)) || (com.baidu.android.pushservice.i.l.c(this.j)))) {
                            if ((v9_14 != 0) || (v2_24 != 0)) {
                                return 0;
                            }
                        } else {
                            return 1;
                        }
                    }
                    this.n();
                    return 1;
                } else {
                    return this.p();
                }
            } else {
                String v1_1 = p9.getAction();
                if ((!"com.baidu.android.pushservice.action.METHOD".equals(v1_1)) && (!"com.baidu.android.pushservice.action.privatenotification.CLICK".equals(v1_1))) {
                    if (!"com.baidu.android.pushservice.action.privatenotification.DELETE".equals(v1_1)) {
                        return 1;
                    } else {
                    }
                }
                return this.c().a(p9);
            }
        } else {
            return 0;
        }
    }

Method com.baidu.android.pushservice.f.c():


    public com.baidu.android.pushservice.h c()
    {
        return com.baidu.android.pushservice.h.a(this.j);
    }

Method com.baidu.android.pushservice.h.a():


    public static declared_synchronized com.baidu.android.pushservice.h a(android.content.Context p2)
    {
        try {
            if (com.baidu.android.pushservice.h.c == null) {
                com.baidu.android.pushservice.h.c = new com.baidu.android.pushservice.h(p2);
            }
        } catch (com.baidu.android.pushservice.h v2_1) {
            throw v2_1;
        }
        return com.baidu.android.pushservice.h.c;
    }

Method com.baidu.android.pushservice.h.<init>():


    private h(android.content.Context p1)
    {
        this.a = p1;
        com.baidu.android.pushservice.a.b.a(p1);
        com.baidu.android.pushservice.i.a(p1);
        com.baidu.android.pushservice.h.d.a();
        return;
    }

Method com.baidu.android.pushservice.i.a():


    public static declared_synchronized com.baidu.android.pushservice.i a(android.content.Context p2)
    {
        try {
            if (com.baidu.android.pushservice.i.a == null) {
                com.baidu.android.pushservice.i.a = new com.baidu.android.pushservice.i(p2);
            }
        } catch (com.baidu.android.pushservice.i v2_1) {
            throw v2_1;
        }
        return com.baidu.android.pushservice.i.a;
    }

Method com.baidu.android.pushservice.i.<init>():


    private i(android.content.Context p2)
    {
        this.d = com.baidu.android.pushservice.i.i.a(p2, "com.baidu.pushservice.channel_token");
        this.b = com.baidu.android.pushservice.PushSettings.a(p2);
        if (com.baidu.android.pushservice.b.e.b(p2)) {
            this.e = com.baidu.android.pushservice.i.i.a(p2, "com.baidu.pushservice.channel_token_new");
            this.c = com.baidu.android.pushservice.PushSettings.b(p2);
        }
        this.g = 0;
        this.h = p2;
        return;
    }

Method com.baidu.android.pushservice.PushSettings.a():


    public static String a(android.content.Context p3)
    {
        String v0_2 = com.baidu.android.pushservice.i.a.a(p3, "com.baidu.pushservice.channel_id");
        if (android.text.TextUtils.isEmpty(v0_2)) {
            v0_2 = com.baidu.android.pushservice.i.i.a(p3, "com.baidu.pushservice.channel_id");
            if (android.text.TextUtils.isEmpty(v0_2)) {
                v0_2 = com.baidu.android.pushservice.c.c.a(p3, 0);
                if (android.text.TextUtils.isEmpty(v0_2)) {
                    int v1_3 = com.baidu.android.pushservice.i.l.n(p3).iterator();
                    while (v1_3.hasNext()) {
                        v0_2 = com.baidu.android.pushservice.c.d.a(p3, ((String) v1_3.next()));
                        if (!android.text.TextUtils.isEmpty(v0_2)) {
                            com.baidu.android.pushservice.PushSettings.a(p3, v0_2, 0);
                            break;
                        }
                    }
                }
            }
        }
        return v0_2;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.b():


    private static Object b(android.content.Context p1, String p2)
    {
        if (!com.baidu.android.pushservice.i.l.u(p1, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            return 0;
        } else {
            try {
                return com.baidu.android.pushservice.i.a.a(p1).opt(p2);
            } catch (Throwable v1_2) {
                throw v1_2;
            }
        }
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/f$4;', 'run', '()V'), ('Lcom/baidu/android/pushservice/d;', 'b', '()V'), ('Lcom/baidu/android/pushservice/d;', 'i', '()V'), ('Lcom/baidu/android/pushservice/i;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/i;'), ('Lcom/baidu/android/pushservice/i;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/PushSettings;', 'a', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'b', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/Object;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.f$4.run():


    public void run()
    {
        com.baidu.android.pushservice.f.g();
        try {
            if (com.baidu.android.pushservice.f.a != null) {
                com.baidu.android.pushservice.f.a.b();
            }
        } catch (com.baidu.android.pushservice.d v1_2) {
            throw v1_2;
        }
        return;
    }

Method com.baidu.android.pushservice.d.b():


    public void b()
    {
        this.k = 0;
        this.j = 0;
        this.i();
        return;
    }

Method com.baidu.android.pushservice.d.i():


    private declared_synchronized void i()
    {
        try {
            if (!this.d) {
                if (!com.baidu.android.pushservice.d.e.booleanValue()) {
                    if (com.baidu.android.pushservice.i.a(this.l).e()) {
                        Thread v0_3 = new StringBuilder();
                        v0_3.append("PushConnection connectImpl from ");
                        v0_3.append(this.l.getPackageName());
                        v0_3.append(" at Time ");
                        v0_3.append(System.currentTimeMillis());
                        com.baidu.android.pushservice.i.l.b(v0_3.toString(), this.l);
                        com.baidu.android.pushservice.d.e = Boolean.valueOf(1);
                        com.baidu.android.pushservice.d.c = -1;
                        Thread v0_10 = new com.baidu.android.pushservice.d$1(this);
                        if (this.r != null) {
                            this.r.interrupt();
                        }
                        this.r = new Thread(v0_10);
                        this.r.setName("PushService-PushService-connect");
                        this.r.start();
                        return;
                    } else {
                        com.baidu.android.pushservice.f.a.a("PushConnection", "re-token", this.l.getApplicationContext());
                        com.baidu.android.pushservice.f.a(this.l).d();
                        return;
                    }
                } else {
                }
            }
        } catch (Thread v0_19) {
            throw v0_19;
        }
        String v1_13 = new StringBuilder();
        v1_13.append("Connect return. mConnected:");
        v1_13.append(this.d);
        v1_13.append(" mConnectting:");
        v1_13.append(com.baidu.android.pushservice.d.e);
        com.baidu.android.pushservice.f.a.c("PushConnection", v1_13.toString(), this.l.getApplicationContext());
        return;
    }

Method com.baidu.android.pushservice.i.a():


    public static declared_synchronized com.baidu.android.pushservice.i a(android.content.Context p2)
    {
        try {
            if (com.baidu.android.pushservice.i.a == null) {
                com.baidu.android.pushservice.i.a = new com.baidu.android.pushservice.i(p2);
            }
        } catch (com.baidu.android.pushservice.i v2_1) {
            throw v2_1;
        }
        return com.baidu.android.pushservice.i.a;
    }

Method com.baidu.android.pushservice.i.<init>():


    private i(android.content.Context p2)
    {
        this.d = com.baidu.android.pushservice.i.i.a(p2, "com.baidu.pushservice.channel_token");
        this.b = com.baidu.android.pushservice.PushSettings.a(p2);
        if (com.baidu.android.pushservice.b.e.b(p2)) {
            this.e = com.baidu.android.pushservice.i.i.a(p2, "com.baidu.pushservice.channel_token_new");
            this.c = com.baidu.android.pushservice.PushSettings.b(p2);
        }
        this.g = 0;
        this.h = p2;
        return;
    }

Method com.baidu.android.pushservice.PushSettings.a():


    public static String a(android.content.Context p3)
    {
        String v0_2 = com.baidu.android.pushservice.i.a.a(p3, "com.baidu.pushservice.channel_id");
        if (android.text.TextUtils.isEmpty(v0_2)) {
            v0_2 = com.baidu.android.pushservice.i.i.a(p3, "com.baidu.pushservice.channel_id");
            if (android.text.TextUtils.isEmpty(v0_2)) {
                v0_2 = com.baidu.android.pushservice.c.c.a(p3, 0);
                if (android.text.TextUtils.isEmpty(v0_2)) {
                    int v1_3 = com.baidu.android.pushservice.i.l.n(p3).iterator();
                    while (v1_3.hasNext()) {
                        v0_2 = com.baidu.android.pushservice.c.d.a(p3, ((String) v1_3.next()));
                        if (!android.text.TextUtils.isEmpty(v0_2)) {
                            com.baidu.android.pushservice.PushSettings.a(p3, v0_2, 0);
                            break;
                        }
                    }
                }
            }
        }
        return v0_2;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.b():


    private static Object b(android.content.Context p1, String p2)
    {
        if (!com.baidu.android.pushservice.i.l.u(p1, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            return 0;
        } else {
            try {
                return com.baidu.android.pushservice.i.a.a(p1).opt(p2);
            } catch (Throwable v1_2) {
                throw v1_2;
            }
        }
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/f;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'g', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'a', '(Landroid/content/Context; Z Z)V'), ('Lcom/baidu/android/pushservice/i/k;', 'd', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'u', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'b', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/Object;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.f.<init>():


    private f(android.content.Context p3)
    {
        this.h = Boolean.valueOf(0);
        this.p = new com.baidu.android.pushservice.f$2(this);
        this.q = new com.baidu.android.pushservice.f$3(this);
        this.r = new com.baidu.android.pushservice.f$4(this);
        this.k = new android.os.Handler(p3.getMainLooper());
        this.j = p3.getApplicationContext();
        this.e = com.baidu.android.pushservice.f.d;
        com.baidu.android.pushservice.i.l.g(this.j.getApplicationContext());
        return;
    }

Method com.baidu.android.pushservice.i.l.g():


    public static void g(android.content.Context p1)
    {
        com.baidu.android.pushservice.i.l.a(p1, 0, 0);
        return;
    }

Method com.baidu.android.pushservice.i.l.a():


    public static void a(android.content.Context p7, boolean p8, boolean p9)
    {
        short v1_3 = new StringBuilder();
        v1_3.append(p7.getPackageName());
        v1_3.append(": updateServiceInfo isForce = ");
        v1_3.append(p8);
        v1_3.append(",isSend = ");
        v1_3.append(p9);
        com.baidu.android.pushservice.f.a.a("Utility", v1_3.toString(), p7.getApplicationContext());
        short v1_2 = 0;
        String v0_2 = p7.getSharedPreferences("pst", 0);
        int v2_2 = com.baidu.android.pushservice.i.l.d(p7, p7.getPackageName());
        if ((v0_2.getInt("pr_app_v", 0) < v2_2) || (p8 != null)) {
            String v8_1 = com.baidu.android.pushservice.i.l.c(p7);
            if ((com.baidu.android.pushservice.b.e.k(p7)) && (!com.baidu.android.pushservice.b.e.c(p7))) {
                v1_2 = 1;
            }
            long v3_4 = 0;
            if ((v8_1 == null) && (v1_2 == 0)) {
                com.baidu.android.pushservice.c.c.a(p7, com.baidu.android.pushservice.i.l.f(p7));
            } else {
                com.baidu.android.pushservice.c.c.a(p7, 0);
            }
            if (com.baidu.android.pushservice.i.l.D(p7)) {
                String v8_2;
                android.content.SharedPreferences$Editor v5_3 = new StringBuilder();
                v5_3.append(p7.getPackageName());
                v5_3.append(".push_sync");
                android.content.SharedPreferences$Editor v5_6 = p7.getSharedPreferences(v5_3.toString(), 5).edit();
                if ((v8_1 == null) && (v1_2 == 0)) {
                    v8_2 = "priority2";
                    v3_4 = com.baidu.android.pushservice.i.l.f(p7);
                } else {
                    v8_2 = "priority2";
                }
                v5_6.putLong(v8_2, v3_4);
                v5_6.putInt("version2", com.baidu.android.pushservice.a.a());
                v5_6.commit();
            }
            com.baidu.android.pushservice.c.c.b(p7, ((long) com.baidu.android.pushservice.a.a()));
            String v8_5 = v0_2.edit();
            v8_5.putInt("pr_app_v", v2_2);
            v8_5.commit();
        }
        if (p9) {
            com.baidu.android.pushservice.i.k.d(p7);
        }
        return;
    }

Method com.baidu.android.pushservice.i.k.d():


    public static void d(android.content.Context p5)
    {
        com.baidu.android.pushservice.b.e.a(p5).e();
        if ((!com.baidu.android.pushservice.b.e.k(p5)) || (com.baidu.android.pushservice.b.e.c(p5))) {
            boolean v0_1 = com.baidu.android.pushservice.i.l.u(p5);
            int v1_0 = p5.getPackageName();
            com.baidu.android.pushservice.i.k.a = com.baidu.android.pushservice.i.l.v(p5);
            String v2_1 = 0;
            if ((com.baidu.android.pushservice.a.a(v1_0)) && (!v1_0.equals(com.baidu.android.pushservice.i.k.a))) {
                v0_1 = v1_0;
                v2_1 = 1;
            }
            com.baidu.android.pushservice.a.c(p5, v2_1);
            if ((android.text.TextUtils.isEmpty(v0_1)) || ((!v0_1.equals(com.baidu.android.pushservice.i.k.a)) || (v2_1 != null))) {
                com.baidu.android.pushservice.i.k.a(p5, v0_1);
            }
            if ((p5.getPackageName().startsWith("com.baidu.searchbox")) && ((!com.baidu.android.pushservice.job.a.b()) && ((!com.baidu.android.pushservice.i.l.l(p5)) && ((!com.baidu.android.pushservice.b.e.c(p5)) && ((android.os.Build$VERSION.SDK_INT > 22) || ((!com.baidu.android.pushservice.i.l.d()) && (!com.baidu.android.pushservice.i.l.e()))))))) {
                com.baidu.android.pushservice.job.a.a(p5);
                com.baidu.android.pushservice.job.a.a(1);
            }
            com.baidu.android.pushservice.h.d.a().a(new com.baidu.android.pushservice.i.k$1("checkAndStartPushService", 98, p5.getApplicationContext()));
            return;
        } else {
            return;
        }
    }

Method com.baidu.android.pushservice.i.l.u():


    public static String u(android.content.Context p4)
    {
        if (!com.baidu.android.pushservice.i.l.E(p4)) {
            java.util.Iterator v0_5 = com.baidu.android.pushservice.i.a.a(p4, "com.baidu.push.cur_pkg");
            String v1_6 = com.baidu.android.pushservice.i.l.s(p4);
            if ((android.text.TextUtils.isEmpty(v0_5)) || (!v1_6.contains(v0_5))) {
                if (!v1_6.isEmpty()) {
                    java.util.Iterator v0_2 = v1_6.iterator();
                    while (v0_2.hasNext()) {
                        String v1_2 = ((String) v0_2.next());
                        if ((!com.baidu.android.pushservice.i.l.z(p4, v1_2)) && ((com.baidu.android.pushservice.i.l.o(p4, v1_2)) && (com.baidu.android.pushservice.i.l.h(p4, v1_2)))) {
                            return v1_2;
                        }
                    }
                }
            } else {
                if ((com.baidu.android.pushservice.i.l.o(p4, v0_5)) && (com.baidu.android.pushservice.i.l.h(p4, v0_5))) {
                    return v0_5;
                }
            }
        } else {
            java.util.Iterator v0_4 = com.baidu.android.pushservice.i.l.s(p4);
            String v1_4 = com.baidu.android.pushservice.i.l.p(p4);
            if (!v0_4.isEmpty()) {
                String v1_5 = v1_4.iterator();
                while (v1_5.hasNext()) {
                    boolean v2_9 = ((android.content.pm.ResolveInfo) v1_5.next()).activityInfo.packageName;
                    if ((v0_4.contains(v2_9)) && ((com.baidu.android.pushservice.i.l.o(p4, v2_9)) && (com.baidu.android.pushservice.i.l.h(p4, v2_9)))) {
                        return v2_9;
                    }
                }
            }
        }
        return 0;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.b():


    private static Object b(android.content.Context p1, String p2)
    {
        if (!com.baidu.android.pushservice.i.l.u(p1, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            return 0;
        } else {
            try {
                return com.baidu.android.pushservice.i.a.a(p1).opt(p2);
            } catch (Throwable v1_2) {
                throw v1_2;
            }
        }
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/f;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/f;'), ('Lcom/baidu/android/pushservice/f;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'g', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'a', '(Landroid/content/Context; Z Z)V'), ('Lcom/baidu/android/pushservice/i/k;', 'd', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'u', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'b', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/Object;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.f.a():


    public static declared_synchronized com.baidu.android.pushservice.f a(android.content.Context p2)
    {
        try {
            if (com.baidu.android.pushservice.f.c == null) {
                com.baidu.android.pushservice.f.c = new com.baidu.android.pushservice.f(p2);
            }
        } catch (com.baidu.android.pushservice.f v2_1) {
            throw v2_1;
        }
        return com.baidu.android.pushservice.f.c;
    }

Method com.baidu.android.pushservice.f.<init>():


    private f(android.content.Context p3)
    {
        this.h = Boolean.valueOf(0);
        this.p = new com.baidu.android.pushservice.f$2(this);
        this.q = new com.baidu.android.pushservice.f$3(this);
        this.r = new com.baidu.android.pushservice.f$4(this);
        this.k = new android.os.Handler(p3.getMainLooper());
        this.j = p3.getApplicationContext();
        this.e = com.baidu.android.pushservice.f.d;
        com.baidu.android.pushservice.i.l.g(this.j.getApplicationContext());
        return;
    }

Method com.baidu.android.pushservice.i.l.g():


    public static void g(android.content.Context p1)
    {
        com.baidu.android.pushservice.i.l.a(p1, 0, 0);
        return;
    }

Method com.baidu.android.pushservice.i.l.a():


    public static void a(android.content.Context p7, boolean p8, boolean p9)
    {
        short v1_3 = new StringBuilder();
        v1_3.append(p7.getPackageName());
        v1_3.append(": updateServiceInfo isForce = ");
        v1_3.append(p8);
        v1_3.append(",isSend = ");
        v1_3.append(p9);
        com.baidu.android.pushservice.f.a.a("Utility", v1_3.toString(), p7.getApplicationContext());
        short v1_2 = 0;
        String v0_2 = p7.getSharedPreferences("pst", 0);
        int v2_2 = com.baidu.android.pushservice.i.l.d(p7, p7.getPackageName());
        if ((v0_2.getInt("pr_app_v", 0) < v2_2) || (p8 != null)) {
            String v8_1 = com.baidu.android.pushservice.i.l.c(p7);
            if ((com.baidu.android.pushservice.b.e.k(p7)) && (!com.baidu.android.pushservice.b.e.c(p7))) {
                v1_2 = 1;
            }
            long v3_4 = 0;
            if ((v8_1 == null) && (v1_2 == 0)) {
                com.baidu.android.pushservice.c.c.a(p7, com.baidu.android.pushservice.i.l.f(p7));
            } else {
                com.baidu.android.pushservice.c.c.a(p7, 0);
            }
            if (com.baidu.android.pushservice.i.l.D(p7)) {
                String v8_2;
                android.content.SharedPreferences$Editor v5_3 = new StringBuilder();
                v5_3.append(p7.getPackageName());
                v5_3.append(".push_sync");
                android.content.SharedPreferences$Editor v5_6 = p7.getSharedPreferences(v5_3.toString(), 5).edit();
                if ((v8_1 == null) && (v1_2 == 0)) {
                    v8_2 = "priority2";
                    v3_4 = com.baidu.android.pushservice.i.l.f(p7);
                } else {
                    v8_2 = "priority2";
                }
                v5_6.putLong(v8_2, v3_4);
                v5_6.putInt("version2", com.baidu.android.pushservice.a.a());
                v5_6.commit();
            }
            com.baidu.android.pushservice.c.c.b(p7, ((long) com.baidu.android.pushservice.a.a()));
            String v8_5 = v0_2.edit();
            v8_5.putInt("pr_app_v", v2_2);
            v8_5.commit();
        }
        if (p9) {
            com.baidu.android.pushservice.i.k.d(p7);
        }
        return;
    }

Method com.baidu.android.pushservice.i.k.d():


    public static void d(android.content.Context p5)
    {
        com.baidu.android.pushservice.b.e.a(p5).e();
        if ((!com.baidu.android.pushservice.b.e.k(p5)) || (com.baidu.android.pushservice.b.e.c(p5))) {
            boolean v0_1 = com.baidu.android.pushservice.i.l.u(p5);
            int v1_0 = p5.getPackageName();
            com.baidu.android.pushservice.i.k.a = com.baidu.android.pushservice.i.l.v(p5);
            String v2_1 = 0;
            if ((com.baidu.android.pushservice.a.a(v1_0)) && (!v1_0.equals(com.baidu.android.pushservice.i.k.a))) {
                v0_1 = v1_0;
                v2_1 = 1;
            }
            com.baidu.android.pushservice.a.c(p5, v2_1);
            if ((android.text.TextUtils.isEmpty(v0_1)) || ((!v0_1.equals(com.baidu.android.pushservice.i.k.a)) || (v2_1 != null))) {
                com.baidu.android.pushservice.i.k.a(p5, v0_1);
            }
            if ((p5.getPackageName().startsWith("com.baidu.searchbox")) && ((!com.baidu.android.pushservice.job.a.b()) && ((!com.baidu.android.pushservice.i.l.l(p5)) && ((!com.baidu.android.pushservice.b.e.c(p5)) && ((android.os.Build$VERSION.SDK_INT > 22) || ((!com.baidu.android.pushservice.i.l.d()) && (!com.baidu.android.pushservice.i.l.e()))))))) {
                com.baidu.android.pushservice.job.a.a(p5);
                com.baidu.android.pushservice.job.a.a(1);
            }
            com.baidu.android.pushservice.h.d.a().a(new com.baidu.android.pushservice.i.k$1("checkAndStartPushService", 98, p5.getApplicationContext()));
            return;
        } else {
            return;
        }
    }

Method com.baidu.android.pushservice.i.l.u():


    public static String u(android.content.Context p4)
    {
        if (!com.baidu.android.pushservice.i.l.E(p4)) {
            java.util.Iterator v0_5 = com.baidu.android.pushservice.i.a.a(p4, "com.baidu.push.cur_pkg");
            String v1_6 = com.baidu.android.pushservice.i.l.s(p4);
            if ((android.text.TextUtils.isEmpty(v0_5)) || (!v1_6.contains(v0_5))) {
                if (!v1_6.isEmpty()) {
                    java.util.Iterator v0_2 = v1_6.iterator();
                    while (v0_2.hasNext()) {
                        String v1_2 = ((String) v0_2.next());
                        if ((!com.baidu.android.pushservice.i.l.z(p4, v1_2)) && ((com.baidu.android.pushservice.i.l.o(p4, v1_2)) && (com.baidu.android.pushservice.i.l.h(p4, v1_2)))) {
                            return v1_2;
                        }
                    }
                }
            } else {
                if ((com.baidu.android.pushservice.i.l.o(p4, v0_5)) && (com.baidu.android.pushservice.i.l.h(p4, v0_5))) {
                    return v0_5;
                }
            }
        } else {
            java.util.Iterator v0_4 = com.baidu.android.pushservice.i.l.s(p4);
            String v1_4 = com.baidu.android.pushservice.i.l.p(p4);
            if (!v0_4.isEmpty()) {
                String v1_5 = v1_4.iterator();
                while (v1_5.hasNext()) {
                    boolean v2_9 = ((android.content.pm.ResolveInfo) v1_5.next()).activityInfo.packageName;
                    if ((v0_4.contains(v2_9)) && ((com.baidu.android.pushservice.i.l.o(p4, v2_9)) && (com.baidu.android.pushservice.i.l.h(p4, v2_9)))) {
                        return v2_9;
                    }
                }
            }
        }
        return 0;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.b():


    private static Object b(android.content.Context p1, String p2)
    {
        if (!com.baidu.android.pushservice.i.l.u(p1, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            return 0;
        } else {
            try {
                return com.baidu.android.pushservice.i.a.a(p1).opt(p2);
            } catch (Throwable v1_2) {
                throw v1_2;
            }
        }
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/f;', 'c', '(Lcom/baidu/android/pushservice/f;)V'), ('Lcom/baidu/android/pushservice/f;', 'r', '()V'), ('Lcom/baidu/android/pushservice/f;', 'o', '()Z'), ('Lcom/baidu/android/pushservice/f;', 's', '()V'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)V'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/Object;)Z'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.f.c():


    static synthetic void c(com.baidu.android.pushservice.f p0)
    {
        p0.r();
        return;
    }

Method com.baidu.android.pushservice.f.r():


    private void r()
    {
        if ((com.baidu.android.pushservice.f.g != null) || (this.o())) {
            this.k.removeCallbacks(this.r);
            this.k.postDelayed(this.r, 1000);
        }
        return;
    }

Method com.baidu.android.pushservice.f.o():


    private boolean o()
    {
        if (com.baidu.android.pushservice.f.g == null) {
            try {
                com.baidu.android.pushservice.c.c.a(this.j, 0);
                com.baidu.android.pushservice.f.g = new android.net.LocalServerSocket(com.baidu.android.pushservice.i.l.q(this.j));
                this.s();
            } catch (Exception) {
                String v1_1 = new StringBuilder();
                v1_1.append("--- Socket Adress (");
                v1_1.append(com.baidu.android.pushservice.i.l.q(this.j));
                v1_1.append(") in use --- @ ");
                v1_1.append(this.j.getPackageName());
                com.baidu.android.pushservice.f.a.a(com.baidu.android.pushservice.f.b, v1_1.toString(), this.j);
                com.baidu.android.pushservice.i.k.b(this.j);
                return 0;
            }
        }
        int v0_5 = this.j;
        com.baidu.android.pushservice.c.c.a(v0_5, v0_5.getPackageName());
        return 1;
    }

Method com.baidu.android.pushservice.f.s():


    private void s()
    {
        android.content.Context v0_1;
        int v2_1;
        String v1_0;
        if (com.baidu.android.pushservice.i.l.E(this.j)) {
            v0_1 = this.j;
            v1_0 = "com.baidu.push.cur_pkg";
            v2_1 = 0;
        } else {
            com.baidu.android.pushservice.i.a.a(this.j, "com.baidu.push.cur_prio", com.baidu.android.pushservice.a.a());
            v0_1 = this.j;
            v1_0 = "com.baidu.push.cur_pkg";
            v2_1 = v0_1.getPackageName();
        }
        com.baidu.android.pushservice.i.a.a(v0_1, v1_0, v2_1);
        return;
    }

Method com.baidu.android.pushservice.i.a.a():


    public static void a(android.content.Context p2, String p3, String p4)
    {
        if (p2 != null) {
            try {
            } catch (Exception) {
            }
            if (!android.provider.Settings$System.putString(p2.getContentResolver(), p3, p4)) {
                com.baidu.android.pushservice.i.a.a(p2, p3, p4);
            }
            return;
        } else {
            return;
        }
    }

Method com.baidu.android.pushservice.i.a.a():


    private static boolean a(android.content.Context p6, String p7, Object p8)
    {
        if (com.baidu.android.pushservice.i.l.u(p6, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            try {
                String v2_1 = com.baidu.android.pushservice.i.a.a(p6);
                java.io.FileOutputStream v4 = 0;
            } catch (java.io.Closeable[] v6_7) {
                throw v6_7;
            }
            if (v2_1.opt(p7) != null) {
                v2_1.remove(p7);
            }
            v2_1.put(p7, p8);
            java.io.FileOutputStream v7_2 = new java.io.File(android.os.Environment.getExternalStorageDirectory(), "baidu/pushservice/files");
            if (!v7_2.exists()) {
                v7_2.mkdirs();
            }
            java.io.File v8_4 = new java.io.File(v7_2, ".info");
            java.io.Closeable[] v6_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getEncrypted(p6, "", v2_1.toString());
            if (!android.text.TextUtils.isEmpty(v6_1)) {
                if (v8_4.exists()) {
                    v8_4.delete();
                }
                v8_4.createNewFile();
                java.io.FileOutputStream v7_7 = new java.io.FileOutputStream(v8_4);
                v7_7.write(v6_1.getBytes());
                java.io.Closeable[] v6_5 = new java.io.Closeable[1];
                v6_5[0] = v7_7;
                com.baidu.android.pushservice.e.b.a(v6_5);
                return 1;
            } else {
                java.io.Closeable[] v6_6 = new java.io.Closeable[1];
                v6_6[0] = 0;
                com.baidu.android.pushservice.e.b.a(v6_6);
                return 0;
            }
        }
        return 0;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/f;', 'k', '()V'), ('Lcom/baidu/android/pushservice/d;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/d;'), ('Lcom/baidu/android/pushservice/d;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/f;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/f;'), ('Lcom/baidu/android/pushservice/f;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'g', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'a', '(Landroid/content/Context; Z Z)V'), ('Lcom/baidu/android/pushservice/i/k;', 'd', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'u', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'b', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/Object;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.f.k():


    private void k()
    {
        try {
            com.baidu.android.pushservice.f.a = com.baidu.android.pushservice.d.a(this.j);
            return;
        } catch (Throwable v1_2) {
            throw v1_2;
        }
    }

Method com.baidu.android.pushservice.d.a():


    public static com.baidu.android.pushservice.d a(android.content.Context p1)
    {
        if (com.baidu.android.pushservice.d.n == null) {
            com.baidu.android.pushservice.d.n = new com.baidu.android.pushservice.d(p1);
        }
        return com.baidu.android.pushservice.d.n;
    }

Method com.baidu.android.pushservice.d.<init>():


    private d(android.content.Context p4)
    {
        this.d = 0;
        this.f = 0;
        this.g = new java.util.HashMap();
        this.j = 0;
        this.k = 0;
        this.a = new android.os.Handler();
        this.m = 1;
        this.p = com.baidu.android.pushservice.g.c();
        this.q = 0;
        this.s = new com.baidu.android.pushservice.d$2(this);
        this.t = new com.baidu.android.pushservice.d$3(this);
        this.u = 0;
        int v1_9 = new int[7];
        v1_9 = {180, 300, 360, 420, 540, 720, 900};
        this.v = v1_9;
        this.w = 0;
        this.x = 0;
        this.y = 3;
        this.z = 0;
        this.A = 30;
        this.l = p4;
        int v4_1 = this.g();
        if ((v4_1 >= 0) && (v4_1 < this.v.length)) {
            this.w = v4_1;
        }
        this.m();
        com.baidu.android.pushservice.f.a(this.l).a(this.v[this.w]);
        this.B = com.baidu.android.pushservice.i.g.d(this.l);
        this.q = com.baidu.android.pushservice.g.a(this.l);
        return;
    }

Method com.baidu.android.pushservice.f.a():


    public static declared_synchronized com.baidu.android.pushservice.f a(android.content.Context p2)
    {
        try {
            if (com.baidu.android.pushservice.f.c == null) {
                com.baidu.android.pushservice.f.c = new com.baidu.android.pushservice.f(p2);
            }
        } catch (com.baidu.android.pushservice.f v2_1) {
            throw v2_1;
        }
        return com.baidu.android.pushservice.f.c;
    }

Method com.baidu.android.pushservice.f.<init>():


    private f(android.content.Context p3)
    {
        this.h = Boolean.valueOf(0);
        this.p = new com.baidu.android.pushservice.f$2(this);
        this.q = new com.baidu.android.pushservice.f$3(this);
        this.r = new com.baidu.android.pushservice.f$4(this);
        this.k = new android.os.Handler(p3.getMainLooper());
        this.j = p3.getApplicationContext();
        this.e = com.baidu.android.pushservice.f.d;
        com.baidu.android.pushservice.i.l.g(this.j.getApplicationContext());
        return;
    }

Method com.baidu.android.pushservice.i.l.g():


    public static void g(android.content.Context p1)
    {
        com.baidu.android.pushservice.i.l.a(p1, 0, 0);
        return;
    }

Method com.baidu.android.pushservice.i.l.a():


    public static void a(android.content.Context p7, boolean p8, boolean p9)
    {
        short v1_3 = new StringBuilder();
        v1_3.append(p7.getPackageName());
        v1_3.append(": updateServiceInfo isForce = ");
        v1_3.append(p8);
        v1_3.append(",isSend = ");
        v1_3.append(p9);
        com.baidu.android.pushservice.f.a.a("Utility", v1_3.toString(), p7.getApplicationContext());
        short v1_2 = 0;
        String v0_2 = p7.getSharedPreferences("pst", 0);
        int v2_2 = com.baidu.android.pushservice.i.l.d(p7, p7.getPackageName());
        if ((v0_2.getInt("pr_app_v", 0) < v2_2) || (p8 != null)) {
            String v8_1 = com.baidu.android.pushservice.i.l.c(p7);
            if ((com.baidu.android.pushservice.b.e.k(p7)) && (!com.baidu.android.pushservice.b.e.c(p7))) {
                v1_2 = 1;
            }
            long v3_4 = 0;
            if ((v8_1 == null) && (v1_2 == 0)) {
                com.baidu.android.pushservice.c.c.a(p7, com.baidu.android.pushservice.i.l.f(p7));
            } else {
                com.baidu.android.pushservice.c.c.a(p7, 0);
            }
            if (com.baidu.android.pushservice.i.l.D(p7)) {
                String v8_2;
                android.content.SharedPreferences$Editor v5_3 = new StringBuilder();
                v5_3.append(p7.getPackageName());
                v5_3.append(".push_sync");
                android.content.SharedPreferences$Editor v5_6 = p7.getSharedPreferences(v5_3.toString(), 5).edit();
                if ((v8_1 == null) && (v1_2 == 0)) {
                    v8_2 = "priority2";
                    v3_4 = com.baidu.android.pushservice.i.l.f(p7);
                } else {
                    v8_2 = "priority2";
                }
                v5_6.putLong(v8_2, v3_4);
                v5_6.putInt("version2", com.baidu.android.pushservice.a.a());
                v5_6.commit();
            }
            com.baidu.android.pushservice.c.c.b(p7, ((long) com.baidu.android.pushservice.a.a()));
            String v8_5 = v0_2.edit();
            v8_5.putInt("pr_app_v", v2_2);
            v8_5.commit();
        }
        if (p9) {
            com.baidu.android.pushservice.i.k.d(p7);
        }
        return;
    }

Method com.baidu.android.pushservice.i.k.d():


    public static void d(android.content.Context p5)
    {
        com.baidu.android.pushservice.b.e.a(p5).e();
        if ((!com.baidu.android.pushservice.b.e.k(p5)) || (com.baidu.android.pushservice.b.e.c(p5))) {
            boolean v0_1 = com.baidu.android.pushservice.i.l.u(p5);
            int v1_0 = p5.getPackageName();
            com.baidu.android.pushservice.i.k.a = com.baidu.android.pushservice.i.l.v(p5);
            String v2_1 = 0;
            if ((com.baidu.android.pushservice.a.a(v1_0)) && (!v1_0.equals(com.baidu.android.pushservice.i.k.a))) {
                v0_1 = v1_0;
                v2_1 = 1;
            }
            com.baidu.android.pushservice.a.c(p5, v2_1);
            if ((android.text.TextUtils.isEmpty(v0_1)) || ((!v0_1.equals(com.baidu.android.pushservice.i.k.a)) || (v2_1 != null))) {
                com.baidu.android.pushservice.i.k.a(p5, v0_1);
            }
            if ((p5.getPackageName().startsWith("com.baidu.searchbox")) && ((!com.baidu.android.pushservice.job.a.b()) && ((!com.baidu.android.pushservice.i.l.l(p5)) && ((!com.baidu.android.pushservice.b.e.c(p5)) && ((android.os.Build$VERSION.SDK_INT > 22) || ((!com.baidu.android.pushservice.i.l.d()) && (!com.baidu.android.pushservice.i.l.e()))))))) {
                com.baidu.android.pushservice.job.a.a(p5);
                com.baidu.android.pushservice.job.a.a(1);
            }
            com.baidu.android.pushservice.h.d.a().a(new com.baidu.android.pushservice.i.k$1("checkAndStartPushService", 98, p5.getApplicationContext()));
            return;
        } else {
            return;
        }
    }

Method com.baidu.android.pushservice.i.l.u():


    public static String u(android.content.Context p4)
    {
        if (!com.baidu.android.pushservice.i.l.E(p4)) {
            java.util.Iterator v0_5 = com.baidu.android.pushservice.i.a.a(p4, "com.baidu.push.cur_pkg");
            String v1_6 = com.baidu.android.pushservice.i.l.s(p4);
            if ((android.text.TextUtils.isEmpty(v0_5)) || (!v1_6.contains(v0_5))) {
                if (!v1_6.isEmpty()) {
                    java.util.Iterator v0_2 = v1_6.iterator();
                    while (v0_2.hasNext()) {
                        String v1_2 = ((String) v0_2.next());
                        if ((!com.baidu.android.pushservice.i.l.z(p4, v1_2)) && ((com.baidu.android.pushservice.i.l.o(p4, v1_2)) && (com.baidu.android.pushservice.i.l.h(p4, v1_2)))) {
                            return v1_2;
                        }
                    }
                }
            } else {
                if ((com.baidu.android.pushservice.i.l.o(p4, v0_5)) && (com.baidu.android.pushservice.i.l.h(p4, v0_5))) {
                    return v0_5;
                }
            }
        } else {
            java.util.Iterator v0_4 = com.baidu.android.pushservice.i.l.s(p4);
            String v1_4 = com.baidu.android.pushservice.i.l.p(p4);
            if (!v0_4.isEmpty()) {
                String v1_5 = v1_4.iterator();
                while (v1_5.hasNext()) {
                    boolean v2_9 = ((android.content.pm.ResolveInfo) v1_5.next()).activityInfo.packageName;
                    if ((v0_4.contains(v2_9)) && ((com.baidu.android.pushservice.i.l.o(p4, v2_9)) && (com.baidu.android.pushservice.i.l.h(p4, v2_9)))) {
                        return v2_9;
                    }
                }
            }
        }
        return 0;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.b():


    private static Object b(android.content.Context p1, String p2)
    {
        if (!com.baidu.android.pushservice.i.l.u(p1, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            return 0;
        } else {
            try {
                return com.baidu.android.pushservice.i.a.a(p1).opt(p2);
            } catch (Throwable v1_2) {
                throw v1_2;
            }
        }
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/f;', 'o', '()Z'), ('Lcom/baidu/android/pushservice/f;', 's', '()V'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)V'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/Object;)Z'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.f.o():


    private boolean o()
    {
        if (com.baidu.android.pushservice.f.g == null) {
            try {
                com.baidu.android.pushservice.c.c.a(this.j, 0);
                com.baidu.android.pushservice.f.g = new android.net.LocalServerSocket(com.baidu.android.pushservice.i.l.q(this.j));
                this.s();
            } catch (Exception) {
                String v1_1 = new StringBuilder();
                v1_1.append("--- Socket Adress (");
                v1_1.append(com.baidu.android.pushservice.i.l.q(this.j));
                v1_1.append(") in use --- @ ");
                v1_1.append(this.j.getPackageName());
                com.baidu.android.pushservice.f.a.a(com.baidu.android.pushservice.f.b, v1_1.toString(), this.j);
                com.baidu.android.pushservice.i.k.b(this.j);
                return 0;
            }
        }
        int v0_5 = this.j;
        com.baidu.android.pushservice.c.c.a(v0_5, v0_5.getPackageName());
        return 1;
    }

Method com.baidu.android.pushservice.f.s():


    private void s()
    {
        int v2_1;
        String v1_0;
        android.content.Context v0_1;
        if (com.baidu.android.pushservice.i.l.E(this.j)) {
            v0_1 = this.j;
            v1_0 = "com.baidu.push.cur_pkg";
            v2_1 = 0;
        } else {
            com.baidu.android.pushservice.i.a.a(this.j, "com.baidu.push.cur_prio", com.baidu.android.pushservice.a.a());
            v0_1 = this.j;
            v1_0 = "com.baidu.push.cur_pkg";
            v2_1 = v0_1.getPackageName();
        }
        com.baidu.android.pushservice.i.a.a(v0_1, v1_0, v2_1);
        return;
    }

Method com.baidu.android.pushservice.i.a.a():


    public static void a(android.content.Context p2, String p3, String p4)
    {
        if (p2 != null) {
            try {
            } catch (Exception) {
            }
            if (!android.provider.Settings$System.putString(p2.getContentResolver(), p3, p4)) {
                com.baidu.android.pushservice.i.a.a(p2, p3, p4);
            }
            return;
        } else {
            return;
        }
    }

Method com.baidu.android.pushservice.i.a.a():


    private static boolean a(android.content.Context p6, String p7, Object p8)
    {
        if (com.baidu.android.pushservice.i.l.u(p6, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            try {
                String v2_1 = com.baidu.android.pushservice.i.a.a(p6);
                java.io.FileOutputStream v4 = 0;
            } catch (java.io.Closeable[] v6_7) {
                throw v6_7;
            }
            if (v2_1.opt(p7) != null) {
                v2_1.remove(p7);
            }
            v2_1.put(p7, p8);
            java.io.FileOutputStream v7_2 = new java.io.File(android.os.Environment.getExternalStorageDirectory(), "baidu/pushservice/files");
            if (!v7_2.exists()) {
                v7_2.mkdirs();
            }
            java.io.File v8_4 = new java.io.File(v7_2, ".info");
            java.io.Closeable[] v6_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getEncrypted(p6, "", v2_1.toString());
            if (!android.text.TextUtils.isEmpty(v6_1)) {
                if (v8_4.exists()) {
                    v8_4.delete();
                }
                v8_4.createNewFile();
                java.io.FileOutputStream v7_7 = new java.io.FileOutputStream(v8_4);
                v7_7.write(v6_1.getBytes());
                java.io.Closeable[] v6_5 = new java.io.Closeable[1];
                v6_5[0] = v7_7;
                com.baidu.android.pushservice.e.b.a(v6_5);
                return 1;
            } else {
                java.io.Closeable[] v6_6 = new java.io.Closeable[1];
                v6_6[0] = 0;
                com.baidu.android.pushservice.e.b.a(v6_6);
                return 0;
            }
        }
        return 0;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/f;', 'r', '()V'), ('Lcom/baidu/android/pushservice/f;', 'o', '()Z'), ('Lcom/baidu/android/pushservice/f;', 's', '()V'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)V'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/Object;)Z'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.f.r():


    private void r()
    {
        if ((com.baidu.android.pushservice.f.g != null) || (this.o())) {
            this.k.removeCallbacks(this.r);
            this.k.postDelayed(this.r, 1000);
        }
        return;
    }

Method com.baidu.android.pushservice.f.o():


    private boolean o()
    {
        if (com.baidu.android.pushservice.f.g == null) {
            try {
                com.baidu.android.pushservice.c.c.a(this.j, 0);
                com.baidu.android.pushservice.f.g = new android.net.LocalServerSocket(com.baidu.android.pushservice.i.l.q(this.j));
                this.s();
            } catch (Exception) {
                String v1_1 = new StringBuilder();
                v1_1.append("--- Socket Adress (");
                v1_1.append(com.baidu.android.pushservice.i.l.q(this.j));
                v1_1.append(") in use --- @ ");
                v1_1.append(this.j.getPackageName());
                com.baidu.android.pushservice.f.a.a(com.baidu.android.pushservice.f.b, v1_1.toString(), this.j);
                com.baidu.android.pushservice.i.k.b(this.j);
                return 0;
            }
        }
        int v0_5 = this.j;
        com.baidu.android.pushservice.c.c.a(v0_5, v0_5.getPackageName());
        return 1;
    }

Method com.baidu.android.pushservice.f.s():


    private void s()
    {
        int v2_1;
        android.content.Context v0_1;
        String v1_0;
        if (com.baidu.android.pushservice.i.l.E(this.j)) {
            v0_1 = this.j;
            v1_0 = "com.baidu.push.cur_pkg";
            v2_1 = 0;
        } else {
            com.baidu.android.pushservice.i.a.a(this.j, "com.baidu.push.cur_prio", com.baidu.android.pushservice.a.a());
            v0_1 = this.j;
            v1_0 = "com.baidu.push.cur_pkg";
            v2_1 = v0_1.getPackageName();
        }
        com.baidu.android.pushservice.i.a.a(v0_1, v1_0, v2_1);
        return;
    }

Method com.baidu.android.pushservice.i.a.a():


    public static void a(android.content.Context p2, String p3, String p4)
    {
        if (p2 != null) {
            try {
            } catch (Exception) {
            }
            if (!android.provider.Settings$System.putString(p2.getContentResolver(), p3, p4)) {
                com.baidu.android.pushservice.i.a.a(p2, p3, p4);
            }
            return;
        } else {
            return;
        }
    }

Method com.baidu.android.pushservice.i.a.a():


    private static boolean a(android.content.Context p6, String p7, Object p8)
    {
        if (com.baidu.android.pushservice.i.l.u(p6, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            try {
                String v2_1 = com.baidu.android.pushservice.i.a.a(p6);
                java.io.FileOutputStream v4 = 0;
            } catch (java.io.Closeable[] v6_7) {
                throw v6_7;
            }
            if (v2_1.opt(p7) != null) {
                v2_1.remove(p7);
            }
            v2_1.put(p7, p8);
            java.io.FileOutputStream v7_2 = new java.io.File(android.os.Environment.getExternalStorageDirectory(), "baidu/pushservice/files");
            if (!v7_2.exists()) {
                v7_2.mkdirs();
            }
            java.io.File v8_4 = new java.io.File(v7_2, ".info");
            java.io.Closeable[] v6_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getEncrypted(p6, "", v2_1.toString());
            if (!android.text.TextUtils.isEmpty(v6_1)) {
                if (v8_4.exists()) {
                    v8_4.delete();
                }
                v8_4.createNewFile();
                java.io.FileOutputStream v7_7 = new java.io.FileOutputStream(v8_4);
                v7_7.write(v6_1.getBytes());
                java.io.Closeable[] v6_5 = new java.io.Closeable[1];
                v6_5[0] = v7_7;
                com.baidu.android.pushservice.e.b.a(v6_5);
                return 1;
            } else {
                java.io.Closeable[] v6_6 = new java.io.Closeable[1];
                v6_6[0] = 0;
                com.baidu.android.pushservice.e.b.a(v6_6);
                return 0;
            }
        }
        return 0;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/f;', 's', '()V'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)V'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/Object;)Z'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.f.s():


    private void s()
    {
        android.content.Context v0_1;
        int v2_1;
        String v1_0;
        if (com.baidu.android.pushservice.i.l.E(this.j)) {
            v0_1 = this.j;
            v1_0 = "com.baidu.push.cur_pkg";
            v2_1 = 0;
        } else {
            com.baidu.android.pushservice.i.a.a(this.j, "com.baidu.push.cur_prio", com.baidu.android.pushservice.a.a());
            v0_1 = this.j;
            v1_0 = "com.baidu.push.cur_pkg";
            v2_1 = v0_1.getPackageName();
        }
        com.baidu.android.pushservice.i.a.a(v0_1, v1_0, v2_1);
        return;
    }

Method com.baidu.android.pushservice.i.a.a():


    public static void a(android.content.Context p2, String p3, String p4)
    {
        if (p2 != null) {
            try {
            } catch (Exception) {
            }
            if (!android.provider.Settings$System.putString(p2.getContentResolver(), p3, p4)) {
                com.baidu.android.pushservice.i.a.a(p2, p3, p4);
            }
            return;
        } else {
            return;
        }
    }

Method com.baidu.android.pushservice.i.a.a():


    private static boolean a(android.content.Context p6, String p7, Object p8)
    {
        if (com.baidu.android.pushservice.i.l.u(p6, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            try {
                String v2_1 = com.baidu.android.pushservice.i.a.a(p6);
                java.io.FileOutputStream v4 = 0;
            } catch (java.io.Closeable[] v6_7) {
                throw v6_7;
            }
            if (v2_1.opt(p7) != null) {
                v2_1.remove(p7);
            }
            v2_1.put(p7, p8);
            java.io.FileOutputStream v7_2 = new java.io.File(android.os.Environment.getExternalStorageDirectory(), "baidu/pushservice/files");
            if (!v7_2.exists()) {
                v7_2.mkdirs();
            }
            java.io.File v8_4 = new java.io.File(v7_2, ".info");
            java.io.Closeable[] v6_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getEncrypted(p6, "", v2_1.toString());
            if (!android.text.TextUtils.isEmpty(v6_1)) {
                if (v8_4.exists()) {
                    v8_4.delete();
                }
                v8_4.createNewFile();
                java.io.FileOutputStream v7_7 = new java.io.FileOutputStream(v8_4);
                v7_7.write(v6_1.getBytes());
                java.io.Closeable[] v6_5 = new java.io.Closeable[1];
                v6_5[0] = v7_7;
                com.baidu.android.pushservice.e.b.a(v6_5);
                return 1;
            } else {
                java.io.Closeable[] v6_6 = new java.io.Closeable[1];
                v6_6[0] = 0;
                com.baidu.android.pushservice.e.b.a(v6_6);
                return 0;
            }
        }
        return 0;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/f;', 'a', '()Z'), ('Lcom/baidu/android/pushservice/f;', 'o', '()Z'), ('Lcom/baidu/android/pushservice/f;', 's', '()V'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)V'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/Object;)Z'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.f.a():


    public boolean a()
    {
        Object v1_4 = new StringBuilder();
        v1_4.append("Create PushSDK from : ");
        v1_4.append(this.j.getPackageName());
        com.baidu.android.pushservice.f.a.a(com.baidu.android.pushservice.f.b, v1_4.toString(), this.j);
        this.m();
        this.h = Boolean.valueOf(1);
        if ((!com.baidu.android.pushservice.i.l.c(this.j.getApplicationContext())) && (!this.b(this.j))) {
            try {
                if (com.baidu.android.pushservice.jni.PushSocket.a) {
                    if ((this.o()) || (this.j.getPackageName().equals(com.baidu.android.pushservice.i.l.v(this.j)))) {
                        this.l = com.baidu.android.pushservice.i.l.F(this.j);
                        if (this.l) {
                            this.h();
                        }
                        com.baidu.android.pushservice.g.b(this.j);
                        Thread.setDefaultUncaughtExceptionHandler(new com.baidu.android.pushservice.b(this.j.getApplicationContext()));
                        this.k();
                        com.baidu.android.pushservice.h.a(this.j);
                        if (com.baidu.android.pushservice.f.g != null) {
                            this.k.postDelayed(this.p, 500);
                            this.n();
                        }
                        return 1;
                    } else {
                        return 0;
                    }
                } else {
                    return 0;
                }
            } catch (Throwable v0_2) {
                throw v0_2;
            }
        } else {
            com.baidu.android.pushservice.f.a.a(com.baidu.android.pushservice.f.b, "onCreate shouldStopSelf", this.j);
            return 0;
        }
    }

Method com.baidu.android.pushservice.f.o():


    private boolean o()
    {
        if (com.baidu.android.pushservice.f.g == null) {
            try {
                com.baidu.android.pushservice.c.c.a(this.j, 0);
                com.baidu.android.pushservice.f.g = new android.net.LocalServerSocket(com.baidu.android.pushservice.i.l.q(this.j));
                this.s();
            } catch (Exception) {
                String v1_1 = new StringBuilder();
                v1_1.append("--- Socket Adress (");
                v1_1.append(com.baidu.android.pushservice.i.l.q(this.j));
                v1_1.append(") in use --- @ ");
                v1_1.append(this.j.getPackageName());
                com.baidu.android.pushservice.f.a.a(com.baidu.android.pushservice.f.b, v1_1.toString(), this.j);
                com.baidu.android.pushservice.i.k.b(this.j);
                return 0;
            }
        }
        int v0_5 = this.j;
        com.baidu.android.pushservice.c.c.a(v0_5, v0_5.getPackageName());
        return 1;
    }

Method com.baidu.android.pushservice.f.s():


    private void s()
    {
        int v2_1;
        String v1_0;
        android.content.Context v0_1;
        if (com.baidu.android.pushservice.i.l.E(this.j)) {
            v0_1 = this.j;
            v1_0 = "com.baidu.push.cur_pkg";
            v2_1 = 0;
        } else {
            com.baidu.android.pushservice.i.a.a(this.j, "com.baidu.push.cur_prio", com.baidu.android.pushservice.a.a());
            v0_1 = this.j;
            v1_0 = "com.baidu.push.cur_pkg";
            v2_1 = v0_1.getPackageName();
        }
        com.baidu.android.pushservice.i.a.a(v0_1, v1_0, v2_1);
        return;
    }

Method com.baidu.android.pushservice.i.a.a():


    public static void a(android.content.Context p2, String p3, String p4)
    {
        if (p2 != null) {
            try {
            } catch (Exception) {
            }
            if (!android.provider.Settings$System.putString(p2.getContentResolver(), p3, p4)) {
                com.baidu.android.pushservice.i.a.a(p2, p3, p4);
            }
            return;
        } else {
            return;
        }
    }

Method com.baidu.android.pushservice.i.a.a():


    private static boolean a(android.content.Context p6, String p7, Object p8)
    {
        if (com.baidu.android.pushservice.i.l.u(p6, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            try {
                String v2_1 = com.baidu.android.pushservice.i.a.a(p6);
                java.io.FileOutputStream v4 = 0;
            } catch (java.io.Closeable[] v6_7) {
                throw v6_7;
            }
            if (v2_1.opt(p7) != null) {
                v2_1.remove(p7);
            }
            v2_1.put(p7, p8);
            java.io.FileOutputStream v7_2 = new java.io.File(android.os.Environment.getExternalStorageDirectory(), "baidu/pushservice/files");
            if (!v7_2.exists()) {
                v7_2.mkdirs();
            }
            java.io.File v8_4 = new java.io.File(v7_2, ".info");
            java.io.Closeable[] v6_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getEncrypted(p6, "", v2_1.toString());
            if (!android.text.TextUtils.isEmpty(v6_1)) {
                if (v8_4.exists()) {
                    v8_4.delete();
                }
                v8_4.createNewFile();
                java.io.FileOutputStream v7_7 = new java.io.FileOutputStream(v8_4);
                v7_7.write(v6_1.getBytes());
                java.io.Closeable[] v6_5 = new java.io.Closeable[1];
                v6_5[0] = v7_7;
                com.baidu.android.pushservice.e.b.a(v6_5);
                return 1;
            } else {
                java.io.Closeable[] v6_6 = new java.io.Closeable[1];
                v6_6[0] = 0;
                com.baidu.android.pushservice.e.b.a(v6_6);
                return 0;
            }
        }
        return 0;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/i/l;', 'u', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'b', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/Object;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.i.l.u():


    public static String u(android.content.Context p4)
    {
        if (!com.baidu.android.pushservice.i.l.E(p4)) {
            java.util.Iterator v0_5 = com.baidu.android.pushservice.i.a.a(p4, "com.baidu.push.cur_pkg");
            String v1_6 = com.baidu.android.pushservice.i.l.s(p4);
            if ((android.text.TextUtils.isEmpty(v0_5)) || (!v1_6.contains(v0_5))) {
                if (!v1_6.isEmpty()) {
                    java.util.Iterator v0_2 = v1_6.iterator();
                    while (v0_2.hasNext()) {
                        String v1_2 = ((String) v0_2.next());
                        if ((!com.baidu.android.pushservice.i.l.z(p4, v1_2)) && ((com.baidu.android.pushservice.i.l.o(p4, v1_2)) && (com.baidu.android.pushservice.i.l.h(p4, v1_2)))) {
                            return v1_2;
                        }
                    }
                }
            } else {
                if ((com.baidu.android.pushservice.i.l.o(p4, v0_5)) && (com.baidu.android.pushservice.i.l.h(p4, v0_5))) {
                    return v0_5;
                }
            }
        } else {
            java.util.Iterator v0_4 = com.baidu.android.pushservice.i.l.s(p4);
            String v1_4 = com.baidu.android.pushservice.i.l.p(p4);
            if (!v0_4.isEmpty()) {
                String v1_5 = v1_4.iterator();
                while (v1_5.hasNext()) {
                    boolean v2_9 = ((android.content.pm.ResolveInfo) v1_5.next()).activityInfo.packageName;
                    if ((v0_4.contains(v2_9)) && ((com.baidu.android.pushservice.i.l.o(p4, v2_9)) && (com.baidu.android.pushservice.i.l.h(p4, v2_9)))) {
                        return v2_9;
                    }
                }
            }
        }
        return 0;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.b():


    private static Object b(android.content.Context p1, String p2)
    {
        if (!com.baidu.android.pushservice.i.l.u(p1, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            return 0;
        } else {
            try {
                return com.baidu.android.pushservice.i.a.a(p1).opt(p2);
            } catch (Throwable v1_2) {
                throw v1_2;
            }
        }
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/g/m;', 'a', '()Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/PushSettings;', 'a', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'b', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/Object;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.g.m.a():


    public String a()
    {
        String v0_1 = new org.json.JSONObject();
        org.json.JSONObject v1_1 = new org.json.JSONObject();
        try {
            v0_1.put("user_device", com.baidu.android.pushservice.g.a.b.e(this.b));
            v0_1.put("user_network", com.baidu.android.pushservice.g.a.b.d(this.b));
            v1_1.put("channel_id", com.baidu.android.pushservice.PushSettings.a(this.b));
            v1_1.put("push_running_version", com.baidu.android.pushservice.a.a());
            v0_1.put("push_channel", v1_1);
        } catch (org.json.JSONException) {
        }
        return v0_1.toString();
    }

Method com.baidu.android.pushservice.PushSettings.a():


    public static String a(android.content.Context p3)
    {
        String v0_2 = com.baidu.android.pushservice.i.a.a(p3, "com.baidu.pushservice.channel_id");
        if (android.text.TextUtils.isEmpty(v0_2)) {
            v0_2 = com.baidu.android.pushservice.i.i.a(p3, "com.baidu.pushservice.channel_id");
            if (android.text.TextUtils.isEmpty(v0_2)) {
                v0_2 = com.baidu.android.pushservice.c.c.a(p3, 0);
                if (android.text.TextUtils.isEmpty(v0_2)) {
                    int v1_3 = com.baidu.android.pushservice.i.l.n(p3).iterator();
                    while (v1_3.hasNext()) {
                        v0_2 = com.baidu.android.pushservice.c.d.a(p3, ((String) v1_3.next()));
                        if (!android.text.TextUtils.isEmpty(v0_2)) {
                            com.baidu.android.pushservice.PushSettings.a(p3, v0_2, 0);
                            break;
                        }
                    }
                }
            }
        }
        return v0_2;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.b():


    private static Object b(android.content.Context p1, String p2)
    {
        if (!com.baidu.android.pushservice.i.l.u(p1, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            return 0;
        } else {
            try {
                return com.baidu.android.pushservice.i.a.a(p1).opt(p2);
            } catch (Throwable v1_2) {
                throw v1_2;
            }
        }
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/g/m;', 'a', '(J J I)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/g/m;', 'a', '()Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/PushSettings;', 'a', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'b', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/Object;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.g.m.a():


    public String a(long p11, long p13, int p15)
    {
        org.json.JSONObject v0_1 = new org.json.JSONObject();
        v0_1.put("version", "1.0");
        String v1_1 = this.a();
    }

Method com.baidu.android.pushservice.g.m.a():


    public String a()
    {
        String v0_1 = new org.json.JSONObject();
        org.json.JSONObject v1_1 = new org.json.JSONObject();
        try {
            v0_1.put("user_device", com.baidu.android.pushservice.g.a.b.e(this.b));
            v0_1.put("user_network", com.baidu.android.pushservice.g.a.b.d(this.b));
            v1_1.put("channel_id", com.baidu.android.pushservice.PushSettings.a(this.b));
            v1_1.put("push_running_version", com.baidu.android.pushservice.a.a());
            v0_1.put("push_channel", v1_1);
        } catch (org.json.JSONException) {
        }
        return v0_1.toString();
    }

Method com.baidu.android.pushservice.PushSettings.a():


    public static String a(android.content.Context p3)
    {
        String v0_2 = com.baidu.android.pushservice.i.a.a(p3, "com.baidu.pushservice.channel_id");
        if (android.text.TextUtils.isEmpty(v0_2)) {
            v0_2 = com.baidu.android.pushservice.i.i.a(p3, "com.baidu.pushservice.channel_id");
            if (android.text.TextUtils.isEmpty(v0_2)) {
                v0_2 = com.baidu.android.pushservice.c.c.a(p3, 0);
                if (android.text.TextUtils.isEmpty(v0_2)) {
                    int v1_3 = com.baidu.android.pushservice.i.l.n(p3).iterator();
                    while (v1_3.hasNext()) {
                        v0_2 = com.baidu.android.pushservice.c.d.a(p3, ((String) v1_3.next()));
                        if (!android.text.TextUtils.isEmpty(v0_2)) {
                            com.baidu.android.pushservice.PushSettings.a(p3, v0_2, 0);
                            break;
                        }
                    }
                }
            }
        }
        return v0_2;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.b():


    private static Object b(android.content.Context p1, String p2)
    {
        if (!com.baidu.android.pushservice.i.l.u(p1, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            return 0;
        } else {
            try {
                return com.baidu.android.pushservice.i.a.a(p1).opt(p2);
            } catch (Throwable v1_2) {
                throw v1_2;
            }
        }
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/g/m;', 'b', '(J J I)Z'), ('Lcom/baidu/android/pushservice/g/m;', 'a', '(J J I)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/g/m;', 'a', '()Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/PushSettings;', 'a', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'b', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/Object;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.g.m.b():


    public boolean b(long p1, long p3, int p5)
    {
        boolean v1_1 = this.a(p1, p3, p5);
        try {
            if (android.text.TextUtils.isEmpty(v1_1)) {
                return 0;
            } else {
                return this.a("https://statsonline.pushct.baidu.com/pushlog_special", v1_1, "1.0");
            }
        } catch (OutOfMemoryError) {
            return 0;
        }
    }

Method com.baidu.android.pushservice.g.m.a():


    public String a(long p11, long p13, int p15)
    {
        org.json.JSONObject v0_1 = new org.json.JSONObject();
        v0_1.put("version", "1.0");
        String v1_1 = this.a();
    }

Method com.baidu.android.pushservice.g.m.a():


    public String a()
    {
        String v0_1 = new org.json.JSONObject();
        org.json.JSONObject v1_1 = new org.json.JSONObject();
        try {
            v0_1.put("user_device", com.baidu.android.pushservice.g.a.b.e(this.b));
            v0_1.put("user_network", com.baidu.android.pushservice.g.a.b.d(this.b));
            v1_1.put("channel_id", com.baidu.android.pushservice.PushSettings.a(this.b));
            v1_1.put("push_running_version", com.baidu.android.pushservice.a.a());
            v0_1.put("push_channel", v1_1);
        } catch (org.json.JSONException) {
        }
        return v0_1.toString();
    }

Method com.baidu.android.pushservice.PushSettings.a():


    public static String a(android.content.Context p3)
    {
        String v0_2 = com.baidu.android.pushservice.i.a.a(p3, "com.baidu.pushservice.channel_id");
        if (android.text.TextUtils.isEmpty(v0_2)) {
            v0_2 = com.baidu.android.pushservice.i.i.a(p3, "com.baidu.pushservice.channel_id");
            if (android.text.TextUtils.isEmpty(v0_2)) {
                v0_2 = com.baidu.android.pushservice.c.c.a(p3, 0);
                if (android.text.TextUtils.isEmpty(v0_2)) {
                    int v1_3 = com.baidu.android.pushservice.i.l.n(p3).iterator();
                    while (v1_3.hasNext()) {
                        v0_2 = com.baidu.android.pushservice.c.d.a(p3, ((String) v1_3.next()));
                        if (!android.text.TextUtils.isEmpty(v0_2)) {
                            com.baidu.android.pushservice.PushSettings.a(p3, v0_2, 0);
                            break;
                        }
                    }
                }
            }
        }
        return v0_2;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.b():


    private static Object b(android.content.Context p1, String p2)
    {
        if (!com.baidu.android.pushservice.i.l.u(p1, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            return 0;
        } else {
            try {
                return com.baidu.android.pushservice.i.a.a(p1).opt(p2);
            } catch (Throwable v1_2) {
                throw v1_2;
            }
        }
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/g/m;', 'c', '()V'), ('Lcom/baidu/android/pushservice/g/m;', 'b', '(J J I)Z'), ('Lcom/baidu/android/pushservice/g/m;', 'a', '(J J I)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/g/m;', 'a', '()Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/PushSettings;', 'a', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'b', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/Object;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.g.m.c():

Couldn't retrieve source code

Method com.baidu.android.pushservice.g.m.b():


    public boolean b(long p1, long p3, int p5)
    {
        boolean v1_1 = this.a(p1, p3, p5);
        try {
            if (android.text.TextUtils.isEmpty(v1_1)) {
                return 0;
            } else {
                return this.a("https://statsonline.pushct.baidu.com/pushlog_special", v1_1, "1.0");
            }
        } catch (OutOfMemoryError) {
            return 0;
        }
    }

Method com.baidu.android.pushservice.g.m.a():


    public String a(long p11, long p13, int p15)
    {
        org.json.JSONObject v0_1 = new org.json.JSONObject();
        v0_1.put("version", "1.0");
        String v1_1 = this.a();
    }

Method com.baidu.android.pushservice.g.m.a():


    public String a()
    {
        String v0_1 = new org.json.JSONObject();
        org.json.JSONObject v1_1 = new org.json.JSONObject();
        try {
            v0_1.put("user_device", com.baidu.android.pushservice.g.a.b.e(this.b));
            v0_1.put("user_network", com.baidu.android.pushservice.g.a.b.d(this.b));
            v1_1.put("channel_id", com.baidu.android.pushservice.PushSettings.a(this.b));
            v1_1.put("push_running_version", com.baidu.android.pushservice.a.a());
            v0_1.put("push_channel", v1_1);
        } catch (org.json.JSONException) {
        }
        return v0_1.toString();
    }

Method com.baidu.android.pushservice.PushSettings.a():


    public static String a(android.content.Context p3)
    {
        String v0_2 = com.baidu.android.pushservice.i.a.a(p3, "com.baidu.pushservice.channel_id");
        if (android.text.TextUtils.isEmpty(v0_2)) {
            v0_2 = com.baidu.android.pushservice.i.i.a(p3, "com.baidu.pushservice.channel_id");
            if (android.text.TextUtils.isEmpty(v0_2)) {
                v0_2 = com.baidu.android.pushservice.c.c.a(p3, 0);
                if (android.text.TextUtils.isEmpty(v0_2)) {
                    int v1_3 = com.baidu.android.pushservice.i.l.n(p3).iterator();
                    while (v1_3.hasNext()) {
                        v0_2 = com.baidu.android.pushservice.c.d.a(p3, ((String) v1_3.next()));
                        if (!android.text.TextUtils.isEmpty(v0_2)) {
                            com.baidu.android.pushservice.PushSettings.a(p3, v0_2, 0);
                            break;
                        }
                    }
                }
            }
        }
        return v0_2;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.b():


    private static Object b(android.content.Context p1, String p2)
    {
        if (!com.baidu.android.pushservice.i.l.u(p1, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            return 0;
        } else {
            try {
                return com.baidu.android.pushservice.i.a.a(p1).opt(p2);
            } catch (Throwable v1_2) {
                throw v1_2;
            }
        }
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/g;', 'b', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/PushSettings;', 'a', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'b', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/Object;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.g.b():

Couldn't retrieve source code

Method com.baidu.android.pushservice.PushSettings.a():


    public static String a(android.content.Context p3)
    {
        String v0_2 = com.baidu.android.pushservice.i.a.a(p3, "com.baidu.pushservice.channel_id");
        if (android.text.TextUtils.isEmpty(v0_2)) {
            v0_2 = com.baidu.android.pushservice.i.i.a(p3, "com.baidu.pushservice.channel_id");
            if (android.text.TextUtils.isEmpty(v0_2)) {
                v0_2 = com.baidu.android.pushservice.c.c.a(p3, 0);
                if (android.text.TextUtils.isEmpty(v0_2)) {
                    int v1_3 = com.baidu.android.pushservice.i.l.n(p3).iterator();
                    while (v1_3.hasNext()) {
                        v0_2 = com.baidu.android.pushservice.c.d.a(p3, ((String) v1_3.next()));
                        if (!android.text.TextUtils.isEmpty(v0_2)) {
                            com.baidu.android.pushservice.PushSettings.a(p3, v0_2, 0);
                            break;
                        }
                    }
                }
            }
        }
        return v0_2;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.b():


    private static Object b(android.content.Context p1, String p2)
    {
        if (!com.baidu.android.pushservice.i.l.u(p1, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            return 0;
        } else {
            try {
                return com.baidu.android.pushservice.i.a.a(p1).opt(p2);
            } catch (Throwable v1_2) {
                throw v1_2;
            }
        }
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/h;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/i;'), ('Lcom/baidu/android/pushservice/i;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/PushSettings;', 'a', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'b', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/Object;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.h.<init>():


    private h(android.content.Context p1)
    {
        this.a = p1;
        com.baidu.android.pushservice.a.b.a(p1);
        com.baidu.android.pushservice.i.a(p1);
        com.baidu.android.pushservice.h.d.a();
        return;
    }

Method com.baidu.android.pushservice.i.a():


    public static declared_synchronized com.baidu.android.pushservice.i a(android.content.Context p2)
    {
        try {
            if (com.baidu.android.pushservice.i.a == null) {
                com.baidu.android.pushservice.i.a = new com.baidu.android.pushservice.i(p2);
            }
        } catch (com.baidu.android.pushservice.i v2_1) {
            throw v2_1;
        }
        return com.baidu.android.pushservice.i.a;
    }

Method com.baidu.android.pushservice.i.<init>():


    private i(android.content.Context p2)
    {
        this.d = com.baidu.android.pushservice.i.i.a(p2, "com.baidu.pushservice.channel_token");
        this.b = com.baidu.android.pushservice.PushSettings.a(p2);
        if (com.baidu.android.pushservice.b.e.b(p2)) {
            this.e = com.baidu.android.pushservice.i.i.a(p2, "com.baidu.pushservice.channel_token_new");
            this.c = com.baidu.android.pushservice.PushSettings.b(p2);
        }
        this.g = 0;
        this.h = p2;
        return;
    }

Method com.baidu.android.pushservice.PushSettings.a():


    public static String a(android.content.Context p3)
    {
        String v0_2 = com.baidu.android.pushservice.i.a.a(p3, "com.baidu.pushservice.channel_id");
        if (android.text.TextUtils.isEmpty(v0_2)) {
            v0_2 = com.baidu.android.pushservice.i.i.a(p3, "com.baidu.pushservice.channel_id");
            if (android.text.TextUtils.isEmpty(v0_2)) {
                v0_2 = com.baidu.android.pushservice.c.c.a(p3, 0);
                if (android.text.TextUtils.isEmpty(v0_2)) {
                    int v1_3 = com.baidu.android.pushservice.i.l.n(p3).iterator();
                    while (v1_3.hasNext()) {
                        v0_2 = com.baidu.android.pushservice.c.d.a(p3, ((String) v1_3.next()));
                        if (!android.text.TextUtils.isEmpty(v0_2)) {
                            com.baidu.android.pushservice.PushSettings.a(p3, v0_2, 0);
                            break;
                        }
                    }
                }
            }
        }
        return v0_2;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.b():


    private static Object b(android.content.Context p1, String p2)
    {
        if (!com.baidu.android.pushservice.i.l.u(p1, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            return 0;
        } else {
            try {
                return com.baidu.android.pushservice.i.a.a(p1).opt(p2);
            } catch (Throwable v1_2) {
                throw v1_2;
            }
        }
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/h;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/h;'), ('Lcom/baidu/android/pushservice/h;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/i;'), ('Lcom/baidu/android/pushservice/i;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/PushSettings;', 'a', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'b', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/Object;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.h.a():


    public static declared_synchronized com.baidu.android.pushservice.h a(android.content.Context p2)
    {
        try {
            if (com.baidu.android.pushservice.h.c == null) {
                com.baidu.android.pushservice.h.c = new com.baidu.android.pushservice.h(p2);
            }
        } catch (com.baidu.android.pushservice.h v2_1) {
            throw v2_1;
        }
        return com.baidu.android.pushservice.h.c;
    }

Method com.baidu.android.pushservice.h.<init>():


    private h(android.content.Context p1)
    {
        this.a = p1;
        com.baidu.android.pushservice.a.b.a(p1);
        com.baidu.android.pushservice.i.a(p1);
        com.baidu.android.pushservice.h.d.a();
        return;
    }

Method com.baidu.android.pushservice.i.a():


    public static declared_synchronized com.baidu.android.pushservice.i a(android.content.Context p2)
    {
        try {
            if (com.baidu.android.pushservice.i.a == null) {
                com.baidu.android.pushservice.i.a = new com.baidu.android.pushservice.i(p2);
            }
        } catch (com.baidu.android.pushservice.i v2_1) {
            throw v2_1;
        }
        return com.baidu.android.pushservice.i.a;
    }

Method com.baidu.android.pushservice.i.<init>():


    private i(android.content.Context p2)
    {
        this.d = com.baidu.android.pushservice.i.i.a(p2, "com.baidu.pushservice.channel_token");
        this.b = com.baidu.android.pushservice.PushSettings.a(p2);
        if (com.baidu.android.pushservice.b.e.b(p2)) {
            this.e = com.baidu.android.pushservice.i.i.a(p2, "com.baidu.pushservice.channel_token_new");
            this.c = com.baidu.android.pushservice.PushSettings.b(p2);
        }
        this.g = 0;
        this.h = p2;
        return;
    }

Method com.baidu.android.pushservice.PushSettings.a():


    public static String a(android.content.Context p3)
    {
        String v0_2 = com.baidu.android.pushservice.i.a.a(p3, "com.baidu.pushservice.channel_id");
        if (android.text.TextUtils.isEmpty(v0_2)) {
            v0_2 = com.baidu.android.pushservice.i.i.a(p3, "com.baidu.pushservice.channel_id");
            if (android.text.TextUtils.isEmpty(v0_2)) {
                v0_2 = com.baidu.android.pushservice.c.c.a(p3, 0);
                if (android.text.TextUtils.isEmpty(v0_2)) {
                    int v1_3 = com.baidu.android.pushservice.i.l.n(p3).iterator();
                    while (v1_3.hasNext()) {
                        v0_2 = com.baidu.android.pushservice.c.d.a(p3, ((String) v1_3.next()));
                        if (!android.text.TextUtils.isEmpty(v0_2)) {
                            com.baidu.android.pushservice.PushSettings.a(p3, v0_2, 0);
                            break;
                        }
                    }
                }
            }
        }
        return v0_2;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.b():


    private static Object b(android.content.Context p1, String p2)
    {
        if (!com.baidu.android.pushservice.i.l.u(p1, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            return 0;
        } else {
            try {
                return com.baidu.android.pushservice.i.a.a(p1).opt(p2);
            } catch (Throwable v1_2) {
                throw v1_2;
            }
        }
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/h;', 'c', '(Landroid/content/Intent;)V'), ('Lcom/baidu/android/pushservice/a/h;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/a/h;'), ('Lcom/baidu/android/pushservice/a/h;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/a/e;', '<init>', '(Landroid/content/Context; Lcom/baidu/android/pushservice/a/c;)V'), ('Lcom/baidu/android/pushservice/a/e;', 'a', '()V'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'b', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/Object;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.h.c():


    private void c(android.content.Intent p7)
    {
        com.baidu.android.pushservice.d.l v0_1 = new com.baidu.android.pushservice.d.l(p7);
        int v1_1 = p7.getIntExtra("bind_status", 0);
        int v3_1 = p7.getIntExtra("push_sdk_version", 0);
        com.baidu.android.pushservice.d.f v7_1 = p7.getIntExtra("sdk_client_version", 0);
        android.content.Context v2_1 = new com.baidu.android.pushservice.a.g(v0_1.i, v0_1.e);
        v2_1.a(v7_1);
        com.baidu.android.pushservice.a.h.a(this.a).a(v2_1, 1);
        com.baidu.android.pushservice.f.a.a("RegistrationService", "<<< METHOD_SDK_BIND ", this.a);
        this.a(new com.baidu.android.pushservice.d.f(v0_1, this.a, v1_1, v3_1));
        return;
    }

Method com.baidu.android.pushservice.a.h.a():


    public static declared_synchronized com.baidu.android.pushservice.a.h a(android.content.Context p2)
    {
        try {
            if (com.baidu.android.pushservice.a.h.d != null) {
                com.baidu.android.pushservice.a.h.d.b = p2.getApplicationContext();
            } else {
                com.baidu.android.pushservice.a.h.d = new com.baidu.android.pushservice.a.h(p2);
            }
        } catch (com.baidu.android.pushservice.a.h v2_1) {
            throw v2_1;
        }
        return com.baidu.android.pushservice.a.h.d;
    }

Method com.baidu.android.pushservice.a.h.<init>():


    private h(android.content.Context p2)
    {
        super(p2, com.baidu.android.pushservice.a.c.b);
        return;
    }

Method com.baidu.android.pushservice.a.e.<init>():


    public e(android.content.Context p2, com.baidu.android.pushservice.a.c p3)
    {
        this.a = new java.util.ArrayList();
        this.b = p2.getApplicationContext();
        this.c = p3;
        this.a();
        return;
    }

Method com.baidu.android.pushservice.a.e.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.b():


    private static Object b(android.content.Context p1, String p2)
    {
        if (!com.baidu.android.pushservice.i.l.u(p1, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            return 0;
        } else {
            try {
                return com.baidu.android.pushservice.i.a.a(p1).opt(p2);
            } catch (Throwable v1_2) {
                throw v1_2;
            }
        }
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/h;', 'a', '(Landroid/content/Intent;)Z'), ('Lcom/baidu/android/pushservice/PushSettings;', 'enableDebugMode', '(Landroid/content/Context; Z)V'), ('Lcom/baidu/android/pushservice/PushSettings;', 'a', '(Landroid/content/Context; Z)V'), ('Lcom/baidu/android/pushservice/i/k;', 'a', '(Landroid/content/Context; Landroid/content/Intent;)V'), ('Lcom/baidu/android/pushservice/h;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/h;'), ('Lcom/baidu/android/pushservice/h;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/i;'), ('Lcom/baidu/android/pushservice/i;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/PushSettings;', 'a', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'b', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/Object;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.h.a():


    public boolean a(android.content.Intent p11)
    {
        int v0_0 = 0;
        if ((p11 != null) && (!android.text.TextUtils.isEmpty(p11.getAction()))) {
            String v4 = p11.getAction();
            boolean v1_0 = new StringBuilder();
            v1_0.append("handleIntent#action = ");
            v1_0.append(v4);
            com.baidu.android.pushservice.i.l.b(v1_0.toString(), this.a);
            if (!"com.baidu.android.pushservice.action.OPENDEBUGMODE".equals(v4)) {
                if (!"com.baidu.android.pushservice.action.CLOSEDEBUGMODE".equals(v4)) {
                    if ((!"com.baidu.pushservice.action.publicmsg.CLICK_V2".equals(v4)) && (!"com.baidu.pushservice.action.publicmsg.DELETE_V2".equals(v4))) {
                        if ((!"com.baidu.android.pushservice.action.privatenotification.CLICK".equals(v4)) && (!"com.baidu.android.pushservice.action.privatenotification.DELETE".equals(v4))) {
                            String v2_50 = 0;
                            if ((!"com.baidu.android.pushservice.action.passthrough.notification.CLICK".equals(v4)) && ((!"com.baidu.android.pushservice.action.passthrough.notification.DELETE".equals(v4)) && (!"com.baidu.android.pushservice.action.passthrough.notification.NOTIFIED".equals(v4)))) {
                                if ((!"com.baidu.android.pushservice.action.media.CLICK".equals(v4)) && (!"com.baidu.android.pushservice.action.media.DELETE".equals(v4))) {
                                    if ("com.baidu.android.pushservice.action.alarm.message".equals(v4)) {
                                        boolean v1_41 = ((com.baidu.android.pushservice.message.k) p11.getSerializableExtra("tinyMessageHead"));
                                        byte[] v3_2 = p11.getByteArrayExtra("msgBody");
                                        v1_41.a(0);
                                        com.baidu.android.pushservice.message.a.a v5_2 = com.baidu.android.pushservice.c.a.c(this.a, v1_41.h());
                                        if ((v5_2 == null) || (v5_2.f != 0)) {
                                            new com.baidu.android.pushservice.message.a.a(this.a).a(v1_41, v3_2);
                                        } else {
                                            com.baidu.android.pushservice.c.a.d(this.a, v1_41.h());
                                            return 1;
                                        }
                                    }
                                    if (!"com.baidu.pushservice.action.TOKEN".equals(v4)) {
                                        if ("com.baidu.android.pushservice.action.METHOD".equals(v4)) {
                                            boolean v1_48 = p11.getStringExtra("method");
                                            if (!"method_bind".equals(v1_48)) {
                                                if (!"method_sdk_bind".equals(v1_48)) {
                                                    if (!"method_unbind".equals(v1_48)) {
                                                        if (!"method_sdk_unbind".equals(v1_48)) {
                                                            if (!"com.baidu.android.pushservice.action.UNBINDAPP".equals(v1_48)) {
                                                                if (!"method_fetch".equals(v1_48)) {
                                                                    if (!"method_count".equals(v1_48)) {
                                                                        if (!"method_delete".equals(v1_48)) {
                                                                            if (!"method_gbind".equals(v1_48)) {
                                                                                if ((!"method_set_tags".equals(v1_48)) && (!"method_set_sdk_tags".equals(v1_48))) {
                                                                                    if ((!"method_del_tags".equals(v1_48)) && (!"method_del_sdk_tags".equals(v1_48))) {
                                                                                        if (!"method_gunbind".equals(v1_48)) {
                                                                                            if (!"method_ginfo".equals(v1_48)) {
                                                                                                if (!"method_glist".equals(v1_48)) {
                                                                                                    if ((!"method_listtags".equals(v1_48)) && (!"method_list_sdk_tags".equals(v1_48))) {
                                                                                                        if (!"method_fetchgmsg".equals(v1_48)) {
                                                                                                            if (!"method_countgmsg".equals(v1_48)) {
                                                                                                                if (!"method_online".equals(v1_48)) {
                                                                                                                    if (!"method_send".equals(v1_48)) {
                                                                                                                        if (!"com.baidu.android.pushservice.action.SEND_APPSTAT".equals(v1_48)) {
                                                                                                                            if (!"com.baidu.android.pushservice.action.ENBALE_APPSTAT".equals(v1_48)) {
                                                                                                                                if ("method_send_msg_to_user".equals(v1_48)) {
                                                                                                                                    this.u(p11);
                                                                                                                                    v0_0 = 1;
                                                                                                                                }
                                                                                                                            } else {
                                                                                                                                this.w(p11);
                                                                                                                            }
                                                                                                                        } else {
                                                                                                                            this.v(p11);
                                                                                                                        }
                                                                                                                    } else {
                                                                                                                        this.t(p11);
                                                                                                                    }
                                                                                                                } else {
                                                                                                                    this.s(p11);
                                                                                                                }
                                                                                                            } else {
                                                                                                                this.r(p11);
                                                                                                            }
                                                                                                        } else {
                                                                                                            this.q(p11);
                                                                                                        }
                                                                                                    } else {
                                                                                                        this.o(p11);
                                                                                                    }
                                                                                                } else {
                                                                                                    this.p(p11);
                                                                                                }
                                                                                            } else {
                                                                                                this.n(p11);
                                                                                            }
                                                                                        } else {
                                                                                            this.m(p11);
                                                                                        }
                                                                                    } else {
                                                                                        this.l(p11);
                                                                                    }
                                                                                } else {
                                                                                    this.k(p11);
                                                                                }
                                                                            } else {
                                                                                this.j(p11);
                                                                            }
                                                                        } else {
                                                                            this.i(p11);
                                                                        }
                                                                    } else {
                                                                        this.h(p11);
                                                                    }
                                                                } else {
                                                                    this.g(p11);
                                                                }
                                                            } else {
                                                                this.f(p11);
                                                            }
                                                        } else {
                                                            this.e(p11);
                                                        }
                                                    } else {
                                                        this.d(p11);
                                                    }
                                                } else {
                                                    this.c(p11);
                                                }
                                            } else {
                                                this.b(p11);
                                            }
                                            return v0_0;
                                        } else {
                                            return 0;
                                        }
                                    } else {
                                        com.baidu.android.pushservice.f.a.a("RegistrationService", "<<< ACTION_TOKEN ", this.a);
                                        if (!com.baidu.android.pushservice.i.a(this.a).e()) {
                                            com.baidu.android.pushservice.i.a(this.a).a(this.a, 1, 0);
                                        }
                                        return 1;
                                    }
                                } else {
                                    int v0_6 = ((com.baidu.android.pushservice.message.PublicMsg) p11.getParcelableExtra("public_msg"));
                                    String vtmp31 = p11.getStringExtra("app_id");
                                    if (v0_6 != 0) {
                                        v0_6.handleRichMediaNotification(this.a, v4, vtmp31);
                                    }
                                    return 1;
                                }
                            } else {
                                int v0_10;
                                com.baidu.android.pushservice.i.l.b("push_passthrough: receive  click delete and notified action", this.a);
                                if (!p11.hasExtra("app_id")) {
                                    v0_10 = 0;
                                } else {
                                    v0_10 = p11.getStringExtra("app_id");
                                }
                                if (p11.hasExtra("msg_id")) {
                                    v2_50 = p11.getStringExtra("msg_id");
                                }
                                com.baidu.android.pushservice.g.k.a(this.a, v2_50, v0_10, v4);
                                return 1;
                            }
                        } else {
                            String v2_52 = ((com.baidu.android.pushservice.message.PublicMsg) p11.getParcelableExtra("public_msg"));
                            if (com.baidu.android.pushservice.i.l.b(this.a, v2_52)) {
                                v2_52.handlePrivateNotification(this.a, v4, p11.getStringExtra("msg_id"), p11.getStringExtra("app_id"), p11.getByteArrayExtra("baidu_message_secur_info"), p11.getByteArrayExtra("baidu_message_body"));
                                return 1;
                            } else {
                                return 1;
                            }
                        }
                    } else {
                        int v0_22 = ((com.baidu.android.pushservice.message.PublicMsg) p11.getParcelableExtra("public_msg"));
                        com.baidu.android.pushservice.i v11_11 = p11.getData().getHost();
                        if (v0_22 != 0) {
                            v0_22.handle(this.a, v4, v11_11);
                        }
                        return 1;
                    }
                } else {
                    com.baidu.android.pushservice.PushSettings.enableDebugMode(this.a, 0);
                    com.baidu.android.pushservice.f.a.a("RegistrationService", "<<<debugMode is close", this.a);
                    return 1;
                }
            } else {
                com.baidu.android.pushservice.PushSettings.enableDebugMode(this.a, 1);
                com.baidu.android.pushservice.f.a.a("RegistrationService", "<<<debugMode is open", this.a);
                return 1;
            }
        } else {
            return 0;
        }
    }

Method com.baidu.android.pushservice.PushSettings.enableDebugMode():


    public static void enableDebugMode(android.content.Context p1, boolean p2)
    {
        com.baidu.android.pushservice.PushSettings.a = p2;
        if (!com.baidu.android.pushservice.b.e.k(p1)) {
            com.baidu.android.pushservice.PushSettings.a(p1, p2);
        }
        return;
    }

Method com.baidu.android.pushservice.PushSettings.a():


    private static void a(android.content.Context p4, boolean p5)
    {
        try {
            boolean v0_0 = p4.getPackageName();
            String v1 = com.baidu.android.pushservice.i.l.v(p4);
            String v2 = "com.baidu.android.pushservice.action.OPENDEBUGMODE";
        } catch (Exception) {
            return;
        }
        if (android.text.TextUtils.isEmpty(v1)) {
            return;
        } else {
            if (!v0_0.equals(v1)) {
                if (p5 == null) {
                    v2 = "com.baidu.android.pushservice.action.CLOSEDEBUGMODE";
                }
                com.baidu.android.pushservice.i.k.a(p4, new android.content.Intent(v2));
                return;
            } else {
                return;
            }
        }
    }

Method com.baidu.android.pushservice.i.k.a():


    public static void a(android.content.Context p2, android.content.Intent p3)
    {
        if ((p3 == null) || (android.text.TextUtils.isEmpty(p3.getAction()))) {
            p3 = com.baidu.android.pushservice.i.k.c(p2);
        }
        if ((com.baidu.android.pushservice.b.e.k(p2)) && (!com.baidu.android.pushservice.b.e.c(p2))) {
            com.baidu.android.pushservice.h.a(p2).a(p3);
        } else {
            if ((android.text.TextUtils.isEmpty(com.baidu.android.pushservice.i.k.a)) || (p2.getPackageName().equals(com.baidu.android.pushservice.i.k.a))) {
                com.baidu.android.pushservice.i.k.a = com.baidu.android.pushservice.i.l.v(p2);
            }
            com.baidu.android.pushservice.i.k.a(p2, p3, com.baidu.android.pushservice.i.k.a);
        }
        return;
    }

Method com.baidu.android.pushservice.h.a():


    public static declared_synchronized com.baidu.android.pushservice.h a(android.content.Context p2)
    {
        try {
            if (com.baidu.android.pushservice.h.c == null) {
                com.baidu.android.pushservice.h.c = new com.baidu.android.pushservice.h(p2);
            }
        } catch (com.baidu.android.pushservice.h v2_1) {
            throw v2_1;
        }
        return com.baidu.android.pushservice.h.c;
    }

Method com.baidu.android.pushservice.h.<init>():


    private h(android.content.Context p1)
    {
        this.a = p1;
        com.baidu.android.pushservice.a.b.a(p1);
        com.baidu.android.pushservice.i.a(p1);
        com.baidu.android.pushservice.h.d.a();
        return;
    }

Method com.baidu.android.pushservice.i.a():


    public static declared_synchronized com.baidu.android.pushservice.i a(android.content.Context p2)
    {
        try {
            if (com.baidu.android.pushservice.i.a == null) {
                com.baidu.android.pushservice.i.a = new com.baidu.android.pushservice.i(p2);
            }
        } catch (com.baidu.android.pushservice.i v2_1) {
            throw v2_1;
        }
        return com.baidu.android.pushservice.i.a;
    }

Method com.baidu.android.pushservice.i.<init>():


    private i(android.content.Context p2)
    {
        this.d = com.baidu.android.pushservice.i.i.a(p2, "com.baidu.pushservice.channel_token");
        this.b = com.baidu.android.pushservice.PushSettings.a(p2);
        if (com.baidu.android.pushservice.b.e.b(p2)) {
            this.e = com.baidu.android.pushservice.i.i.a(p2, "com.baidu.pushservice.channel_token_new");
            this.c = com.baidu.android.pushservice.PushSettings.b(p2);
        }
        this.g = 0;
        this.h = p2;
        return;
    }

Method com.baidu.android.pushservice.PushSettings.a():


    public static String a(android.content.Context p3)
    {
        String v0_2 = com.baidu.android.pushservice.i.a.a(p3, "com.baidu.pushservice.channel_id");
        if (android.text.TextUtils.isEmpty(v0_2)) {
            v0_2 = com.baidu.android.pushservice.i.i.a(p3, "com.baidu.pushservice.channel_id");
            if (android.text.TextUtils.isEmpty(v0_2)) {
                v0_2 = com.baidu.android.pushservice.c.c.a(p3, 0);
                if (android.text.TextUtils.isEmpty(v0_2)) {
                    int v1_3 = com.baidu.android.pushservice.i.l.n(p3).iterator();
                    while (v1_3.hasNext()) {
                        v0_2 = com.baidu.android.pushservice.c.d.a(p3, ((String) v1_3.next()));
                        if (!android.text.TextUtils.isEmpty(v0_2)) {
                            com.baidu.android.pushservice.PushSettings.a(p3, v0_2, 0);
                            break;
                        }
                    }
                }
            }
        }
        return v0_2;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.b():


    private static Object b(android.content.Context p1, String p2)
    {
        if (!com.baidu.android.pushservice.i.l.u(p1, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            return 0;
        } else {
            try {
                return com.baidu.android.pushservice.i.a.a(p1).opt(p2);
            } catch (Throwable v1_2) {
                throw v1_2;
            }
        }
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'b', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/Object;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.b():


    private static Object b(android.content.Context p1, String p2)
    {
        if (!com.baidu.android.pushservice.i.l.u(p1, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            return 0;
        } else {
            try {
                return com.baidu.android.pushservice.i.a.a(p1).opt(p2);
            } catch (Throwable v1_2) {
                throw v1_2;
            }
        }
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String; I)V'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/Object;)Z'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.i.a.a():


    public static void a(android.content.Context p2, String p3, int p4)
    {
        if (p2 != null) {
            boolean v0 = 0;
            try {
                if (com.baidu.android.pushservice.i.l.u(p2, "android.permission.WRITE_SETTINGS")) {
                    v0 = android.provider.Settings$System.putInt(p2.getContentResolver(), p3, p4);
                }
            } catch (Exception) {
            }
            if (!v0) {
                com.baidu.android.pushservice.i.a.a(p2, p3, Integer.valueOf(p4));
            }
            return;
        } else {
            return;
        }
    }

Method com.baidu.android.pushservice.i.a.a():


    private static boolean a(android.content.Context p6, String p7, Object p8)
    {
        if (com.baidu.android.pushservice.i.l.u(p6, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            try {
                String v2_1 = com.baidu.android.pushservice.i.a.a(p6);
                java.io.FileOutputStream v4 = 0;
            } catch (java.io.Closeable[] v6_7) {
                throw v6_7;
            }
            if (v2_1.opt(p7) != null) {
                v2_1.remove(p7);
            }
            v2_1.put(p7, p8);
            java.io.FileOutputStream v7_2 = new java.io.File(android.os.Environment.getExternalStorageDirectory(), "baidu/pushservice/files");
            if (!v7_2.exists()) {
                v7_2.mkdirs();
            }
            java.io.File v8_4 = new java.io.File(v7_2, ".info");
            java.io.Closeable[] v6_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getEncrypted(p6, "", v2_1.toString());
            if (!android.text.TextUtils.isEmpty(v6_1)) {
                if (v8_4.exists()) {
                    v8_4.delete();
                }
                v8_4.createNewFile();
                java.io.FileOutputStream v7_7 = new java.io.FileOutputStream(v8_4);
                v7_7.write(v6_1.getBytes());
                java.io.Closeable[] v6_5 = new java.io.Closeable[1];
                v6_5[0] = v7_7;
                com.baidu.android.pushservice.e.b.a(v6_5);
                return 1;
            } else {
                java.io.Closeable[] v6_6 = new java.io.Closeable[1];
                v6_6[0] = 0;
                com.baidu.android.pushservice.e.b.a(v6_6);
                return 0;
            }
        }
        return 0;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)V'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/Object;)Z'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.i.a.a():


    public static void a(android.content.Context p2, String p3, String p4)
    {
        if (p2 != null) {
            try {
            } catch (Exception) {
            }
            if (!android.provider.Settings$System.putString(p2.getContentResolver(), p3, p4)) {
                com.baidu.android.pushservice.i.a.a(p2, p3, p4);
            }
            return;
        } else {
            return;
        }
    }

Method com.baidu.android.pushservice.i.a.a():


    private static boolean a(android.content.Context p6, String p7, Object p8)
    {
        if (com.baidu.android.pushservice.i.l.u(p6, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            try {
                String v2_1 = com.baidu.android.pushservice.i.a.a(p6);
                java.io.FileOutputStream v4 = 0;
            } catch (java.io.Closeable[] v6_7) {
                throw v6_7;
            }
            if (v2_1.opt(p7) != null) {
                v2_1.remove(p7);
            }
            v2_1.put(p7, p8);
            java.io.FileOutputStream v7_2 = new java.io.File(android.os.Environment.getExternalStorageDirectory(), "baidu/pushservice/files");
            if (!v7_2.exists()) {
                v7_2.mkdirs();
            }
            java.io.File v8_4 = new java.io.File(v7_2, ".info");
            java.io.Closeable[] v6_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getEncrypted(p6, "", v2_1.toString());
            if (!android.text.TextUtils.isEmpty(v6_1)) {
                if (v8_4.exists()) {
                    v8_4.delete();
                }
                v8_4.createNewFile();
                java.io.FileOutputStream v7_7 = new java.io.FileOutputStream(v8_4);
                v7_7.write(v6_1.getBytes());
                java.io.Closeable[] v6_5 = new java.io.Closeable[1];
                v6_5[0] = v7_7;
                com.baidu.android.pushservice.e.b.a(v6_5);
                return 1;
            } else {
                java.io.Closeable[] v6_6 = new java.io.Closeable[1];
                v6_6[0] = 0;
                com.baidu.android.pushservice.e.b.a(v6_6);
                return 0;
            }
        }
        return 0;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/Object;)Z'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.i.a.a():


    private static boolean a(android.content.Context p6, String p7, Object p8)
    {
        if (com.baidu.android.pushservice.i.l.u(p6, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            try {
                String v2_1 = com.baidu.android.pushservice.i.a.a(p6);
                java.io.FileOutputStream v4 = 0;
            } catch (java.io.Closeable[] v6_7) {
                throw v6_7;
            }
            if (v2_1.opt(p7) != null) {
                v2_1.remove(p7);
            }
            v2_1.put(p7, p8);
            java.io.FileOutputStream v7_2 = new java.io.File(android.os.Environment.getExternalStorageDirectory(), "baidu/pushservice/files");
            if (!v7_2.exists()) {
                v7_2.mkdirs();
            }
            java.io.File v8_4 = new java.io.File(v7_2, ".info");
            java.io.Closeable[] v6_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getEncrypted(p6, "", v2_1.toString());
            if (!android.text.TextUtils.isEmpty(v6_1)) {
                if (v8_4.exists()) {
                    v8_4.delete();
                }
                v8_4.createNewFile();
                java.io.FileOutputStream v7_7 = new java.io.FileOutputStream(v8_4);
                v7_7.write(v6_1.getBytes());
                java.io.Closeable[] v6_5 = new java.io.Closeable[1];
                v6_5[0] = v7_7;
                com.baidu.android.pushservice.e.b.a(v6_5);
                return 1;
            } else {
                java.io.Closeable[] v6_6 = new java.io.Closeable[1];
                v6_6[0] = 0;
                com.baidu.android.pushservice.e.b.a(v6_6);
                return 0;
            }
        }
        return 0;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/i/a;', 'b', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/Object;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.i.a.b():


    private static Object b(android.content.Context p1, String p2)
    {
        if (!com.baidu.android.pushservice.i.l.u(p1, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            return 0;
        } else {
            try {
                return com.baidu.android.pushservice.i.a.a(p1).opt(p2);
            } catch (Throwable v1_2) {
                throw v1_2;
            }
        }
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/i/k;', 'a', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i/k;', 'd', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'u', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'b', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/Object;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.i.k.a():


    public static void a(android.content.Context p3)
    {
        String v1_1 = new StringBuilder();
        v1_1.append("--- Start Service from ");
        v1_1.append(p3.getPackageName());
        com.baidu.android.pushservice.f.a.a("ServiceUtils", v1_1.toString(), p3.getApplicationContext());
        if (!com.baidu.android.pushservice.a.b(p3)) {
            com.baidu.android.pushservice.i.k.d(p3);
        } else {
            com.baidu.android.pushservice.i.k.b(p3);
            com.baidu.android.pushservice.a.a(p3, 0);
        }
        return;
    }

Method com.baidu.android.pushservice.i.k.d():


    public static void d(android.content.Context p5)
    {
        com.baidu.android.pushservice.b.e.a(p5).e();
        if ((!com.baidu.android.pushservice.b.e.k(p5)) || (com.baidu.android.pushservice.b.e.c(p5))) {
            boolean v0_1 = com.baidu.android.pushservice.i.l.u(p5);
            int v1_0 = p5.getPackageName();
            com.baidu.android.pushservice.i.k.a = com.baidu.android.pushservice.i.l.v(p5);
            String v2_1 = 0;
            if ((com.baidu.android.pushservice.a.a(v1_0)) && (!v1_0.equals(com.baidu.android.pushservice.i.k.a))) {
                v0_1 = v1_0;
                v2_1 = 1;
            }
            com.baidu.android.pushservice.a.c(p5, v2_1);
            if ((android.text.TextUtils.isEmpty(v0_1)) || ((!v0_1.equals(com.baidu.android.pushservice.i.k.a)) || (v2_1 != null))) {
                com.baidu.android.pushservice.i.k.a(p5, v0_1);
            }
            if ((p5.getPackageName().startsWith("com.baidu.searchbox")) && ((!com.baidu.android.pushservice.job.a.b()) && ((!com.baidu.android.pushservice.i.l.l(p5)) && ((!com.baidu.android.pushservice.b.e.c(p5)) && ((android.os.Build$VERSION.SDK_INT > 22) || ((!com.baidu.android.pushservice.i.l.d()) && (!com.baidu.android.pushservice.i.l.e()))))))) {
                com.baidu.android.pushservice.job.a.a(p5);
                com.baidu.android.pushservice.job.a.a(1);
            }
            com.baidu.android.pushservice.h.d.a().a(new com.baidu.android.pushservice.i.k$1("checkAndStartPushService", 98, p5.getApplicationContext()));
            return;
        } else {
            return;
        }
    }

Method com.baidu.android.pushservice.i.l.u():


    public static String u(android.content.Context p4)
    {
        if (!com.baidu.android.pushservice.i.l.E(p4)) {
            java.util.Iterator v0_5 = com.baidu.android.pushservice.i.a.a(p4, "com.baidu.push.cur_pkg");
            String v1_6 = com.baidu.android.pushservice.i.l.s(p4);
            if ((android.text.TextUtils.isEmpty(v0_5)) || (!v1_6.contains(v0_5))) {
                if (!v1_6.isEmpty()) {
                    java.util.Iterator v0_2 = v1_6.iterator();
                    while (v0_2.hasNext()) {
                        String v1_2 = ((String) v0_2.next());
                        if ((!com.baidu.android.pushservice.i.l.z(p4, v1_2)) && ((com.baidu.android.pushservice.i.l.o(p4, v1_2)) && (com.baidu.android.pushservice.i.l.h(p4, v1_2)))) {
                            return v1_2;
                        }
                    }
                }
            } else {
                if ((com.baidu.android.pushservice.i.l.o(p4, v0_5)) && (com.baidu.android.pushservice.i.l.h(p4, v0_5))) {
                    return v0_5;
                }
            }
        } else {
            java.util.Iterator v0_4 = com.baidu.android.pushservice.i.l.s(p4);
            String v1_4 = com.baidu.android.pushservice.i.l.p(p4);
            if (!v0_4.isEmpty()) {
                String v1_5 = v1_4.iterator();
                while (v1_5.hasNext()) {
                    boolean v2_9 = ((android.content.pm.ResolveInfo) v1_5.next()).activityInfo.packageName;
                    if ((v0_4.contains(v2_9)) && ((com.baidu.android.pushservice.i.l.o(p4, v2_9)) && (com.baidu.android.pushservice.i.l.h(p4, v2_9)))) {
                        return v2_9;
                    }
                }
            }
        }
        return 0;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.b():


    private static Object b(android.content.Context p1, String p2)
    {
        if (!com.baidu.android.pushservice.i.l.u(p1, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            return 0;
        } else {
            try {
                return com.baidu.android.pushservice.i.a.a(p1).opt(p2);
            } catch (Throwable v1_2) {
                throw v1_2;
            }
        }
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/i/k;', 'a', '(Landroid/content/Context; Landroid/content/Intent;)V'), ('Lcom/baidu/android/pushservice/h;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/h;'), ('Lcom/baidu/android/pushservice/h;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/i;'), ('Lcom/baidu/android/pushservice/i;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/PushSettings;', 'a', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'b', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/Object;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.i.k.a():


    public static void a(android.content.Context p2, android.content.Intent p3)
    {
        if ((p3 == null) || (android.text.TextUtils.isEmpty(p3.getAction()))) {
            p3 = com.baidu.android.pushservice.i.k.c(p2);
        }
        if ((com.baidu.android.pushservice.b.e.k(p2)) && (!com.baidu.android.pushservice.b.e.c(p2))) {
            com.baidu.android.pushservice.h.a(p2).a(p3);
        } else {
            if ((android.text.TextUtils.isEmpty(com.baidu.android.pushservice.i.k.a)) || (p2.getPackageName().equals(com.baidu.android.pushservice.i.k.a))) {
                com.baidu.android.pushservice.i.k.a = com.baidu.android.pushservice.i.l.v(p2);
            }
            com.baidu.android.pushservice.i.k.a(p2, p3, com.baidu.android.pushservice.i.k.a);
        }
        return;
    }

Method com.baidu.android.pushservice.h.a():


    public static declared_synchronized com.baidu.android.pushservice.h a(android.content.Context p2)
    {
        try {
            if (com.baidu.android.pushservice.h.c == null) {
                com.baidu.android.pushservice.h.c = new com.baidu.android.pushservice.h(p2);
            }
        } catch (com.baidu.android.pushservice.h v2_1) {
            throw v2_1;
        }
        return com.baidu.android.pushservice.h.c;
    }

Method com.baidu.android.pushservice.h.<init>():


    private h(android.content.Context p1)
    {
        this.a = p1;
        com.baidu.android.pushservice.a.b.a(p1);
        com.baidu.android.pushservice.i.a(p1);
        com.baidu.android.pushservice.h.d.a();
        return;
    }

Method com.baidu.android.pushservice.i.a():


    public static declared_synchronized com.baidu.android.pushservice.i a(android.content.Context p2)
    {
        try {
            if (com.baidu.android.pushservice.i.a == null) {
                com.baidu.android.pushservice.i.a = new com.baidu.android.pushservice.i(p2);
            }
        } catch (com.baidu.android.pushservice.i v2_1) {
            throw v2_1;
        }
        return com.baidu.android.pushservice.i.a;
    }

Method com.baidu.android.pushservice.i.<init>():


    private i(android.content.Context p2)
    {
        this.d = com.baidu.android.pushservice.i.i.a(p2, "com.baidu.pushservice.channel_token");
        this.b = com.baidu.android.pushservice.PushSettings.a(p2);
        if (com.baidu.android.pushservice.b.e.b(p2)) {
            this.e = com.baidu.android.pushservice.i.i.a(p2, "com.baidu.pushservice.channel_token_new");
            this.c = com.baidu.android.pushservice.PushSettings.b(p2);
        }
        this.g = 0;
        this.h = p2;
        return;
    }

Method com.baidu.android.pushservice.PushSettings.a():


    public static String a(android.content.Context p3)
    {
        String v0_2 = com.baidu.android.pushservice.i.a.a(p3, "com.baidu.pushservice.channel_id");
        if (android.text.TextUtils.isEmpty(v0_2)) {
            v0_2 = com.baidu.android.pushservice.i.i.a(p3, "com.baidu.pushservice.channel_id");
            if (android.text.TextUtils.isEmpty(v0_2)) {
                v0_2 = com.baidu.android.pushservice.c.c.a(p3, 0);
                if (android.text.TextUtils.isEmpty(v0_2)) {
                    int v1_3 = com.baidu.android.pushservice.i.l.n(p3).iterator();
                    while (v1_3.hasNext()) {
                        v0_2 = com.baidu.android.pushservice.c.d.a(p3, ((String) v1_3.next()));
                        if (!android.text.TextUtils.isEmpty(v0_2)) {
                            com.baidu.android.pushservice.PushSettings.a(p3, v0_2, 0);
                            break;
                        }
                    }
                }
            }
        }
        return v0_2;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.b():


    private static Object b(android.content.Context p1, String p2)
    {
        if (!com.baidu.android.pushservice.i.l.u(p1, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            return 0;
        } else {
            try {
                return com.baidu.android.pushservice.i.a.a(p1).opt(p2);
            } catch (Throwable v1_2) {
                throw v1_2;
            }
        }
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/i/k;', 'b', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'u', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'b', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/Object;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.i.k.b():


    public static void b(android.content.Context p5)
    {
        if (p5 != null) {
            java.util.Iterator v0_0 = com.baidu.android.pushservice.i.l.u(p5);
            String v1_5 = com.baidu.android.pushservice.i.l.g(p5, v0_0);
            if (((android.text.TextUtils.isEmpty(v0_0)) || (v0_0.equals(p5.getPackageName()))) || (((com.baidu.android.pushservice.b.e.a(p5).b() == 4) || (v1_5 >= com.baidu.android.pushservice.i.l.h(p5))) && (com.baidu.android.pushservice.b.e.a(p5).b() != 3))) {
                if ((android.text.TextUtils.isEmpty(v0_0)) || (v0_0.equals(p5.getPackageName()))) {
                    java.util.Iterator v0_2 = com.baidu.android.pushservice.i.l.s(p5);
                    if (!v0_2.isEmpty()) {
                        java.util.Iterator v0_3 = v0_2.iterator();
                        while (v0_3.hasNext()) {
                            String v1_9 = ((String) v0_3.next());
                            if ((!p5.getPackageName().equals(v1_9)) && (((com.baidu.android.pushservice.i.l.E(p5)) && (com.baidu.android.pushservice.i.l.z(p5, v1_9))) || ((!com.baidu.android.pushservice.i.l.E(p5)) && (!com.baidu.android.pushservice.i.l.z(p5, v1_9))))) {
                                com.baidu.android.pushservice.i.k.a(p5, v1_9);
                            }
                        }
                    }
                }
            } else {
                com.baidu.android.pushservice.i.k.a(p5, v0_0);
            }
            return;
        } else {
            return;
        }
    }

Method com.baidu.android.pushservice.i.l.u():


    public static String u(android.content.Context p4)
    {
        if (!com.baidu.android.pushservice.i.l.E(p4)) {
            java.util.Iterator v0_5 = com.baidu.android.pushservice.i.a.a(p4, "com.baidu.push.cur_pkg");
            String v1_6 = com.baidu.android.pushservice.i.l.s(p4);
            if ((android.text.TextUtils.isEmpty(v0_5)) || (!v1_6.contains(v0_5))) {
                if (!v1_6.isEmpty()) {
                    java.util.Iterator v0_2 = v1_6.iterator();
                    while (v0_2.hasNext()) {
                        String v1_2 = ((String) v0_2.next());
                        if ((!com.baidu.android.pushservice.i.l.z(p4, v1_2)) && ((com.baidu.android.pushservice.i.l.o(p4, v1_2)) && (com.baidu.android.pushservice.i.l.h(p4, v1_2)))) {
                            return v1_2;
                        }
                    }
                }
            } else {
                if ((com.baidu.android.pushservice.i.l.o(p4, v0_5)) && (com.baidu.android.pushservice.i.l.h(p4, v0_5))) {
                    return v0_5;
                }
            }
        } else {
            java.util.Iterator v0_4 = com.baidu.android.pushservice.i.l.s(p4);
            String v1_4 = com.baidu.android.pushservice.i.l.p(p4);
            if (!v0_4.isEmpty()) {
                String v1_5 = v1_4.iterator();
                while (v1_5.hasNext()) {
                    boolean v2_9 = ((android.content.pm.ResolveInfo) v1_5.next()).activityInfo.packageName;
                    if ((v0_4.contains(v2_9)) && ((com.baidu.android.pushservice.i.l.o(p4, v2_9)) && (com.baidu.android.pushservice.i.l.h(p4, v2_9)))) {
                        return v2_9;
                    }
                }
            }
        }
        return 0;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.b():


    private static Object b(android.content.Context p1, String p2)
    {
        if (!com.baidu.android.pushservice.i.l.u(p1, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            return 0;
        } else {
            try {
                return com.baidu.android.pushservice.i.a.a(p1).opt(p2);
            } catch (Throwable v1_2) {
                throw v1_2;
            }
        }
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/i/k;', 'd', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'u', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'b', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/Object;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.i.k.d():


    public static void d(android.content.Context p5)
    {
        com.baidu.android.pushservice.b.e.a(p5).e();
        if ((!com.baidu.android.pushservice.b.e.k(p5)) || (com.baidu.android.pushservice.b.e.c(p5))) {
            boolean v0_1 = com.baidu.android.pushservice.i.l.u(p5);
            int v1_0 = p5.getPackageName();
            com.baidu.android.pushservice.i.k.a = com.baidu.android.pushservice.i.l.v(p5);
            String v2_1 = 0;
            if ((com.baidu.android.pushservice.a.a(v1_0)) && (!v1_0.equals(com.baidu.android.pushservice.i.k.a))) {
                v0_1 = v1_0;
                v2_1 = 1;
            }
            com.baidu.android.pushservice.a.c(p5, v2_1);
            if ((android.text.TextUtils.isEmpty(v0_1)) || ((!v0_1.equals(com.baidu.android.pushservice.i.k.a)) || (v2_1 != null))) {
                com.baidu.android.pushservice.i.k.a(p5, v0_1);
            }
            if ((p5.getPackageName().startsWith("com.baidu.searchbox")) && ((!com.baidu.android.pushservice.job.a.b()) && ((!com.baidu.android.pushservice.i.l.l(p5)) && ((!com.baidu.android.pushservice.b.e.c(p5)) && ((android.os.Build$VERSION.SDK_INT > 22) || ((!com.baidu.android.pushservice.i.l.d()) && (!com.baidu.android.pushservice.i.l.e()))))))) {
                com.baidu.android.pushservice.job.a.a(p5);
                com.baidu.android.pushservice.job.a.a(1);
            }
            com.baidu.android.pushservice.h.d.a().a(new com.baidu.android.pushservice.i.k$1("checkAndStartPushService", 98, p5.getApplicationContext()));
            return;
        } else {
            return;
        }
    }

Method com.baidu.android.pushservice.i.l.u():


    public static String u(android.content.Context p4)
    {
        if (!com.baidu.android.pushservice.i.l.E(p4)) {
            java.util.Iterator v0_5 = com.baidu.android.pushservice.i.a.a(p4, "com.baidu.push.cur_pkg");
            String v1_6 = com.baidu.android.pushservice.i.l.s(p4);
            if ((android.text.TextUtils.isEmpty(v0_5)) || (!v1_6.contains(v0_5))) {
                if (!v1_6.isEmpty()) {
                    java.util.Iterator v0_2 = v1_6.iterator();
                    while (v0_2.hasNext()) {
                        String v1_2 = ((String) v0_2.next());
                        if ((!com.baidu.android.pushservice.i.l.z(p4, v1_2)) && ((com.baidu.android.pushservice.i.l.o(p4, v1_2)) && (com.baidu.android.pushservice.i.l.h(p4, v1_2)))) {
                            return v1_2;
                        }
                    }
                }
            } else {
                if ((com.baidu.android.pushservice.i.l.o(p4, v0_5)) && (com.baidu.android.pushservice.i.l.h(p4, v0_5))) {
                    return v0_5;
                }
            }
        } else {
            java.util.Iterator v0_4 = com.baidu.android.pushservice.i.l.s(p4);
            String v1_4 = com.baidu.android.pushservice.i.l.p(p4);
            if (!v0_4.isEmpty()) {
                String v1_5 = v1_4.iterator();
                while (v1_5.hasNext()) {
                    boolean v2_9 = ((android.content.pm.ResolveInfo) v1_5.next()).activityInfo.packageName;
                    if ((v0_4.contains(v2_9)) && ((com.baidu.android.pushservice.i.l.o(p4, v2_9)) && (com.baidu.android.pushservice.i.l.h(p4, v2_9)))) {
                        return v2_9;
                    }
                }
            }
        }
        return 0;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.b():


    private static Object b(android.content.Context p1, String p2)
    {
        if (!com.baidu.android.pushservice.i.l.u(p1, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            return 0;
        } else {
            try {
                return com.baidu.android.pushservice.i.a.a(p1).opt(p2);
            } catch (Throwable v1_2) {
                throw v1_2;
            }
        }
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/i/l$1;', 'onStateChanged', '(I)V'), ('Lcom/baidu/android/pushservice/e;', 'f', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i/k;', 'a', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i/k;', 'd', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'u', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'b', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/Object;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.i.l$1.onStateChanged():


    public void onStateChanged(int p4)
    {
        if (p4 != 101) {
            if ((p4 == null) || (p4 == 1)) {
                com.baidu.android.pushservice.i.i.a(this.a, "vi_push_proxy_mode", 1);
                if (!com.baidu.android.pushservice.b.e.c(this.a)) {
                    com.baidu.android.pushservice.a.b(this.a, 0);
                    com.baidu.android.pushservice.i.l.a(this.a, 1, 0);
                } else {
                    com.baidu.android.pushservice.i.l.a(this.a, 1, 1);
                }
                String v4_7 = com.vivo.push.PushClient.getInstance(this.a).getRegId();
                if (!android.text.TextUtils.isEmpty(v4_7)) {
                    com.baidu.android.pushservice.e.a(this.a, v4_7);
                    return;
                }
            }
            com.baidu.android.pushservice.e.j(this.a);
        } else {
            com.baidu.android.pushservice.a.b(this.a, 1);
            com.baidu.android.pushservice.i.i.a(this.a, "vi_push_proxy_mode", 0);
            com.baidu.android.pushservice.PushManager.enableVivoProxy(this.a, 0);
            com.baidu.android.pushservice.e.f(this.a);
            com.baidu.android.pushservice.i.l.a(this.a, 1, 1);
        }
        return;
    }

Method com.baidu.android.pushservice.e.f():


    public static void f(android.content.Context p3)
    {
        int v0_1 = new StringBuilder();
        v0_1.append("startWork at time of ");
        v0_1.append(System.currentTimeMillis());
        com.baidu.android.pushservice.i.l.b(v0_1.toString(), p3);
        if (!com.baidu.android.pushservice.b.e.l(p3)) {
            com.baidu.android.pushservice.i.k.a(p3);
        } else {
            com.baidu.android.pushservice.i.l.a(p3, 1, 1);
        }
        com.baidu.android.pushservice.e.b(p3, 0);
        return;
    }

Method com.baidu.android.pushservice.i.k.a():


    public static void a(android.content.Context p3)
    {
        String v1_1 = new StringBuilder();
        v1_1.append("--- Start Service from ");
        v1_1.append(p3.getPackageName());
        com.baidu.android.pushservice.f.a.a("ServiceUtils", v1_1.toString(), p3.getApplicationContext());
        if (!com.baidu.android.pushservice.a.b(p3)) {
            com.baidu.android.pushservice.i.k.d(p3);
        } else {
            com.baidu.android.pushservice.i.k.b(p3);
            com.baidu.android.pushservice.a.a(p3, 0);
        }
        return;
    }

Method com.baidu.android.pushservice.i.k.d():


    public static void d(android.content.Context p5)
    {
        com.baidu.android.pushservice.b.e.a(p5).e();
        if ((!com.baidu.android.pushservice.b.e.k(p5)) || (com.baidu.android.pushservice.b.e.c(p5))) {
            boolean v0_1 = com.baidu.android.pushservice.i.l.u(p5);
            int v1_0 = p5.getPackageName();
            com.baidu.android.pushservice.i.k.a = com.baidu.android.pushservice.i.l.v(p5);
            String v2_1 = 0;
            if ((com.baidu.android.pushservice.a.a(v1_0)) && (!v1_0.equals(com.baidu.android.pushservice.i.k.a))) {
                v0_1 = v1_0;
                v2_1 = 1;
            }
            com.baidu.android.pushservice.a.c(p5, v2_1);
            if ((android.text.TextUtils.isEmpty(v0_1)) || ((!v0_1.equals(com.baidu.android.pushservice.i.k.a)) || (v2_1 != null))) {
                com.baidu.android.pushservice.i.k.a(p5, v0_1);
            }
            if ((p5.getPackageName().startsWith("com.baidu.searchbox")) && ((!com.baidu.android.pushservice.job.a.b()) && ((!com.baidu.android.pushservice.i.l.l(p5)) && ((!com.baidu.android.pushservice.b.e.c(p5)) && ((android.os.Build$VERSION.SDK_INT > 22) || ((!com.baidu.android.pushservice.i.l.d()) && (!com.baidu.android.pushservice.i.l.e()))))))) {
                com.baidu.android.pushservice.job.a.a(p5);
                com.baidu.android.pushservice.job.a.a(1);
            }
            com.baidu.android.pushservice.h.d.a().a(new com.baidu.android.pushservice.i.k$1("checkAndStartPushService", 98, p5.getApplicationContext()));
            return;
        } else {
            return;
        }
    }

Method com.baidu.android.pushservice.i.l.u():


    public static String u(android.content.Context p4)
    {
        if (!com.baidu.android.pushservice.i.l.E(p4)) {
            java.util.Iterator v0_5 = com.baidu.android.pushservice.i.a.a(p4, "com.baidu.push.cur_pkg");
            String v1_6 = com.baidu.android.pushservice.i.l.s(p4);
            if ((android.text.TextUtils.isEmpty(v0_5)) || (!v1_6.contains(v0_5))) {
                if (!v1_6.isEmpty()) {
                    java.util.Iterator v0_2 = v1_6.iterator();
                    while (v0_2.hasNext()) {
                        String v1_2 = ((String) v0_2.next());
                        if ((!com.baidu.android.pushservice.i.l.z(p4, v1_2)) && ((com.baidu.android.pushservice.i.l.o(p4, v1_2)) && (com.baidu.android.pushservice.i.l.h(p4, v1_2)))) {
                            return v1_2;
                        }
                    }
                }
            } else {
                if ((com.baidu.android.pushservice.i.l.o(p4, v0_5)) && (com.baidu.android.pushservice.i.l.h(p4, v0_5))) {
                    return v0_5;
                }
            }
        } else {
            java.util.Iterator v0_4 = com.baidu.android.pushservice.i.l.s(p4);
            String v1_4 = com.baidu.android.pushservice.i.l.p(p4);
            if (!v0_4.isEmpty()) {
                String v1_5 = v1_4.iterator();
                while (v1_5.hasNext()) {
                    boolean v2_9 = ((android.content.pm.ResolveInfo) v1_5.next()).activityInfo.packageName;
                    if ((v0_4.contains(v2_9)) && ((com.baidu.android.pushservice.i.l.o(p4, v2_9)) && (com.baidu.android.pushservice.i.l.h(p4, v2_9)))) {
                        return v2_9;
                    }
                }
            }
        }
        return 0;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.b():


    private static Object b(android.content.Context p1, String p2)
    {
        if (!com.baidu.android.pushservice.i.l.u(p1, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            return 0;
        } else {
            try {
                return com.baidu.android.pushservice.i.a.a(p1).opt(p2);
            } catch (Throwable v1_2) {
                throw v1_2;
            }
        }
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/i/l;', 'B', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/h;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/h;'), ('Lcom/baidu/android/pushservice/h;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/i;'), ('Lcom/baidu/android/pushservice/i;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/PushSettings;', 'a', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'b', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/Object;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.i.l.B():


    public static void B(android.content.Context p3)
    {
        android.content.Intent v0_1 = new android.content.Intent("com.baidu.android.pushservice.action.METHOD");
        v0_1.putExtra("method", "com.baidu.android.pushservice.action.SEND_APPSTAT");
        com.baidu.android.pushservice.h.a(p3.getApplicationContext()).a(v0_1);
        return;
    }

Method com.baidu.android.pushservice.h.a():


    public static declared_synchronized com.baidu.android.pushservice.h a(android.content.Context p2)
    {
        try {
            if (com.baidu.android.pushservice.h.c == null) {
                com.baidu.android.pushservice.h.c = new com.baidu.android.pushservice.h(p2);
            }
        } catch (com.baidu.android.pushservice.h v2_1) {
            throw v2_1;
        }
        return com.baidu.android.pushservice.h.c;
    }

Method com.baidu.android.pushservice.h.<init>():


    private h(android.content.Context p1)
    {
        this.a = p1;
        com.baidu.android.pushservice.a.b.a(p1);
        com.baidu.android.pushservice.i.a(p1);
        com.baidu.android.pushservice.h.d.a();
        return;
    }

Method com.baidu.android.pushservice.i.a():


    public static declared_synchronized com.baidu.android.pushservice.i a(android.content.Context p2)
    {
        try {
            if (com.baidu.android.pushservice.i.a == null) {
                com.baidu.android.pushservice.i.a = new com.baidu.android.pushservice.i(p2);
            }
        } catch (com.baidu.android.pushservice.i v2_1) {
            throw v2_1;
        }
        return com.baidu.android.pushservice.i.a;
    }

Method com.baidu.android.pushservice.i.<init>():


    private i(android.content.Context p2)
    {
        this.d = com.baidu.android.pushservice.i.i.a(p2, "com.baidu.pushservice.channel_token");
        this.b = com.baidu.android.pushservice.PushSettings.a(p2);
        if (com.baidu.android.pushservice.b.e.b(p2)) {
            this.e = com.baidu.android.pushservice.i.i.a(p2, "com.baidu.pushservice.channel_token_new");
            this.c = com.baidu.android.pushservice.PushSettings.b(p2);
        }
        this.g = 0;
        this.h = p2;
        return;
    }

Method com.baidu.android.pushservice.PushSettings.a():


    public static String a(android.content.Context p3)
    {
        String v0_2 = com.baidu.android.pushservice.i.a.a(p3, "com.baidu.pushservice.channel_id");
        if (android.text.TextUtils.isEmpty(v0_2)) {
            v0_2 = com.baidu.android.pushservice.i.i.a(p3, "com.baidu.pushservice.channel_id");
            if (android.text.TextUtils.isEmpty(v0_2)) {
                v0_2 = com.baidu.android.pushservice.c.c.a(p3, 0);
                if (android.text.TextUtils.isEmpty(v0_2)) {
                    int v1_3 = com.baidu.android.pushservice.i.l.n(p3).iterator();
                    while (v1_3.hasNext()) {
                        v0_2 = com.baidu.android.pushservice.c.d.a(p3, ((String) v1_3.next()));
                        if (!android.text.TextUtils.isEmpty(v0_2)) {
                            com.baidu.android.pushservice.PushSettings.a(p3, v0_2, 0);
                            break;
                        }
                    }
                }
            }
        }
        return v0_2;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.b():


    private static Object b(android.content.Context p1, String p2)
    {
        if (!com.baidu.android.pushservice.i.l.u(p1, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            return 0;
        } else {
            try {
                return com.baidu.android.pushservice.i.a.a(p1).opt(p2);
            } catch (Throwable v1_2) {
                throw v1_2;
            }
        }
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/i/l;', 'a', '(Landroid/content/Context; Z Z)V'), ('Lcom/baidu/android/pushservice/i/k;', 'd', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'u', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'b', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/Object;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.i.l.a():


    public static void a(android.content.Context p7, boolean p8, boolean p9)
    {
        short v1_3 = new StringBuilder();
        v1_3.append(p7.getPackageName());
        v1_3.append(": updateServiceInfo isForce = ");
        v1_3.append(p8);
        v1_3.append(",isSend = ");
        v1_3.append(p9);
        com.baidu.android.pushservice.f.a.a("Utility", v1_3.toString(), p7.getApplicationContext());
        short v1_2 = 0;
        String v0_2 = p7.getSharedPreferences("pst", 0);
        int v2_2 = com.baidu.android.pushservice.i.l.d(p7, p7.getPackageName());
        if ((v0_2.getInt("pr_app_v", 0) < v2_2) || (p8 != null)) {
            String v8_1 = com.baidu.android.pushservice.i.l.c(p7);
            if ((com.baidu.android.pushservice.b.e.k(p7)) && (!com.baidu.android.pushservice.b.e.c(p7))) {
                v1_2 = 1;
            }
            long v3_4 = 0;
            if ((v8_1 == null) && (v1_2 == 0)) {
                com.baidu.android.pushservice.c.c.a(p7, com.baidu.android.pushservice.i.l.f(p7));
            } else {
                com.baidu.android.pushservice.c.c.a(p7, 0);
            }
            if (com.baidu.android.pushservice.i.l.D(p7)) {
                String v8_2;
                android.content.SharedPreferences$Editor v5_3 = new StringBuilder();
                v5_3.append(p7.getPackageName());
                v5_3.append(".push_sync");
                android.content.SharedPreferences$Editor v5_6 = p7.getSharedPreferences(v5_3.toString(), 5).edit();
                if ((v8_1 == null) && (v1_2 == 0)) {
                    v8_2 = "priority2";
                    v3_4 = com.baidu.android.pushservice.i.l.f(p7);
                } else {
                    v8_2 = "priority2";
                }
                v5_6.putLong(v8_2, v3_4);
                v5_6.putInt("version2", com.baidu.android.pushservice.a.a());
                v5_6.commit();
            }
            com.baidu.android.pushservice.c.c.b(p7, ((long) com.baidu.android.pushservice.a.a()));
            String v8_5 = v0_2.edit();
            v8_5.putInt("pr_app_v", v2_2);
            v8_5.commit();
        }
        if (p9) {
            com.baidu.android.pushservice.i.k.d(p7);
        }
        return;
    }

Method com.baidu.android.pushservice.i.k.d():


    public static void d(android.content.Context p5)
    {
        com.baidu.android.pushservice.b.e.a(p5).e();
        if ((!com.baidu.android.pushservice.b.e.k(p5)) || (com.baidu.android.pushservice.b.e.c(p5))) {
            boolean v0_1 = com.baidu.android.pushservice.i.l.u(p5);
            int v1_0 = p5.getPackageName();
            com.baidu.android.pushservice.i.k.a = com.baidu.android.pushservice.i.l.v(p5);
            String v2_1 = 0;
            if ((com.baidu.android.pushservice.a.a(v1_0)) && (!v1_0.equals(com.baidu.android.pushservice.i.k.a))) {
                v0_1 = v1_0;
                v2_1 = 1;
            }
            com.baidu.android.pushservice.a.c(p5, v2_1);
            if ((android.text.TextUtils.isEmpty(v0_1)) || ((!v0_1.equals(com.baidu.android.pushservice.i.k.a)) || (v2_1 != null))) {
                com.baidu.android.pushservice.i.k.a(p5, v0_1);
            }
            if ((p5.getPackageName().startsWith("com.baidu.searchbox")) && ((!com.baidu.android.pushservice.job.a.b()) && ((!com.baidu.android.pushservice.i.l.l(p5)) && ((!com.baidu.android.pushservice.b.e.c(p5)) && ((android.os.Build$VERSION.SDK_INT > 22) || ((!com.baidu.android.pushservice.i.l.d()) && (!com.baidu.android.pushservice.i.l.e()))))))) {
                com.baidu.android.pushservice.job.a.a(p5);
                com.baidu.android.pushservice.job.a.a(1);
            }
            com.baidu.android.pushservice.h.d.a().a(new com.baidu.android.pushservice.i.k$1("checkAndStartPushService", 98, p5.getApplicationContext()));
            return;
        } else {
            return;
        }
    }

Method com.baidu.android.pushservice.i.l.u():


    public static String u(android.content.Context p4)
    {
        if (!com.baidu.android.pushservice.i.l.E(p4)) {
            java.util.Iterator v0_5 = com.baidu.android.pushservice.i.a.a(p4, "com.baidu.push.cur_pkg");
            String v1_6 = com.baidu.android.pushservice.i.l.s(p4);
            if ((android.text.TextUtils.isEmpty(v0_5)) || (!v1_6.contains(v0_5))) {
                if (!v1_6.isEmpty()) {
                    java.util.Iterator v0_2 = v1_6.iterator();
                    while (v0_2.hasNext()) {
                        String v1_2 = ((String) v0_2.next());
                        if ((!com.baidu.android.pushservice.i.l.z(p4, v1_2)) && ((com.baidu.android.pushservice.i.l.o(p4, v1_2)) && (com.baidu.android.pushservice.i.l.h(p4, v1_2)))) {
                            return v1_2;
                        }
                    }
                }
            } else {
                if ((com.baidu.android.pushservice.i.l.o(p4, v0_5)) && (com.baidu.android.pushservice.i.l.h(p4, v0_5))) {
                    return v0_5;
                }
            }
        } else {
            java.util.Iterator v0_4 = com.baidu.android.pushservice.i.l.s(p4);
            String v1_4 = com.baidu.android.pushservice.i.l.p(p4);
            if (!v0_4.isEmpty()) {
                String v1_5 = v1_4.iterator();
                while (v1_5.hasNext()) {
                    boolean v2_9 = ((android.content.pm.ResolveInfo) v1_5.next()).activityInfo.packageName;
                    if ((v0_4.contains(v2_9)) && ((com.baidu.android.pushservice.i.l.o(p4, v2_9)) && (com.baidu.android.pushservice.i.l.h(p4, v2_9)))) {
                        return v2_9;
                    }
                }
            }
        }
        return 0;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.b():


    private static Object b(android.content.Context p1, String p2)
    {
        if (!com.baidu.android.pushservice.i.l.u(p1, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            return 0;
        } else {
            try {
                return com.baidu.android.pushservice.i.a.a(p1).opt(p2);
            } catch (Throwable v1_2) {
                throw v1_2;
            }
        }
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/i/l;', 'f', '(Landroid/content/Context; Ljava/lang/String;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'u', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'b', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/Object;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.i.l.f():


    public static void f(android.content.Context p5, String p6)
    {
        if (com.baidu.android.pushservice.i.l.i(p5, p6)) {
            String v1_3;
            android.content.Intent v0_1 = com.baidu.android.pushservice.i.k.c(p5);
            boolean v2_0 = nan;
            if (com.baidu.android.pushservice.i.l.E(p5)) {
                v0_1.putExtra("method", "pushservice_restart_v3");
                if ((android.text.TextUtils.isEmpty(p6)) || (!p6.equals(com.baidu.android.pushservice.i.l.u(p5)))) {
                    v1_3 = "priority3";
                    v2_0 = com.baidu.android.pushservice.i.l.h(p5);
                } else {
                    v1_3 = "priority3";
                }
            } else {
                v0_1.putExtra("method", "pushservice_restart_v2");
                if ((android.text.TextUtils.isEmpty(p6)) || (!p6.equals(com.baidu.android.pushservice.i.l.u(p5)))) {
                    v1_3 = "priority2";
                } else {
                    v1_3 = "priority2";
                }
            }
            v0_1.putExtra(v1_3, v2_0);
            if (!android.text.TextUtils.isEmpty(p6)) {
                v0_1.setPackage(p6);
                v0_1.setClassName(p6, "com.baidu.android.pushservice.CommandService");
            }
            v0_1.putExtra("command_type", "reflect_receiver");
            try {
                if (p5.startService(v0_1) == null) {
                    if (!com.baidu.android.pushservice.i.l.F(p5)) {
                        if (!android.text.TextUtils.isEmpty(p6)) {
                            v0_1.setPackage(p6);
                        }
                        String v1_15 = com.baidu.android.pushservice.i.l.c(p5, p6, "com.baidu.android.pushservice.action.METHOD");
                        if (!android.text.TextUtils.isEmpty(v1_15)) {
                            v0_1.setClassName(p6, v1_15);
                        }
                        p5.sendBroadcast(v0_1);
                        com.baidu.android.pushservice.a.a(p5, 0);
                        return;
                    } else {
                        return;
                    }
                } else {
                    return;
                }
            } catch (Exception) {
            }
        } else {
            return;
        }
    }

Method com.baidu.android.pushservice.i.l.u():


    public static String u(android.content.Context p4)
    {
        if (!com.baidu.android.pushservice.i.l.E(p4)) {
            java.util.Iterator v0_5 = com.baidu.android.pushservice.i.a.a(p4, "com.baidu.push.cur_pkg");
            String v1_6 = com.baidu.android.pushservice.i.l.s(p4);
            if ((android.text.TextUtils.isEmpty(v0_5)) || (!v1_6.contains(v0_5))) {
                if (!v1_6.isEmpty()) {
                    java.util.Iterator v0_2 = v1_6.iterator();
                    while (v0_2.hasNext()) {
                        String v1_2 = ((String) v0_2.next());
                        if ((!com.baidu.android.pushservice.i.l.z(p4, v1_2)) && ((com.baidu.android.pushservice.i.l.o(p4, v1_2)) && (com.baidu.android.pushservice.i.l.h(p4, v1_2)))) {
                            return v1_2;
                        }
                    }
                }
            } else {
                if ((com.baidu.android.pushservice.i.l.o(p4, v0_5)) && (com.baidu.android.pushservice.i.l.h(p4, v0_5))) {
                    return v0_5;
                }
            }
        } else {
            java.util.Iterator v0_4 = com.baidu.android.pushservice.i.l.s(p4);
            String v1_4 = com.baidu.android.pushservice.i.l.p(p4);
            if (!v0_4.isEmpty()) {
                String v1_5 = v1_4.iterator();
                while (v1_5.hasNext()) {
                    boolean v2_9 = ((android.content.pm.ResolveInfo) v1_5.next()).activityInfo.packageName;
                    if ((v0_4.contains(v2_9)) && ((com.baidu.android.pushservice.i.l.o(p4, v2_9)) && (com.baidu.android.pushservice.i.l.h(p4, v2_9)))) {
                        return v2_9;
                    }
                }
            }
        }
        return 0;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.b():


    private static Object b(android.content.Context p1, String p2)
    {
        if (!com.baidu.android.pushservice.i.l.u(p1, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            return 0;
        } else {
            try {
                return com.baidu.android.pushservice.i.a.a(p1).opt(p2);
            } catch (Throwable v1_2) {
                throw v1_2;
            }
        }
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/i/l;', 'g', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'a', '(Landroid/content/Context; Z Z)V'), ('Lcom/baidu/android/pushservice/i/k;', 'd', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'u', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'b', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/Object;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.i.l.g():


    public static void g(android.content.Context p1)
    {
        com.baidu.android.pushservice.i.l.a(p1, 0, 0);
        return;
    }

Method com.baidu.android.pushservice.i.l.a():


    public static void a(android.content.Context p7, boolean p8, boolean p9)
    {
        short v1_3 = new StringBuilder();
        v1_3.append(p7.getPackageName());
        v1_3.append(": updateServiceInfo isForce = ");
        v1_3.append(p8);
        v1_3.append(",isSend = ");
        v1_3.append(p9);
        com.baidu.android.pushservice.f.a.a("Utility", v1_3.toString(), p7.getApplicationContext());
        short v1_2 = 0;
        String v0_2 = p7.getSharedPreferences("pst", 0);
        int v2_2 = com.baidu.android.pushservice.i.l.d(p7, p7.getPackageName());
        if ((v0_2.getInt("pr_app_v", 0) < v2_2) || (p8 != null)) {
            String v8_1 = com.baidu.android.pushservice.i.l.c(p7);
            if ((com.baidu.android.pushservice.b.e.k(p7)) && (!com.baidu.android.pushservice.b.e.c(p7))) {
                v1_2 = 1;
            }
            long v3_4 = 0;
            if ((v8_1 == null) && (v1_2 == 0)) {
                com.baidu.android.pushservice.c.c.a(p7, com.baidu.android.pushservice.i.l.f(p7));
            } else {
                com.baidu.android.pushservice.c.c.a(p7, 0);
            }
            if (com.baidu.android.pushservice.i.l.D(p7)) {
                String v8_2;
                android.content.SharedPreferences$Editor v5_3 = new StringBuilder();
                v5_3.append(p7.getPackageName());
                v5_3.append(".push_sync");
                android.content.SharedPreferences$Editor v5_6 = p7.getSharedPreferences(v5_3.toString(), 5).edit();
                if ((v8_1 == null) && (v1_2 == 0)) {
                    v8_2 = "priority2";
                    v3_4 = com.baidu.android.pushservice.i.l.f(p7);
                } else {
                    v8_2 = "priority2";
                }
                v5_6.putLong(v8_2, v3_4);
                v5_6.putInt("version2", com.baidu.android.pushservice.a.a());
                v5_6.commit();
            }
            com.baidu.android.pushservice.c.c.b(p7, ((long) com.baidu.android.pushservice.a.a()));
            String v8_5 = v0_2.edit();
            v8_5.putInt("pr_app_v", v2_2);
            v8_5.commit();
        }
        if (p9) {
            com.baidu.android.pushservice.i.k.d(p7);
        }
        return;
    }

Method com.baidu.android.pushservice.i.k.d():


    public static void d(android.content.Context p5)
    {
        com.baidu.android.pushservice.b.e.a(p5).e();
        if ((!com.baidu.android.pushservice.b.e.k(p5)) || (com.baidu.android.pushservice.b.e.c(p5))) {
            boolean v0_1 = com.baidu.android.pushservice.i.l.u(p5);
            int v1_0 = p5.getPackageName();
            com.baidu.android.pushservice.i.k.a = com.baidu.android.pushservice.i.l.v(p5);
            String v2_1 = 0;
            if ((com.baidu.android.pushservice.a.a(v1_0)) && (!v1_0.equals(com.baidu.android.pushservice.i.k.a))) {
                v0_1 = v1_0;
                v2_1 = 1;
            }
            com.baidu.android.pushservice.a.c(p5, v2_1);
            if ((android.text.TextUtils.isEmpty(v0_1)) || ((!v0_1.equals(com.baidu.android.pushservice.i.k.a)) || (v2_1 != null))) {
                com.baidu.android.pushservice.i.k.a(p5, v0_1);
            }
            if ((p5.getPackageName().startsWith("com.baidu.searchbox")) && ((!com.baidu.android.pushservice.job.a.b()) && ((!com.baidu.android.pushservice.i.l.l(p5)) && ((!com.baidu.android.pushservice.b.e.c(p5)) && ((android.os.Build$VERSION.SDK_INT > 22) || ((!com.baidu.android.pushservice.i.l.d()) && (!com.baidu.android.pushservice.i.l.e()))))))) {
                com.baidu.android.pushservice.job.a.a(p5);
                com.baidu.android.pushservice.job.a.a(1);
            }
            com.baidu.android.pushservice.h.d.a().a(new com.baidu.android.pushservice.i.k$1("checkAndStartPushService", 98, p5.getApplicationContext()));
            return;
        } else {
            return;
        }
    }

Method com.baidu.android.pushservice.i.l.u():


    public static String u(android.content.Context p4)
    {
        if (!com.baidu.android.pushservice.i.l.E(p4)) {
            java.util.Iterator v0_5 = com.baidu.android.pushservice.i.a.a(p4, "com.baidu.push.cur_pkg");
            String v1_6 = com.baidu.android.pushservice.i.l.s(p4);
            if ((android.text.TextUtils.isEmpty(v0_5)) || (!v1_6.contains(v0_5))) {
                if (!v1_6.isEmpty()) {
                    java.util.Iterator v0_2 = v1_6.iterator();
                    while (v0_2.hasNext()) {
                        String v1_2 = ((String) v0_2.next());
                        if ((!com.baidu.android.pushservice.i.l.z(p4, v1_2)) && ((com.baidu.android.pushservice.i.l.o(p4, v1_2)) && (com.baidu.android.pushservice.i.l.h(p4, v1_2)))) {
                            return v1_2;
                        }
                    }
                }
            } else {
                if ((com.baidu.android.pushservice.i.l.o(p4, v0_5)) && (com.baidu.android.pushservice.i.l.h(p4, v0_5))) {
                    return v0_5;
                }
            }
        } else {
            java.util.Iterator v0_4 = com.baidu.android.pushservice.i.l.s(p4);
            String v1_4 = com.baidu.android.pushservice.i.l.p(p4);
            if (!v0_4.isEmpty()) {
                String v1_5 = v1_4.iterator();
                while (v1_5.hasNext()) {
                    boolean v2_9 = ((android.content.pm.ResolveInfo) v1_5.next()).activityInfo.packageName;
                    if ((v0_4.contains(v2_9)) && ((com.baidu.android.pushservice.i.l.o(p4, v2_9)) && (com.baidu.android.pushservice.i.l.h(p4, v2_9)))) {
                        return v2_9;
                    }
                }
            }
        }
        return 0;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.b():


    private static Object b(android.content.Context p1, String p2)
    {
        if (!com.baidu.android.pushservice.i.l.u(p1, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            return 0;
        } else {
            try {
                return com.baidu.android.pushservice.i.a.a(p1).opt(p2);
            } catch (Throwable v1_2) {
                throw v1_2;
            }
        }
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/i;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/PushSettings;', 'a', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'b', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/Object;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.i.<init>():


    private i(android.content.Context p2)
    {
        this.d = com.baidu.android.pushservice.i.i.a(p2, "com.baidu.pushservice.channel_token");
        this.b = com.baidu.android.pushservice.PushSettings.a(p2);
        if (com.baidu.android.pushservice.b.e.b(p2)) {
            this.e = com.baidu.android.pushservice.i.i.a(p2, "com.baidu.pushservice.channel_token_new");
            this.c = com.baidu.android.pushservice.PushSettings.b(p2);
        }
        this.g = 0;
        this.h = p2;
        return;
    }

Method com.baidu.android.pushservice.PushSettings.a():


    public static String a(android.content.Context p3)
    {
        String v0_2 = com.baidu.android.pushservice.i.a.a(p3, "com.baidu.pushservice.channel_id");
        if (android.text.TextUtils.isEmpty(v0_2)) {
            v0_2 = com.baidu.android.pushservice.i.i.a(p3, "com.baidu.pushservice.channel_id");
            if (android.text.TextUtils.isEmpty(v0_2)) {
                v0_2 = com.baidu.android.pushservice.c.c.a(p3, 0);
                if (android.text.TextUtils.isEmpty(v0_2)) {
                    int v1_3 = com.baidu.android.pushservice.i.l.n(p3).iterator();
                    while (v1_3.hasNext()) {
                        v0_2 = com.baidu.android.pushservice.c.d.a(p3, ((String) v1_3.next()));
                        if (!android.text.TextUtils.isEmpty(v0_2)) {
                            com.baidu.android.pushservice.PushSettings.a(p3, v0_2, 0);
                            break;
                        }
                    }
                }
            }
        }
        return v0_2;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.b():


    private static Object b(android.content.Context p1, String p2)
    {
        if (!com.baidu.android.pushservice.i.l.u(p1, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            return 0;
        } else {
            try {
                return com.baidu.android.pushservice.i.a.a(p1).opt(p2);
            } catch (Throwable v1_2) {
                throw v1_2;
            }
        }
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/i;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/i;'), ('Lcom/baidu/android/pushservice/i;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/PushSettings;', 'a', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'b', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/Object;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.i.a():


    public static declared_synchronized com.baidu.android.pushservice.i a(android.content.Context p2)
    {
        try {
            if (com.baidu.android.pushservice.i.a == null) {
                com.baidu.android.pushservice.i.a = new com.baidu.android.pushservice.i(p2);
            }
        } catch (com.baidu.android.pushservice.i v2_1) {
            throw v2_1;
        }
        return com.baidu.android.pushservice.i.a;
    }

Method com.baidu.android.pushservice.i.<init>():


    private i(android.content.Context p2)
    {
        this.d = com.baidu.android.pushservice.i.i.a(p2, "com.baidu.pushservice.channel_token");
        this.b = com.baidu.android.pushservice.PushSettings.a(p2);
        if (com.baidu.android.pushservice.b.e.b(p2)) {
            this.e = com.baidu.android.pushservice.i.i.a(p2, "com.baidu.pushservice.channel_token_new");
            this.c = com.baidu.android.pushservice.PushSettings.b(p2);
        }
        this.g = 0;
        this.h = p2;
        return;
    }

Method com.baidu.android.pushservice.PushSettings.a():


    public static String a(android.content.Context p3)
    {
        String v0_2 = com.baidu.android.pushservice.i.a.a(p3, "com.baidu.pushservice.channel_id");
        if (android.text.TextUtils.isEmpty(v0_2)) {
            v0_2 = com.baidu.android.pushservice.i.i.a(p3, "com.baidu.pushservice.channel_id");
            if (android.text.TextUtils.isEmpty(v0_2)) {
                v0_2 = com.baidu.android.pushservice.c.c.a(p3, 0);
                if (android.text.TextUtils.isEmpty(v0_2)) {
                    int v1_3 = com.baidu.android.pushservice.i.l.n(p3).iterator();
                    while (v1_3.hasNext()) {
                        v0_2 = com.baidu.android.pushservice.c.d.a(p3, ((String) v1_3.next()));
                        if (!android.text.TextUtils.isEmpty(v0_2)) {
                            com.baidu.android.pushservice.PushSettings.a(p3, v0_2, 0);
                            break;
                        }
                    }
                }
            }
        }
        return v0_2;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.b():


    private static Object b(android.content.Context p1, String p2)
    {
        if (!com.baidu.android.pushservice.i.l.u(p1, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            return 0;
        } else {
            try {
                return com.baidu.android.pushservice.i.a.a(p1).opt(p2);
            } catch (Throwable v1_2) {
                throw v1_2;
            }
        }
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/i;', 'a', '(Ljava/lang/String; Ljava/lang/String; Ljava/lang/String; Ljava/lang/String;)V'), ('Lcom/baidu/android/pushservice/PushSettings;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)V'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)V'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/Object;)Z'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.i.a():


    public declared_synchronized void a(String p2, String p3, String p4, String p5)
    {
        try {
            this.b = p2;
            this.d = p3;
            this.c = p4;
            this.e = p5;
            com.baidu.android.pushservice.PushSettings.a(this.h, p2, p4);
            com.baidu.android.pushservice.i.i.a(this.h, "com.baidu.pushservice.channel_token", p3);
            com.baidu.android.pushservice.i.i.a(this.h, "com.baidu.pushservice.channel_token_new", p5);
            return;
        } catch (Throwable v2_1) {
            throw v2_1;
        }
    }

Method com.baidu.android.pushservice.PushSettings.a():


    protected static void a(android.content.Context p1, String p2, String p3)
    {
        com.baidu.android.pushservice.i.a.a(p1, "com.baidu.pushservice.channel_id", p2);
        com.baidu.android.pushservice.i.i.a(p1, "com.baidu.pushservice.channel_id", p2);
        com.baidu.android.pushservice.i.a.a(p1, "com.baidu.pushservice.channel_id_new", p3);
        com.baidu.android.pushservice.i.i.a(p1, "com.baidu.pushservice.channel_id_new", p3);
        com.baidu.android.pushservice.c.c.a(p1, p2, p3);
        return;
    }

Method com.baidu.android.pushservice.i.a.a():


    public static void a(android.content.Context p2, String p3, String p4)
    {
        if (p2 != null) {
            try {
            } catch (Exception) {
            }
            if (!android.provider.Settings$System.putString(p2.getContentResolver(), p3, p4)) {
                com.baidu.android.pushservice.i.a.a(p2, p3, p4);
            }
            return;
        } else {
            return;
        }
    }

Method com.baidu.android.pushservice.i.a.a():


    private static boolean a(android.content.Context p6, String p7, Object p8)
    {
        if (com.baidu.android.pushservice.i.l.u(p6, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            try {
                String v2_1 = com.baidu.android.pushservice.i.a.a(p6);
                java.io.FileOutputStream v4 = 0;
            } catch (java.io.Closeable[] v6_7) {
                throw v6_7;
            }
            if (v2_1.opt(p7) != null) {
                v2_1.remove(p7);
            }
            v2_1.put(p7, p8);
            java.io.FileOutputStream v7_2 = new java.io.File(android.os.Environment.getExternalStorageDirectory(), "baidu/pushservice/files");
            if (!v7_2.exists()) {
                v7_2.mkdirs();
            }
            java.io.File v8_4 = new java.io.File(v7_2, ".info");
            java.io.Closeable[] v6_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getEncrypted(p6, "", v2_1.toString());
            if (!android.text.TextUtils.isEmpty(v6_1)) {
                if (v8_4.exists()) {
                    v8_4.delete();
                }
                v8_4.createNewFile();
                java.io.FileOutputStream v7_7 = new java.io.FileOutputStream(v8_4);
                v7_7.write(v6_1.getBytes());
                java.io.Closeable[] v6_5 = new java.io.Closeable[1];
                v6_5[0] = v7_7;
                com.baidu.android.pushservice.e.b.a(v6_5);
                return 1;
            } else {
                java.io.Closeable[] v6_6 = new java.io.Closeable[1];
                v6_6[0] = 0;
                com.baidu.android.pushservice.e.b.a(v6_6);
                return 0;
            }
        }
        return 0;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getEncrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getEncrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'a', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getEncrypted():


    public static String getEncrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            return com.baidu.android.pushservice.j.b.a(com.baidu.android.pushservice.jni.BaiduAppSSOJni.getEncrypted(p0, p1, p2.getBytes()), "utf-8");
        } catch (Exception) {
            return 0;
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getEncrypted():


    public static byte[] getEncrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_7 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_7 != null) {
                    String v1_3 = new String(v4_7, "utf-8");
                    if (v1_3.length() > 0) {
                        return com.baidu.android.pushservice.j.a.a(v1_3.substring(16), v1_3.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            String v4_5 = new StringBuilder();
            v4_5.append("UnsatisfiedLinkError getEncrypted ");
            v4_5.append(p5);
            com.baidu.android.pushservice.i.l.b(v4_5.toString(), p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.a():


    public static byte[] a(String p2, String p3, byte[] p4)
    {
        javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
        javax.crypto.Cipher v3_3 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
        v3_3.init(1, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
        return v3_3.doFinal(p4);
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getEncrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'a', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getEncrypted():


    public static byte[] getEncrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_7 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_7 != null) {
                    String v1_3 = new String(v4_7, "utf-8");
                    if (v1_3.length() > 0) {
                        return com.baidu.android.pushservice.j.a.a(v1_3.substring(16), v1_3.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            String v4_5 = new StringBuilder();
            v4_5.append("UnsatisfiedLinkError getEncrypted ");
            v4_5.append(p5);
            com.baidu.android.pushservice.i.l.b(v4_5.toString(), p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.a():


    public static byte[] a(String p2, String p3, byte[] p4)
    {
        javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
        javax.crypto.Cipher v3_3 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
        v3_3.init(1, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
        return v3_3.doFinal(p4);
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/job/PushJobService;', 'onStartJob', '(Landroid/app/job/JobParameters;)Z'), ('Lcom/baidu/android/pushservice/i/k;', 'd', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'u', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'b', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/Object;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.job.PushJobService.onStartJob():


    public boolean onStartJob(android.app.job.JobParameters p5)
    {
        if (!com.baidu.android.pushservice.i.l.F(this)) {
            com.baidu.android.pushservice.i.k.d(this);
            if (this.a == null) {
                this.a = new com.baidu.android.pushservice.job.PushJobService$a(this);
            }
            android.os.Handler v0_4 = this.a;
            v0_4.sendMessageDelayed(android.os.Message.obtain(v0_4, 1, p5), 2000);
            return 1;
        } else {
            return 0;
        }
    }

Method com.baidu.android.pushservice.i.k.d():


    public static void d(android.content.Context p5)
    {
        com.baidu.android.pushservice.b.e.a(p5).e();
        if ((!com.baidu.android.pushservice.b.e.k(p5)) || (com.baidu.android.pushservice.b.e.c(p5))) {
            boolean v0_1 = com.baidu.android.pushservice.i.l.u(p5);
            int v1_0 = p5.getPackageName();
            com.baidu.android.pushservice.i.k.a = com.baidu.android.pushservice.i.l.v(p5);
            String v2_1 = 0;
            if ((com.baidu.android.pushservice.a.a(v1_0)) && (!v1_0.equals(com.baidu.android.pushservice.i.k.a))) {
                v0_1 = v1_0;
                v2_1 = 1;
            }
            com.baidu.android.pushservice.a.c(p5, v2_1);
            if ((android.text.TextUtils.isEmpty(v0_1)) || ((!v0_1.equals(com.baidu.android.pushservice.i.k.a)) || (v2_1 != null))) {
                com.baidu.android.pushservice.i.k.a(p5, v0_1);
            }
            if ((p5.getPackageName().startsWith("com.baidu.searchbox")) && ((!com.baidu.android.pushservice.job.a.b()) && ((!com.baidu.android.pushservice.i.l.l(p5)) && ((!com.baidu.android.pushservice.b.e.c(p5)) && ((android.os.Build$VERSION.SDK_INT > 22) || ((!com.baidu.android.pushservice.i.l.d()) && (!com.baidu.android.pushservice.i.l.e()))))))) {
                com.baidu.android.pushservice.job.a.a(p5);
                com.baidu.android.pushservice.job.a.a(1);
            }
            com.baidu.android.pushservice.h.d.a().a(new com.baidu.android.pushservice.i.k$1("checkAndStartPushService", 98, p5.getApplicationContext()));
            return;
        } else {
            return;
        }
    }

Method com.baidu.android.pushservice.i.l.u():


    public static String u(android.content.Context p4)
    {
        if (!com.baidu.android.pushservice.i.l.E(p4)) {
            java.util.Iterator v0_5 = com.baidu.android.pushservice.i.a.a(p4, "com.baidu.push.cur_pkg");
            String v1_6 = com.baidu.android.pushservice.i.l.s(p4);
            if ((android.text.TextUtils.isEmpty(v0_5)) || (!v1_6.contains(v0_5))) {
                if (!v1_6.isEmpty()) {
                    java.util.Iterator v0_2 = v1_6.iterator();
                    while (v0_2.hasNext()) {
                        String v1_2 = ((String) v0_2.next());
                        if ((!com.baidu.android.pushservice.i.l.z(p4, v1_2)) && ((com.baidu.android.pushservice.i.l.o(p4, v1_2)) && (com.baidu.android.pushservice.i.l.h(p4, v1_2)))) {
                            return v1_2;
                        }
                    }
                }
            } else {
                if ((com.baidu.android.pushservice.i.l.o(p4, v0_5)) && (com.baidu.android.pushservice.i.l.h(p4, v0_5))) {
                    return v0_5;
                }
            }
        } else {
            java.util.Iterator v0_4 = com.baidu.android.pushservice.i.l.s(p4);
            String v1_4 = com.baidu.android.pushservice.i.l.p(p4);
            if (!v0_4.isEmpty()) {
                String v1_5 = v1_4.iterator();
                while (v1_5.hasNext()) {
                    boolean v2_9 = ((android.content.pm.ResolveInfo) v1_5.next()).activityInfo.packageName;
                    if ((v0_4.contains(v2_9)) && ((com.baidu.android.pushservice.i.l.o(p4, v2_9)) && (com.baidu.android.pushservice.i.l.h(p4, v2_9)))) {
                        return v2_9;
                    }
                }
            }
        }
        return 0;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.b():


    private static Object b(android.content.Context p1, String p2)
    {
        if (!com.baidu.android.pushservice.i.l.u(p1, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            return 0;
        } else {
            try {
                return com.baidu.android.pushservice.i.a.a(p1).opt(p2);
            } catch (Throwable v1_2) {
                throw v1_2;
            }
        }
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/message/PublicMsg;', 'sendResult', '(Landroid/content/Context; Ljava/lang/String; I)V'), ('Lcom/baidu/android/pushservice/i;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/i;'), ('Lcom/baidu/android/pushservice/i;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/PushSettings;', 'a', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'b', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/Object;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.message.PublicMsg.sendResult():


    private void sendResult(android.content.Context p10, String p11, int p12)
    {
        String v7 = com.baidu.android.pushservice.i.a(p10).a();
        String v5 = com.baidu.android.pushservice.i.a(p10).b();
        if ((!android.text.TextUtils.isEmpty(v7)) && (!android.text.TextUtils.isEmpty(v5))) {
            com.baidu.android.pushservice.message.PublicMsg$1 v1_1 = new StringBuilder();
            v1_1.append("Send Linkhit, msgId = ");
            v1_1.append(p11);
            v1_1.append(", resultCode = ");
            v1_1.append(p12);
            com.baidu.android.pushservice.f.a.a("PublicMsg", v1_1.toString(), p10.getApplicationContext());
            org.json.JSONObject v0_4 = new org.json.JSONObject();
            try {
                v0_4.put("msgid", p11);
                v0_4.put("result_code", p12);
            } catch (com.baidu.android.pushservice.h.d v11_2) {
                com.baidu.android.pushservice.f.a.b("PublicMsg", v11_2.getMessage(), p10.getApplicationContext());
            }
            String v6 = v0_4.toString();
            com.baidu.android.pushservice.h.d v11_4 = com.baidu.android.pushservice.h.d.a();
            com.baidu.android.pushservice.message.PublicMsg$1 v12_2 = new com.baidu.android.pushservice.message.PublicMsg$1;
            v12_2(this, "PushService-linkhit", 90, v5, v6, v7, p10);
            v11_4.a(v12_2);
            return;
        } else {
            com.baidu.android.pushservice.f.a.b("PublicMsg", "Fail Send Public msg result. Token invalid!", p10.getApplicationContext());
            return;
        }
    }

Method com.baidu.android.pushservice.i.a():


    public static declared_synchronized com.baidu.android.pushservice.i a(android.content.Context p2)
    {
        try {
            if (com.baidu.android.pushservice.i.a == null) {
                com.baidu.android.pushservice.i.a = new com.baidu.android.pushservice.i(p2);
            }
        } catch (com.baidu.android.pushservice.i v2_1) {
            throw v2_1;
        }
        return com.baidu.android.pushservice.i.a;
    }

Method com.baidu.android.pushservice.i.<init>():


    private i(android.content.Context p2)
    {
        this.d = com.baidu.android.pushservice.i.i.a(p2, "com.baidu.pushservice.channel_token");
        this.b = com.baidu.android.pushservice.PushSettings.a(p2);
        if (com.baidu.android.pushservice.b.e.b(p2)) {
            this.e = com.baidu.android.pushservice.i.i.a(p2, "com.baidu.pushservice.channel_token_new");
            this.c = com.baidu.android.pushservice.PushSettings.b(p2);
        }
        this.g = 0;
        this.h = p2;
        return;
    }

Method com.baidu.android.pushservice.PushSettings.a():


    public static String a(android.content.Context p3)
    {
        String v0_2 = com.baidu.android.pushservice.i.a.a(p3, "com.baidu.pushservice.channel_id");
        if (android.text.TextUtils.isEmpty(v0_2)) {
            v0_2 = com.baidu.android.pushservice.i.i.a(p3, "com.baidu.pushservice.channel_id");
            if (android.text.TextUtils.isEmpty(v0_2)) {
                v0_2 = com.baidu.android.pushservice.c.c.a(p3, 0);
                if (android.text.TextUtils.isEmpty(v0_2)) {
                    int v1_3 = com.baidu.android.pushservice.i.l.n(p3).iterator();
                    while (v1_3.hasNext()) {
                        v0_2 = com.baidu.android.pushservice.c.d.a(p3, ((String) v1_3.next()));
                        if (!android.text.TextUtils.isEmpty(v0_2)) {
                            com.baidu.android.pushservice.PushSettings.a(p3, v0_2, 0);
                            break;
                        }
                    }
                }
            }
        }
        return v0_2;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.b():


    private static Object b(android.content.Context p1, String p2)
    {
        if (!com.baidu.android.pushservice.i.l.u(p1, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            return 0;
        } else {
            try {
                return com.baidu.android.pushservice.i.a.a(p1).opt(p2);
            } catch (Throwable v1_2) {
                throw v1_2;
            }
        }
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/message/PublicMsg;', 'handle', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)V'), ('Lcom/baidu/android/pushservice/message/PublicMsg;', 'sendResult', '(Landroid/content/Context; Ljava/lang/String; I)V'), ('Lcom/baidu/android/pushservice/i;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/i;'), ('Lcom/baidu/android/pushservice/i;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/PushSettings;', 'a', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'b', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/Object;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.message.PublicMsg.handle():


    public void handle(android.content.Context p6, String p7, String p8)
    {
        com.baidu.android.pushservice.f.a.a("PublicMsg", "--handle--", p6.getApplicationContext());
        if (!"com.baidu.pushservice.action.publicmsg.DELETE_V2".equals(p7)) {
            String v7_1 = p6.getPackageManager();
            int v1_1 = 0;
            try {
                if (v7_1.getPackageInfo(this.mPkgName, 0).versionCode >= this.mPkgVercode) {
                    StringBuilder v2_4 = android.content.Intent.parseUri(this.mPkgContent, 0);
                    v2_4.setPackage(this.mPkgName);
                    if (v7_1.queryBroadcastReceivers(v2_4, 0).size() <= 0) {
                        if (v7_1.queryIntentActivities(v2_4, 0).size() <= 0) {
                        } else {
                            v2_4.addFlags(268435456);
                            p6.startActivity(v2_4);
                        }
                    } else {
                        p6.sendBroadcast(v2_4);
                    }
                    v1_1 = 1;
                }
            } catch (String v7_7) {
                StringBuilder v2_6 = "PublicMsg";
                String v3_5 = new StringBuilder();
                v3_5.append("package not exist \r\n");
                String v7_5 = v7_7.getMessage();
                v3_5.append(v7_5);
                com.baidu.android.pushservice.f.a.b(v2_6, v3_5.toString(), p6);
            } catch (String v7_6) {
                v2_6 = "PublicMsg";
                v3_5 = new StringBuilder();
                v3_5.append("uri to intent fail \r\n");
                v7_5 = v7_6.getMessage();
            } catch (String v7_4) {
                v2_6 = "PublicMsg";
                v3_5 = new StringBuilder();
                v3_5.append("parse customize action error\r\n");
                v7_5 = v7_4.getMessage();
            }
            if (v1_1 == 0) {
                String v7_11 = new android.content.Intent("android.intent.action.VIEW");
                v7_11.setData(android.net.Uri.parse(this.mUrl));
                v7_11.addFlags(268435456);
                try {
                    p6.startActivity(v7_11);
                } catch (String v7_12) {
                    StringBuilder v2_11 = new StringBuilder();
                    v2_11.append(">>> Url cann\'t be deal! \r\n");
                    v2_11.append(v7_12.getMessage());
                    com.baidu.android.pushservice.f.a.b("PublicMsg", v2_11.toString(), p6);
                }
            }
            this.sendResult(p6, p8, v1_1);
            return;
        } else {
            com.baidu.android.pushservice.f.a.a("PublicMsg", "Public msg deleted by user", p6.getApplicationContext());
            this.sendResult(p6, p8, 2);
            return;
        }
    }

Method com.baidu.android.pushservice.message.PublicMsg.sendResult():


    private void sendResult(android.content.Context p10, String p11, int p12)
    {
        String v7 = com.baidu.android.pushservice.i.a(p10).a();
        String v5 = com.baidu.android.pushservice.i.a(p10).b();
        if ((!android.text.TextUtils.isEmpty(v7)) && (!android.text.TextUtils.isEmpty(v5))) {
            com.baidu.android.pushservice.message.PublicMsg$1 v1_1 = new StringBuilder();
            v1_1.append("Send Linkhit, msgId = ");
            v1_1.append(p11);
            v1_1.append(", resultCode = ");
            v1_1.append(p12);
            com.baidu.android.pushservice.f.a.a("PublicMsg", v1_1.toString(), p10.getApplicationContext());
            org.json.JSONObject v0_4 = new org.json.JSONObject();
            try {
                v0_4.put("msgid", p11);
                v0_4.put("result_code", p12);
            } catch (com.baidu.android.pushservice.h.d v11_2) {
                com.baidu.android.pushservice.f.a.b("PublicMsg", v11_2.getMessage(), p10.getApplicationContext());
            }
            String v6 = v0_4.toString();
            com.baidu.android.pushservice.h.d v11_4 = com.baidu.android.pushservice.h.d.a();
            com.baidu.android.pushservice.message.PublicMsg$1 v12_2 = new com.baidu.android.pushservice.message.PublicMsg$1;
            v12_2(this, "PushService-linkhit", 90, v5, v6, v7, p10);
            v11_4.a(v12_2);
            return;
        } else {
            com.baidu.android.pushservice.f.a.b("PublicMsg", "Fail Send Public msg result. Token invalid!", p10.getApplicationContext());
            return;
        }
    }

Method com.baidu.android.pushservice.i.a():


    public static declared_synchronized com.baidu.android.pushservice.i a(android.content.Context p2)
    {
        try {
            if (com.baidu.android.pushservice.i.a == null) {
                com.baidu.android.pushservice.i.a = new com.baidu.android.pushservice.i(p2);
            }
        } catch (com.baidu.android.pushservice.i v2_1) {
            throw v2_1;
        }
        return com.baidu.android.pushservice.i.a;
    }

Method com.baidu.android.pushservice.i.<init>():


    private i(android.content.Context p2)
    {
        this.d = com.baidu.android.pushservice.i.i.a(p2, "com.baidu.pushservice.channel_token");
        this.b = com.baidu.android.pushservice.PushSettings.a(p2);
        if (com.baidu.android.pushservice.b.e.b(p2)) {
            this.e = com.baidu.android.pushservice.i.i.a(p2, "com.baidu.pushservice.channel_token_new");
            this.c = com.baidu.android.pushservice.PushSettings.b(p2);
        }
        this.g = 0;
        this.h = p2;
        return;
    }

Method com.baidu.android.pushservice.PushSettings.a():


    public static String a(android.content.Context p3)
    {
        String v0_2 = com.baidu.android.pushservice.i.a.a(p3, "com.baidu.pushservice.channel_id");
        if (android.text.TextUtils.isEmpty(v0_2)) {
            v0_2 = com.baidu.android.pushservice.i.i.a(p3, "com.baidu.pushservice.channel_id");
            if (android.text.TextUtils.isEmpty(v0_2)) {
                v0_2 = com.baidu.android.pushservice.c.c.a(p3, 0);
                if (android.text.TextUtils.isEmpty(v0_2)) {
                    int v1_3 = com.baidu.android.pushservice.i.l.n(p3).iterator();
                    while (v1_3.hasNext()) {
                        v0_2 = com.baidu.android.pushservice.c.d.a(p3, ((String) v1_3.next()));
                        if (!android.text.TextUtils.isEmpty(v0_2)) {
                            com.baidu.android.pushservice.PushSettings.a(p3, v0_2, 0);
                            break;
                        }
                    }
                }
            }
        }
        return v0_2;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.b():


    private static Object b(android.content.Context p1, String p2)
    {
        if (!com.baidu.android.pushservice.i.l.u(p1, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            return 0;
        } else {
            try {
                return com.baidu.android.pushservice.i.a.a(p1).opt(p2);
            } catch (Throwable v1_2) {
                throw v1_2;
            }
        }
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.

[TAINT] Const '16' ==>>> Sink '['Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V', '0', 'CRYPTO_SINK']' [[('Lcom/baidu/android/pushservice/message/a/e;', 'a', '(Landroid/content/Context; Ljava/lang/String;)V'), ('Lcom/baidu/android/pushservice/i/k;', 'a', '(Landroid/content/Context; Landroid/content/Intent;)V'), ('Lcom/baidu/android/pushservice/h;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/h;'), ('Lcom/baidu/android/pushservice/h;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/i;'), ('Lcom/baidu/android/pushservice/i;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/PushSettings;', 'a', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/a;', 'b', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/Object;'), ('Lcom/baidu/android/pushservice/i/a;', 'a', '(Landroid/content/Context;)Lorg/json/JSONObject;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/jni/BaiduAppSSOJni;', 'getDecrypted', '(Landroid/content/Context; Ljava/lang/String; [B)[B'), ('Lcom/baidu/android/pushservice/j/a;', 'b', '(Ljava/lang/String; Ljava/lang/String; [B)[B'), ('Ljavax/crypto/spec/IvParameterSpec;', '<init>', '([B)V')]]

The application uses a hardcoded initialization vector (IV) to encrypt the data

Method com.baidu.android.pushservice.message.a.e.a():


    public static void a(android.content.Context p3, String p4)
    {
        try {
            android.content.Intent v0_1 = new android.content.Intent("com.baidu.android.pushservice.action.METHOD");
            v0_1.putExtra("method", "com.baidu.android.pushservice.action.UNBINDAPP");
            v0_1.putExtra("app_id", p4);
            com.baidu.android.pushservice.i.k.a(p3, v0_1);
        } catch (Exception) {
        }
        return;
    }

Method com.baidu.android.pushservice.i.k.a():


    public static void a(android.content.Context p2, android.content.Intent p3)
    {
        if ((p3 == null) || (android.text.TextUtils.isEmpty(p3.getAction()))) {
            p3 = com.baidu.android.pushservice.i.k.c(p2);
        }
        if ((com.baidu.android.pushservice.b.e.k(p2)) && (!com.baidu.android.pushservice.b.e.c(p2))) {
            com.baidu.android.pushservice.h.a(p2).a(p3);
        } else {
            if ((android.text.TextUtils.isEmpty(com.baidu.android.pushservice.i.k.a)) || (p2.getPackageName().equals(com.baidu.android.pushservice.i.k.a))) {
                com.baidu.android.pushservice.i.k.a = com.baidu.android.pushservice.i.l.v(p2);
            }
            com.baidu.android.pushservice.i.k.a(p2, p3, com.baidu.android.pushservice.i.k.a);
        }
        return;
    }

Method com.baidu.android.pushservice.h.a():


    public static declared_synchronized com.baidu.android.pushservice.h a(android.content.Context p2)
    {
        try {
            if (com.baidu.android.pushservice.h.c == null) {
                com.baidu.android.pushservice.h.c = new com.baidu.android.pushservice.h(p2);
            }
        } catch (com.baidu.android.pushservice.h v2_1) {
            throw v2_1;
        }
        return com.baidu.android.pushservice.h.c;
    }

Method com.baidu.android.pushservice.h.<init>():


    private h(android.content.Context p1)
    {
        this.a = p1;
        com.baidu.android.pushservice.a.b.a(p1);
        com.baidu.android.pushservice.i.a(p1);
        com.baidu.android.pushservice.h.d.a();
        return;
    }

Method com.baidu.android.pushservice.i.a():


    public static declared_synchronized com.baidu.android.pushservice.i a(android.content.Context p2)
    {
        try {
            if (com.baidu.android.pushservice.i.a == null) {
                com.baidu.android.pushservice.i.a = new com.baidu.android.pushservice.i(p2);
            }
        } catch (com.baidu.android.pushservice.i v2_1) {
            throw v2_1;
        }
        return com.baidu.android.pushservice.i.a;
    }

Method com.baidu.android.pushservice.i.<init>():


    private i(android.content.Context p2)
    {
        this.d = com.baidu.android.pushservice.i.i.a(p2, "com.baidu.pushservice.channel_token");
        this.b = com.baidu.android.pushservice.PushSettings.a(p2);
        if (com.baidu.android.pushservice.b.e.b(p2)) {
            this.e = com.baidu.android.pushservice.i.i.a(p2, "com.baidu.pushservice.channel_token_new");
            this.c = com.baidu.android.pushservice.PushSettings.b(p2);
        }
        this.g = 0;
        this.h = p2;
        return;
    }

Method com.baidu.android.pushservice.PushSettings.a():


    public static String a(android.content.Context p3)
    {
        String v0_2 = com.baidu.android.pushservice.i.a.a(p3, "com.baidu.pushservice.channel_id");
        if (android.text.TextUtils.isEmpty(v0_2)) {
            v0_2 = com.baidu.android.pushservice.i.i.a(p3, "com.baidu.pushservice.channel_id");
            if (android.text.TextUtils.isEmpty(v0_2)) {
                v0_2 = com.baidu.android.pushservice.c.c.a(p3, 0);
                if (android.text.TextUtils.isEmpty(v0_2)) {
                    int v1_3 = com.baidu.android.pushservice.i.l.n(p3).iterator();
                    while (v1_3.hasNext()) {
                        v0_2 = com.baidu.android.pushservice.c.d.a(p3, ((String) v1_3.next()));
                        if (!android.text.TextUtils.isEmpty(v0_2)) {
                            com.baidu.android.pushservice.PushSettings.a(p3, v0_2, 0);
                            break;
                        }
                    }
                }
            }
        }
        return v0_2;
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.i.a.b():


    private static Object b(android.content.Context p1, String p2)
    {
        if (!com.baidu.android.pushservice.i.l.u(p1, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            return 0;
        } else {
            try {
                return com.baidu.android.pushservice.i.a.a(p1).opt(p2);
            } catch (Throwable v1_2) {
                throw v1_2;
            }
        }
    }

Method com.baidu.android.pushservice.i.a.a():

Couldn't retrieve source code

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static String getDecrypted(android.content.Context p0, String p1, String p2)
    {
        try {
            int v0_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted(p0, p1, com.baidu.android.pushservice.j.b.a(p2.getBytes()));
        } catch (Exception) {
            return 0;
        }
        if ((v0_1 == 0) || (v0_1.length <= 0)) {
            return 0;
        } else {
            return new String(v0_1, "utf-8");
        }
    }

Method com.baidu.android.pushservice.jni.BaiduAppSSOJni.getDecrypted():


    public static byte[] getDecrypted(android.content.Context p3, String p4, byte[] p5)
    {
        try {
            if (p4 != null) {
                String v4_5 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getKey(p4);
                if (v4_5 != null) {
                    String v1_2 = new String(v4_5, "utf-8");
                    if (v1_2.length() > 0) {
                        return com.baidu.android.pushservice.j.a.b(v1_2.substring(16), v1_2.substring(0, 16), p5);
                    }
                } else {
                    return 0;
                }
            } else {
                p4 = "";
            }
        } catch (Exception) {
        } catch (UnsatisfiedLinkError) {
            com.baidu.android.pushservice.i.l.b("UnsatisfiedLinkError getDecrypted ", p3);
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.a.b():


    public static byte[] b(String p2, String p3, byte[] p4)
    {
        if ((!android.text.TextUtils.isEmpty(p2)) && ((!android.text.TextUtils.isEmpty(p3)) && (p4 != null))) {
            javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p3.getBytes(), "AES");
            javax.crypto.Cipher v3_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            v3_2.init(2, v0_1, new javax.crypto.spec.IvParameterSpec(p2.getBytes()));
            return v3_2.doFinal(p4);
        } else {
            return 0;
        }
    }

Method javax.crypto.spec.IvParameterSpec.<init>() not found.