Potentially Insecure Shared Preferences Permissions

Description

Setting Shared Preferences with insecure permissions either world readable or world writable may expose sensitive information stored in shared preferences to arbitrary read or write by a malicious attacker.

Recommendation

Shared Preferences are XML files to store private primitive data in key-value pairs. Data Types include Booleans, floats, ints, longs, and strings.

Shared preferences must be set with the permission MODE_WORLD_READABLE, unless explicity required for sharing information across apps.

Technical details
[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_SINK']' [[('Lcom/baidu/android/pushservice/PushSettings;', 'a', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/c/d;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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.c.d.a():

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_SINK']' [[('Lcom/baidu/android/pushservice/PushService$1;', 'run', '()V'), ('Lcom/baidu/android/pushservice/i/l;', 'v', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/l;', 'p', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/l;', 'o', '(Landroid/content/Context;)Ljava/util/List;'), ('Lcom/baidu/android/pushservice/i/l;', 'z', '(Landroid/content/Context; Ljava/lang/String;)Z'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

Method com.baidu.android.pushservice.PushService$1.run():


    public void run()
    {
        this.a.stopSelf();
        com.baidu.android.pushservice.f.b();
        if (!this.a.getPackageName().equals(com.baidu.android.pushservice.i.l.v(this.a.getApplicationContext()))) {
            this.a.onDestroy();
        }
        return;
    }

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


    public static String v(android.content.Context p1)
    {
        return com.baidu.android.pushservice.i.l.p(p1, p1.getPackageName());
    }

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

Couldn't retrieve source code

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


    public static java.util.List o(android.content.Context p5)
    {
        java.util.List v0_1 = new java.util.ArrayList();
        try {
            java.util.ArrayList v1_2 = p5.getPackageManager();
        } catch (Exception) {
            return v0_1;
        }
        if (v1_2 != null) {
            v0_1 = v1_2.queryBroadcastReceivers(new android.content.Intent("com.baidu.android.pushservice.action.BIND_SYNC"), 576);
            java.util.ArrayList v1_1 = new java.util.ArrayList();
            java.util.Iterator v2_0 = v0_1.iterator();
            while (v2_0.hasNext()) {
                android.content.pm.ResolveInfo v3_2 = ((android.content.pm.ResolveInfo) v2_0.next());
                if (com.baidu.android.pushservice.i.l.z(p5, v3_2.activityInfo.packageName)) {
                    v1_1.add(v3_2);
                }
            }
            v0_1.removeAll(v1_1);
            return v0_1;
        } else {
            return v0_1;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_SINK']' [[('Lcom/baidu/android/pushservice/PushServiceReceiver;', 'a', '(Landroid/content/Context; Lcom/baidu/android/pushservice/message/PublicMsg; [B [B)V'), ('Lcom/baidu/android/pushservice/i/l;', 'b', '(Landroid/content/Context; Landroid/content/Intent; Ljava/lang/String; Ljava/lang/String;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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


    private static void a(android.content.Context p3, com.baidu.android.pushservice.message.PublicMsg p4, byte[] p5, byte[] p6)
    {
        android.content.Intent v0_1 = new android.content.Intent();
        v0_1.setPackage(p4.mPkgName);
        v0_1.putExtra("method", "com.baidu.android.pushservice.action.notification.ARRIVED");
        v0_1.putExtra("msgid", p4.mMsgId);
        v0_1.putExtra("notification_title", p4.mTitle);
        v0_1.putExtra("notification_content", p4.mDescription);
        v0_1.putExtra("extra_extra_custom_content", p4.mCustomContent);
        v0_1.putExtra("com.baidu.pushservice.app_id", p4.mAppId);
        v0_1.putExtra("baidu_message_secur_info", p5);
        v0_1.putExtra("baidu_message_body", p6);
        com.baidu.android.pushservice.i.l.b(p3, v0_1, "com.baidu.android.pushservice.action.RECEIVE", p4.mPkgName);
        return;
    }

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


    public static void b(android.content.Context p3, android.content.Intent p4, String p5, String p6)
    {
        p4.setFlags(32);
        String v1_2 = com.baidu.android.pushservice.i.l.m(p3, p6);
        if (v1_2 >= 32) {
            try {
                if (!android.text.TextUtils.isEmpty(p5)) {
                    p4.setAction(p5);
                }
            } catch (Exception) {
            }
            if (!android.text.TextUtils.isEmpty(p6)) {
                p4.setPackage(p6);
                p4.setClassName(p6, "com.baidu.android.pushservice.CommandService");
            }
            p4.putExtra("command_type", "reflect_receiver");
            if (p3.startService(p4) == null) {
                boolean v0_6 = new StringBuilder();
                v0_6.append("sendRedirecctionIntent#intergratedPushVersion=");
                v0_6.append(v1_2);
                v0_6.append(", packageName=");
                v0_6.append(p6);
                v0_6.append(", intent=");
                v0_6.append(p4.toUri(0));
                com.baidu.android.pushservice.i.l.b(v0_6.toString(), p3);
            } else {
                return;
            }
        }
        if (!com.baidu.android.pushservice.i.l.F(p3)) {
            if (!android.text.TextUtils.isEmpty(p5)) {
                p4.setAction(p5);
            }
            if (!android.text.TextUtils.isEmpty(p6)) {
                p4.setPackage(p6);
            }
            String v5_1 = com.baidu.android.pushservice.i.l.c(p3, p6, p5);
            if (!android.text.TextUtils.isEmpty(v5_1)) {
                p4.setClassName(p6, v5_1);
            }
            p3.sendBroadcast(p4);
            return;
        } else {
            return;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_SINK']' [[('Lcom/baidu/android/pushservice/PushServiceReceiver;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String; Lcom/baidu/android/pushservice/message/PublicMsg; [B [B)V'), ('Lcom/baidu/android/pushservice/PushServiceReceiver;', 'b', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String; Lcom/baidu/android/pushservice/message/PublicMsg; [B [B)V'), ('Lcom/baidu/android/pushservice/PushServiceReceiver;', 'a', '(Landroid/content/Context; Lcom/baidu/android/pushservice/message/PublicMsg; [B [B)V'), ('Lcom/baidu/android/pushservice/i/l;', 'b', '(Landroid/content/Context; Landroid/content/Intent; Ljava/lang/String; Ljava/lang/String;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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


    static synthetic void a(android.content.Context p0, String p1, String p2, com.baidu.android.pushservice.message.PublicMsg p3, byte[] p4, byte[] p5)
    {
        com.baidu.android.pushservice.PushServiceReceiver.b(p0, p1, p2, p3, p4, p5);
        return;
    }

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


    private static void b(android.content.Context p9, String p10, String p11, com.baidu.android.pushservice.message.PublicMsg p12, byte[] p13, byte[] p14)
    {
        android.app.Notification v11_8;
        android.app.NotificationManager v0_2 = ((android.app.NotificationManager) p9.getSystemService("notification"));
        android.app.PendingIntent v1_2 = new android.content.Intent();
        v1_2.setClassName(p10, p11);
        v1_2.setAction("com.baidu.android.pushservice.action.privatenotification.CLICK");
        int v2_0 = new StringBuilder();
        v2_0.append("content://");
        v2_0.append(p12.mMsgId);
        v1_2.setData(android.net.Uri.parse(v2_0.toString()));
        v1_2.putExtra("public_msg", p12);
        v1_2.putExtra("app_id", p12.mAppId);
        v1_2.putExtra("msg_id", p12.mMsgId);
        v1_2.putExtra("baidu_message_secur_info", p13);
        v1_2.putExtra("baidu_message_body", p14);
        android.app.PendingIntent v1_0 = android.app.PendingIntent.getService(p9, 0, v1_2, 0);
        String v3_5 = new android.content.Intent();
        v3_5.setClassName(p10, p11);
        v3_5.setAction("com.baidu.android.pushservice.action.privatenotification.DELETE");
        String v10_3 = new StringBuilder();
        v10_3.append("content://");
        v10_3.append(p12.mMsgId);
        v3_5.setData(android.net.Uri.parse(v10_3.toString()));
        v3_5.putExtra("public_msg", p12);
        v3_5.putExtra("app_id", p12.mAppId);
        v3_5.putExtra("msg_id", p12.mMsgId);
        String v10_9 = android.app.PendingIntent.getService(p9, 0, v3_5, 0);
        boolean v8 = com.baidu.android.pushservice.i.l.q(p9, p12.mPkgName);
        if (p12.mNotificationBuilder != 0) {
            v11_8 = com.baidu.android.pushservice.c.a(p9, p12.mNotificationBuilder, p12.mTitle, p12.mDescription, v8);
        } else {
            v11_8 = com.baidu.android.pushservice.c.a(p9, p12.mNotificationBuilder, p12.mNotificationBasicStyle, p12.mTitle, p12.mDescription, v8);
        }
        v11_8.contentIntent = v1_0;
        v11_8.deleteIntent = v10_9;
        v0_2.notify(p12.mMsgId, 0, v11_8);
        com.baidu.android.pushservice.PushServiceReceiver.a(p9, p12, p13, p14);
        return;
    }

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


    private static void a(android.content.Context p3, com.baidu.android.pushservice.message.PublicMsg p4, byte[] p5, byte[] p6)
    {
        android.content.Intent v0_1 = new android.content.Intent();
        v0_1.setPackage(p4.mPkgName);
        v0_1.putExtra("method", "com.baidu.android.pushservice.action.notification.ARRIVED");
        v0_1.putExtra("msgid", p4.mMsgId);
        v0_1.putExtra("notification_title", p4.mTitle);
        v0_1.putExtra("notification_content", p4.mDescription);
        v0_1.putExtra("extra_extra_custom_content", p4.mCustomContent);
        v0_1.putExtra("com.baidu.pushservice.app_id", p4.mAppId);
        v0_1.putExtra("baidu_message_secur_info", p5);
        v0_1.putExtra("baidu_message_body", p6);
        com.baidu.android.pushservice.i.l.b(p3, v0_1, "com.baidu.android.pushservice.action.RECEIVE", p4.mPkgName);
        return;
    }

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


    public static void b(android.content.Context p3, android.content.Intent p4, String p5, String p6)
    {
        p4.setFlags(32);
        String v1_2 = com.baidu.android.pushservice.i.l.m(p3, p6);
        if (v1_2 >= 32) {
            try {
                if (!android.text.TextUtils.isEmpty(p5)) {
                    p4.setAction(p5);
                }
            } catch (Exception) {
            }
            if (!android.text.TextUtils.isEmpty(p6)) {
                p4.setPackage(p6);
                p4.setClassName(p6, "com.baidu.android.pushservice.CommandService");
            }
            p4.putExtra("command_type", "reflect_receiver");
            if (p3.startService(p4) == null) {
                boolean v0_6 = new StringBuilder();
                v0_6.append("sendRedirecctionIntent#intergratedPushVersion=");
                v0_6.append(v1_2);
                v0_6.append(", packageName=");
                v0_6.append(p6);
                v0_6.append(", intent=");
                v0_6.append(p4.toUri(0));
                com.baidu.android.pushservice.i.l.b(v0_6.toString(), p3);
            } else {
                return;
            }
        }
        if (!com.baidu.android.pushservice.i.l.F(p3)) {
            if (!android.text.TextUtils.isEmpty(p5)) {
                p4.setAction(p5);
            }
            if (!android.text.TextUtils.isEmpty(p6)) {
                p4.setPackage(p6);
            }
            String v5_1 = com.baidu.android.pushservice.i.l.c(p3, p6, p5);
            if (!android.text.TextUtils.isEmpty(v5_1)) {
                p4.setClassName(p6, v5_1);
            }
            p3.sendBroadcast(p4);
            return;
        } else {
            return;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_SINK']' [[('Lcom/baidu/android/pushservice/PushServiceReceiver;', 'b', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String; Lcom/baidu/android/pushservice/message/PublicMsg; [B [B)V'), ('Lcom/baidu/android/pushservice/PushServiceReceiver;', 'a', '(Landroid/content/Context; Lcom/baidu/android/pushservice/message/PublicMsg; [B [B)V'), ('Lcom/baidu/android/pushservice/i/l;', 'b', '(Landroid/content/Context; Landroid/content/Intent; Ljava/lang/String; Ljava/lang/String;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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


    private static void b(android.content.Context p9, String p10, String p11, com.baidu.android.pushservice.message.PublicMsg p12, byte[] p13, byte[] p14)
    {
        android.app.Notification v11_8;
        android.app.NotificationManager v0_2 = ((android.app.NotificationManager) p9.getSystemService("notification"));
        android.app.PendingIntent v1_2 = new android.content.Intent();
        v1_2.setClassName(p10, p11);
        v1_2.setAction("com.baidu.android.pushservice.action.privatenotification.CLICK");
        int v2_0 = new StringBuilder();
        v2_0.append("content://");
        v2_0.append(p12.mMsgId);
        v1_2.setData(android.net.Uri.parse(v2_0.toString()));
        v1_2.putExtra("public_msg", p12);
        v1_2.putExtra("app_id", p12.mAppId);
        v1_2.putExtra("msg_id", p12.mMsgId);
        v1_2.putExtra("baidu_message_secur_info", p13);
        v1_2.putExtra("baidu_message_body", p14);
        android.app.PendingIntent v1_0 = android.app.PendingIntent.getService(p9, 0, v1_2, 0);
        String v3_5 = new android.content.Intent();
        v3_5.setClassName(p10, p11);
        v3_5.setAction("com.baidu.android.pushservice.action.privatenotification.DELETE");
        String v10_3 = new StringBuilder();
        v10_3.append("content://");
        v10_3.append(p12.mMsgId);
        v3_5.setData(android.net.Uri.parse(v10_3.toString()));
        v3_5.putExtra("public_msg", p12);
        v3_5.putExtra("app_id", p12.mAppId);
        v3_5.putExtra("msg_id", p12.mMsgId);
        String v10_9 = android.app.PendingIntent.getService(p9, 0, v3_5, 0);
        boolean v8 = com.baidu.android.pushservice.i.l.q(p9, p12.mPkgName);
        if (p12.mNotificationBuilder != 0) {
            v11_8 = com.baidu.android.pushservice.c.a(p9, p12.mNotificationBuilder, p12.mTitle, p12.mDescription, v8);
        } else {
            v11_8 = com.baidu.android.pushservice.c.a(p9, p12.mNotificationBuilder, p12.mNotificationBasicStyle, p12.mTitle, p12.mDescription, v8);
        }
        v11_8.contentIntent = v1_0;
        v11_8.deleteIntent = v10_9;
        v0_2.notify(p12.mMsgId, 0, v11_8);
        com.baidu.android.pushservice.PushServiceReceiver.a(p9, p12, p13, p14);
        return;
    }

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


    private static void a(android.content.Context p3, com.baidu.android.pushservice.message.PublicMsg p4, byte[] p5, byte[] p6)
    {
        android.content.Intent v0_1 = new android.content.Intent();
        v0_1.setPackage(p4.mPkgName);
        v0_1.putExtra("method", "com.baidu.android.pushservice.action.notification.ARRIVED");
        v0_1.putExtra("msgid", p4.mMsgId);
        v0_1.putExtra("notification_title", p4.mTitle);
        v0_1.putExtra("notification_content", p4.mDescription);
        v0_1.putExtra("extra_extra_custom_content", p4.mCustomContent);
        v0_1.putExtra("com.baidu.pushservice.app_id", p4.mAppId);
        v0_1.putExtra("baidu_message_secur_info", p5);
        v0_1.putExtra("baidu_message_body", p6);
        com.baidu.android.pushservice.i.l.b(p3, v0_1, "com.baidu.android.pushservice.action.RECEIVE", p4.mPkgName);
        return;
    }

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


    public static void b(android.content.Context p3, android.content.Intent p4, String p5, String p6)
    {
        p4.setFlags(32);
        String v1_2 = com.baidu.android.pushservice.i.l.m(p3, p6);
        if (v1_2 >= 32) {
            try {
                if (!android.text.TextUtils.isEmpty(p5)) {
                    p4.setAction(p5);
                }
            } catch (Exception) {
            }
            if (!android.text.TextUtils.isEmpty(p6)) {
                p4.setPackage(p6);
                p4.setClassName(p6, "com.baidu.android.pushservice.CommandService");
            }
            p4.putExtra("command_type", "reflect_receiver");
            if (p3.startService(p4) == null) {
                boolean v0_6 = new StringBuilder();
                v0_6.append("sendRedirecctionIntent#intergratedPushVersion=");
                v0_6.append(v1_2);
                v0_6.append(", packageName=");
                v0_6.append(p6);
                v0_6.append(", intent=");
                v0_6.append(p4.toUri(0));
                com.baidu.android.pushservice.i.l.b(v0_6.toString(), p3);
            } else {
                return;
            }
        }
        if (!com.baidu.android.pushservice.i.l.F(p3)) {
            if (!android.text.TextUtils.isEmpty(p5)) {
                p4.setAction(p5);
            }
            if (!android.text.TextUtils.isEmpty(p6)) {
                p4.setPackage(p6);
            }
            String v5_1 = com.baidu.android.pushservice.i.l.c(p3, p6, p5);
            if (!android.text.TextUtils.isEmpty(v5_1)) {
                p4.setClassName(p6, v5_1);
            }
            p3.sendBroadcast(p4);
            return;
        } else {
            return;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_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/l;', 'p', '(Landroid/content/Context;)Ljava/util/List;'), ('Lcom/baidu/android/pushservice/i/l;', 'z', '(Landroid/content/Context; Ljava/lang/String;)Z'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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.l.p():


    public static java.util.List p(android.content.Context p5)
    {
        java.util.List v0_1 = new java.util.ArrayList();
        try {
            java.util.ArrayList v1_2 = p5.getPackageManager();
        } catch (Exception) {
            return v0_1;
        }
        if (v1_2 != null) {
            v0_1 = v1_2.queryBroadcastReceivers(new android.content.Intent("com.baidu.android.pushservice.action.BIND_SYNC"), 576);
            java.util.ArrayList v1_1 = new java.util.ArrayList();
            java.util.Iterator v2_0 = v0_1.iterator();
            while (v2_0.hasNext()) {
                android.content.pm.ResolveInfo v3_2 = ((android.content.pm.ResolveInfo) v2_0.next());
                if (!com.baidu.android.pushservice.i.l.z(p5, v3_2.activityInfo.packageName)) {
                    v1_1.add(v3_2);
                }
            }
            v0_1.removeAll(v1_1);
            return v0_1;
        } else {
            return v0_1;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_SINK']' [[('Lcom/baidu/android/pushservice/d$a;', 'run', '()V'), ('Lcom/baidu/android/pushservice/d;', 'e', '(Lcom/baidu/android/pushservice/d;)V'), ('Lcom/baidu/android/pushservice/d;', 'j', '()V'), ('Lcom/baidu/android/pushservice/i/l;', 'v', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/l;', 'p', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/l;', 'o', '(Landroid/content/Context;)Ljava/util/List;'), ('Lcom/baidu/android/pushservice/i/l;', 'z', '(Landroid/content/Context; Ljava/lang/String;)Z'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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.e():


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

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


    private void j()
    {
        int v1_4 = new StringBuilder();
        v1_4.append("disconnectedByPeer, mStoped == ");
        v1_4.append(this.j);
        com.baidu.android.pushservice.f.a.c("PushConnection", v1_4.toString(), this.l.getApplicationContext());
        android.content.Context v0_2 = new StringBuilder();
        v0_2.append("PushConnection destroy from ");
        v0_2.append(this.l.getPackageName());
        v0_2.append(" at Time ");
        v0_2.append(System.currentTimeMillis());
        com.baidu.android.pushservice.i.l.b(v0_2.toString(), this.l);
        this.k();
        if (!this.j) {
            this.k = (this.k + 1);
            if (this.k < 3) {
                this.a.removeCallbacks(this.s);
                android.content.Context v0_9 = this.k;
                android.content.Context v2_6 = (((v0_9 - 1) * 30) * 1000);
                if (v0_9 == 1) {
                    v2_6 = 3000;
                }
                if ((com.baidu.android.pushservice.a.d(this.l)) && (this.l.getPackageName().equals(com.baidu.android.pushservice.i.l.v(this.l)))) {
                    com.baidu.android.pushservice.a.c(this.l, 0);
                }
                this.a.postDelayed(this.s, ((long) v2_6));
                int v1_14 = new StringBuilder();
                v1_14.append("Schedule retry-- retry times: ");
                v1_14.append(this.k);
                v1_14.append(" time delay: ");
                v1_14.append(v2_6);
                com.baidu.android.pushservice.f.a.c("PushConnection", v1_14.toString(), this.l.getApplicationContext());
            }
            return;
        } else {
            return;
        }
    }

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


    public static String v(android.content.Context p1)
    {
        return com.baidu.android.pushservice.i.l.p(p1, p1.getPackageName());
    }

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

Couldn't retrieve source code

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


    public static java.util.List o(android.content.Context p5)
    {
        java.util.List v0_1 = new java.util.ArrayList();
        try {
            java.util.ArrayList v1_2 = p5.getPackageManager();
        } catch (Exception) {
            return v0_1;
        }
        if (v1_2 != null) {
            v0_1 = v1_2.queryBroadcastReceivers(new android.content.Intent("com.baidu.android.pushservice.action.BIND_SYNC"), 576);
            java.util.ArrayList v1_1 = new java.util.ArrayList();
            java.util.Iterator v2_0 = v0_1.iterator();
            while (v2_0.hasNext()) {
                android.content.pm.ResolveInfo v3_2 = ((android.content.pm.ResolveInfo) v2_0.next());
                if (com.baidu.android.pushservice.i.l.z(p5, v3_2.activityInfo.packageName)) {
                    v1_1.add(v3_2);
                }
            }
            v0_1.removeAll(v1_1);
            return v0_1;
        } else {
            return v0_1;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_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/c/d;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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.c.d.a():

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_SINK']' [[('Lcom/baidu/android/pushservice/d/b;', 'a', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/a/b;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/a/b;'), ('Lcom/baidu/android/pushservice/a/b;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/a/b;', 'a', '()V'), ('Lcom/baidu/android/pushservice/a/b;', 'a', '(Ljava/lang/String; Ljava/util/ArrayList;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'o', '(Landroid/content/Context;)Ljava/util/List;'), ('Lcom/baidu/android/pushservice/i/l;', 'z', '(Landroid/content/Context; Ljava/lang/String;)Z'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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


    public static void a(android.content.Context p1)
    {
        com.baidu.android.pushservice.d.b.a(p1, ((java.util.ArrayList) com.baidu.android.pushservice.a.b.a(p1).a.clone()));
        return;
    }

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


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

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


    private b(android.content.Context p4)
    {
        this.a = new java.util.ArrayList();
        this.d = new java.util.HashMap();
        this.c = p4.getApplicationContext();
        String v0_1 = com.baidu.android.pushservice.c.c.e(p4);
        if ((android.text.TextUtils.isEmpty(v0_1)) && (com.baidu.android.pushservice.i.l.D(this.c))) {
            String v0_4 = new StringBuilder();
            v0_4.append(this.c.getPackageName());
            v0_4.append(".push_sync");
            v0_1 = com.baidu.android.pushservice.i.m.a(this.c, v0_4.toString(), "r_v2");
        }
        if (!android.text.TextUtils.isEmpty(v0_1)) {
            String v0_7 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v0_1));
        }
        try {
            int v1_11 = p4.getPackageManager().getPackageInfo(p4.getPackageName(), 0).versionCode;
        } catch (Exception) {
        }
        if (com.baidu.android.pushservice.i.i.b(this.c, "com.baidu.push.sync.vn", -1) < v1_11) {
            this.a();
            com.baidu.android.pushservice.i.i.a(this.c, "com.baidu.push.sync.vn", v1_11);
        }
        return;
    }

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


    private void a()
    {
        this.a("r_v2", this.a);
        return;
    }

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


    private void a(String p12, java.util.ArrayList p13)
    {
        android.content.Context v1_3;
        String v0_1 = new StringBuilder();
        v0_1.append(this.c.getPackageName());
        v0_1.append(".push_sync");
        String v0_2 = v0_1.toString();
        if (!com.baidu.android.pushservice.i.l.E(this.c)) {
            v1_3 = com.baidu.android.pushservice.i.l.o(this.c);
        } else {
            v1_3 = com.baidu.android.pushservice.i.l.p(this.c);
        }
        android.content.Context v1_6 = v1_3.iterator();
        while (v1_6.hasNext()) {
            com.baidu.android.pushservice.a.f v2_8 = ((android.content.pm.ResolveInfo) v1_6.next());
            try {
                com.baidu.android.pushservice.a.f v2_2;
                java.util.Iterator v3_8 = v2_8.activityInfo.packageName;
                com.baidu.android.pushservice.a.f v5_0 = 0;
            } catch (com.baidu.android.pushservice.a.f v2_5) {
                com.baidu.android.pushservice.g.o.a(this.c, v2_5);
            }
            if (!com.baidu.android.pushservice.i.l.D(this.c)) {
                v2_2 = 0;
            } else {
                int v4_4 = com.baidu.android.pushservice.i.l.v(this.c, v2_8.activityInfo.packageName);
                if (v4_4 == 0) {
                } else {
                    com.baidu.android.pushservice.a.f v5_8 = new StringBuilder();
                    v5_8.append(v2_8.activityInfo.packageName);
                    v5_8.append(".push_sync");
                    v5_0 = com.baidu.android.pushservice.i.m.a(v4_4, v5_8.toString(), p12);
                    int v6_6 = new StringBuilder();
                    v6_6.append(v2_8.activityInfo.packageName);
                    v6_6.append(".self_push_sync");
                    v2_2 = com.baidu.android.pushservice.i.m.a(v4_4, v6_6.toString(), "bindinfo");
                }
            }
            if (((android.text.TextUtils.isEmpty(v5_0)) || (android.text.TextUtils.isEmpty(v2_2))) && (com.baidu.android.pushservice.i.l.m(this.c, v3_8) > 50)) {
                if (!android.text.TextUtils.equals(this.c.getPackageName(), "com.baidu.searchbox")) {
                    v5_0 = com.baidu.android.pushservice.c.d.e(this.c, v3_8);
                }
                v2_2 = com.baidu.android.pushservice.c.d.f(this.c, v3_8);
            }
            int v4_0 = 1;
            if (!android.text.TextUtils.isEmpty(v5_0)) {
                java.util.Iterator v3_2 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v5_0));
                if (v3_2 != null) {
                    java.util.Iterator v3_3 = v3_2.iterator();
                    while (v3_3.hasNext()) {
                        com.baidu.android.pushservice.a.f v5_6 = ((com.baidu.android.pushservice.a.f) v3_3.next());
                        int v7_2 = p13.iterator();
                        while (v7_2.hasNext()) {
                            com.baidu.android.pushservice.a.f v8_3 = ((com.baidu.android.pushservice.a.f) v7_2.next());
                            if ((android.text.TextUtils.equals(v5_6.c, v8_3.c)) || (android.text.TextUtils.equals(v5_6.a, v8_3.a))) {
                                p13.remove(v8_3);
                                p13.add(v5_6);
                                int v7_3 = 1;
                            }
                            if (v7_3 == 0) {
                                p13.add(v5_6);
                            }
                        }
                        v7_3 = 0;
                    }
                }
            }
            if (!android.text.TextUtils.isEmpty(v2_2)) {
                com.baidu.android.pushservice.a.f v2_4 = this.h(com.baidu.android.pushservice.a.b.a(v2_2));
                java.util.Iterator v3_5 = p13.iterator();
                while (v3_5.hasNext()) {
                    com.baidu.android.pushservice.a.f v5_4 = ((com.baidu.android.pushservice.a.f) v3_5.next());
                    if (android.text.TextUtils.equals(v2_4.c, v5_4.c)) {
                        p13.remove(v5_4);
                        p13.add(v2_4);
                    }
                    if (v4_0 == 0) {
                        p13.add(v2_4);
                    }
                }
                v4_0 = 0;
            }
        }
        if (p13.size() > 0) {
            String v13_2 = this.b(this.a(p13));
            com.baidu.android.pushservice.c.c.c(this.c, v13_2);
            if (com.baidu.android.pushservice.i.l.D(this.c)) {
                com.baidu.android.pushservice.i.m.a(this.c, v0_2, p12, v13_2);
            }
        }
        return;
    }

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


    public static java.util.List o(android.content.Context p5)
    {
        java.util.List v0_1 = new java.util.ArrayList();
        try {
            java.util.ArrayList v1_2 = p5.getPackageManager();
        } catch (Exception) {
            return v0_1;
        }
        if (v1_2 != null) {
            v0_1 = v1_2.queryBroadcastReceivers(new android.content.Intent("com.baidu.android.pushservice.action.BIND_SYNC"), 576);
            java.util.ArrayList v1_1 = new java.util.ArrayList();
            java.util.Iterator v2_0 = v0_1.iterator();
            while (v2_0.hasNext()) {
                android.content.pm.ResolveInfo v3_2 = ((android.content.pm.ResolveInfo) v2_0.next());
                if (com.baidu.android.pushservice.i.l.z(p5, v3_2.activityInfo.packageName)) {
                    v1_1.add(v3_2);
                }
            }
            v0_1.removeAll(v1_1);
            return v0_1;
        } else {
            return v0_1;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_SINK']' [[('Lcom/baidu/android/pushservice/PushManager;', 'delTags', '(Landroid/content/Context; Ljava/util/List;)V'), ('Lcom/baidu/android/pushservice/e;', 'a', '(Landroid/content/Context;)Landroid/content/Intent;'), ('Lcom/baidu/android/pushservice/e;', 'k', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'b', '(Landroid/content/Context; Landroid/content/Intent; Ljava/lang/String; Ljava/lang/String;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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.a():


    public static android.content.Intent a(android.content.Context p4)
    {
        if (!com.baidu.android.pushservice.e.l(p4)) {
            String v0_1 = com.baidu.android.pushservice.e.a;
            if (v0_1 == -1) {
                v0_1 = com.baidu.android.pushservice.i.i.b(p4, "com.baidu.android.pushservice.PushManager.LOGIN_TYPE", 0);
            }
            String v2_3;
            if (android.text.TextUtils.isEmpty(com.baidu.android.pushservice.e.b)) {
                v2_3 = com.baidu.android.pushservice.i.i.a(p4, "com.baidu.android.pushservice.PushManager.LONGIN_VALUE");
            } else {
                v2_3 = com.baidu.android.pushservice.e.b;
            }
            if (!android.text.TextUtils.isEmpty(v2_3)) {
                android.content.Intent v4_1 = com.baidu.android.pushservice.i.k.c(p4);
                if (v0_1 != null) {
                    return 0;
                } else {
                    v4_1.putExtra("secret_key", v2_3);
                    return v4_1;
                }
            } else {
                com.baidu.android.pushservice.f.a.b("PushManagerHandler", "Can not acquire loginValue, please check if there is a right loginValue", p4);
                com.baidu.android.pushservice.e.k(p4);
                return 0;
            }
        } else {
            return 0;
        }
    }

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


    public static void k(android.content.Context p5)
    {
        android.content.Intent v0_1 = new android.content.Intent();
        String v2_2 = com.baidu.android.pushservice.PushConstants.a(30602);
        v0_1.setAction("com.baidu.android.pushservice.action.RECEIVE");
        v0_1.putExtra("method", "method_bind");
        v0_1.putExtra("error_msg", 30602);
        v0_1.putExtra("content", v2_2.getBytes());
        v0_1.setFlags(32);
        com.baidu.android.pushservice.i.l.b(p5, v0_1, v0_1.getAction(), p5.getPackageName());
        return;
    }

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


    public static void b(android.content.Context p3, android.content.Intent p4, String p5, String p6)
    {
        p4.setFlags(32);
        String v1_2 = com.baidu.android.pushservice.i.l.m(p3, p6);
        if (v1_2 >= 32) {
            try {
                if (!android.text.TextUtils.isEmpty(p5)) {
                    p4.setAction(p5);
                }
            } catch (Exception) {
            }
            if (!android.text.TextUtils.isEmpty(p6)) {
                p4.setPackage(p6);
                p4.setClassName(p6, "com.baidu.android.pushservice.CommandService");
            }
            p4.putExtra("command_type", "reflect_receiver");
            if (p3.startService(p4) == null) {
                boolean v0_6 = new StringBuilder();
                v0_6.append("sendRedirecctionIntent#intergratedPushVersion=");
                v0_6.append(v1_2);
                v0_6.append(", packageName=");
                v0_6.append(p6);
                v0_6.append(", intent=");
                v0_6.append(p4.toUri(0));
                com.baidu.android.pushservice.i.l.b(v0_6.toString(), p3);
            } else {
                return;
            }
        }
        if (!com.baidu.android.pushservice.i.l.F(p3)) {
            if (!android.text.TextUtils.isEmpty(p5)) {
                p4.setAction(p5);
            }
            if (!android.text.TextUtils.isEmpty(p6)) {
                p4.setPackage(p6);
            }
            String v5_1 = com.baidu.android.pushservice.i.l.c(p3, p6, p5);
            if (!android.text.TextUtils.isEmpty(v5_1)) {
                p4.setClassName(p6, v5_1);
            }
            p3.sendBroadcast(p4);
            return;
        } else {
            return;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_SINK']' [[('Lcom/baidu/android/pushservice/PushManager;', 'insertPassThroughMessageClick', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'v', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/l;', 'p', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/l;', 'o', '(Landroid/content/Context;)Ljava/util/List;'), ('Lcom/baidu/android/pushservice/i/l;', 'z', '(Landroid/content/Context; Ljava/lang/String;)Z'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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


    public static void insertPassThroughMessageClick(android.content.Context p5, String p6, String p7)
    {
        if ((p6 != null) && (p7 != null)) {
            try {
                String v1_0;
                StringBuilder v0_3 = new android.content.Intent();
            } catch (String v6_1) {
                StringBuilder v0_1 = new StringBuilder();
                v0_1.append("error ");
                v0_1.append(v6_1.getMessage());
                com.baidu.android.pushservice.f.a.b("PushManager", v0_1.toString(), p5.getApplicationContext());
            }
            if (!com.baidu.android.pushservice.b.e.k(p5)) {
                v1_0 = com.baidu.android.pushservice.i.l.v(p5);
            } else {
                v1_0 = p5.getPackageName();
            }
            if (v1_0 != null) {
                String v3_1 = new StringBuilder();
                v3_1.append("PassThroughMessageClick  : ");
                v3_1.append(v1_0);
                com.baidu.android.pushservice.f.a.a("PushManager", v3_1.toString(), p5.getApplicationContext());
                v0_3.putExtra("app_id", p7);
                v0_3.putExtra("msg_id", p6);
                v0_3.setAction("com.baidu.android.pushservice.action.passthrough.notification.CLICK");
                v0_3.setClassName(v1_0, "com.baidu.android.pushservice.CommandService");
                p5.startService(v0_3);
            }
        }
        return;
    }

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


    public static String v(android.content.Context p1)
    {
        return com.baidu.android.pushservice.i.l.p(p1, p1.getPackageName());
    }

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

Couldn't retrieve source code

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


    public static java.util.List o(android.content.Context p5)
    {
        java.util.List v0_1 = new java.util.ArrayList();
        try {
            java.util.ArrayList v1_2 = p5.getPackageManager();
        } catch (Exception) {
            return v0_1;
        }
        if (v1_2 != null) {
            v0_1 = v1_2.queryBroadcastReceivers(new android.content.Intent("com.baidu.android.pushservice.action.BIND_SYNC"), 576);
            java.util.ArrayList v1_1 = new java.util.ArrayList();
            java.util.Iterator v2_0 = v0_1.iterator();
            while (v2_0.hasNext()) {
                android.content.pm.ResolveInfo v3_2 = ((android.content.pm.ResolveInfo) v2_0.next());
                if (com.baidu.android.pushservice.i.l.z(p5, v3_2.activityInfo.packageName)) {
                    v1_1.add(v3_2);
                }
            }
            v0_1.removeAll(v1_1);
            return v0_1;
        } else {
            return v0_1;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_SINK']' [[('Lcom/baidu/android/pushservice/PushManager;', 'insertPassThroughMessageDelete', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'v', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/l;', 'p', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/l;', 'o', '(Landroid/content/Context;)Ljava/util/List;'), ('Lcom/baidu/android/pushservice/i/l;', 'z', '(Landroid/content/Context; Ljava/lang/String;)Z'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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


    public static void insertPassThroughMessageDelete(android.content.Context p5, String p6, String p7)
    {
        if ((p6 != null) && (p7 != null)) {
            try {
                String v1_0;
                StringBuilder v0_3 = new android.content.Intent();
            } catch (String v6_1) {
                StringBuilder v0_1 = new StringBuilder();
                v0_1.append("error ");
                v0_1.append(v6_1.getMessage());
                com.baidu.android.pushservice.f.a.b("PushManager", v0_1.toString(), p5.getApplicationContext());
            }
            if (!com.baidu.android.pushservice.b.e.k(p5)) {
                v1_0 = com.baidu.android.pushservice.i.l.v(p5);
            } else {
                v1_0 = p5.getPackageName();
            }
            if (v1_0 != null) {
                String v3_1 = new StringBuilder();
                v3_1.append("PassThroughMessageDelete  : ");
                v3_1.append(v1_0);
                com.baidu.android.pushservice.f.a.a("PushManager", v3_1.toString(), p5.getApplicationContext());
                v0_3.putExtra("app_id", p7);
                v0_3.putExtra("msg_id", p6);
                v0_3.setAction("com.baidu.android.pushservice.action.passthrough.notification.DELETE");
                v0_3.setClassName(v1_0, "com.baidu.android.pushservice.CommandService");
                p5.startService(v0_3);
            }
        }
        return;
    }

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


    public static String v(android.content.Context p1)
    {
        return com.baidu.android.pushservice.i.l.p(p1, p1.getPackageName());
    }

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

Couldn't retrieve source code

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


    public static java.util.List o(android.content.Context p5)
    {
        java.util.List v0_1 = new java.util.ArrayList();
        try {
            java.util.ArrayList v1_2 = p5.getPackageManager();
        } catch (Exception) {
            return v0_1;
        }
        if (v1_2 != null) {
            v0_1 = v1_2.queryBroadcastReceivers(new android.content.Intent("com.baidu.android.pushservice.action.BIND_SYNC"), 576);
            java.util.ArrayList v1_1 = new java.util.ArrayList();
            java.util.Iterator v2_0 = v0_1.iterator();
            while (v2_0.hasNext()) {
                android.content.pm.ResolveInfo v3_2 = ((android.content.pm.ResolveInfo) v2_0.next());
                if (com.baidu.android.pushservice.i.l.z(p5, v3_2.activityInfo.packageName)) {
                    v1_1.add(v3_2);
                }
            }
            v0_1.removeAll(v1_1);
            return v0_1;
        } else {
            return v0_1;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_SINK']' [[('Lcom/baidu/android/pushservice/PushManager;', 'insertPassThroughMessageNotified', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'v', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/l;', 'p', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/l;', 'o', '(Landroid/content/Context;)Ljava/util/List;'), ('Lcom/baidu/android/pushservice/i/l;', 'z', '(Landroid/content/Context; Ljava/lang/String;)Z'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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


    public static void insertPassThroughMessageNotified(android.content.Context p5, String p6, String p7)
    {
        if ((p6 != null) && (p7 != null)) {
            try {
                String v1_0;
                StringBuilder v0_1 = new android.content.Intent();
            } catch (String v6_5) {
                StringBuilder v0_3 = new StringBuilder();
                v0_3.append("error ");
                v0_3.append(v6_5.getMessage());
                com.baidu.android.pushservice.f.a.b("PushManager", v0_3.toString(), p5.getApplicationContext());
            }
            if (!com.baidu.android.pushservice.b.e.k(p5)) {
                v1_0 = com.baidu.android.pushservice.i.l.v(p5);
            } else {
                v1_0 = p5.getPackageName();
            }
            if (v1_0 != null) {
                String v3_1 = new StringBuilder();
                v3_1.append("PassThroughMessageNotified  : ");
                v3_1.append(v1_0);
                com.baidu.android.pushservice.f.a.a("PushManager", v3_1.toString(), p5.getApplicationContext());
                v0_1.putExtra("app_id", p7);
                v0_1.putExtra("msg_id", p6);
                v0_1.setAction("com.baidu.android.pushservice.action.passthrough.notification.NOTIFIED");
                v0_1.setClassName(v1_0, "com.baidu.android.pushservice.CommandService");
                p5.startService(v0_1);
                if (!v1_0.equals(p5.getPackageName())) {
                    v0_1.putExtra("self_insert", 1);
                    v0_1.setClassName(p5.getPackageName(), "com.baidu.android.pushservice.CommandService");
                    p5.startService(v0_1);
                }
            }
        }
        return;
    }

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


    public static String v(android.content.Context p1)
    {
        return com.baidu.android.pushservice.i.l.p(p1, p1.getPackageName());
    }

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

Couldn't retrieve source code

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


    public static java.util.List o(android.content.Context p5)
    {
        java.util.List v0_1 = new java.util.ArrayList();
        try {
            java.util.ArrayList v1_2 = p5.getPackageManager();
        } catch (Exception) {
            return v0_1;
        }
        if (v1_2 != null) {
            v0_1 = v1_2.queryBroadcastReceivers(new android.content.Intent("com.baidu.android.pushservice.action.BIND_SYNC"), 576);
            java.util.ArrayList v1_1 = new java.util.ArrayList();
            java.util.Iterator v2_0 = v0_1.iterator();
            while (v2_0.hasNext()) {
                android.content.pm.ResolveInfo v3_2 = ((android.content.pm.ResolveInfo) v2_0.next());
                if (com.baidu.android.pushservice.i.l.z(p5, v3_2.activityInfo.packageName)) {
                    v1_1.add(v3_2);
                }
            }
            v0_1.removeAll(v1_1);
            return v0_1;
        } else {
            return v0_1;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_SINK']' [[('Lcom/baidu/android/pushservice/PushManager;', 'listTags', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/e;', 'a', '(Landroid/content/Context;)Landroid/content/Intent;'), ('Lcom/baidu/android/pushservice/e;', 'k', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'b', '(Landroid/content/Context; Landroid/content/Intent; Ljava/lang/String; Ljava/lang/String;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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.a():


    public static android.content.Intent a(android.content.Context p4)
    {
        if (!com.baidu.android.pushservice.e.l(p4)) {
            String v0_1 = com.baidu.android.pushservice.e.a;
            if (v0_1 == -1) {
                v0_1 = com.baidu.android.pushservice.i.i.b(p4, "com.baidu.android.pushservice.PushManager.LOGIN_TYPE", 0);
            }
            String v2_3;
            if (android.text.TextUtils.isEmpty(com.baidu.android.pushservice.e.b)) {
                v2_3 = com.baidu.android.pushservice.i.i.a(p4, "com.baidu.android.pushservice.PushManager.LONGIN_VALUE");
            } else {
                v2_3 = com.baidu.android.pushservice.e.b;
            }
            if (!android.text.TextUtils.isEmpty(v2_3)) {
                android.content.Intent v4_1 = com.baidu.android.pushservice.i.k.c(p4);
                if (v0_1 != null) {
                    return 0;
                } else {
                    v4_1.putExtra("secret_key", v2_3);
                    return v4_1;
                }
            } else {
                com.baidu.android.pushservice.f.a.b("PushManagerHandler", "Can not acquire loginValue, please check if there is a right loginValue", p4);
                com.baidu.android.pushservice.e.k(p4);
                return 0;
            }
        } else {
            return 0;
        }
    }

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


    public static void k(android.content.Context p5)
    {
        android.content.Intent v0_1 = new android.content.Intent();
        String v2_2 = com.baidu.android.pushservice.PushConstants.a(30602);
        v0_1.setAction("com.baidu.android.pushservice.action.RECEIVE");
        v0_1.putExtra("method", "method_bind");
        v0_1.putExtra("error_msg", 30602);
        v0_1.putExtra("content", v2_2.getBytes());
        v0_1.setFlags(32);
        com.baidu.android.pushservice.i.l.b(p5, v0_1, v0_1.getAction(), p5.getPackageName());
        return;
    }

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


    public static void b(android.content.Context p3, android.content.Intent p4, String p5, String p6)
    {
        p4.setFlags(32);
        String v1_2 = com.baidu.android.pushservice.i.l.m(p3, p6);
        if (v1_2 >= 32) {
            try {
                if (!android.text.TextUtils.isEmpty(p5)) {
                    p4.setAction(p5);
                }
            } catch (Exception) {
            }
            if (!android.text.TextUtils.isEmpty(p6)) {
                p4.setPackage(p6);
                p4.setClassName(p6, "com.baidu.android.pushservice.CommandService");
            }
            p4.putExtra("command_type", "reflect_receiver");
            if (p3.startService(p4) == null) {
                boolean v0_6 = new StringBuilder();
                v0_6.append("sendRedirecctionIntent#intergratedPushVersion=");
                v0_6.append(v1_2);
                v0_6.append(", packageName=");
                v0_6.append(p6);
                v0_6.append(", intent=");
                v0_6.append(p4.toUri(0));
                com.baidu.android.pushservice.i.l.b(v0_6.toString(), p3);
            } else {
                return;
            }
        }
        if (!com.baidu.android.pushservice.i.l.F(p3)) {
            if (!android.text.TextUtils.isEmpty(p5)) {
                p4.setAction(p5);
            }
            if (!android.text.TextUtils.isEmpty(p6)) {
                p4.setPackage(p6);
            }
            String v5_1 = com.baidu.android.pushservice.i.l.c(p3, p6, p5);
            if (!android.text.TextUtils.isEmpty(v5_1)) {
                p4.setClassName(p6, v5_1);
            }
            p3.sendBroadcast(p4);
            return;
        } else {
            return;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_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/l;', 'p', '(Landroid/content/Context;)Ljava/util/List;'), ('Lcom/baidu/android/pushservice/i/l;', 'z', '(Landroid/content/Context; Ljava/lang/String;)Z'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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.l.p():


    public static java.util.List p(android.content.Context p5)
    {
        java.util.List v0_1 = new java.util.ArrayList();
        try {
            java.util.ArrayList v1_2 = p5.getPackageManager();
        } catch (Exception) {
            return v0_1;
        }
        if (v1_2 != null) {
            v0_1 = v1_2.queryBroadcastReceivers(new android.content.Intent("com.baidu.android.pushservice.action.BIND_SYNC"), 576);
            java.util.ArrayList v1_1 = new java.util.ArrayList();
            java.util.Iterator v2_0 = v0_1.iterator();
            while (v2_0.hasNext()) {
                android.content.pm.ResolveInfo v3_2 = ((android.content.pm.ResolveInfo) v2_0.next());
                if (!com.baidu.android.pushservice.i.l.z(p5, v3_2.activityInfo.packageName)) {
                    v1_1.add(v3_2);
                }
            }
            v0_1.removeAll(v1_1);
            return v0_1;
        } else {
            return v0_1;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_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/l;', 'p', '(Landroid/content/Context;)Ljava/util/List;'), ('Lcom/baidu/android/pushservice/i/l;', 'z', '(Landroid/content/Context; Ljava/lang/String;)Z'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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.l.p():


    public static java.util.List p(android.content.Context p5)
    {
        java.util.List v0_1 = new java.util.ArrayList();
        try {
            java.util.ArrayList v1_2 = p5.getPackageManager();
        } catch (Exception) {
            return v0_1;
        }
        if (v1_2 != null) {
            v0_1 = v1_2.queryBroadcastReceivers(new android.content.Intent("com.baidu.android.pushservice.action.BIND_SYNC"), 576);
            java.util.ArrayList v1_1 = new java.util.ArrayList();
            java.util.Iterator v2_0 = v0_1.iterator();
            while (v2_0.hasNext()) {
                android.content.pm.ResolveInfo v3_2 = ((android.content.pm.ResolveInfo) v2_0.next());
                if (!com.baidu.android.pushservice.i.l.z(p5, v3_2.activityInfo.packageName)) {
                    v1_1.add(v3_2);
                }
            }
            v0_1.removeAll(v1_1);
            return v0_1;
        } else {
            return v0_1;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_SINK']' [[('Lcom/baidu/android/pushservice/PushManager;', 'setTags', '(Landroid/content/Context; Ljava/util/List;)V'), ('Lcom/baidu/android/pushservice/e;', 'a', '(Landroid/content/Context;)Landroid/content/Intent;'), ('Lcom/baidu/android/pushservice/e;', 'k', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'b', '(Landroid/content/Context; Landroid/content/Intent; Ljava/lang/String; Ljava/lang/String;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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.a():


    public static android.content.Intent a(android.content.Context p4)
    {
        if (!com.baidu.android.pushservice.e.l(p4)) {
            String v0_1 = com.baidu.android.pushservice.e.a;
            if (v0_1 == -1) {
                v0_1 = com.baidu.android.pushservice.i.i.b(p4, "com.baidu.android.pushservice.PushManager.LOGIN_TYPE", 0);
            }
            String v2_3;
            if (android.text.TextUtils.isEmpty(com.baidu.android.pushservice.e.b)) {
                v2_3 = com.baidu.android.pushservice.i.i.a(p4, "com.baidu.android.pushservice.PushManager.LONGIN_VALUE");
            } else {
                v2_3 = com.baidu.android.pushservice.e.b;
            }
            if (!android.text.TextUtils.isEmpty(v2_3)) {
                android.content.Intent v4_1 = com.baidu.android.pushservice.i.k.c(p4);
                if (v0_1 != null) {
                    return 0;
                } else {
                    v4_1.putExtra("secret_key", v2_3);
                    return v4_1;
                }
            } else {
                com.baidu.android.pushservice.f.a.b("PushManagerHandler", "Can not acquire loginValue, please check if there is a right loginValue", p4);
                com.baidu.android.pushservice.e.k(p4);
                return 0;
            }
        } else {
            return 0;
        }
    }

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


    public static void k(android.content.Context p5)
    {
        android.content.Intent v0_1 = new android.content.Intent();
        String v2_2 = com.baidu.android.pushservice.PushConstants.a(30602);
        v0_1.setAction("com.baidu.android.pushservice.action.RECEIVE");
        v0_1.putExtra("method", "method_bind");
        v0_1.putExtra("error_msg", 30602);
        v0_1.putExtra("content", v2_2.getBytes());
        v0_1.setFlags(32);
        com.baidu.android.pushservice.i.l.b(p5, v0_1, v0_1.getAction(), p5.getPackageName());
        return;
    }

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


    public static void b(android.content.Context p3, android.content.Intent p4, String p5, String p6)
    {
        p4.setFlags(32);
        String v1_2 = com.baidu.android.pushservice.i.l.m(p3, p6);
        if (v1_2 >= 32) {
            try {
                if (!android.text.TextUtils.isEmpty(p5)) {
                    p4.setAction(p5);
                }
            } catch (Exception) {
            }
            if (!android.text.TextUtils.isEmpty(p6)) {
                p4.setPackage(p6);
                p4.setClassName(p6, "com.baidu.android.pushservice.CommandService");
            }
            p4.putExtra("command_type", "reflect_receiver");
            if (p3.startService(p4) == null) {
                boolean v0_6 = new StringBuilder();
                v0_6.append("sendRedirecctionIntent#intergratedPushVersion=");
                v0_6.append(v1_2);
                v0_6.append(", packageName=");
                v0_6.append(p6);
                v0_6.append(", intent=");
                v0_6.append(p4.toUri(0));
                com.baidu.android.pushservice.i.l.b(v0_6.toString(), p3);
            } else {
                return;
            }
        }
        if (!com.baidu.android.pushservice.i.l.F(p3)) {
            if (!android.text.TextUtils.isEmpty(p5)) {
                p4.setAction(p5);
            }
            if (!android.text.TextUtils.isEmpty(p6)) {
                p4.setPackage(p6);
            }
            String v5_1 = com.baidu.android.pushservice.i.l.c(p3, p6, p5);
            if (!android.text.TextUtils.isEmpty(v5_1)) {
                p4.setClassName(p6, v5_1);
            }
            p3.sendBroadcast(p4);
            return;
        } else {
            return;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_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/c/d;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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.c.d.a():

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_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;', 'a', '(Landroid/content/Context;)Landroid/content/Intent;'), ('Lcom/baidu/android/pushservice/e;', 'k', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'b', '(Landroid/content/Context; Landroid/content/Intent; Ljava/lang/String; Ljava/lang/String;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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.a():


    public static android.content.Intent a(android.content.Context p4)
    {
        if (!com.baidu.android.pushservice.e.l(p4)) {
            String v0_1 = com.baidu.android.pushservice.e.a;
            if (v0_1 == -1) {
                v0_1 = com.baidu.android.pushservice.i.i.b(p4, "com.baidu.android.pushservice.PushManager.LOGIN_TYPE", 0);
            }
            String v2_3;
            if (android.text.TextUtils.isEmpty(com.baidu.android.pushservice.e.b)) {
                v2_3 = com.baidu.android.pushservice.i.i.a(p4, "com.baidu.android.pushservice.PushManager.LONGIN_VALUE");
            } else {
                v2_3 = com.baidu.android.pushservice.e.b;
            }
            if (!android.text.TextUtils.isEmpty(v2_3)) {
                android.content.Intent v4_1 = com.baidu.android.pushservice.i.k.c(p4);
                if (v0_1 != null) {
                    return 0;
                } else {
                    v4_1.putExtra("secret_key", v2_3);
                    return v4_1;
                }
            } else {
                com.baidu.android.pushservice.f.a.b("PushManagerHandler", "Can not acquire loginValue, please check if there is a right loginValue", p4);
                com.baidu.android.pushservice.e.k(p4);
                return 0;
            }
        } else {
            return 0;
        }
    }

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


    public static void k(android.content.Context p5)
    {
        android.content.Intent v0_1 = new android.content.Intent();
        String v2_2 = com.baidu.android.pushservice.PushConstants.a(30602);
        v0_1.setAction("com.baidu.android.pushservice.action.RECEIVE");
        v0_1.putExtra("method", "method_bind");
        v0_1.putExtra("error_msg", 30602);
        v0_1.putExtra("content", v2_2.getBytes());
        v0_1.setFlags(32);
        com.baidu.android.pushservice.i.l.b(p5, v0_1, v0_1.getAction(), p5.getPackageName());
        return;
    }

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


    public static void b(android.content.Context p3, android.content.Intent p4, String p5, String p6)
    {
        p4.setFlags(32);
        String v1_2 = com.baidu.android.pushservice.i.l.m(p3, p6);
        if (v1_2 >= 32) {
            try {
                if (!android.text.TextUtils.isEmpty(p5)) {
                    p4.setAction(p5);
                }
            } catch (Exception) {
            }
            if (!android.text.TextUtils.isEmpty(p6)) {
                p4.setPackage(p6);
                p4.setClassName(p6, "com.baidu.android.pushservice.CommandService");
            }
            p4.putExtra("command_type", "reflect_receiver");
            if (p3.startService(p4) == null) {
                boolean v0_6 = new StringBuilder();
                v0_6.append("sendRedirecctionIntent#intergratedPushVersion=");
                v0_6.append(v1_2);
                v0_6.append(", packageName=");
                v0_6.append(p6);
                v0_6.append(", intent=");
                v0_6.append(p4.toUri(0));
                com.baidu.android.pushservice.i.l.b(v0_6.toString(), p3);
            } else {
                return;
            }
        }
        if (!com.baidu.android.pushservice.i.l.F(p3)) {
            if (!android.text.TextUtils.isEmpty(p5)) {
                p4.setAction(p5);
            }
            if (!android.text.TextUtils.isEmpty(p6)) {
                p4.setPackage(p6);
            }
            String v5_1 = com.baidu.android.pushservice.i.l.c(p3, p6, p5);
            if (!android.text.TextUtils.isEmpty(v5_1)) {
                p4.setClassName(p6, v5_1);
            }
            p3.sendBroadcast(p4);
            return;
        } else {
            return;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_SINK']' [[('Lcom/baidu/android/pushservice/PushMessageReceiver$2;', 'run', '()V'), ('Lcom/baidu/android/pushservice/message/a/g;', 'a', '(Landroid/content/Context; I Ljava/lang/String; Ljava/lang/String; [B [B)[Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/l;', 'a', '(Landroid/content/Context; [B Ljava/lang/String; Ljava/lang/String; [B)Z'), ('Lcom/baidu/android/pushservice/a/b;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/a/b;'), ('Lcom/baidu/android/pushservice/a/b;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/a/b;', 'a', '()V'), ('Lcom/baidu/android/pushservice/a/b;', 'a', '(Ljava/lang/String; Ljava/util/ArrayList;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'o', '(Landroid/content/Context;)Ljava/util/List;'), ('Lcom/baidu/android/pushservice/i/l;', 'z', '(Landroid/content/Context; Ljava/lang/String;)Z'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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


    public void run()
    {
        String v0_5 = com.baidu.android.pushservice.message.a.g.a(this.a, this.b, this.c, this.d, this.e, this.f);
        if ((v0_5 != null) && (v0_5.length == 2)) {
            android.content.Context v1_2 = new android.os.Message();
            long v2_2 = new android.os.Bundle();
            v2_2.putString("message", v0_5[0]);
            v2_2.putString("custom_content", v0_5[1]);
            v1_2.setData(v2_2);
            this.h.sendMessage(v1_2);
            android.content.Context v1_4 = new StringBuilder();
            v1_4.append("message ");
            v1_4.append(v0_5[0]);
            v1_4.append(" at time of ");
            v1_4.append(System.currentTimeMillis());
            com.baidu.android.pushservice.i.l.b(v1_4.toString(), this.a);
            return;
        } else {
            com.baidu.android.pushservice.PushMessageReceiver.access$000(this.i, this.a, this.g, 9);
            return;
        }
    }

Method com.baidu.android.pushservice.message.a.g.a():


    public static String[] a(android.content.Context p4, int p5, String p6, String p7, byte[] p8, byte[] p9)
    {
        if (com.baidu.android.pushservice.i.l.a(p4, p8, p6, p7, p9)) {
            String[] v8_3 = new String[2];
            if ((p5 != com.baidu.android.pushservice.message.a.k.b.a()) && (p5 != com.baidu.android.pushservice.message.a.k.c.a())) {
                if (p5 == com.baidu.android.pushservice.message.a.k.g.a()) {
                    String v4_1 = com.baidu.android.pushservice.message.a.i.a(p4, p7, p6, p9);
                    v8_3[0] = v4_1.mDescription;
                    v8_3[1] = v4_1.mCustomContent;
                }
            } else {
                v8_3[0] = new String(p9);
                v8_3[1] = 0;
            }
            return v8_3;
        } else {
            return 0;
        }
    }

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

Couldn't retrieve source code

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


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

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


    private b(android.content.Context p4)
    {
        this.a = new java.util.ArrayList();
        this.d = new java.util.HashMap();
        this.c = p4.getApplicationContext();
        String v0_1 = com.baidu.android.pushservice.c.c.e(p4);
        if ((android.text.TextUtils.isEmpty(v0_1)) && (com.baidu.android.pushservice.i.l.D(this.c))) {
            String v0_4 = new StringBuilder();
            v0_4.append(this.c.getPackageName());
            v0_4.append(".push_sync");
            v0_1 = com.baidu.android.pushservice.i.m.a(this.c, v0_4.toString(), "r_v2");
        }
        if (!android.text.TextUtils.isEmpty(v0_1)) {
            String v0_7 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v0_1));
        }
        try {
            int v1_11 = p4.getPackageManager().getPackageInfo(p4.getPackageName(), 0).versionCode;
        } catch (Exception) {
        }
        if (com.baidu.android.pushservice.i.i.b(this.c, "com.baidu.push.sync.vn", -1) < v1_11) {
            this.a();
            com.baidu.android.pushservice.i.i.a(this.c, "com.baidu.push.sync.vn", v1_11);
        }
        return;
    }

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


    private void a()
    {
        this.a("r_v2", this.a);
        return;
    }

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


    private void a(String p12, java.util.ArrayList p13)
    {
        android.content.Context v1_3;
        String v0_1 = new StringBuilder();
        v0_1.append(this.c.getPackageName());
        v0_1.append(".push_sync");
        String v0_2 = v0_1.toString();
        if (!com.baidu.android.pushservice.i.l.E(this.c)) {
            v1_3 = com.baidu.android.pushservice.i.l.o(this.c);
        } else {
            v1_3 = com.baidu.android.pushservice.i.l.p(this.c);
        }
        android.content.Context v1_6 = v1_3.iterator();
        while (v1_6.hasNext()) {
            com.baidu.android.pushservice.a.f v2_8 = ((android.content.pm.ResolveInfo) v1_6.next());
            try {
                com.baidu.android.pushservice.a.f v2_2;
                java.util.Iterator v3_8 = v2_8.activityInfo.packageName;
                com.baidu.android.pushservice.a.f v5_0 = 0;
            } catch (com.baidu.android.pushservice.a.f v2_5) {
                com.baidu.android.pushservice.g.o.a(this.c, v2_5);
            }
            if (!com.baidu.android.pushservice.i.l.D(this.c)) {
                v2_2 = 0;
            } else {
                int v4_4 = com.baidu.android.pushservice.i.l.v(this.c, v2_8.activityInfo.packageName);
                if (v4_4 == 0) {
                } else {
                    com.baidu.android.pushservice.a.f v5_8 = new StringBuilder();
                    v5_8.append(v2_8.activityInfo.packageName);
                    v5_8.append(".push_sync");
                    v5_0 = com.baidu.android.pushservice.i.m.a(v4_4, v5_8.toString(), p12);
                    int v6_6 = new StringBuilder();
                    v6_6.append(v2_8.activityInfo.packageName);
                    v6_6.append(".self_push_sync");
                    v2_2 = com.baidu.android.pushservice.i.m.a(v4_4, v6_6.toString(), "bindinfo");
                }
            }
            if (((android.text.TextUtils.isEmpty(v5_0)) || (android.text.TextUtils.isEmpty(v2_2))) && (com.baidu.android.pushservice.i.l.m(this.c, v3_8) > 50)) {
                if (!android.text.TextUtils.equals(this.c.getPackageName(), "com.baidu.searchbox")) {
                    v5_0 = com.baidu.android.pushservice.c.d.e(this.c, v3_8);
                }
                v2_2 = com.baidu.android.pushservice.c.d.f(this.c, v3_8);
            }
            int v4_0 = 1;
            if (!android.text.TextUtils.isEmpty(v5_0)) {
                java.util.Iterator v3_2 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v5_0));
                if (v3_2 != null) {
                    java.util.Iterator v3_3 = v3_2.iterator();
                    while (v3_3.hasNext()) {
                        com.baidu.android.pushservice.a.f v5_6 = ((com.baidu.android.pushservice.a.f) v3_3.next());
                        int v7_2 = p13.iterator();
                        while (v7_2.hasNext()) {
                            com.baidu.android.pushservice.a.f v8_3 = ((com.baidu.android.pushservice.a.f) v7_2.next());
                            if ((android.text.TextUtils.equals(v5_6.c, v8_3.c)) || (android.text.TextUtils.equals(v5_6.a, v8_3.a))) {
                                p13.remove(v8_3);
                                p13.add(v5_6);
                                int v7_3 = 1;
                            }
                            if (v7_3 == 0) {
                                p13.add(v5_6);
                            }
                        }
                        v7_3 = 0;
                    }
                }
            }
            if (!android.text.TextUtils.isEmpty(v2_2)) {
                com.baidu.android.pushservice.a.f v2_4 = this.h(com.baidu.android.pushservice.a.b.a(v2_2));
                java.util.Iterator v3_5 = p13.iterator();
                while (v3_5.hasNext()) {
                    com.baidu.android.pushservice.a.f v5_4 = ((com.baidu.android.pushservice.a.f) v3_5.next());
                    if (android.text.TextUtils.equals(v2_4.c, v5_4.c)) {
                        p13.remove(v5_4);
                        p13.add(v2_4);
                    }
                    if (v4_0 == 0) {
                        p13.add(v2_4);
                    }
                }
                v4_0 = 0;
            }
        }
        if (p13.size() > 0) {
            String v13_2 = this.b(this.a(p13));
            com.baidu.android.pushservice.c.c.c(this.c, v13_2);
            if (com.baidu.android.pushservice.i.l.D(this.c)) {
                com.baidu.android.pushservice.i.m.a(this.c, v0_2, p12, v13_2);
            }
        }
        return;
    }

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


    public static java.util.List o(android.content.Context p5)
    {
        java.util.List v0_1 = new java.util.ArrayList();
        try {
            java.util.ArrayList v1_2 = p5.getPackageManager();
        } catch (Exception) {
            return v0_1;
        }
        if (v1_2 != null) {
            v0_1 = v1_2.queryBroadcastReceivers(new android.content.Intent("com.baidu.android.pushservice.action.BIND_SYNC"), 576);
            java.util.ArrayList v1_1 = new java.util.ArrayList();
            java.util.Iterator v2_0 = v0_1.iterator();
            while (v2_0.hasNext()) {
                android.content.pm.ResolveInfo v3_2 = ((android.content.pm.ResolveInfo) v2_0.next());
                if (com.baidu.android.pushservice.i.l.z(p5, v3_2.activityInfo.packageName)) {
                    v1_1.add(v3_2);
                }
            }
            v0_1.removeAll(v1_1);
            return v0_1;
        } else {
            return v0_1;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_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/a/b;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/a/b;'), ('Lcom/baidu/android/pushservice/a/b;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/a/b;', 'a', '()V'), ('Lcom/baidu/android/pushservice/a/b;', 'a', '(Ljava/lang/String; Ljava/util/ArrayList;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'o', '(Landroid/content/Context;)Ljava/util/List;'), ('Lcom/baidu/android/pushservice/i/l;', 'z', '(Landroid/content/Context; Ljava/lang/String;)Z'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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.a.b.a():


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

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


    private b(android.content.Context p4)
    {
        this.a = new java.util.ArrayList();
        this.d = new java.util.HashMap();
        this.c = p4.getApplicationContext();
        String v0_1 = com.baidu.android.pushservice.c.c.e(p4);
        if ((android.text.TextUtils.isEmpty(v0_1)) && (com.baidu.android.pushservice.i.l.D(this.c))) {
            String v0_4 = new StringBuilder();
            v0_4.append(this.c.getPackageName());
            v0_4.append(".push_sync");
            v0_1 = com.baidu.android.pushservice.i.m.a(this.c, v0_4.toString(), "r_v2");
        }
        if (!android.text.TextUtils.isEmpty(v0_1)) {
            String v0_7 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v0_1));
        }
        try {
            int v1_11 = p4.getPackageManager().getPackageInfo(p4.getPackageName(), 0).versionCode;
        } catch (Exception) {
        }
        if (com.baidu.android.pushservice.i.i.b(this.c, "com.baidu.push.sync.vn", -1) < v1_11) {
            this.a();
            com.baidu.android.pushservice.i.i.a(this.c, "com.baidu.push.sync.vn", v1_11);
        }
        return;
    }

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


    private void a()
    {
        this.a("r_v2", this.a);
        return;
    }

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


    private void a(String p12, java.util.ArrayList p13)
    {
        android.content.Context v1_3;
        String v0_1 = new StringBuilder();
        v0_1.append(this.c.getPackageName());
        v0_1.append(".push_sync");
        String v0_2 = v0_1.toString();
        if (!com.baidu.android.pushservice.i.l.E(this.c)) {
            v1_3 = com.baidu.android.pushservice.i.l.o(this.c);
        } else {
            v1_3 = com.baidu.android.pushservice.i.l.p(this.c);
        }
        android.content.Context v1_6 = v1_3.iterator();
        while (v1_6.hasNext()) {
            com.baidu.android.pushservice.a.f v2_8 = ((android.content.pm.ResolveInfo) v1_6.next());
            try {
                com.baidu.android.pushservice.a.f v2_2;
                java.util.Iterator v3_8 = v2_8.activityInfo.packageName;
                com.baidu.android.pushservice.a.f v5_0 = 0;
            } catch (com.baidu.android.pushservice.a.f v2_5) {
                com.baidu.android.pushservice.g.o.a(this.c, v2_5);
            }
            if (!com.baidu.android.pushservice.i.l.D(this.c)) {
                v2_2 = 0;
            } else {
                int v4_4 = com.baidu.android.pushservice.i.l.v(this.c, v2_8.activityInfo.packageName);
                if (v4_4 == 0) {
                } else {
                    com.baidu.android.pushservice.a.f v5_8 = new StringBuilder();
                    v5_8.append(v2_8.activityInfo.packageName);
                    v5_8.append(".push_sync");
                    v5_0 = com.baidu.android.pushservice.i.m.a(v4_4, v5_8.toString(), p12);
                    int v6_6 = new StringBuilder();
                    v6_6.append(v2_8.activityInfo.packageName);
                    v6_6.append(".self_push_sync");
                    v2_2 = com.baidu.android.pushservice.i.m.a(v4_4, v6_6.toString(), "bindinfo");
                }
            }
            if (((android.text.TextUtils.isEmpty(v5_0)) || (android.text.TextUtils.isEmpty(v2_2))) && (com.baidu.android.pushservice.i.l.m(this.c, v3_8) > 50)) {
                if (!android.text.TextUtils.equals(this.c.getPackageName(), "com.baidu.searchbox")) {
                    v5_0 = com.baidu.android.pushservice.c.d.e(this.c, v3_8);
                }
                v2_2 = com.baidu.android.pushservice.c.d.f(this.c, v3_8);
            }
            int v4_0 = 1;
            if (!android.text.TextUtils.isEmpty(v5_0)) {
                java.util.Iterator v3_2 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v5_0));
                if (v3_2 != null) {
                    java.util.Iterator v3_3 = v3_2.iterator();
                    while (v3_3.hasNext()) {
                        com.baidu.android.pushservice.a.f v5_6 = ((com.baidu.android.pushservice.a.f) v3_3.next());
                        int v7_2 = p13.iterator();
                        while (v7_2.hasNext()) {
                            com.baidu.android.pushservice.a.f v8_3 = ((com.baidu.android.pushservice.a.f) v7_2.next());
                            if ((android.text.TextUtils.equals(v5_6.c, v8_3.c)) || (android.text.TextUtils.equals(v5_6.a, v8_3.a))) {
                                p13.remove(v8_3);
                                p13.add(v5_6);
                                int v7_3 = 1;
                            }
                            if (v7_3 == 0) {
                                p13.add(v5_6);
                            }
                        }
                        v7_3 = 0;
                    }
                }
            }
            if (!android.text.TextUtils.isEmpty(v2_2)) {
                com.baidu.android.pushservice.a.f v2_4 = this.h(com.baidu.android.pushservice.a.b.a(v2_2));
                java.util.Iterator v3_5 = p13.iterator();
                while (v3_5.hasNext()) {
                    com.baidu.android.pushservice.a.f v5_4 = ((com.baidu.android.pushservice.a.f) v3_5.next());
                    if (android.text.TextUtils.equals(v2_4.c, v5_4.c)) {
                        p13.remove(v5_4);
                        p13.add(v2_4);
                    }
                    if (v4_0 == 0) {
                        p13.add(v2_4);
                    }
                }
                v4_0 = 0;
            }
        }
        if (p13.size() > 0) {
            String v13_2 = this.b(this.a(p13));
            com.baidu.android.pushservice.c.c.c(this.c, v13_2);
            if (com.baidu.android.pushservice.i.l.D(this.c)) {
                com.baidu.android.pushservice.i.m.a(this.c, v0_2, p12, v13_2);
            }
        }
        return;
    }

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


    public static java.util.List o(android.content.Context p5)
    {
        java.util.List v0_1 = new java.util.ArrayList();
        try {
            java.util.ArrayList v1_2 = p5.getPackageManager();
        } catch (Exception) {
            return v0_1;
        }
        if (v1_2 != null) {
            v0_1 = v1_2.queryBroadcastReceivers(new android.content.Intent("com.baidu.android.pushservice.action.BIND_SYNC"), 576);
            java.util.ArrayList v1_1 = new java.util.ArrayList();
            java.util.Iterator v2_0 = v0_1.iterator();
            while (v2_0.hasNext()) {
                android.content.pm.ResolveInfo v3_2 = ((android.content.pm.ResolveInfo) v2_0.next());
                if (com.baidu.android.pushservice.i.l.z(p5, v3_2.activityInfo.packageName)) {
                    v1_1.add(v3_2);
                }
            }
            v0_1.removeAll(v1_1);
            return v0_1;
        } else {
            return v0_1;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_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/a/b;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/a/b;'), ('Lcom/baidu/android/pushservice/a/b;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/a/b;', 'a', '()V'), ('Lcom/baidu/android/pushservice/a/b;', 'a', '(Ljava/lang/String; Ljava/util/ArrayList;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'o', '(Landroid/content/Context;)Ljava/util/List;'), ('Lcom/baidu/android/pushservice/i/l;', 'z', '(Landroid/content/Context; Ljava/lang/String;)Z'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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.a.b.a():


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

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


    private b(android.content.Context p4)
    {
        this.a = new java.util.ArrayList();
        this.d = new java.util.HashMap();
        this.c = p4.getApplicationContext();
        String v0_1 = com.baidu.android.pushservice.c.c.e(p4);
        if ((android.text.TextUtils.isEmpty(v0_1)) && (com.baidu.android.pushservice.i.l.D(this.c))) {
            String v0_4 = new StringBuilder();
            v0_4.append(this.c.getPackageName());
            v0_4.append(".push_sync");
            v0_1 = com.baidu.android.pushservice.i.m.a(this.c, v0_4.toString(), "r_v2");
        }
        if (!android.text.TextUtils.isEmpty(v0_1)) {
            String v0_7 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v0_1));
        }
        try {
            int v1_11 = p4.getPackageManager().getPackageInfo(p4.getPackageName(), 0).versionCode;
        } catch (Exception) {
        }
        if (com.baidu.android.pushservice.i.i.b(this.c, "com.baidu.push.sync.vn", -1) < v1_11) {
            this.a();
            com.baidu.android.pushservice.i.i.a(this.c, "com.baidu.push.sync.vn", v1_11);
        }
        return;
    }

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


    private void a()
    {
        this.a("r_v2", this.a);
        return;
    }

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


    private void a(String p12, java.util.ArrayList p13)
    {
        android.content.Context v1_3;
        String v0_1 = new StringBuilder();
        v0_1.append(this.c.getPackageName());
        v0_1.append(".push_sync");
        String v0_2 = v0_1.toString();
        if (!com.baidu.android.pushservice.i.l.E(this.c)) {
            v1_3 = com.baidu.android.pushservice.i.l.o(this.c);
        } else {
            v1_3 = com.baidu.android.pushservice.i.l.p(this.c);
        }
        android.content.Context v1_6 = v1_3.iterator();
        while (v1_6.hasNext()) {
            com.baidu.android.pushservice.a.f v2_8 = ((android.content.pm.ResolveInfo) v1_6.next());
            try {
                com.baidu.android.pushservice.a.f v2_2;
                java.util.Iterator v3_8 = v2_8.activityInfo.packageName;
                com.baidu.android.pushservice.a.f v5_0 = 0;
            } catch (com.baidu.android.pushservice.a.f v2_5) {
                com.baidu.android.pushservice.g.o.a(this.c, v2_5);
            }
            if (!com.baidu.android.pushservice.i.l.D(this.c)) {
                v2_2 = 0;
            } else {
                int v4_4 = com.baidu.android.pushservice.i.l.v(this.c, v2_8.activityInfo.packageName);
                if (v4_4 == 0) {
                } else {
                    com.baidu.android.pushservice.a.f v5_8 = new StringBuilder();
                    v5_8.append(v2_8.activityInfo.packageName);
                    v5_8.append(".push_sync");
                    v5_0 = com.baidu.android.pushservice.i.m.a(v4_4, v5_8.toString(), p12);
                    int v6_6 = new StringBuilder();
                    v6_6.append(v2_8.activityInfo.packageName);
                    v6_6.append(".self_push_sync");
                    v2_2 = com.baidu.android.pushservice.i.m.a(v4_4, v6_6.toString(), "bindinfo");
                }
            }
            if (((android.text.TextUtils.isEmpty(v5_0)) || (android.text.TextUtils.isEmpty(v2_2))) && (com.baidu.android.pushservice.i.l.m(this.c, v3_8) > 50)) {
                if (!android.text.TextUtils.equals(this.c.getPackageName(), "com.baidu.searchbox")) {
                    v5_0 = com.baidu.android.pushservice.c.d.e(this.c, v3_8);
                }
                v2_2 = com.baidu.android.pushservice.c.d.f(this.c, v3_8);
            }
            int v4_0 = 1;
            if (!android.text.TextUtils.isEmpty(v5_0)) {
                java.util.Iterator v3_2 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v5_0));
                if (v3_2 != null) {
                    java.util.Iterator v3_3 = v3_2.iterator();
                    while (v3_3.hasNext()) {
                        com.baidu.android.pushservice.a.f v5_6 = ((com.baidu.android.pushservice.a.f) v3_3.next());
                        int v7_2 = p13.iterator();
                        while (v7_2.hasNext()) {
                            com.baidu.android.pushservice.a.f v8_3 = ((com.baidu.android.pushservice.a.f) v7_2.next());
                            if ((android.text.TextUtils.equals(v5_6.c, v8_3.c)) || (android.text.TextUtils.equals(v5_6.a, v8_3.a))) {
                                p13.remove(v8_3);
                                p13.add(v5_6);
                                int v7_3 = 1;
                            }
                            if (v7_3 == 0) {
                                p13.add(v5_6);
                            }
                        }
                        v7_3 = 0;
                    }
                }
            }
            if (!android.text.TextUtils.isEmpty(v2_2)) {
                com.baidu.android.pushservice.a.f v2_4 = this.h(com.baidu.android.pushservice.a.b.a(v2_2));
                java.util.Iterator v3_5 = p13.iterator();
                while (v3_5.hasNext()) {
                    com.baidu.android.pushservice.a.f v5_4 = ((com.baidu.android.pushservice.a.f) v3_5.next());
                    if (android.text.TextUtils.equals(v2_4.c, v5_4.c)) {
                        p13.remove(v5_4);
                        p13.add(v2_4);
                    }
                    if (v4_0 == 0) {
                        p13.add(v2_4);
                    }
                }
                v4_0 = 0;
            }
        }
        if (p13.size() > 0) {
            String v13_2 = this.b(this.a(p13));
            com.baidu.android.pushservice.c.c.c(this.c, v13_2);
            if (com.baidu.android.pushservice.i.l.D(this.c)) {
                com.baidu.android.pushservice.i.m.a(this.c, v0_2, p12, v13_2);
            }
        }
        return;
    }

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


    public static java.util.List o(android.content.Context p5)
    {
        java.util.List v0_1 = new java.util.ArrayList();
        try {
            java.util.ArrayList v1_2 = p5.getPackageManager();
        } catch (Exception) {
            return v0_1;
        }
        if (v1_2 != null) {
            v0_1 = v1_2.queryBroadcastReceivers(new android.content.Intent("com.baidu.android.pushservice.action.BIND_SYNC"), 576);
            java.util.ArrayList v1_1 = new java.util.ArrayList();
            java.util.Iterator v2_0 = v0_1.iterator();
            while (v2_0.hasNext()) {
                android.content.pm.ResolveInfo v3_2 = ((android.content.pm.ResolveInfo) v2_0.next());
                if (com.baidu.android.pushservice.i.l.z(p5, v3_2.activityInfo.packageName)) {
                    v1_1.add(v3_2);
                }
            }
            v0_1.removeAll(v1_1);
            return v0_1;
        } else {
            return v0_1;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_SINK']' [[('Lcom/baidu/android/pushservice/e;', 'b', '(Landroid/content/Context; I)V'), ('Lcom/baidu/android/pushservice/e;', 'a', '(Landroid/content/Context; I)Landroid/content/Intent;'), ('Lcom/baidu/android/pushservice/e;', 'a', '(Landroid/content/Context;)Landroid/content/Intent;'), ('Lcom/baidu/android/pushservice/e;', 'k', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'b', '(Landroid/content/Context; Landroid/content/Intent; Ljava/lang/String; Ljava/lang/String;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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 android.content.Intent a(android.content.Context p3, int p4)
    {
        android.content.Intent v0 = com.baidu.android.pushservice.e.a(p3);
        if (v0 != null) {
            v0.putExtra("method", "method_bind");
            v0.putExtra("bind_status", p4);
            v0.putExtra("push_sdk_version", com.baidu.android.pushservice.a.a());
            v0.setFlags((v0.getFlags() | 32));
            if (android.os.Build$VERSION.SDK_INT >= 19) {
                String v3_1 = com.baidu.android.pushservice.i.h.a(p3);
                StringBuilder v1_3 = new StringBuilder();
                v1_3.append(v3_1);
                v1_3.append("");
                v0.putExtra("bind_notify_status", v1_3.toString());
            }
            return v0;
        } else {
            return 0;
        }
    }

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


    public static android.content.Intent a(android.content.Context p4)
    {
        if (!com.baidu.android.pushservice.e.l(p4)) {
            String v0_1 = com.baidu.android.pushservice.e.a;
            if (v0_1 == -1) {
                v0_1 = com.baidu.android.pushservice.i.i.b(p4, "com.baidu.android.pushservice.PushManager.LOGIN_TYPE", 0);
            }
            String v2_3;
            if (android.text.TextUtils.isEmpty(com.baidu.android.pushservice.e.b)) {
                v2_3 = com.baidu.android.pushservice.i.i.a(p4, "com.baidu.android.pushservice.PushManager.LONGIN_VALUE");
            } else {
                v2_3 = com.baidu.android.pushservice.e.b;
            }
            if (!android.text.TextUtils.isEmpty(v2_3)) {
                android.content.Intent v4_1 = com.baidu.android.pushservice.i.k.c(p4);
                if (v0_1 != null) {
                    return 0;
                } else {
                    v4_1.putExtra("secret_key", v2_3);
                    return v4_1;
                }
            } else {
                com.baidu.android.pushservice.f.a.b("PushManagerHandler", "Can not acquire loginValue, please check if there is a right loginValue", p4);
                com.baidu.android.pushservice.e.k(p4);
                return 0;
            }
        } else {
            return 0;
        }
    }

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


    public static void k(android.content.Context p5)
    {
        android.content.Intent v0_1 = new android.content.Intent();
        String v2_2 = com.baidu.android.pushservice.PushConstants.a(30602);
        v0_1.setAction("com.baidu.android.pushservice.action.RECEIVE");
        v0_1.putExtra("method", "method_bind");
        v0_1.putExtra("error_msg", 30602);
        v0_1.putExtra("content", v2_2.getBytes());
        v0_1.setFlags(32);
        com.baidu.android.pushservice.i.l.b(p5, v0_1, v0_1.getAction(), p5.getPackageName());
        return;
    }

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


    public static void b(android.content.Context p3, android.content.Intent p4, String p5, String p6)
    {
        p4.setFlags(32);
        String v1_2 = com.baidu.android.pushservice.i.l.m(p3, p6);
        if (v1_2 >= 32) {
            try {
                if (!android.text.TextUtils.isEmpty(p5)) {
                    p4.setAction(p5);
                }
            } catch (Exception) {
            }
            if (!android.text.TextUtils.isEmpty(p6)) {
                p4.setPackage(p6);
                p4.setClassName(p6, "com.baidu.android.pushservice.CommandService");
            }
            p4.putExtra("command_type", "reflect_receiver");
            if (p3.startService(p4) == null) {
                boolean v0_6 = new StringBuilder();
                v0_6.append("sendRedirecctionIntent#intergratedPushVersion=");
                v0_6.append(v1_2);
                v0_6.append(", packageName=");
                v0_6.append(p6);
                v0_6.append(", intent=");
                v0_6.append(p4.toUri(0));
                com.baidu.android.pushservice.i.l.b(v0_6.toString(), p3);
            } else {
                return;
            }
        }
        if (!com.baidu.android.pushservice.i.l.F(p3)) {
            if (!android.text.TextUtils.isEmpty(p5)) {
                p4.setAction(p5);
            }
            if (!android.text.TextUtils.isEmpty(p6)) {
                p4.setPackage(p6);
            }
            String v5_1 = com.baidu.android.pushservice.i.l.c(p3, p6, p5);
            if (!android.text.TextUtils.isEmpty(v5_1)) {
                p4.setClassName(p6, v5_1);
            }
            p3.sendBroadcast(p4);
            return;
        } else {
            return;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_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/a/b;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/a/b;'), ('Lcom/baidu/android/pushservice/a/b;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/a/b;', 'a', '()V'), ('Lcom/baidu/android/pushservice/a/b;', 'a', '(Ljava/lang/String; Ljava/util/ArrayList;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'o', '(Landroid/content/Context;)Ljava/util/List;'), ('Lcom/baidu/android/pushservice/i/l;', 'z', '(Landroid/content/Context; Ljava/lang/String;)Z'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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.a.b.a():


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

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


    private b(android.content.Context p4)
    {
        this.a = new java.util.ArrayList();
        this.d = new java.util.HashMap();
        this.c = p4.getApplicationContext();
        String v0_1 = com.baidu.android.pushservice.c.c.e(p4);
        if ((android.text.TextUtils.isEmpty(v0_1)) && (com.baidu.android.pushservice.i.l.D(this.c))) {
            String v0_4 = new StringBuilder();
            v0_4.append(this.c.getPackageName());
            v0_4.append(".push_sync");
            v0_1 = com.baidu.android.pushservice.i.m.a(this.c, v0_4.toString(), "r_v2");
        }
        if (!android.text.TextUtils.isEmpty(v0_1)) {
            String v0_7 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v0_1));
        }
        try {
            int v1_11 = p4.getPackageManager().getPackageInfo(p4.getPackageName(), 0).versionCode;
        } catch (Exception) {
        }
        if (com.baidu.android.pushservice.i.i.b(this.c, "com.baidu.push.sync.vn", -1) < v1_11) {
            this.a();
            com.baidu.android.pushservice.i.i.a(this.c, "com.baidu.push.sync.vn", v1_11);
        }
        return;
    }

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


    private void a()
    {
        this.a("r_v2", this.a);
        return;
    }

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


    private void a(String p12, java.util.ArrayList p13)
    {
        android.content.Context v1_3;
        String v0_1 = new StringBuilder();
        v0_1.append(this.c.getPackageName());
        v0_1.append(".push_sync");
        String v0_2 = v0_1.toString();
        if (!com.baidu.android.pushservice.i.l.E(this.c)) {
            v1_3 = com.baidu.android.pushservice.i.l.o(this.c);
        } else {
            v1_3 = com.baidu.android.pushservice.i.l.p(this.c);
        }
        android.content.Context v1_6 = v1_3.iterator();
        while (v1_6.hasNext()) {
            com.baidu.android.pushservice.a.f v2_8 = ((android.content.pm.ResolveInfo) v1_6.next());
            try {
                com.baidu.android.pushservice.a.f v2_2;
                java.util.Iterator v3_8 = v2_8.activityInfo.packageName;
                com.baidu.android.pushservice.a.f v5_0 = 0;
            } catch (com.baidu.android.pushservice.a.f v2_5) {
                com.baidu.android.pushservice.g.o.a(this.c, v2_5);
            }
            if (!com.baidu.android.pushservice.i.l.D(this.c)) {
                v2_2 = 0;
            } else {
                int v4_4 = com.baidu.android.pushservice.i.l.v(this.c, v2_8.activityInfo.packageName);
                if (v4_4 == 0) {
                } else {
                    com.baidu.android.pushservice.a.f v5_8 = new StringBuilder();
                    v5_8.append(v2_8.activityInfo.packageName);
                    v5_8.append(".push_sync");
                    v5_0 = com.baidu.android.pushservice.i.m.a(v4_4, v5_8.toString(), p12);
                    int v6_6 = new StringBuilder();
                    v6_6.append(v2_8.activityInfo.packageName);
                    v6_6.append(".self_push_sync");
                    v2_2 = com.baidu.android.pushservice.i.m.a(v4_4, v6_6.toString(), "bindinfo");
                }
            }
            if (((android.text.TextUtils.isEmpty(v5_0)) || (android.text.TextUtils.isEmpty(v2_2))) && (com.baidu.android.pushservice.i.l.m(this.c, v3_8) > 50)) {
                if (!android.text.TextUtils.equals(this.c.getPackageName(), "com.baidu.searchbox")) {
                    v5_0 = com.baidu.android.pushservice.c.d.e(this.c, v3_8);
                }
                v2_2 = com.baidu.android.pushservice.c.d.f(this.c, v3_8);
            }
            int v4_0 = 1;
            if (!android.text.TextUtils.isEmpty(v5_0)) {
                java.util.Iterator v3_2 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v5_0));
                if (v3_2 != null) {
                    java.util.Iterator v3_3 = v3_2.iterator();
                    while (v3_3.hasNext()) {
                        com.baidu.android.pushservice.a.f v5_6 = ((com.baidu.android.pushservice.a.f) v3_3.next());
                        int v7_2 = p13.iterator();
                        while (v7_2.hasNext()) {
                            com.baidu.android.pushservice.a.f v8_3 = ((com.baidu.android.pushservice.a.f) v7_2.next());
                            if ((android.text.TextUtils.equals(v5_6.c, v8_3.c)) || (android.text.TextUtils.equals(v5_6.a, v8_3.a))) {
                                p13.remove(v8_3);
                                p13.add(v5_6);
                                int v7_3 = 1;
                            }
                            if (v7_3 == 0) {
                                p13.add(v5_6);
                            }
                        }
                        v7_3 = 0;
                    }
                }
            }
            if (!android.text.TextUtils.isEmpty(v2_2)) {
                com.baidu.android.pushservice.a.f v2_4 = this.h(com.baidu.android.pushservice.a.b.a(v2_2));
                java.util.Iterator v3_5 = p13.iterator();
                while (v3_5.hasNext()) {
                    com.baidu.android.pushservice.a.f v5_4 = ((com.baidu.android.pushservice.a.f) v3_5.next());
                    if (android.text.TextUtils.equals(v2_4.c, v5_4.c)) {
                        p13.remove(v5_4);
                        p13.add(v2_4);
                    }
                    if (v4_0 == 0) {
                        p13.add(v2_4);
                    }
                }
                v4_0 = 0;
            }
        }
        if (p13.size() > 0) {
            String v13_2 = this.b(this.a(p13));
            com.baidu.android.pushservice.c.c.c(this.c, v13_2);
            if (com.baidu.android.pushservice.i.l.D(this.c)) {
                com.baidu.android.pushservice.i.m.a(this.c, v0_2, p12, v13_2);
            }
        }
        return;
    }

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


    public static java.util.List o(android.content.Context p5)
    {
        java.util.List v0_1 = new java.util.ArrayList();
        try {
            java.util.ArrayList v1_2 = p5.getPackageManager();
        } catch (Exception) {
            return v0_1;
        }
        if (v1_2 != null) {
            v0_1 = v1_2.queryBroadcastReceivers(new android.content.Intent("com.baidu.android.pushservice.action.BIND_SYNC"), 576);
            java.util.ArrayList v1_1 = new java.util.ArrayList();
            java.util.Iterator v2_0 = v0_1.iterator();
            while (v2_0.hasNext()) {
                android.content.pm.ResolveInfo v3_2 = ((android.content.pm.ResolveInfo) v2_0.next());
                if (com.baidu.android.pushservice.i.l.z(p5, v3_2.activityInfo.packageName)) {
                    v1_1.add(v3_2);
                }
            }
            v0_1.removeAll(v1_1);
            return v0_1;
        } else {
            return v0_1;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_SINK']' [[('Lcom/baidu/android/pushservice/PushSettings;', 'a', '(Landroid/content/Context; Z)V'), ('Lcom/baidu/android/pushservice/i/l;', 'v', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/l;', 'p', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/l;', 'o', '(Landroid/content/Context;)Ljava/util/List;'), ('Lcom/baidu/android/pushservice/i/l;', 'z', '(Landroid/content/Context; Ljava/lang/String;)Z'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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.l.v():


    public static String v(android.content.Context p1)
    {
        return com.baidu.android.pushservice.i.l.p(p1, p1.getPackageName());
    }

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

Couldn't retrieve source code

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


    public static java.util.List o(android.content.Context p5)
    {
        java.util.List v0_1 = new java.util.ArrayList();
        try {
            java.util.ArrayList v1_2 = p5.getPackageManager();
        } catch (Exception) {
            return v0_1;
        }
        if (v1_2 != null) {
            v0_1 = v1_2.queryBroadcastReceivers(new android.content.Intent("com.baidu.android.pushservice.action.BIND_SYNC"), 576);
            java.util.ArrayList v1_1 = new java.util.ArrayList();
            java.util.Iterator v2_0 = v0_1.iterator();
            while (v2_0.hasNext()) {
                android.content.pm.ResolveInfo v3_2 = ((android.content.pm.ResolveInfo) v2_0.next());
                if (com.baidu.android.pushservice.i.l.z(p5, v3_2.activityInfo.packageName)) {
                    v1_1.add(v3_2);
                }
            }
            v0_1.removeAll(v1_1);
            return v0_1;
        } else {
            return v0_1;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_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/l;', 'v', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/l;', 'p', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/l;', 'o', '(Landroid/content/Context;)Ljava/util/List;'), ('Lcom/baidu/android/pushservice/i/l;', 'z', '(Landroid/content/Context; Ljava/lang/String;)Z'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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.l.v():


    public static String v(android.content.Context p1)
    {
        return com.baidu.android.pushservice.i.l.p(p1, p1.getPackageName());
    }

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

Couldn't retrieve source code

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


    public static java.util.List o(android.content.Context p5)
    {
        java.util.List v0_1 = new java.util.ArrayList();
        try {
            java.util.ArrayList v1_2 = p5.getPackageManager();
        } catch (Exception) {
            return v0_1;
        }
        if (v1_2 != null) {
            v0_1 = v1_2.queryBroadcastReceivers(new android.content.Intent("com.baidu.android.pushservice.action.BIND_SYNC"), 576);
            java.util.ArrayList v1_1 = new java.util.ArrayList();
            java.util.Iterator v2_0 = v0_1.iterator();
            while (v2_0.hasNext()) {
                android.content.pm.ResolveInfo v3_2 = ((android.content.pm.ResolveInfo) v2_0.next());
                if (com.baidu.android.pushservice.i.l.z(p5, v3_2.activityInfo.packageName)) {
                    v1_1.add(v3_2);
                }
            }
            v0_1.removeAll(v1_1);
            return v0_1;
        } else {
            return v0_1;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_SINK']' [[('Lcom/baidu/android/pushservice/RegistrationReceiver;', 'a', '(Landroid/content/Context; Landroid/content/Intent;)V'), ('Lcom/baidu/android/pushservice/RegistrationReceiver;', 'c', '(Landroid/content/Context; Landroid/content/Intent;)V'), ('Lcom/baidu/android/pushservice/a/b;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/a/b;'), ('Lcom/baidu/android/pushservice/a/b;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/a/b;', 'a', '()V'), ('Lcom/baidu/android/pushservice/a/b;', 'a', '(Ljava/lang/String; Ljava/util/ArrayList;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'o', '(Landroid/content/Context;)Ljava/util/List;'), ('Lcom/baidu/android/pushservice/i/l;', 'z', '(Landroid/content/Context; Ljava/lang/String;)Z'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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


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

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


    private static void c(android.content.Context p2, android.content.Intent p3)
    {
        if (!p2.getPackageName().equals(p3.getStringExtra("r_sync_from"))) {
            String v3_1 = p3.getStringExtra("r_sync_rdata_v2");
            if (!android.text.TextUtils.isEmpty(v3_1)) {
                com.baidu.android.pushservice.a.b.a(p2).a("r_v2", v3_1);
            }
            return;
        } else {
            return;
        }
    }

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


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

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


    private b(android.content.Context p4)
    {
        this.a = new java.util.ArrayList();
        this.d = new java.util.HashMap();
        this.c = p4.getApplicationContext();
        String v0_1 = com.baidu.android.pushservice.c.c.e(p4);
        if ((android.text.TextUtils.isEmpty(v0_1)) && (com.baidu.android.pushservice.i.l.D(this.c))) {
            String v0_4 = new StringBuilder();
            v0_4.append(this.c.getPackageName());
            v0_4.append(".push_sync");
            v0_1 = com.baidu.android.pushservice.i.m.a(this.c, v0_4.toString(), "r_v2");
        }
        if (!android.text.TextUtils.isEmpty(v0_1)) {
            String v0_7 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v0_1));
        }
        try {
            int v1_11 = p4.getPackageManager().getPackageInfo(p4.getPackageName(), 0).versionCode;
        } catch (Exception) {
        }
        if (com.baidu.android.pushservice.i.i.b(this.c, "com.baidu.push.sync.vn", -1) < v1_11) {
            this.a();
            com.baidu.android.pushservice.i.i.a(this.c, "com.baidu.push.sync.vn", v1_11);
        }
        return;
    }

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


    private void a()
    {
        this.a("r_v2", this.a);
        return;
    }

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


    private void a(String p12, java.util.ArrayList p13)
    {
        android.content.Context v1_3;
        String v0_1 = new StringBuilder();
        v0_1.append(this.c.getPackageName());
        v0_1.append(".push_sync");
        String v0_2 = v0_1.toString();
        if (!com.baidu.android.pushservice.i.l.E(this.c)) {
            v1_3 = com.baidu.android.pushservice.i.l.o(this.c);
        } else {
            v1_3 = com.baidu.android.pushservice.i.l.p(this.c);
        }
        android.content.Context v1_6 = v1_3.iterator();
        while (v1_6.hasNext()) {
            com.baidu.android.pushservice.a.f v2_8 = ((android.content.pm.ResolveInfo) v1_6.next());
            try {
                com.baidu.android.pushservice.a.f v2_2;
                java.util.Iterator v3_8 = v2_8.activityInfo.packageName;
                com.baidu.android.pushservice.a.f v5_0 = 0;
            } catch (com.baidu.android.pushservice.a.f v2_5) {
                com.baidu.android.pushservice.g.o.a(this.c, v2_5);
            }
            if (!com.baidu.android.pushservice.i.l.D(this.c)) {
                v2_2 = 0;
            } else {
                int v4_4 = com.baidu.android.pushservice.i.l.v(this.c, v2_8.activityInfo.packageName);
                if (v4_4 == 0) {
                } else {
                    com.baidu.android.pushservice.a.f v5_8 = new StringBuilder();
                    v5_8.append(v2_8.activityInfo.packageName);
                    v5_8.append(".push_sync");
                    v5_0 = com.baidu.android.pushservice.i.m.a(v4_4, v5_8.toString(), p12);
                    int v6_6 = new StringBuilder();
                    v6_6.append(v2_8.activityInfo.packageName);
                    v6_6.append(".self_push_sync");
                    v2_2 = com.baidu.android.pushservice.i.m.a(v4_4, v6_6.toString(), "bindinfo");
                }
            }
            if (((android.text.TextUtils.isEmpty(v5_0)) || (android.text.TextUtils.isEmpty(v2_2))) && (com.baidu.android.pushservice.i.l.m(this.c, v3_8) > 50)) {
                if (!android.text.TextUtils.equals(this.c.getPackageName(), "com.baidu.searchbox")) {
                    v5_0 = com.baidu.android.pushservice.c.d.e(this.c, v3_8);
                }
                v2_2 = com.baidu.android.pushservice.c.d.f(this.c, v3_8);
            }
            int v4_0 = 1;
            if (!android.text.TextUtils.isEmpty(v5_0)) {
                java.util.Iterator v3_2 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v5_0));
                if (v3_2 != null) {
                    java.util.Iterator v3_3 = v3_2.iterator();
                    while (v3_3.hasNext()) {
                        com.baidu.android.pushservice.a.f v5_6 = ((com.baidu.android.pushservice.a.f) v3_3.next());
                        int v7_2 = p13.iterator();
                        while (v7_2.hasNext()) {
                            com.baidu.android.pushservice.a.f v8_3 = ((com.baidu.android.pushservice.a.f) v7_2.next());
                            if ((android.text.TextUtils.equals(v5_6.c, v8_3.c)) || (android.text.TextUtils.equals(v5_6.a, v8_3.a))) {
                                p13.remove(v8_3);
                                p13.add(v5_6);
                                int v7_3 = 1;
                            }
                            if (v7_3 == 0) {
                                p13.add(v5_6);
                            }
                        }
                        v7_3 = 0;
                    }
                }
            }
            if (!android.text.TextUtils.isEmpty(v2_2)) {
                com.baidu.android.pushservice.a.f v2_4 = this.h(com.baidu.android.pushservice.a.b.a(v2_2));
                java.util.Iterator v3_5 = p13.iterator();
                while (v3_5.hasNext()) {
                    com.baidu.android.pushservice.a.f v5_4 = ((com.baidu.android.pushservice.a.f) v3_5.next());
                    if (android.text.TextUtils.equals(v2_4.c, v5_4.c)) {
                        p13.remove(v5_4);
                        p13.add(v2_4);
                    }
                    if (v4_0 == 0) {
                        p13.add(v2_4);
                    }
                }
                v4_0 = 0;
            }
        }
        if (p13.size() > 0) {
            String v13_2 = this.b(this.a(p13));
            com.baidu.android.pushservice.c.c.c(this.c, v13_2);
            if (com.baidu.android.pushservice.i.l.D(this.c)) {
                com.baidu.android.pushservice.i.m.a(this.c, v0_2, p12, v13_2);
            }
        }
        return;
    }

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


    public static java.util.List o(android.content.Context p5)
    {
        java.util.List v0_1 = new java.util.ArrayList();
        try {
            java.util.ArrayList v1_2 = p5.getPackageManager();
        } catch (Exception) {
            return v0_1;
        }
        if (v1_2 != null) {
            v0_1 = v1_2.queryBroadcastReceivers(new android.content.Intent("com.baidu.android.pushservice.action.BIND_SYNC"), 576);
            java.util.ArrayList v1_1 = new java.util.ArrayList();
            java.util.Iterator v2_0 = v0_1.iterator();
            while (v2_0.hasNext()) {
                android.content.pm.ResolveInfo v3_2 = ((android.content.pm.ResolveInfo) v2_0.next());
                if (com.baidu.android.pushservice.i.l.z(p5, v3_2.activityInfo.packageName)) {
                    v1_1.add(v3_2);
                }
            }
            v0_1.removeAll(v1_1);
            return v0_1;
        } else {
            return v0_1;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_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/a/b;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/a/b;'), ('Lcom/baidu/android/pushservice/a/b;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/a/b;', 'a', '()V'), ('Lcom/baidu/android/pushservice/a/b;', 'a', '(Ljava/lang/String; Ljava/util/ArrayList;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'o', '(Landroid/content/Context;)Ljava/util/List;'), ('Lcom/baidu/android/pushservice/i/l;', 'z', '(Landroid/content/Context; Ljava/lang/String;)Z'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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.a.b.a():


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

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


    private b(android.content.Context p4)
    {
        this.a = new java.util.ArrayList();
        this.d = new java.util.HashMap();
        this.c = p4.getApplicationContext();
        String v0_1 = com.baidu.android.pushservice.c.c.e(p4);
        if ((android.text.TextUtils.isEmpty(v0_1)) && (com.baidu.android.pushservice.i.l.D(this.c))) {
            String v0_4 = new StringBuilder();
            v0_4.append(this.c.getPackageName());
            v0_4.append(".push_sync");
            v0_1 = com.baidu.android.pushservice.i.m.a(this.c, v0_4.toString(), "r_v2");
        }
        if (!android.text.TextUtils.isEmpty(v0_1)) {
            String v0_7 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v0_1));
        }
        try {
            int v1_11 = p4.getPackageManager().getPackageInfo(p4.getPackageName(), 0).versionCode;
        } catch (Exception) {
        }
        if (com.baidu.android.pushservice.i.i.b(this.c, "com.baidu.push.sync.vn", -1) < v1_11) {
            this.a();
            com.baidu.android.pushservice.i.i.a(this.c, "com.baidu.push.sync.vn", v1_11);
        }
        return;
    }

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


    private void a()
    {
        this.a("r_v2", this.a);
        return;
    }

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


    private void a(String p12, java.util.ArrayList p13)
    {
        android.content.Context v1_3;
        String v0_1 = new StringBuilder();
        v0_1.append(this.c.getPackageName());
        v0_1.append(".push_sync");
        String v0_2 = v0_1.toString();
        if (!com.baidu.android.pushservice.i.l.E(this.c)) {
            v1_3 = com.baidu.android.pushservice.i.l.o(this.c);
        } else {
            v1_3 = com.baidu.android.pushservice.i.l.p(this.c);
        }
        android.content.Context v1_6 = v1_3.iterator();
        while (v1_6.hasNext()) {
            com.baidu.android.pushservice.a.f v2_8 = ((android.content.pm.ResolveInfo) v1_6.next());
            try {
                com.baidu.android.pushservice.a.f v2_2;
                java.util.Iterator v3_8 = v2_8.activityInfo.packageName;
                com.baidu.android.pushservice.a.f v5_0 = 0;
            } catch (com.baidu.android.pushservice.a.f v2_5) {
                com.baidu.android.pushservice.g.o.a(this.c, v2_5);
            }
            if (!com.baidu.android.pushservice.i.l.D(this.c)) {
                v2_2 = 0;
            } else {
                int v4_4 = com.baidu.android.pushservice.i.l.v(this.c, v2_8.activityInfo.packageName);
                if (v4_4 == 0) {
                } else {
                    com.baidu.android.pushservice.a.f v5_8 = new StringBuilder();
                    v5_8.append(v2_8.activityInfo.packageName);
                    v5_8.append(".push_sync");
                    v5_0 = com.baidu.android.pushservice.i.m.a(v4_4, v5_8.toString(), p12);
                    int v6_6 = new StringBuilder();
                    v6_6.append(v2_8.activityInfo.packageName);
                    v6_6.append(".self_push_sync");
                    v2_2 = com.baidu.android.pushservice.i.m.a(v4_4, v6_6.toString(), "bindinfo");
                }
            }
            if (((android.text.TextUtils.isEmpty(v5_0)) || (android.text.TextUtils.isEmpty(v2_2))) && (com.baidu.android.pushservice.i.l.m(this.c, v3_8) > 50)) {
                if (!android.text.TextUtils.equals(this.c.getPackageName(), "com.baidu.searchbox")) {
                    v5_0 = com.baidu.android.pushservice.c.d.e(this.c, v3_8);
                }
                v2_2 = com.baidu.android.pushservice.c.d.f(this.c, v3_8);
            }
            int v4_0 = 1;
            if (!android.text.TextUtils.isEmpty(v5_0)) {
                java.util.Iterator v3_2 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v5_0));
                if (v3_2 != null) {
                    java.util.Iterator v3_3 = v3_2.iterator();
                    while (v3_3.hasNext()) {
                        com.baidu.android.pushservice.a.f v5_6 = ((com.baidu.android.pushservice.a.f) v3_3.next());
                        int v7_2 = p13.iterator();
                        while (v7_2.hasNext()) {
                            com.baidu.android.pushservice.a.f v8_3 = ((com.baidu.android.pushservice.a.f) v7_2.next());
                            if ((android.text.TextUtils.equals(v5_6.c, v8_3.c)) || (android.text.TextUtils.equals(v5_6.a, v8_3.a))) {
                                p13.remove(v8_3);
                                p13.add(v5_6);
                                int v7_3 = 1;
                            }
                            if (v7_3 == 0) {
                                p13.add(v5_6);
                            }
                        }
                        v7_3 = 0;
                    }
                }
            }
            if (!android.text.TextUtils.isEmpty(v2_2)) {
                com.baidu.android.pushservice.a.f v2_4 = this.h(com.baidu.android.pushservice.a.b.a(v2_2));
                java.util.Iterator v3_5 = p13.iterator();
                while (v3_5.hasNext()) {
                    com.baidu.android.pushservice.a.f v5_4 = ((com.baidu.android.pushservice.a.f) v3_5.next());
                    if (android.text.TextUtils.equals(v2_4.c, v5_4.c)) {
                        p13.remove(v5_4);
                        p13.add(v2_4);
                    }
                    if (v4_0 == 0) {
                        p13.add(v2_4);
                    }
                }
                v4_0 = 0;
            }
        }
        if (p13.size() > 0) {
            String v13_2 = this.b(this.a(p13));
            com.baidu.android.pushservice.c.c.c(this.c, v13_2);
            if (com.baidu.android.pushservice.i.l.D(this.c)) {
                com.baidu.android.pushservice.i.m.a(this.c, v0_2, p12, v13_2);
            }
        }
        return;
    }

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


    public static java.util.List o(android.content.Context p5)
    {
        java.util.List v0_1 = new java.util.ArrayList();
        try {
            java.util.ArrayList v1_2 = p5.getPackageManager();
        } catch (Exception) {
            return v0_1;
        }
        if (v1_2 != null) {
            v0_1 = v1_2.queryBroadcastReceivers(new android.content.Intent("com.baidu.android.pushservice.action.BIND_SYNC"), 576);
            java.util.ArrayList v1_1 = new java.util.ArrayList();
            java.util.Iterator v2_0 = v0_1.iterator();
            while (v2_0.hasNext()) {
                android.content.pm.ResolveInfo v3_2 = ((android.content.pm.ResolveInfo) v2_0.next());
                if (com.baidu.android.pushservice.i.l.z(p5, v3_2.activityInfo.packageName)) {
                    v1_1.add(v3_2);
                }
            }
            v0_1.removeAll(v1_1);
            return v0_1;
        } else {
            return v0_1;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_SINK']' [[('Lcom/baidu/android/pushservice/RegistrationReceiver;', 'c', '(Landroid/content/Context; Landroid/content/Intent;)V'), ('Lcom/baidu/android/pushservice/a/b;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/a/b;'), ('Lcom/baidu/android/pushservice/a/b;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/a/b;', 'a', '()V'), ('Lcom/baidu/android/pushservice/a/b;', 'a', '(Ljava/lang/String; Ljava/util/ArrayList;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'o', '(Landroid/content/Context;)Ljava/util/List;'), ('Lcom/baidu/android/pushservice/i/l;', 'z', '(Landroid/content/Context; Ljava/lang/String;)Z'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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


    private static void c(android.content.Context p2, android.content.Intent p3)
    {
        if (!p2.getPackageName().equals(p3.getStringExtra("r_sync_from"))) {
            String v3_1 = p3.getStringExtra("r_sync_rdata_v2");
            if (!android.text.TextUtils.isEmpty(v3_1)) {
                com.baidu.android.pushservice.a.b.a(p2).a("r_v2", v3_1);
            }
            return;
        } else {
            return;
        }
    }

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


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

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


    private b(android.content.Context p4)
    {
        this.a = new java.util.ArrayList();
        this.d = new java.util.HashMap();
        this.c = p4.getApplicationContext();
        String v0_1 = com.baidu.android.pushservice.c.c.e(p4);
        if ((android.text.TextUtils.isEmpty(v0_1)) && (com.baidu.android.pushservice.i.l.D(this.c))) {
            String v0_4 = new StringBuilder();
            v0_4.append(this.c.getPackageName());
            v0_4.append(".push_sync");
            v0_1 = com.baidu.android.pushservice.i.m.a(this.c, v0_4.toString(), "r_v2");
        }
        if (!android.text.TextUtils.isEmpty(v0_1)) {
            String v0_7 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v0_1));
        }
        try {
            int v1_11 = p4.getPackageManager().getPackageInfo(p4.getPackageName(), 0).versionCode;
        } catch (Exception) {
        }
        if (com.baidu.android.pushservice.i.i.b(this.c, "com.baidu.push.sync.vn", -1) < v1_11) {
            this.a();
            com.baidu.android.pushservice.i.i.a(this.c, "com.baidu.push.sync.vn", v1_11);
        }
        return;
    }

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


    private void a()
    {
        this.a("r_v2", this.a);
        return;
    }

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


    private void a(String p12, java.util.ArrayList p13)
    {
        android.content.Context v1_3;
        String v0_1 = new StringBuilder();
        v0_1.append(this.c.getPackageName());
        v0_1.append(".push_sync");
        String v0_2 = v0_1.toString();
        if (!com.baidu.android.pushservice.i.l.E(this.c)) {
            v1_3 = com.baidu.android.pushservice.i.l.o(this.c);
        } else {
            v1_3 = com.baidu.android.pushservice.i.l.p(this.c);
        }
        android.content.Context v1_6 = v1_3.iterator();
        while (v1_6.hasNext()) {
            com.baidu.android.pushservice.a.f v2_8 = ((android.content.pm.ResolveInfo) v1_6.next());
            try {
                com.baidu.android.pushservice.a.f v2_2;
                java.util.Iterator v3_8 = v2_8.activityInfo.packageName;
                com.baidu.android.pushservice.a.f v5_0 = 0;
            } catch (com.baidu.android.pushservice.a.f v2_5) {
                com.baidu.android.pushservice.g.o.a(this.c, v2_5);
            }
            if (!com.baidu.android.pushservice.i.l.D(this.c)) {
                v2_2 = 0;
            } else {
                int v4_4 = com.baidu.android.pushservice.i.l.v(this.c, v2_8.activityInfo.packageName);
                if (v4_4 == 0) {
                } else {
                    com.baidu.android.pushservice.a.f v5_8 = new StringBuilder();
                    v5_8.append(v2_8.activityInfo.packageName);
                    v5_8.append(".push_sync");
                    v5_0 = com.baidu.android.pushservice.i.m.a(v4_4, v5_8.toString(), p12);
                    int v6_6 = new StringBuilder();
                    v6_6.append(v2_8.activityInfo.packageName);
                    v6_6.append(".self_push_sync");
                    v2_2 = com.baidu.android.pushservice.i.m.a(v4_4, v6_6.toString(), "bindinfo");
                }
            }
            if (((android.text.TextUtils.isEmpty(v5_0)) || (android.text.TextUtils.isEmpty(v2_2))) && (com.baidu.android.pushservice.i.l.m(this.c, v3_8) > 50)) {
                if (!android.text.TextUtils.equals(this.c.getPackageName(), "com.baidu.searchbox")) {
                    v5_0 = com.baidu.android.pushservice.c.d.e(this.c, v3_8);
                }
                v2_2 = com.baidu.android.pushservice.c.d.f(this.c, v3_8);
            }
            int v4_0 = 1;
            if (!android.text.TextUtils.isEmpty(v5_0)) {
                java.util.Iterator v3_2 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v5_0));
                if (v3_2 != null) {
                    java.util.Iterator v3_3 = v3_2.iterator();
                    while (v3_3.hasNext()) {
                        com.baidu.android.pushservice.a.f v5_6 = ((com.baidu.android.pushservice.a.f) v3_3.next());
                        int v7_2 = p13.iterator();
                        while (v7_2.hasNext()) {
                            com.baidu.android.pushservice.a.f v8_3 = ((com.baidu.android.pushservice.a.f) v7_2.next());
                            if ((android.text.TextUtils.equals(v5_6.c, v8_3.c)) || (android.text.TextUtils.equals(v5_6.a, v8_3.a))) {
                                p13.remove(v8_3);
                                p13.add(v5_6);
                                int v7_3 = 1;
                            }
                            if (v7_3 == 0) {
                                p13.add(v5_6);
                            }
                        }
                        v7_3 = 0;
                    }
                }
            }
            if (!android.text.TextUtils.isEmpty(v2_2)) {
                com.baidu.android.pushservice.a.f v2_4 = this.h(com.baidu.android.pushservice.a.b.a(v2_2));
                java.util.Iterator v3_5 = p13.iterator();
                while (v3_5.hasNext()) {
                    com.baidu.android.pushservice.a.f v5_4 = ((com.baidu.android.pushservice.a.f) v3_5.next());
                    if (android.text.TextUtils.equals(v2_4.c, v5_4.c)) {
                        p13.remove(v5_4);
                        p13.add(v2_4);
                    }
                    if (v4_0 == 0) {
                        p13.add(v2_4);
                    }
                }
                v4_0 = 0;
            }
        }
        if (p13.size() > 0) {
            String v13_2 = this.b(this.a(p13));
            com.baidu.android.pushservice.c.c.c(this.c, v13_2);
            if (com.baidu.android.pushservice.i.l.D(this.c)) {
                com.baidu.android.pushservice.i.m.a(this.c, v0_2, p12, v13_2);
            }
        }
        return;
    }

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


    public static java.util.List o(android.content.Context p5)
    {
        java.util.List v0_1 = new java.util.ArrayList();
        try {
            java.util.ArrayList v1_2 = p5.getPackageManager();
        } catch (Exception) {
            return v0_1;
        }
        if (v1_2 != null) {
            v0_1 = v1_2.queryBroadcastReceivers(new android.content.Intent("com.baidu.android.pushservice.action.BIND_SYNC"), 576);
            java.util.ArrayList v1_1 = new java.util.ArrayList();
            java.util.Iterator v2_0 = v0_1.iterator();
            while (v2_0.hasNext()) {
                android.content.pm.ResolveInfo v3_2 = ((android.content.pm.ResolveInfo) v2_0.next());
                if (com.baidu.android.pushservice.i.l.z(p5, v3_2.activityInfo.packageName)) {
                    v1_1.add(v3_2);
                }
            }
            v0_1.removeAll(v1_1);
            return v0_1;
        } else {
            return v0_1;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_SINK']' [[('Lcom/baidu/android/pushservice/a/b;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/a/b;', 'a', '()V'), ('Lcom/baidu/android/pushservice/a/b;', 'a', '(Ljava/lang/String; Ljava/util/ArrayList;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'o', '(Landroid/content/Context;)Ljava/util/List;'), ('Lcom/baidu/android/pushservice/i/l;', 'z', '(Landroid/content/Context; Ljava/lang/String;)Z'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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


    private b(android.content.Context p4)
    {
        this.a = new java.util.ArrayList();
        this.d = new java.util.HashMap();
        this.c = p4.getApplicationContext();
        String v0_1 = com.baidu.android.pushservice.c.c.e(p4);
        if ((android.text.TextUtils.isEmpty(v0_1)) && (com.baidu.android.pushservice.i.l.D(this.c))) {
            String v0_4 = new StringBuilder();
            v0_4.append(this.c.getPackageName());
            v0_4.append(".push_sync");
            v0_1 = com.baidu.android.pushservice.i.m.a(this.c, v0_4.toString(), "r_v2");
        }
        if (!android.text.TextUtils.isEmpty(v0_1)) {
            String v0_7 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v0_1));
        }
        try {
            int v1_11 = p4.getPackageManager().getPackageInfo(p4.getPackageName(), 0).versionCode;
        } catch (Exception) {
        }
        if (com.baidu.android.pushservice.i.i.b(this.c, "com.baidu.push.sync.vn", -1) < v1_11) {
            this.a();
            com.baidu.android.pushservice.i.i.a(this.c, "com.baidu.push.sync.vn", v1_11);
        }
        return;
    }

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


    private void a()
    {
        this.a("r_v2", this.a);
        return;
    }

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


    private void a(String p12, java.util.ArrayList p13)
    {
        android.content.Context v1_3;
        String v0_1 = new StringBuilder();
        v0_1.append(this.c.getPackageName());
        v0_1.append(".push_sync");
        String v0_2 = v0_1.toString();
        if (!com.baidu.android.pushservice.i.l.E(this.c)) {
            v1_3 = com.baidu.android.pushservice.i.l.o(this.c);
        } else {
            v1_3 = com.baidu.android.pushservice.i.l.p(this.c);
        }
        android.content.Context v1_6 = v1_3.iterator();
        while (v1_6.hasNext()) {
            com.baidu.android.pushservice.a.f v2_8 = ((android.content.pm.ResolveInfo) v1_6.next());
            try {
                com.baidu.android.pushservice.a.f v2_2;
                java.util.Iterator v3_8 = v2_8.activityInfo.packageName;
                com.baidu.android.pushservice.a.f v5_0 = 0;
            } catch (com.baidu.android.pushservice.a.f v2_5) {
                com.baidu.android.pushservice.g.o.a(this.c, v2_5);
            }
            if (!com.baidu.android.pushservice.i.l.D(this.c)) {
                v2_2 = 0;
            } else {
                int v4_4 = com.baidu.android.pushservice.i.l.v(this.c, v2_8.activityInfo.packageName);
                if (v4_4 == 0) {
                } else {
                    com.baidu.android.pushservice.a.f v5_8 = new StringBuilder();
                    v5_8.append(v2_8.activityInfo.packageName);
                    v5_8.append(".push_sync");
                    v5_0 = com.baidu.android.pushservice.i.m.a(v4_4, v5_8.toString(), p12);
                    int v6_6 = new StringBuilder();
                    v6_6.append(v2_8.activityInfo.packageName);
                    v6_6.append(".self_push_sync");
                    v2_2 = com.baidu.android.pushservice.i.m.a(v4_4, v6_6.toString(), "bindinfo");
                }
            }
            if (((android.text.TextUtils.isEmpty(v5_0)) || (android.text.TextUtils.isEmpty(v2_2))) && (com.baidu.android.pushservice.i.l.m(this.c, v3_8) > 50)) {
                if (!android.text.TextUtils.equals(this.c.getPackageName(), "com.baidu.searchbox")) {
                    v5_0 = com.baidu.android.pushservice.c.d.e(this.c, v3_8);
                }
                v2_2 = com.baidu.android.pushservice.c.d.f(this.c, v3_8);
            }
            int v4_0 = 1;
            if (!android.text.TextUtils.isEmpty(v5_0)) {
                java.util.Iterator v3_2 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v5_0));
                if (v3_2 != null) {
                    java.util.Iterator v3_3 = v3_2.iterator();
                    while (v3_3.hasNext()) {
                        com.baidu.android.pushservice.a.f v5_6 = ((com.baidu.android.pushservice.a.f) v3_3.next());
                        int v7_2 = p13.iterator();
                        while (v7_2.hasNext()) {
                            com.baidu.android.pushservice.a.f v8_3 = ((com.baidu.android.pushservice.a.f) v7_2.next());
                            if ((android.text.TextUtils.equals(v5_6.c, v8_3.c)) || (android.text.TextUtils.equals(v5_6.a, v8_3.a))) {
                                p13.remove(v8_3);
                                p13.add(v5_6);
                                int v7_3 = 1;
                            }
                            if (v7_3 == 0) {
                                p13.add(v5_6);
                            }
                        }
                        v7_3 = 0;
                    }
                }
            }
            if (!android.text.TextUtils.isEmpty(v2_2)) {
                com.baidu.android.pushservice.a.f v2_4 = this.h(com.baidu.android.pushservice.a.b.a(v2_2));
                java.util.Iterator v3_5 = p13.iterator();
                while (v3_5.hasNext()) {
                    com.baidu.android.pushservice.a.f v5_4 = ((com.baidu.android.pushservice.a.f) v3_5.next());
                    if (android.text.TextUtils.equals(v2_4.c, v5_4.c)) {
                        p13.remove(v5_4);
                        p13.add(v2_4);
                    }
                    if (v4_0 == 0) {
                        p13.add(v2_4);
                    }
                }
                v4_0 = 0;
            }
        }
        if (p13.size() > 0) {
            String v13_2 = this.b(this.a(p13));
            com.baidu.android.pushservice.c.c.c(this.c, v13_2);
            if (com.baidu.android.pushservice.i.l.D(this.c)) {
                com.baidu.android.pushservice.i.m.a(this.c, v0_2, p12, v13_2);
            }
        }
        return;
    }

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


    public static java.util.List o(android.content.Context p5)
    {
        java.util.List v0_1 = new java.util.ArrayList();
        try {
            java.util.ArrayList v1_2 = p5.getPackageManager();
        } catch (Exception) {
            return v0_1;
        }
        if (v1_2 != null) {
            v0_1 = v1_2.queryBroadcastReceivers(new android.content.Intent("com.baidu.android.pushservice.action.BIND_SYNC"), 576);
            java.util.ArrayList v1_1 = new java.util.ArrayList();
            java.util.Iterator v2_0 = v0_1.iterator();
            while (v2_0.hasNext()) {
                android.content.pm.ResolveInfo v3_2 = ((android.content.pm.ResolveInfo) v2_0.next());
                if (com.baidu.android.pushservice.i.l.z(p5, v3_2.activityInfo.packageName)) {
                    v1_1.add(v3_2);
                }
            }
            v0_1.removeAll(v1_1);
            return v0_1;
        } else {
            return v0_1;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_SINK']' [[('Lcom/baidu/android/pushservice/a/b;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/a/b;'), ('Lcom/baidu/android/pushservice/a/b;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/a/b;', 'a', '()V'), ('Lcom/baidu/android/pushservice/a/b;', 'a', '(Ljava/lang/String; Ljava/util/ArrayList;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'o', '(Landroid/content/Context;)Ljava/util/List;'), ('Lcom/baidu/android/pushservice/i/l;', 'z', '(Landroid/content/Context; Ljava/lang/String;)Z'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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


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

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


    private b(android.content.Context p4)
    {
        this.a = new java.util.ArrayList();
        this.d = new java.util.HashMap();
        this.c = p4.getApplicationContext();
        String v0_1 = com.baidu.android.pushservice.c.c.e(p4);
        if ((android.text.TextUtils.isEmpty(v0_1)) && (com.baidu.android.pushservice.i.l.D(this.c))) {
            String v0_4 = new StringBuilder();
            v0_4.append(this.c.getPackageName());
            v0_4.append(".push_sync");
            v0_1 = com.baidu.android.pushservice.i.m.a(this.c, v0_4.toString(), "r_v2");
        }
        if (!android.text.TextUtils.isEmpty(v0_1)) {
            String v0_7 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v0_1));
        }
        try {
            int v1_11 = p4.getPackageManager().getPackageInfo(p4.getPackageName(), 0).versionCode;
        } catch (Exception) {
        }
        if (com.baidu.android.pushservice.i.i.b(this.c, "com.baidu.push.sync.vn", -1) < v1_11) {
            this.a();
            com.baidu.android.pushservice.i.i.a(this.c, "com.baidu.push.sync.vn", v1_11);
        }
        return;
    }

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


    private void a()
    {
        this.a("r_v2", this.a);
        return;
    }

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


    private void a(String p12, java.util.ArrayList p13)
    {
        android.content.Context v1_3;
        String v0_1 = new StringBuilder();
        v0_1.append(this.c.getPackageName());
        v0_1.append(".push_sync");
        String v0_2 = v0_1.toString();
        if (!com.baidu.android.pushservice.i.l.E(this.c)) {
            v1_3 = com.baidu.android.pushservice.i.l.o(this.c);
        } else {
            v1_3 = com.baidu.android.pushservice.i.l.p(this.c);
        }
        android.content.Context v1_6 = v1_3.iterator();
        while (v1_6.hasNext()) {
            com.baidu.android.pushservice.a.f v2_8 = ((android.content.pm.ResolveInfo) v1_6.next());
            try {
                com.baidu.android.pushservice.a.f v2_2;
                java.util.Iterator v3_8 = v2_8.activityInfo.packageName;
                com.baidu.android.pushservice.a.f v5_0 = 0;
            } catch (com.baidu.android.pushservice.a.f v2_5) {
                com.baidu.android.pushservice.g.o.a(this.c, v2_5);
            }
            if (!com.baidu.android.pushservice.i.l.D(this.c)) {
                v2_2 = 0;
            } else {
                int v4_4 = com.baidu.android.pushservice.i.l.v(this.c, v2_8.activityInfo.packageName);
                if (v4_4 == 0) {
                } else {
                    com.baidu.android.pushservice.a.f v5_8 = new StringBuilder();
                    v5_8.append(v2_8.activityInfo.packageName);
                    v5_8.append(".push_sync");
                    v5_0 = com.baidu.android.pushservice.i.m.a(v4_4, v5_8.toString(), p12);
                    int v6_6 = new StringBuilder();
                    v6_6.append(v2_8.activityInfo.packageName);
                    v6_6.append(".self_push_sync");
                    v2_2 = com.baidu.android.pushservice.i.m.a(v4_4, v6_6.toString(), "bindinfo");
                }
            }
            if (((android.text.TextUtils.isEmpty(v5_0)) || (android.text.TextUtils.isEmpty(v2_2))) && (com.baidu.android.pushservice.i.l.m(this.c, v3_8) > 50)) {
                if (!android.text.TextUtils.equals(this.c.getPackageName(), "com.baidu.searchbox")) {
                    v5_0 = com.baidu.android.pushservice.c.d.e(this.c, v3_8);
                }
                v2_2 = com.baidu.android.pushservice.c.d.f(this.c, v3_8);
            }
            int v4_0 = 1;
            if (!android.text.TextUtils.isEmpty(v5_0)) {
                java.util.Iterator v3_2 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v5_0));
                if (v3_2 != null) {
                    java.util.Iterator v3_3 = v3_2.iterator();
                    while (v3_3.hasNext()) {
                        com.baidu.android.pushservice.a.f v5_6 = ((com.baidu.android.pushservice.a.f) v3_3.next());
                        int v7_2 = p13.iterator();
                        while (v7_2.hasNext()) {
                            com.baidu.android.pushservice.a.f v8_3 = ((com.baidu.android.pushservice.a.f) v7_2.next());
                            if ((android.text.TextUtils.equals(v5_6.c, v8_3.c)) || (android.text.TextUtils.equals(v5_6.a, v8_3.a))) {
                                p13.remove(v8_3);
                                p13.add(v5_6);
                                int v7_3 = 1;
                            }
                            if (v7_3 == 0) {
                                p13.add(v5_6);
                            }
                        }
                        v7_3 = 0;
                    }
                }
            }
            if (!android.text.TextUtils.isEmpty(v2_2)) {
                com.baidu.android.pushservice.a.f v2_4 = this.h(com.baidu.android.pushservice.a.b.a(v2_2));
                java.util.Iterator v3_5 = p13.iterator();
                while (v3_5.hasNext()) {
                    com.baidu.android.pushservice.a.f v5_4 = ((com.baidu.android.pushservice.a.f) v3_5.next());
                    if (android.text.TextUtils.equals(v2_4.c, v5_4.c)) {
                        p13.remove(v5_4);
                        p13.add(v2_4);
                    }
                    if (v4_0 == 0) {
                        p13.add(v2_4);
                    }
                }
                v4_0 = 0;
            }
        }
        if (p13.size() > 0) {
            String v13_2 = this.b(this.a(p13));
            com.baidu.android.pushservice.c.c.c(this.c, v13_2);
            if (com.baidu.android.pushservice.i.l.D(this.c)) {
                com.baidu.android.pushservice.i.m.a(this.c, v0_2, p12, v13_2);
            }
        }
        return;
    }

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


    public static java.util.List o(android.content.Context p5)
    {
        java.util.List v0_1 = new java.util.ArrayList();
        try {
            java.util.ArrayList v1_2 = p5.getPackageManager();
        } catch (Exception) {
            return v0_1;
        }
        if (v1_2 != null) {
            v0_1 = v1_2.queryBroadcastReceivers(new android.content.Intent("com.baidu.android.pushservice.action.BIND_SYNC"), 576);
            java.util.ArrayList v1_1 = new java.util.ArrayList();
            java.util.Iterator v2_0 = v0_1.iterator();
            while (v2_0.hasNext()) {
                android.content.pm.ResolveInfo v3_2 = ((android.content.pm.ResolveInfo) v2_0.next());
                if (com.baidu.android.pushservice.i.l.z(p5, v3_2.activityInfo.packageName)) {
                    v1_1.add(v3_2);
                }
            }
            v0_1.removeAll(v1_1);
            return v0_1;
        } else {
            return v0_1;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_SINK']' [[('Lcom/baidu/android/pushservice/a/b;', 'a', '()V'), ('Lcom/baidu/android/pushservice/a/b;', 'a', '(Ljava/lang/String; Ljava/util/ArrayList;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'o', '(Landroid/content/Context;)Ljava/util/List;'), ('Lcom/baidu/android/pushservice/i/l;', 'z', '(Landroid/content/Context; Ljava/lang/String;)Z'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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


    private void a()
    {
        this.a("r_v2", this.a);
        return;
    }

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


    private void a(String p12, java.util.ArrayList p13)
    {
        android.content.Context v1_3;
        String v0_1 = new StringBuilder();
        v0_1.append(this.c.getPackageName());
        v0_1.append(".push_sync");
        String v0_2 = v0_1.toString();
        if (!com.baidu.android.pushservice.i.l.E(this.c)) {
            v1_3 = com.baidu.android.pushservice.i.l.o(this.c);
        } else {
            v1_3 = com.baidu.android.pushservice.i.l.p(this.c);
        }
        android.content.Context v1_6 = v1_3.iterator();
        while (v1_6.hasNext()) {
            com.baidu.android.pushservice.a.f v2_8 = ((android.content.pm.ResolveInfo) v1_6.next());
            try {
                com.baidu.android.pushservice.a.f v2_2;
                java.util.Iterator v3_8 = v2_8.activityInfo.packageName;
                com.baidu.android.pushservice.a.f v5_0 = 0;
            } catch (com.baidu.android.pushservice.a.f v2_5) {
                com.baidu.android.pushservice.g.o.a(this.c, v2_5);
            }
            if (!com.baidu.android.pushservice.i.l.D(this.c)) {
                v2_2 = 0;
            } else {
                int v4_4 = com.baidu.android.pushservice.i.l.v(this.c, v2_8.activityInfo.packageName);
                if (v4_4 == 0) {
                } else {
                    com.baidu.android.pushservice.a.f v5_8 = new StringBuilder();
                    v5_8.append(v2_8.activityInfo.packageName);
                    v5_8.append(".push_sync");
                    v5_0 = com.baidu.android.pushservice.i.m.a(v4_4, v5_8.toString(), p12);
                    int v6_6 = new StringBuilder();
                    v6_6.append(v2_8.activityInfo.packageName);
                    v6_6.append(".self_push_sync");
                    v2_2 = com.baidu.android.pushservice.i.m.a(v4_4, v6_6.toString(), "bindinfo");
                }
            }
            if (((android.text.TextUtils.isEmpty(v5_0)) || (android.text.TextUtils.isEmpty(v2_2))) && (com.baidu.android.pushservice.i.l.m(this.c, v3_8) > 50)) {
                if (!android.text.TextUtils.equals(this.c.getPackageName(), "com.baidu.searchbox")) {
                    v5_0 = com.baidu.android.pushservice.c.d.e(this.c, v3_8);
                }
                v2_2 = com.baidu.android.pushservice.c.d.f(this.c, v3_8);
            }
            int v4_0 = 1;
            if (!android.text.TextUtils.isEmpty(v5_0)) {
                java.util.Iterator v3_2 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v5_0));
                if (v3_2 != null) {
                    java.util.Iterator v3_3 = v3_2.iterator();
                    while (v3_3.hasNext()) {
                        com.baidu.android.pushservice.a.f v5_6 = ((com.baidu.android.pushservice.a.f) v3_3.next());
                        int v7_2 = p13.iterator();
                        while (v7_2.hasNext()) {
                            com.baidu.android.pushservice.a.f v8_3 = ((com.baidu.android.pushservice.a.f) v7_2.next());
                            if ((android.text.TextUtils.equals(v5_6.c, v8_3.c)) || (android.text.TextUtils.equals(v5_6.a, v8_3.a))) {
                                p13.remove(v8_3);
                                p13.add(v5_6);
                                int v7_3 = 1;
                            }
                            if (v7_3 == 0) {
                                p13.add(v5_6);
                            }
                        }
                        v7_3 = 0;
                    }
                }
            }
            if (!android.text.TextUtils.isEmpty(v2_2)) {
                com.baidu.android.pushservice.a.f v2_4 = this.h(com.baidu.android.pushservice.a.b.a(v2_2));
                java.util.Iterator v3_5 = p13.iterator();
                while (v3_5.hasNext()) {
                    com.baidu.android.pushservice.a.f v5_4 = ((com.baidu.android.pushservice.a.f) v3_5.next());
                    if (android.text.TextUtils.equals(v2_4.c, v5_4.c)) {
                        p13.remove(v5_4);
                        p13.add(v2_4);
                    }
                    if (v4_0 == 0) {
                        p13.add(v2_4);
                    }
                }
                v4_0 = 0;
            }
        }
        if (p13.size() > 0) {
            String v13_2 = this.b(this.a(p13));
            com.baidu.android.pushservice.c.c.c(this.c, v13_2);
            if (com.baidu.android.pushservice.i.l.D(this.c)) {
                com.baidu.android.pushservice.i.m.a(this.c, v0_2, p12, v13_2);
            }
        }
        return;
    }

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


    public static java.util.List o(android.content.Context p5)
    {
        java.util.List v0_1 = new java.util.ArrayList();
        try {
            java.util.ArrayList v1_2 = p5.getPackageManager();
        } catch (Exception) {
            return v0_1;
        }
        if (v1_2 != null) {
            v0_1 = v1_2.queryBroadcastReceivers(new android.content.Intent("com.baidu.android.pushservice.action.BIND_SYNC"), 576);
            java.util.ArrayList v1_1 = new java.util.ArrayList();
            java.util.Iterator v2_0 = v0_1.iterator();
            while (v2_0.hasNext()) {
                android.content.pm.ResolveInfo v3_2 = ((android.content.pm.ResolveInfo) v2_0.next());
                if (com.baidu.android.pushservice.i.l.z(p5, v3_2.activityInfo.packageName)) {
                    v1_1.add(v3_2);
                }
            }
            v0_1.removeAll(v1_1);
            return v0_1;
        } else {
            return v0_1;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_SINK']' [[('Lcom/baidu/android/pushservice/a/b;', 'a', '(Ljava/lang/String; Ljava/util/ArrayList;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'o', '(Landroid/content/Context;)Ljava/util/List;'), ('Lcom/baidu/android/pushservice/i/l;', 'z', '(Landroid/content/Context; Ljava/lang/String;)Z'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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


    private void a(String p12, java.util.ArrayList p13)
    {
        android.content.Context v1_3;
        String v0_1 = new StringBuilder();
        v0_1.append(this.c.getPackageName());
        v0_1.append(".push_sync");
        String v0_2 = v0_1.toString();
        if (!com.baidu.android.pushservice.i.l.E(this.c)) {
            v1_3 = com.baidu.android.pushservice.i.l.o(this.c);
        } else {
            v1_3 = com.baidu.android.pushservice.i.l.p(this.c);
        }
        android.content.Context v1_6 = v1_3.iterator();
        while (v1_6.hasNext()) {
            com.baidu.android.pushservice.a.f v2_8 = ((android.content.pm.ResolveInfo) v1_6.next());
            try {
                com.baidu.android.pushservice.a.f v2_2;
                java.util.Iterator v3_8 = v2_8.activityInfo.packageName;
                com.baidu.android.pushservice.a.f v5_0 = 0;
            } catch (com.baidu.android.pushservice.a.f v2_5) {
                com.baidu.android.pushservice.g.o.a(this.c, v2_5);
            }
            if (!com.baidu.android.pushservice.i.l.D(this.c)) {
                v2_2 = 0;
            } else {
                int v4_4 = com.baidu.android.pushservice.i.l.v(this.c, v2_8.activityInfo.packageName);
                if (v4_4 == 0) {
                } else {
                    com.baidu.android.pushservice.a.f v5_8 = new StringBuilder();
                    v5_8.append(v2_8.activityInfo.packageName);
                    v5_8.append(".push_sync");
                    v5_0 = com.baidu.android.pushservice.i.m.a(v4_4, v5_8.toString(), p12);
                    int v6_6 = new StringBuilder();
                    v6_6.append(v2_8.activityInfo.packageName);
                    v6_6.append(".self_push_sync");
                    v2_2 = com.baidu.android.pushservice.i.m.a(v4_4, v6_6.toString(), "bindinfo");
                }
            }
            if (((android.text.TextUtils.isEmpty(v5_0)) || (android.text.TextUtils.isEmpty(v2_2))) && (com.baidu.android.pushservice.i.l.m(this.c, v3_8) > 50)) {
                if (!android.text.TextUtils.equals(this.c.getPackageName(), "com.baidu.searchbox")) {
                    v5_0 = com.baidu.android.pushservice.c.d.e(this.c, v3_8);
                }
                v2_2 = com.baidu.android.pushservice.c.d.f(this.c, v3_8);
            }
            int v4_0 = 1;
            if (!android.text.TextUtils.isEmpty(v5_0)) {
                java.util.Iterator v3_2 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v5_0));
                if (v3_2 != null) {
                    java.util.Iterator v3_3 = v3_2.iterator();
                    while (v3_3.hasNext()) {
                        com.baidu.android.pushservice.a.f v5_6 = ((com.baidu.android.pushservice.a.f) v3_3.next());
                        int v7_2 = p13.iterator();
                        while (v7_2.hasNext()) {
                            com.baidu.android.pushservice.a.f v8_3 = ((com.baidu.android.pushservice.a.f) v7_2.next());
                            if ((android.text.TextUtils.equals(v5_6.c, v8_3.c)) || (android.text.TextUtils.equals(v5_6.a, v8_3.a))) {
                                p13.remove(v8_3);
                                p13.add(v5_6);
                                int v7_3 = 1;
                            }
                            if (v7_3 == 0) {
                                p13.add(v5_6);
                            }
                        }
                        v7_3 = 0;
                    }
                }
            }
            if (!android.text.TextUtils.isEmpty(v2_2)) {
                com.baidu.android.pushservice.a.f v2_4 = this.h(com.baidu.android.pushservice.a.b.a(v2_2));
                java.util.Iterator v3_5 = p13.iterator();
                while (v3_5.hasNext()) {
                    com.baidu.android.pushservice.a.f v5_4 = ((com.baidu.android.pushservice.a.f) v3_5.next());
                    if (android.text.TextUtils.equals(v2_4.c, v5_4.c)) {
                        p13.remove(v5_4);
                        p13.add(v2_4);
                    }
                    if (v4_0 == 0) {
                        p13.add(v2_4);
                    }
                }
                v4_0 = 0;
            }
        }
        if (p13.size() > 0) {
            String v13_2 = this.b(this.a(p13));
            com.baidu.android.pushservice.c.c.c(this.c, v13_2);
            if (com.baidu.android.pushservice.i.l.D(this.c)) {
                com.baidu.android.pushservice.i.m.a(this.c, v0_2, p12, v13_2);
            }
        }
        return;
    }

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


    public static java.util.List o(android.content.Context p5)
    {
        java.util.List v0_1 = new java.util.ArrayList();
        try {
            java.util.ArrayList v1_2 = p5.getPackageManager();
        } catch (Exception) {
            return v0_1;
        }
        if (v1_2 != null) {
            v0_1 = v1_2.queryBroadcastReceivers(new android.content.Intent("com.baidu.android.pushservice.action.BIND_SYNC"), 576);
            java.util.ArrayList v1_1 = new java.util.ArrayList();
            java.util.Iterator v2_0 = v0_1.iterator();
            while (v2_0.hasNext()) {
                android.content.pm.ResolveInfo v3_2 = ((android.content.pm.ResolveInfo) v2_0.next());
                if (com.baidu.android.pushservice.i.l.z(p5, v3_2.activityInfo.packageName)) {
                    v1_1.add(v3_2);
                }
            }
            v0_1.removeAll(v1_1);
            return v0_1;
        } else {
            return v0_1;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_SINK']' [[('Lcom/baidu/android/pushservice/a/b;', 'a', '(Lcom/baidu/android/pushservice/a/f; Z)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/a/b;', 'a', '(Lcom/baidu/android/pushservice/a/f; Z Ljava/util/ArrayList; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String; Ljava/lang/String;)V'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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


    public String a(com.baidu.android.pushservice.a.f p3, boolean p4)
    {
        return this.a(p3, p4, this.a, "r_v2");
    }

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


    public String a(com.baidu.android.pushservice.a.f p6, boolean p7, java.util.ArrayList p8, String p9)
    {
        String v0_0 = 0;
        try {
            String v1_0 = p8.iterator();
        } catch (String v6_3) {
            throw v6_3;
        }
        while (v1_0.hasNext()) {
            com.baidu.android.pushservice.a.f v2_2 = ((com.baidu.android.pushservice.a.f) v1_0.next());
            if ((v2_2.c.equals(p6.c)) || (v2_2.a.equals(p6.a))) {
                p8.remove(v2_2);
                if (p7 != null) {
                    p8.add(p6);
                }
                v0_0 = 1;
                break;
            }
        }
        if ((v0_0 == null) && (p7 != null)) {
            p8.add(p6);
        }
        String v6_2 = this.b(this.a(p8));
        com.baidu.android.pushservice.c.c.c(this.c, v6_2);
        if (com.baidu.android.pushservice.i.l.D(this.c)) {
            android.content.Context v7_4 = this.c;
            String v0_2 = new StringBuilder();
            v0_2.append(this.c.getPackageName());
            v0_2.append(".push_sync");
            com.baidu.android.pushservice.i.m.a(v7_4, v0_2.toString(), p9, v6_2);
        }
        return v6_2;
    }

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


    public static void a(android.content.Context p1, String p2, String p3, String p4)
    {
        try {
            android.content.SharedPreferences$Editor v1_2 = p1.getSharedPreferences(p2, 5).edit();
            v1_2.putString(p3, p4);
            v1_2.commit();
        } catch (Exception) {
        }
        return;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_SINK']' [[('Lcom/baidu/android/pushservice/a/b;', 'a', '(Lcom/baidu/android/pushservice/a/f; Z Ljava/util/ArrayList; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String; Ljava/lang/String;)V'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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


    public String a(com.baidu.android.pushservice.a.f p6, boolean p7, java.util.ArrayList p8, String p9)
    {
        String v0_0 = 0;
        try {
            String v1_0 = p8.iterator();
        } catch (String v6_3) {
            throw v6_3;
        }
        while (v1_0.hasNext()) {
            com.baidu.android.pushservice.a.f v2_2 = ((com.baidu.android.pushservice.a.f) v1_0.next());
            if ((v2_2.c.equals(p6.c)) || (v2_2.a.equals(p6.a))) {
                p8.remove(v2_2);
                if (p7 != null) {
                    p8.add(p6);
                }
                v0_0 = 1;
                break;
            }
        }
        if ((v0_0 == null) && (p7 != null)) {
            p8.add(p6);
        }
        String v6_2 = this.b(this.a(p8));
        com.baidu.android.pushservice.c.c.c(this.c, v6_2);
        if (com.baidu.android.pushservice.i.l.D(this.c)) {
            android.content.Context v7_4 = this.c;
            String v0_2 = new StringBuilder();
            v0_2.append(this.c.getPackageName());
            v0_2.append(".push_sync");
            com.baidu.android.pushservice.i.m.a(v7_4, v0_2.toString(), p9, v6_2);
        }
        return v6_2;
    }

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


    public static void a(android.content.Context p1, String p2, String p3, String p4)
    {
        try {
            android.content.SharedPreferences$Editor v1_2 = p1.getSharedPreferences(p2, 5).edit();
            v1_2.putString(p3, p4);
            v1_2.commit();
        } catch (Exception) {
        }
        return;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_SINK']' [[('Lcom/baidu/android/pushservice/a/b;', 'a', '(Ljava/lang/String; Ljava/lang/String;)V'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String; Ljava/lang/String;)V'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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

Couldn't retrieve source code

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


    public static void a(android.content.Context p1, String p2, String p3, String p4)
    {
        try {
            android.content.SharedPreferences$Editor v1_2 = p1.getSharedPreferences(p2, 5).edit();
            v1_2.putString(p3, p4);
            v1_2.commit();
        } catch (Exception) {
        }
        return;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_SINK']' [[('Lcom/baidu/android/pushservice/a/b;', 'b', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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


    public declared_synchronized void b(android.content.Context p5)
    {
        String v0_0 = 0;
        try {
            int v1_2 = com.baidu.android.pushservice.c.c.e(p5);
        } catch (Throwable v5_1) {
            throw v5_1;
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            com.baidu.android.pushservice.i.l.b("ClientManager*BBind* selfbindinfo is null", p5);
            if (com.baidu.android.pushservice.i.l.D(this.c)) {
                int v1_1 = new StringBuilder();
                v1_1.append(this.c.getPackageName());
                v1_1.append(".push_sync");
                v1_2 = com.baidu.android.pushservice.i.m.a(this.c, v1_1.toString(), "r_v2");
            }
        }
        if (!android.text.TextUtils.isEmpty(v1_2)) {
            String v0_1 = com.baidu.android.pushservice.a.b.a(v1_2);
            int v1_5 = new StringBuilder();
            v1_5.append("ClientManager*BBind* clients=");
            v1_5.append(v0_1);
            com.baidu.android.pushservice.i.l.b(v1_5.toString(), p5);
            v0_0 = com.baidu.android.pushservice.a.b.e(v0_1);
        }
        if ((com.baidu.android.pushservice.a.b.b != null) && (v0_0 != null)) {
            int v1_9 = new java.util.ArrayList();
            int v2_8 = v0_0.iterator();
            while (v2_8.hasNext()) {
                v1_9.add(((com.baidu.android.pushservice.a.f) v2_8.next()).c);
            }
            int v2_9 = 0;
            while (v2_9 < com.baidu.android.pushservice.a.b.b.a.size()) {
                if (v1_9.contains(((com.baidu.android.pushservice.a.f) com.baidu.android.pushservice.a.b.b.a.get(v2_9)).c)) {
                    com.baidu.android.pushservice.a.b.b.a.remove(v2_9);
                    v2_9--;
                }
                v2_9++;
            }
            com.baidu.android.pushservice.a.b.b.a.addAll(v0_0);
            String v0_3 = new StringBuilder();
            v0_3.append("ClientManager*BBind* sInstance.mClientsV2.size=");
            v0_3.append(com.baidu.android.pushservice.a.b.b.a.size());
            com.baidu.android.pushservice.i.l.b(v0_3.toString(), p5);
        }
        return;
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_SINK']' [[('Lcom/baidu/android/pushservice/a/b;', 'd', '(Ljava/lang/String;)Lcom/baidu/android/pushservice/a/f;'), ('Lcom/baidu/android/pushservice/i/l;', 'o', '(Landroid/content/Context;)Ljava/util/List;'), ('Lcom/baidu/android/pushservice/i/l;', 'z', '(Landroid/content/Context; Ljava/lang/String;)Z'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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

Couldn't retrieve source code

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


    public static java.util.List o(android.content.Context p5)
    {
        java.util.List v0_1 = new java.util.ArrayList();
        try {
            java.util.ArrayList v1_2 = p5.getPackageManager();
        } catch (Exception) {
            return v0_1;
        }
        if (v1_2 != null) {
            v0_1 = v1_2.queryBroadcastReceivers(new android.content.Intent("com.baidu.android.pushservice.action.BIND_SYNC"), 576);
            java.util.ArrayList v1_1 = new java.util.ArrayList();
            java.util.Iterator v2_0 = v0_1.iterator();
            while (v2_0.hasNext()) {
                android.content.pm.ResolveInfo v3_2 = ((android.content.pm.ResolveInfo) v2_0.next());
                if (com.baidu.android.pushservice.i.l.z(p5, v3_2.activityInfo.packageName)) {
                    v1_1.add(v3_2);
                }
            }
            v0_1.removeAll(v1_1);
            return v0_1;
        } else {
            return v0_1;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_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/b;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/a/b;'), ('Lcom/baidu/android/pushservice/a/b;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/a/b;', 'a', '()V'), ('Lcom/baidu/android/pushservice/a/b;', 'a', '(Ljava/lang/String; Ljava/util/ArrayList;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'o', '(Landroid/content/Context;)Ljava/util/List;'), ('Lcom/baidu/android/pushservice/i/l;', 'z', '(Landroid/content/Context; Ljava/lang/String;)Z'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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.b.a():


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

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


    private b(android.content.Context p4)
    {
        this.a = new java.util.ArrayList();
        this.d = new java.util.HashMap();
        this.c = p4.getApplicationContext();
        String v0_1 = com.baidu.android.pushservice.c.c.e(p4);
        if ((android.text.TextUtils.isEmpty(v0_1)) && (com.baidu.android.pushservice.i.l.D(this.c))) {
            String v0_4 = new StringBuilder();
            v0_4.append(this.c.getPackageName());
            v0_4.append(".push_sync");
            v0_1 = com.baidu.android.pushservice.i.m.a(this.c, v0_4.toString(), "r_v2");
        }
        if (!android.text.TextUtils.isEmpty(v0_1)) {
            String v0_7 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v0_1));
        }
        try {
            int v1_11 = p4.getPackageManager().getPackageInfo(p4.getPackageName(), 0).versionCode;
        } catch (Exception) {
        }
        if (com.baidu.android.pushservice.i.i.b(this.c, "com.baidu.push.sync.vn", -1) < v1_11) {
            this.a();
            com.baidu.android.pushservice.i.i.a(this.c, "com.baidu.push.sync.vn", v1_11);
        }
        return;
    }

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


    private void a()
    {
        this.a("r_v2", this.a);
        return;
    }

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


    private void a(String p12, java.util.ArrayList p13)
    {
        android.content.Context v1_3;
        String v0_1 = new StringBuilder();
        v0_1.append(this.c.getPackageName());
        v0_1.append(".push_sync");
        String v0_2 = v0_1.toString();
        if (!com.baidu.android.pushservice.i.l.E(this.c)) {
            v1_3 = com.baidu.android.pushservice.i.l.o(this.c);
        } else {
            v1_3 = com.baidu.android.pushservice.i.l.p(this.c);
        }
        android.content.Context v1_6 = v1_3.iterator();
        while (v1_6.hasNext()) {
            com.baidu.android.pushservice.a.f v2_8 = ((android.content.pm.ResolveInfo) v1_6.next());
            try {
                com.baidu.android.pushservice.a.f v2_2;
                java.util.Iterator v3_8 = v2_8.activityInfo.packageName;
                com.baidu.android.pushservice.a.f v5_0 = 0;
            } catch (com.baidu.android.pushservice.a.f v2_5) {
                com.baidu.android.pushservice.g.o.a(this.c, v2_5);
            }
            if (!com.baidu.android.pushservice.i.l.D(this.c)) {
                v2_2 = 0;
            } else {
                int v4_4 = com.baidu.android.pushservice.i.l.v(this.c, v2_8.activityInfo.packageName);
                if (v4_4 == 0) {
                } else {
                    com.baidu.android.pushservice.a.f v5_8 = new StringBuilder();
                    v5_8.append(v2_8.activityInfo.packageName);
                    v5_8.append(".push_sync");
                    v5_0 = com.baidu.android.pushservice.i.m.a(v4_4, v5_8.toString(), p12);
                    int v6_6 = new StringBuilder();
                    v6_6.append(v2_8.activityInfo.packageName);
                    v6_6.append(".self_push_sync");
                    v2_2 = com.baidu.android.pushservice.i.m.a(v4_4, v6_6.toString(), "bindinfo");
                }
            }
            if (((android.text.TextUtils.isEmpty(v5_0)) || (android.text.TextUtils.isEmpty(v2_2))) && (com.baidu.android.pushservice.i.l.m(this.c, v3_8) > 50)) {
                if (!android.text.TextUtils.equals(this.c.getPackageName(), "com.baidu.searchbox")) {
                    v5_0 = com.baidu.android.pushservice.c.d.e(this.c, v3_8);
                }
                v2_2 = com.baidu.android.pushservice.c.d.f(this.c, v3_8);
            }
            int v4_0 = 1;
            if (!android.text.TextUtils.isEmpty(v5_0)) {
                java.util.Iterator v3_2 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v5_0));
                if (v3_2 != null) {
                    java.util.Iterator v3_3 = v3_2.iterator();
                    while (v3_3.hasNext()) {
                        com.baidu.android.pushservice.a.f v5_6 = ((com.baidu.android.pushservice.a.f) v3_3.next());
                        int v7_2 = p13.iterator();
                        while (v7_2.hasNext()) {
                            com.baidu.android.pushservice.a.f v8_3 = ((com.baidu.android.pushservice.a.f) v7_2.next());
                            if ((android.text.TextUtils.equals(v5_6.c, v8_3.c)) || (android.text.TextUtils.equals(v5_6.a, v8_3.a))) {
                                p13.remove(v8_3);
                                p13.add(v5_6);
                                int v7_3 = 1;
                            }
                            if (v7_3 == 0) {
                                p13.add(v5_6);
                            }
                        }
                        v7_3 = 0;
                    }
                }
            }
            if (!android.text.TextUtils.isEmpty(v2_2)) {
                com.baidu.android.pushservice.a.f v2_4 = this.h(com.baidu.android.pushservice.a.b.a(v2_2));
                java.util.Iterator v3_5 = p13.iterator();
                while (v3_5.hasNext()) {
                    com.baidu.android.pushservice.a.f v5_4 = ((com.baidu.android.pushservice.a.f) v3_5.next());
                    if (android.text.TextUtils.equals(v2_4.c, v5_4.c)) {
                        p13.remove(v5_4);
                        p13.add(v2_4);
                    }
                    if (v4_0 == 0) {
                        p13.add(v2_4);
                    }
                }
                v4_0 = 0;
            }
        }
        if (p13.size() > 0) {
            String v13_2 = this.b(this.a(p13));
            com.baidu.android.pushservice.c.c.c(this.c, v13_2);
            if (com.baidu.android.pushservice.i.l.D(this.c)) {
                com.baidu.android.pushservice.i.m.a(this.c, v0_2, p12, v13_2);
            }
        }
        return;
    }

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


    public static java.util.List o(android.content.Context p5)
    {
        java.util.List v0_1 = new java.util.ArrayList();
        try {
            java.util.ArrayList v1_2 = p5.getPackageManager();
        } catch (Exception) {
            return v0_1;
        }
        if (v1_2 != null) {
            v0_1 = v1_2.queryBroadcastReceivers(new android.content.Intent("com.baidu.android.pushservice.action.BIND_SYNC"), 576);
            java.util.ArrayList v1_1 = new java.util.ArrayList();
            java.util.Iterator v2_0 = v0_1.iterator();
            while (v2_0.hasNext()) {
                android.content.pm.ResolveInfo v3_2 = ((android.content.pm.ResolveInfo) v2_0.next());
                if (com.baidu.android.pushservice.i.l.z(p5, v3_2.activityInfo.packageName)) {
                    v1_1.add(v3_2);
                }
            }
            v0_1.removeAll(v1_1);
            return v0_1;
        } else {
            return v0_1;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_SINK']' [[('Lcom/baidu/android/pushservice/a/e;', 'a', '(Ljava/lang/String; Ljava/util/ArrayList;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'o', '(Landroid/content/Context;)Ljava/util/List;'), ('Lcom/baidu/android/pushservice/i/l;', 'z', '(Landroid/content/Context; Ljava/lang/String;)Z'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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


    private void a(String p10, java.util.ArrayList p11)
    {
        android.content.Context v1_3;
        String v0_1 = new StringBuilder();
        v0_1.append(this.b.getPackageName());
        v0_1.append(".push_sync");
        String v0_2 = v0_1.toString();
        if (!com.baidu.android.pushservice.i.l.E(this.b)) {
            v1_3 = com.baidu.android.pushservice.i.l.o(this.b);
        } else {
            v1_3 = com.baidu.android.pushservice.i.l.p(this.b);
        }
        android.content.Context v1_6 = v1_3.iterator();
        while (v1_6.hasNext()) {
            com.baidu.android.pushservice.a.a v3_0 = 0;
            if ("com.baidu.push.sdkr".equals(p10)) {
                v3_0 = com.baidu.android.pushservice.c.d.d(this.b, ((android.content.pm.ResolveInfo) v1_6.next()).activityInfo.packageName);
            }
            if (!android.text.TextUtils.isEmpty(v3_0)) {
                java.util.Iterator v2_7 = this.a(com.baidu.android.pushservice.a.e.c(v3_0));
                if (v2_7 != null) {
                    java.util.Iterator v2_8 = v2_7.iterator();
                    while (v2_8.hasNext()) {
                        com.baidu.android.pushservice.a.a v3_4 = ((com.baidu.android.pushservice.a.a) v2_8.next());
                        int v4_2 = 0;
                        java.util.Iterator v5 = p11.iterator();
                        while (v5.hasNext()) {
                            boolean v6_2 = ((com.baidu.android.pushservice.a.a) v5.next());
                            if ((android.text.TextUtils.equals(v3_4.c, v6_2.c)) || (android.text.TextUtils.equals(v3_4.a, v6_2.a))) {
                                v4_2 = 1;
                                break;
                            }
                        }
                        if (v4_2 == 0) {
                            p11.add(v3_4);
                        }
                    }
                }
            }
        }
        if (p11.size() > 0) {
            String v11_2 = this.d(this.a(p11));
            if ("com.baidu.push.sdkr".equals(p10)) {
                com.baidu.android.pushservice.c.c.b(this.b, v11_2);
            }
            if (com.baidu.android.pushservice.i.l.D(this.b)) {
                com.baidu.android.pushservice.i.m.a(this.b, v0_2, p10, v11_2);
            }
        }
        return;
    }

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


    public static java.util.List o(android.content.Context p5)
    {
        java.util.List v0_1 = new java.util.ArrayList();
        try {
            java.util.ArrayList v1_2 = p5.getPackageManager();
        } catch (Exception) {
            return v0_1;
        }
        if (v1_2 != null) {
            v0_1 = v1_2.queryBroadcastReceivers(new android.content.Intent("com.baidu.android.pushservice.action.BIND_SYNC"), 576);
            java.util.ArrayList v1_1 = new java.util.ArrayList();
            java.util.Iterator v2_0 = v0_1.iterator();
            while (v2_0.hasNext()) {
                android.content.pm.ResolveInfo v3_2 = ((android.content.pm.ResolveInfo) v2_0.next());
                if (com.baidu.android.pushservice.i.l.z(p5, v3_2.activityInfo.packageName)) {
                    v1_1.add(v3_2);
                }
            }
            v0_1.removeAll(v1_1);
            return v0_1;
        } else {
            return v0_1;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_SINK']' [[('Lcom/baidu/android/pushservice/a/e;', 'a', '(Ljava/lang/String; Ljava/lang/String;)V'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String; Ljava/lang/String;)V'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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

Couldn't retrieve source code

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


    public static void a(android.content.Context p1, String p2, String p3, String p4)
    {
        try {
            android.content.SharedPreferences$Editor v1_2 = p1.getSharedPreferences(p2, 5).edit();
            v1_2.putString(p3, p4);
            v1_2.commit();
        } catch (Exception) {
        }
        return;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_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/k;', 'c', '(Landroid/content/Context;)Landroid/content/Intent;'), ('Lcom/baidu/android/pushservice/i/l;', 'h', '(Landroid/content/Context;)J'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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.k.c():


    public static android.content.Intent c(android.content.Context p4)
    {
        android.content.Intent v0_1 = new android.content.Intent("com.baidu.android.pushservice.action.METHOD");
        v0_1.addFlags(32);
        try {
            String v1_2;
            v0_1.putExtra("pkg_name", p4.getPackageName());
            v0_1.putExtra("method_version", "V2");
        } catch (Exception) {
            return v0_1;
        }
        if (com.baidu.android.pushservice.i.l.E(p4)) {
            v1_2 = "priority3";
        } else {
            v1_2 = "priority2";
        }
        v0_1.putExtra(v1_2, com.baidu.android.pushservice.i.l.h(p4));
        return v0_1;
    }

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

Couldn't retrieve source code

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_SINK']' [[('Lcom/baidu/android/pushservice/c/c;', 'b', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_SINK']' [[('Lcom/baidu/android/pushservice/c/c;', 'c', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_SINK']' [[('Lcom/baidu/android/pushservice/c/d;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_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/l;', 'p', '(Landroid/content/Context;)Ljava/util/List;'), ('Lcom/baidu/android/pushservice/i/l;', 'z', '(Landroid/content/Context; Ljava/lang/String;)Z'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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.l.p():


    public static java.util.List p(android.content.Context p5)
    {
        java.util.List v0_1 = new java.util.ArrayList();
        try {
            java.util.ArrayList v1_2 = p5.getPackageManager();
        } catch (Exception) {
            return v0_1;
        }
        if (v1_2 != null) {
            v0_1 = v1_2.queryBroadcastReceivers(new android.content.Intent("com.baidu.android.pushservice.action.BIND_SYNC"), 576);
            java.util.ArrayList v1_1 = new java.util.ArrayList();
            java.util.Iterator v2_0 = v0_1.iterator();
            while (v2_0.hasNext()) {
                android.content.pm.ResolveInfo v3_2 = ((android.content.pm.ResolveInfo) v2_0.next());
                if (!com.baidu.android.pushservice.i.l.z(p5, v3_2.activityInfo.packageName)) {
                    v1_1.add(v3_2);
                }
            }
            v0_1.removeAll(v1_1);
            return v0_1;
        } else {
            return v0_1;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_SINK']' [[('Lcom/baidu/android/pushservice/c/d;', 'b', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_SINK']' [[('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_SINK']' [[('Lcom/baidu/android/pushservice/c/d;', 'd', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_SINK']' [[('Lcom/baidu/android/pushservice/c/d;', 'e', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_SINK']' [[('Lcom/baidu/android/pushservice/c/d;', 'f', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_SINK']' [[('Lcom/baidu/android/pushservice/d$1;', 'run', '()V'), ('Lcom/baidu/android/pushservice/d;', 'e', '(Lcom/baidu/android/pushservice/d;)V'), ('Lcom/baidu/android/pushservice/d;', 'j', '()V'), ('Lcom/baidu/android/pushservice/i/l;', 'v', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/l;', 'p', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/l;', 'o', '(Landroid/content/Context;)Ljava/util/List;'), ('Lcom/baidu/android/pushservice/i/l;', 'z', '(Landroid/content/Context; Ljava/lang/String;)Z'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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


    public void run()
    {
        try {
            com.baidu.android.pushservice.d.a(com.baidu.android.pushservice.jni.PushSocket.createSocket(com.baidu.android.pushservice.d.a(this.a), com.baidu.android.pushservice.d.b(this.a)));
        } catch (Exception) {
        }
        if (com.baidu.android.pushservice.d.h() != -1) {
            if (com.baidu.android.pushservice.d.h() != -2) {
                com.baidu.android.pushservice.f.a.a("PushConnection", "create Socket ok", com.baidu.android.pushservice.d.c(this.a).getApplicationContext());
                String v0_15 = new StringBuilder();
                v0_15.append("create Socket ok socketfd");
                v0_15.append(com.baidu.android.pushservice.d.h());
                com.baidu.android.pushservice.i.l.b(v0_15.toString(), com.baidu.android.pushservice.d.c(this.a));
                String v0_17 = this.a;
                v0_17.b = new com.baidu.android.pushservice.message.f(com.baidu.android.pushservice.d.c(v0_17).getApplicationContext());
                com.baidu.android.pushservice.d.b(this.a, 1);
                if (com.baidu.android.pushservice.d.f(this.a) != null) {
                    com.baidu.android.pushservice.d.f(this.a).interrupt();
                }
                if (com.baidu.android.pushservice.d.g(this.a) != null) {
                    com.baidu.android.pushservice.d.g(this.a).interrupt();
                }
                com.baidu.android.pushservice.d.c(this.a, 0);
                String v0_28 = this.a;
                com.baidu.android.pushservice.d.a(v0_28, new com.baidu.android.pushservice.d$a(v0_28));
                com.baidu.android.pushservice.d.f(this.a).start();
                String v0_32 = this.a;
                com.baidu.android.pushservice.d.a(v0_32, new com.baidu.android.pushservice.d$b(v0_32));
                com.baidu.android.pushservice.d.g(this.a).start();
                this.a.b.a(com.baidu.android.pushservice.d.h());
                if (!com.baidu.android.pushservice.g.c().equals(com.baidu.android.pushservice.d.a(this.a))) {
                    com.baidu.android.pushservice.d.a(this.a, "030302", 0);
                }
                com.baidu.android.pushservice.d.a(Boolean.valueOf(0));
                com.baidu.android.pushservice.d.a(this.a, 1);
                com.baidu.android.pushservice.d.a(this.a, com.baidu.android.pushservice.g.c());
                com.baidu.android.pushservice.g.c(com.baidu.android.pushservice.d.c(this.a));
                return;
            }
        }
        String v0_7 = com.baidu.android.pushservice.jni.PushSocket.getLastSocketError();
        String v5_1 = new StringBuilder();
        v5_1.append("Create socket err, errno: ");
        v5_1.append(v0_7);
        v5_1.append("socketfd: ");
        v5_1.append(com.baidu.android.pushservice.d.h());
        com.baidu.android.pushservice.f.a.b("PushConnection", v5_1.toString(), com.baidu.android.pushservice.d.c(this.a).getApplicationContext());
        if (!com.baidu.android.pushservice.g.c().equals(com.baidu.android.pushservice.d.a(this.a))) {
            com.baidu.android.pushservice.d.a(this.a, "030303", 10002);
        } else {
            com.baidu.android.pushservice.d.a(this.a, "030301", v0_7);
        }
        if (com.baidu.android.pushservice.d.h() == -2) {
            com.baidu.android.pushservice.d v1_4 = com.baidu.android.pushservice.g.a(com.baidu.android.pushservice.d.c(this.a), com.baidu.android.pushservice.d.d(this.a));
            com.baidu.android.pushservice.d.a(this.a, 0);
            if (!android.text.TextUtils.isEmpty(v1_4)) {
                com.baidu.android.pushservice.d.a(this.a, v1_4);
            }
        }
        if (com.baidu.android.pushservice.d.h() == -1) {
            if (v0_7 == 110) {
                com.baidu.android.pushservice.d.a(this.a, 80);
            }
        }
        com.baidu.android.pushservice.d.a(Boolean.valueOf(0));
        com.baidu.android.pushservice.d.e(this.a);
        com.baidu.android.pushservice.d v1_11 = new StringBuilder();
        v1_11.append("PushConnection Create socket err ");
        v1_11.append(com.baidu.android.pushservice.d.c(this.a).getPackageName());
        v1_11.append(" lastSocketError ");
        v1_11.append(v0_7);
        v1_11.append(" socketfd ");
        v1_11.append(com.baidu.android.pushservice.d.h());
        v1_11.append(System.currentTimeMillis());
        com.baidu.android.pushservice.i.l.b(v1_11.toString(), com.baidu.android.pushservice.d.c(this.a).getApplicationContext());
        return;
    }

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


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

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


    private void j()
    {
        int v1_4 = new StringBuilder();
        v1_4.append("disconnectedByPeer, mStoped == ");
        v1_4.append(this.j);
        com.baidu.android.pushservice.f.a.c("PushConnection", v1_4.toString(), this.l.getApplicationContext());
        android.content.Context v0_2 = new StringBuilder();
        v0_2.append("PushConnection destroy from ");
        v0_2.append(this.l.getPackageName());
        v0_2.append(" at Time ");
        v0_2.append(System.currentTimeMillis());
        com.baidu.android.pushservice.i.l.b(v0_2.toString(), this.l);
        this.k();
        if (!this.j) {
            this.k = (this.k + 1);
            if (this.k < 3) {
                this.a.removeCallbacks(this.s);
                android.content.Context v0_9 = this.k;
                android.content.Context v2_6 = (((v0_9 - 1) * 30) * 1000);
                if (v0_9 == 1) {
                    v2_6 = 3000;
                }
                if ((com.baidu.android.pushservice.a.d(this.l)) && (this.l.getPackageName().equals(com.baidu.android.pushservice.i.l.v(this.l)))) {
                    com.baidu.android.pushservice.a.c(this.l, 0);
                }
                this.a.postDelayed(this.s, ((long) v2_6));
                int v1_14 = new StringBuilder();
                v1_14.append("Schedule retry-- retry times: ");
                v1_14.append(this.k);
                v1_14.append(" time delay: ");
                v1_14.append(v2_6);
                com.baidu.android.pushservice.f.a.c("PushConnection", v1_14.toString(), this.l.getApplicationContext());
            }
            return;
        } else {
            return;
        }
    }

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


    public static String v(android.content.Context p1)
    {
        return com.baidu.android.pushservice.i.l.p(p1, p1.getPackageName());
    }

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

Couldn't retrieve source code

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


    public static java.util.List o(android.content.Context p5)
    {
        java.util.List v0_1 = new java.util.ArrayList();
        try {
            java.util.ArrayList v1_2 = p5.getPackageManager();
        } catch (Exception) {
            return v0_1;
        }
        if (v1_2 != null) {
            v0_1 = v1_2.queryBroadcastReceivers(new android.content.Intent("com.baidu.android.pushservice.action.BIND_SYNC"), 576);
            java.util.ArrayList v1_1 = new java.util.ArrayList();
            java.util.Iterator v2_0 = v0_1.iterator();
            while (v2_0.hasNext()) {
                android.content.pm.ResolveInfo v3_2 = ((android.content.pm.ResolveInfo) v2_0.next());
                if (com.baidu.android.pushservice.i.l.z(p5, v3_2.activityInfo.packageName)) {
                    v1_1.add(v3_2);
                }
            }
            v0_1.removeAll(v1_1);
            return v0_1;
        } else {
            return v0_1;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_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/c/d;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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.c.d.a():

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_SINK']' [[('Lcom/baidu/android/pushservice/f;', 'a', '()Z'), ('Lcom/baidu/android/pushservice/f;', 'b', '(Landroid/content/Context;)Z'), ('Lcom/baidu/android/pushservice/i/l;', 'v', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/l;', 'p', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/l;', 'o', '(Landroid/content/Context;)Ljava/util/List;'), ('Lcom/baidu/android/pushservice/i/l;', 'z', '(Landroid/content/Context; Ljava/lang/String;)Z'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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.b():


    private boolean b(android.content.Context p6)
    {
        String v0_0 = com.baidu.android.pushservice.i.l.v(p6);
        android.content.Context v1_3 = p6.getPackageName();
        if (!v1_3.equals(v0_0)) {
            if (!com.baidu.android.pushservice.a.d(this.j)) {
                StringBuilder v2_1 = new StringBuilder();
                v2_1.append("Current push service : ");
                v2_1.append(v1_3);
                v2_1.append(" should stop!!!");
                v2_1.append(" highest priority service is: ");
                v2_1.append(v0_0);
                com.baidu.android.pushservice.f.a.a(com.baidu.android.pushservice.f.b, v2_1.toString(), this.j);
                return 1;
            } else {
                return 0;
            }
        } else {
            StringBuilder v2_3 = new StringBuilder();
            v2_3.append("Try use current push service, package name is: ");
            v2_3.append(v1_3);
            com.baidu.android.pushservice.f.a.a(com.baidu.android.pushservice.f.b, v2_3.toString(), this.j);
            if (com.baidu.android.pushservice.a.d(this.j)) {
                com.baidu.android.pushservice.a.c(p6, 0);
            }
            return 0;
        }
    }

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


    public static String v(android.content.Context p1)
    {
        return com.baidu.android.pushservice.i.l.p(p1, p1.getPackageName());
    }

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

Couldn't retrieve source code

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


    public static java.util.List o(android.content.Context p5)
    {
        java.util.List v0_1 = new java.util.ArrayList();
        try {
            java.util.ArrayList v1_2 = p5.getPackageManager();
        } catch (Exception) {
            return v0_1;
        }
        if (v1_2 != null) {
            v0_1 = v1_2.queryBroadcastReceivers(new android.content.Intent("com.baidu.android.pushservice.action.BIND_SYNC"), 576);
            java.util.ArrayList v1_1 = new java.util.ArrayList();
            java.util.Iterator v2_0 = v0_1.iterator();
            while (v2_0.hasNext()) {
                android.content.pm.ResolveInfo v3_2 = ((android.content.pm.ResolveInfo) v2_0.next());
                if (com.baidu.android.pushservice.i.l.z(p5, v3_2.activityInfo.packageName)) {
                    v1_1.add(v3_2);
                }
            }
            v0_1.removeAll(v1_1);
            return v0_1;
        } else {
            return v0_1;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_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/a/b;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/a/b;'), ('Lcom/baidu/android/pushservice/a/b;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/a/b;', 'a', '()V'), ('Lcom/baidu/android/pushservice/a/b;', 'a', '(Ljava/lang/String; Ljava/util/ArrayList;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'o', '(Landroid/content/Context;)Ljava/util/List;'), ('Lcom/baidu/android/pushservice/i/l;', 'z', '(Landroid/content/Context; Ljava/lang/String;)Z'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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.a.b.a():


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

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


    private b(android.content.Context p4)
    {
        this.a = new java.util.ArrayList();
        this.d = new java.util.HashMap();
        this.c = p4.getApplicationContext();
        String v0_1 = com.baidu.android.pushservice.c.c.e(p4);
        if ((android.text.TextUtils.isEmpty(v0_1)) && (com.baidu.android.pushservice.i.l.D(this.c))) {
            String v0_4 = new StringBuilder();
            v0_4.append(this.c.getPackageName());
            v0_4.append(".push_sync");
            v0_1 = com.baidu.android.pushservice.i.m.a(this.c, v0_4.toString(), "r_v2");
        }
        if (!android.text.TextUtils.isEmpty(v0_1)) {
            String v0_7 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v0_1));
        }
        try {
            int v1_11 = p4.getPackageManager().getPackageInfo(p4.getPackageName(), 0).versionCode;
        } catch (Exception) {
        }
        if (com.baidu.android.pushservice.i.i.b(this.c, "com.baidu.push.sync.vn", -1) < v1_11) {
            this.a();
            com.baidu.android.pushservice.i.i.a(this.c, "com.baidu.push.sync.vn", v1_11);
        }
        return;
    }

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


    private void a()
    {
        this.a("r_v2", this.a);
        return;
    }

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


    private void a(String p12, java.util.ArrayList p13)
    {
        android.content.Context v1_3;
        String v0_1 = new StringBuilder();
        v0_1.append(this.c.getPackageName());
        v0_1.append(".push_sync");
        String v0_2 = v0_1.toString();
        if (!com.baidu.android.pushservice.i.l.E(this.c)) {
            v1_3 = com.baidu.android.pushservice.i.l.o(this.c);
        } else {
            v1_3 = com.baidu.android.pushservice.i.l.p(this.c);
        }
        android.content.Context v1_6 = v1_3.iterator();
        while (v1_6.hasNext()) {
            com.baidu.android.pushservice.a.f v2_8 = ((android.content.pm.ResolveInfo) v1_6.next());
            try {
                com.baidu.android.pushservice.a.f v2_2;
                java.util.Iterator v3_8 = v2_8.activityInfo.packageName;
                com.baidu.android.pushservice.a.f v5_0 = 0;
            } catch (com.baidu.android.pushservice.a.f v2_5) {
                com.baidu.android.pushservice.g.o.a(this.c, v2_5);
            }
            if (!com.baidu.android.pushservice.i.l.D(this.c)) {
                v2_2 = 0;
            } else {
                int v4_4 = com.baidu.android.pushservice.i.l.v(this.c, v2_8.activityInfo.packageName);
                if (v4_4 == 0) {
                } else {
                    com.baidu.android.pushservice.a.f v5_8 = new StringBuilder();
                    v5_8.append(v2_8.activityInfo.packageName);
                    v5_8.append(".push_sync");
                    v5_0 = com.baidu.android.pushservice.i.m.a(v4_4, v5_8.toString(), p12);
                    int v6_6 = new StringBuilder();
                    v6_6.append(v2_8.activityInfo.packageName);
                    v6_6.append(".self_push_sync");
                    v2_2 = com.baidu.android.pushservice.i.m.a(v4_4, v6_6.toString(), "bindinfo");
                }
            }
            if (((android.text.TextUtils.isEmpty(v5_0)) || (android.text.TextUtils.isEmpty(v2_2))) && (com.baidu.android.pushservice.i.l.m(this.c, v3_8) > 50)) {
                if (!android.text.TextUtils.equals(this.c.getPackageName(), "com.baidu.searchbox")) {
                    v5_0 = com.baidu.android.pushservice.c.d.e(this.c, v3_8);
                }
                v2_2 = com.baidu.android.pushservice.c.d.f(this.c, v3_8);
            }
            int v4_0 = 1;
            if (!android.text.TextUtils.isEmpty(v5_0)) {
                java.util.Iterator v3_2 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v5_0));
                if (v3_2 != null) {
                    java.util.Iterator v3_3 = v3_2.iterator();
                    while (v3_3.hasNext()) {
                        com.baidu.android.pushservice.a.f v5_6 = ((com.baidu.android.pushservice.a.f) v3_3.next());
                        int v7_2 = p13.iterator();
                        while (v7_2.hasNext()) {
                            com.baidu.android.pushservice.a.f v8_3 = ((com.baidu.android.pushservice.a.f) v7_2.next());
                            if ((android.text.TextUtils.equals(v5_6.c, v8_3.c)) || (android.text.TextUtils.equals(v5_6.a, v8_3.a))) {
                                p13.remove(v8_3);
                                p13.add(v5_6);
                                int v7_3 = 1;
                            }
                            if (v7_3 == 0) {
                                p13.add(v5_6);
                            }
                        }
                        v7_3 = 0;
                    }
                }
            }
            if (!android.text.TextUtils.isEmpty(v2_2)) {
                com.baidu.android.pushservice.a.f v2_4 = this.h(com.baidu.android.pushservice.a.b.a(v2_2));
                java.util.Iterator v3_5 = p13.iterator();
                while (v3_5.hasNext()) {
                    com.baidu.android.pushservice.a.f v5_4 = ((com.baidu.android.pushservice.a.f) v3_5.next());
                    if (android.text.TextUtils.equals(v2_4.c, v5_4.c)) {
                        p13.remove(v5_4);
                        p13.add(v2_4);
                    }
                    if (v4_0 == 0) {
                        p13.add(v2_4);
                    }
                }
                v4_0 = 0;
            }
        }
        if (p13.size() > 0) {
            String v13_2 = this.b(this.a(p13));
            com.baidu.android.pushservice.c.c.c(this.c, v13_2);
            if (com.baidu.android.pushservice.i.l.D(this.c)) {
                com.baidu.android.pushservice.i.m.a(this.c, v0_2, p12, v13_2);
            }
        }
        return;
    }

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


    public static java.util.List o(android.content.Context p5)
    {
        java.util.List v0_1 = new java.util.ArrayList();
        try {
            java.util.ArrayList v1_2 = p5.getPackageManager();
        } catch (Exception) {
            return v0_1;
        }
        if (v1_2 != null) {
            v0_1 = v1_2.queryBroadcastReceivers(new android.content.Intent("com.baidu.android.pushservice.action.BIND_SYNC"), 576);
            java.util.ArrayList v1_1 = new java.util.ArrayList();
            java.util.Iterator v2_0 = v0_1.iterator();
            while (v2_0.hasNext()) {
                android.content.pm.ResolveInfo v3_2 = ((android.content.pm.ResolveInfo) v2_0.next());
                if (com.baidu.android.pushservice.i.l.z(p5, v3_2.activityInfo.packageName)) {
                    v1_1.add(v3_2);
                }
            }
            v0_1.removeAll(v1_1);
            return v0_1;
        } else {
            return v0_1;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_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/a/b;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/a/b;'), ('Lcom/baidu/android/pushservice/a/b;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/a/b;', 'a', '()V'), ('Lcom/baidu/android/pushservice/a/b;', 'a', '(Ljava/lang/String; Ljava/util/ArrayList;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'o', '(Landroid/content/Context;)Ljava/util/List;'), ('Lcom/baidu/android/pushservice/i/l;', 'z', '(Landroid/content/Context; Ljava/lang/String;)Z'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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.a.b.a():


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

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


    private b(android.content.Context p4)
    {
        this.a = new java.util.ArrayList();
        this.d = new java.util.HashMap();
        this.c = p4.getApplicationContext();
        String v0_1 = com.baidu.android.pushservice.c.c.e(p4);
        if ((android.text.TextUtils.isEmpty(v0_1)) && (com.baidu.android.pushservice.i.l.D(this.c))) {
            String v0_4 = new StringBuilder();
            v0_4.append(this.c.getPackageName());
            v0_4.append(".push_sync");
            v0_1 = com.baidu.android.pushservice.i.m.a(this.c, v0_4.toString(), "r_v2");
        }
        if (!android.text.TextUtils.isEmpty(v0_1)) {
            String v0_7 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v0_1));
        }
        try {
            int v1_11 = p4.getPackageManager().getPackageInfo(p4.getPackageName(), 0).versionCode;
        } catch (Exception) {
        }
        if (com.baidu.android.pushservice.i.i.b(this.c, "com.baidu.push.sync.vn", -1) < v1_11) {
            this.a();
            com.baidu.android.pushservice.i.i.a(this.c, "com.baidu.push.sync.vn", v1_11);
        }
        return;
    }

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


    private void a()
    {
        this.a("r_v2", this.a);
        return;
    }

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


    private void a(String p12, java.util.ArrayList p13)
    {
        android.content.Context v1_3;
        String v0_1 = new StringBuilder();
        v0_1.append(this.c.getPackageName());
        v0_1.append(".push_sync");
        String v0_2 = v0_1.toString();
        if (!com.baidu.android.pushservice.i.l.E(this.c)) {
            v1_3 = com.baidu.android.pushservice.i.l.o(this.c);
        } else {
            v1_3 = com.baidu.android.pushservice.i.l.p(this.c);
        }
        android.content.Context v1_6 = v1_3.iterator();
        while (v1_6.hasNext()) {
            com.baidu.android.pushservice.a.f v2_8 = ((android.content.pm.ResolveInfo) v1_6.next());
            try {
                com.baidu.android.pushservice.a.f v2_2;
                java.util.Iterator v3_8 = v2_8.activityInfo.packageName;
                com.baidu.android.pushservice.a.f v5_0 = 0;
            } catch (com.baidu.android.pushservice.a.f v2_5) {
                com.baidu.android.pushservice.g.o.a(this.c, v2_5);
            }
            if (!com.baidu.android.pushservice.i.l.D(this.c)) {
                v2_2 = 0;
            } else {
                int v4_4 = com.baidu.android.pushservice.i.l.v(this.c, v2_8.activityInfo.packageName);
                if (v4_4 == 0) {
                } else {
                    com.baidu.android.pushservice.a.f v5_8 = new StringBuilder();
                    v5_8.append(v2_8.activityInfo.packageName);
                    v5_8.append(".push_sync");
                    v5_0 = com.baidu.android.pushservice.i.m.a(v4_4, v5_8.toString(), p12);
                    int v6_6 = new StringBuilder();
                    v6_6.append(v2_8.activityInfo.packageName);
                    v6_6.append(".self_push_sync");
                    v2_2 = com.baidu.android.pushservice.i.m.a(v4_4, v6_6.toString(), "bindinfo");
                }
            }
            if (((android.text.TextUtils.isEmpty(v5_0)) || (android.text.TextUtils.isEmpty(v2_2))) && (com.baidu.android.pushservice.i.l.m(this.c, v3_8) > 50)) {
                if (!android.text.TextUtils.equals(this.c.getPackageName(), "com.baidu.searchbox")) {
                    v5_0 = com.baidu.android.pushservice.c.d.e(this.c, v3_8);
                }
                v2_2 = com.baidu.android.pushservice.c.d.f(this.c, v3_8);
            }
            int v4_0 = 1;
            if (!android.text.TextUtils.isEmpty(v5_0)) {
                java.util.Iterator v3_2 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v5_0));
                if (v3_2 != null) {
                    java.util.Iterator v3_3 = v3_2.iterator();
                    while (v3_3.hasNext()) {
                        com.baidu.android.pushservice.a.f v5_6 = ((com.baidu.android.pushservice.a.f) v3_3.next());
                        int v7_2 = p13.iterator();
                        while (v7_2.hasNext()) {
                            com.baidu.android.pushservice.a.f v8_3 = ((com.baidu.android.pushservice.a.f) v7_2.next());
                            if ((android.text.TextUtils.equals(v5_6.c, v8_3.c)) || (android.text.TextUtils.equals(v5_6.a, v8_3.a))) {
                                p13.remove(v8_3);
                                p13.add(v5_6);
                                int v7_3 = 1;
                            }
                            if (v7_3 == 0) {
                                p13.add(v5_6);
                            }
                        }
                        v7_3 = 0;
                    }
                }
            }
            if (!android.text.TextUtils.isEmpty(v2_2)) {
                com.baidu.android.pushservice.a.f v2_4 = this.h(com.baidu.android.pushservice.a.b.a(v2_2));
                java.util.Iterator v3_5 = p13.iterator();
                while (v3_5.hasNext()) {
                    com.baidu.android.pushservice.a.f v5_4 = ((com.baidu.android.pushservice.a.f) v3_5.next());
                    if (android.text.TextUtils.equals(v2_4.c, v5_4.c)) {
                        p13.remove(v5_4);
                        p13.add(v2_4);
                    }
                    if (v4_0 == 0) {
                        p13.add(v2_4);
                    }
                }
                v4_0 = 0;
            }
        }
        if (p13.size() > 0) {
            String v13_2 = this.b(this.a(p13));
            com.baidu.android.pushservice.c.c.c(this.c, v13_2);
            if (com.baidu.android.pushservice.i.l.D(this.c)) {
                com.baidu.android.pushservice.i.m.a(this.c, v0_2, p12, v13_2);
            }
        }
        return;
    }

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


    public static java.util.List o(android.content.Context p5)
    {
        java.util.List v0_1 = new java.util.ArrayList();
        try {
            java.util.ArrayList v1_2 = p5.getPackageManager();
        } catch (Exception) {
            return v0_1;
        }
        if (v1_2 != null) {
            v0_1 = v1_2.queryBroadcastReceivers(new android.content.Intent("com.baidu.android.pushservice.action.BIND_SYNC"), 576);
            java.util.ArrayList v1_1 = new java.util.ArrayList();
            java.util.Iterator v2_0 = v0_1.iterator();
            while (v2_0.hasNext()) {
                android.content.pm.ResolveInfo v3_2 = ((android.content.pm.ResolveInfo) v2_0.next());
                if (com.baidu.android.pushservice.i.l.z(p5, v3_2.activityInfo.packageName)) {
                    v1_1.add(v3_2);
                }
            }
            v0_1.removeAll(v1_1);
            return v0_1;
        } else {
            return v0_1;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_SINK']' [[('Lcom/baidu/android/pushservice/d/y;', 'a', '()V'), ('Lcom/baidu/android/pushservice/i/l;', 'e', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'a', '(Landroid/content/Context; J)V'), ('Lcom/baidu/android/pushservice/i/k;', 'c', '(Landroid/content/Context;)Landroid/content/Intent;'), ('Lcom/baidu/android/pushservice/i/l;', 'h', '(Landroid/content/Context;)J'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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.i.l.e():


    public static void e(android.content.Context p2)
    {
        com.baidu.android.pushservice.i.l.a(p2, 300000);
        return;
    }

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


    public static void a(android.content.Context p4, long p5)
    {
        android.content.Context v4_1 = p4.getApplicationContext();
        android.content.Intent v0 = com.baidu.android.pushservice.i.k.c(v4_1);
        String v1 = v4_1.getPackageName();
        String v2_1 = com.baidu.android.pushservice.i.l.c(v4_1, v1, v0.getAction());
        if ((!android.text.TextUtils.isEmpty(v1)) && (!android.text.TextUtils.isEmpty(v2_1))) {
            v0.setClassName(v1, v2_1);
        }
        com.baidu.android.pushservice.i.l.a(v4_1, v0, p5);
        return;
    }

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


    public static android.content.Intent c(android.content.Context p4)
    {
        android.content.Intent v0_1 = new android.content.Intent("com.baidu.android.pushservice.action.METHOD");
        v0_1.addFlags(32);
        try {
            String v1_2;
            v0_1.putExtra("pkg_name", p4.getPackageName());
            v0_1.putExtra("method_version", "V2");
        } catch (Exception) {
            return v0_1;
        }
        if (com.baidu.android.pushservice.i.l.E(p4)) {
            v1_2 = "priority3";
        } else {
            v1_2 = "priority2";
        }
        v0_1.putExtra(v1_2, com.baidu.android.pushservice.i.l.h(p4));
        return v0_1;
    }

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

Couldn't retrieve source code

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_SINK']' [[('Lcom/baidu/android/pushservice/d/y;', 'run', '()V'), ('Lcom/baidu/android/pushservice/d/y;', 'a', '()V'), ('Lcom/baidu/android/pushservice/i/l;', 'e', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'a', '(Landroid/content/Context; J)V'), ('Lcom/baidu/android/pushservice/i/k;', 'c', '(Landroid/content/Context;)Landroid/content/Intent;'), ('Lcom/baidu/android/pushservice/i/l;', 'h', '(Landroid/content/Context;)J'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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.i.l.e():


    public static void e(android.content.Context p2)
    {
        com.baidu.android.pushservice.i.l.a(p2, 300000);
        return;
    }

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


    public static void a(android.content.Context p4, long p5)
    {
        android.content.Context v4_1 = p4.getApplicationContext();
        android.content.Intent v0 = com.baidu.android.pushservice.i.k.c(v4_1);
        String v1 = v4_1.getPackageName();
        String v2_1 = com.baidu.android.pushservice.i.l.c(v4_1, v1, v0.getAction());
        if ((!android.text.TextUtils.isEmpty(v1)) && (!android.text.TextUtils.isEmpty(v2_1))) {
            v0.setClassName(v1, v2_1);
        }
        com.baidu.android.pushservice.i.l.a(v4_1, v0, p5);
        return;
    }

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


    public static android.content.Intent c(android.content.Context p4)
    {
        android.content.Intent v0_1 = new android.content.Intent("com.baidu.android.pushservice.action.METHOD");
        v0_1.addFlags(32);
        try {
            String v1_2;
            v0_1.putExtra("pkg_name", p4.getPackageName());
            v0_1.putExtra("method_version", "V2");
        } catch (Exception) {
            return v0_1;
        }
        if (com.baidu.android.pushservice.i.l.E(p4)) {
            v1_2 = "priority3";
        } else {
            v1_2 = "priority2";
        }
        v0_1.putExtra(v1_2, com.baidu.android.pushservice.i.l.h(p4));
        return v0_1;
    }

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

Couldn't retrieve source code

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_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/l;', 'p', '(Landroid/content/Context;)Ljava/util/List;'), ('Lcom/baidu/android/pushservice/i/l;', 'z', '(Landroid/content/Context; Ljava/lang/String;)Z'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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.l.p():


    public static java.util.List p(android.content.Context p5)
    {
        java.util.List v0_1 = new java.util.ArrayList();
        try {
            java.util.ArrayList v1_2 = p5.getPackageManager();
        } catch (Exception) {
            return v0_1;
        }
        if (v1_2 != null) {
            v0_1 = v1_2.queryBroadcastReceivers(new android.content.Intent("com.baidu.android.pushservice.action.BIND_SYNC"), 576);
            java.util.ArrayList v1_1 = new java.util.ArrayList();
            java.util.Iterator v2_0 = v0_1.iterator();
            while (v2_0.hasNext()) {
                android.content.pm.ResolveInfo v3_2 = ((android.content.pm.ResolveInfo) v2_0.next());
                if (!com.baidu.android.pushservice.i.l.z(p5, v3_2.activityInfo.packageName)) {
                    v1_1.add(v3_2);
                }
            }
            v0_1.removeAll(v1_1);
            return v0_1;
        } else {
            return v0_1;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_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/l;', 'p', '(Landroid/content/Context;)Ljava/util/List;'), ('Lcom/baidu/android/pushservice/i/l;', 'z', '(Landroid/content/Context; Ljava/lang/String;)Z'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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.l.p():


    public static java.util.List p(android.content.Context p5)
    {
        java.util.List v0_1 = new java.util.ArrayList();
        try {
            java.util.ArrayList v1_2 = p5.getPackageManager();
        } catch (Exception) {
            return v0_1;
        }
        if (v1_2 != null) {
            v0_1 = v1_2.queryBroadcastReceivers(new android.content.Intent("com.baidu.android.pushservice.action.BIND_SYNC"), 576);
            java.util.ArrayList v1_1 = new java.util.ArrayList();
            java.util.Iterator v2_0 = v0_1.iterator();
            while (v2_0.hasNext()) {
                android.content.pm.ResolveInfo v3_2 = ((android.content.pm.ResolveInfo) v2_0.next());
                if (!com.baidu.android.pushservice.i.l.z(p5, v3_2.activityInfo.packageName)) {
                    v1_1.add(v3_2);
                }
            }
            v0_1.removeAll(v1_1);
            return v0_1;
        } else {
            return v0_1;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_SINK']' [[('Lcom/baidu/android/pushservice/d;', 'e', '(Lcom/baidu/android/pushservice/d;)V'), ('Lcom/baidu/android/pushservice/d;', 'j', '()V'), ('Lcom/baidu/android/pushservice/i/l;', 'v', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/l;', 'p', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/l;', 'o', '(Landroid/content/Context;)Ljava/util/List;'), ('Lcom/baidu/android/pushservice/i/l;', 'z', '(Landroid/content/Context; Ljava/lang/String;)Z'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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


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

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


    private void j()
    {
        int v1_4 = new StringBuilder();
        v1_4.append("disconnectedByPeer, mStoped == ");
        v1_4.append(this.j);
        com.baidu.android.pushservice.f.a.c("PushConnection", v1_4.toString(), this.l.getApplicationContext());
        android.content.Context v0_2 = new StringBuilder();
        v0_2.append("PushConnection destroy from ");
        v0_2.append(this.l.getPackageName());
        v0_2.append(" at Time ");
        v0_2.append(System.currentTimeMillis());
        com.baidu.android.pushservice.i.l.b(v0_2.toString(), this.l);
        this.k();
        if (!this.j) {
            this.k = (this.k + 1);
            if (this.k < 3) {
                this.a.removeCallbacks(this.s);
                android.content.Context v0_9 = this.k;
                android.content.Context v2_6 = (((v0_9 - 1) * 30) * 1000);
                if (v0_9 == 1) {
                    v2_6 = 3000;
                }
                if ((com.baidu.android.pushservice.a.d(this.l)) && (this.l.getPackageName().equals(com.baidu.android.pushservice.i.l.v(this.l)))) {
                    com.baidu.android.pushservice.a.c(this.l, 0);
                }
                this.a.postDelayed(this.s, ((long) v2_6));
                int v1_14 = new StringBuilder();
                v1_14.append("Schedule retry-- retry times: ");
                v1_14.append(this.k);
                v1_14.append(" time delay: ");
                v1_14.append(v2_6);
                com.baidu.android.pushservice.f.a.c("PushConnection", v1_14.toString(), this.l.getApplicationContext());
            }
            return;
        } else {
            return;
        }
    }

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


    public static String v(android.content.Context p1)
    {
        return com.baidu.android.pushservice.i.l.p(p1, p1.getPackageName());
    }

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

Couldn't retrieve source code

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


    public static java.util.List o(android.content.Context p5)
    {
        java.util.List v0_1 = new java.util.ArrayList();
        try {
            java.util.ArrayList v1_2 = p5.getPackageManager();
        } catch (Exception) {
            return v0_1;
        }
        if (v1_2 != null) {
            v0_1 = v1_2.queryBroadcastReceivers(new android.content.Intent("com.baidu.android.pushservice.action.BIND_SYNC"), 576);
            java.util.ArrayList v1_1 = new java.util.ArrayList();
            java.util.Iterator v2_0 = v0_1.iterator();
            while (v2_0.hasNext()) {
                android.content.pm.ResolveInfo v3_2 = ((android.content.pm.ResolveInfo) v2_0.next());
                if (com.baidu.android.pushservice.i.l.z(p5, v3_2.activityInfo.packageName)) {
                    v1_1.add(v3_2);
                }
            }
            v0_1.removeAll(v1_1);
            return v0_1;
        } else {
            return v0_1;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_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/c/d;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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.c.d.a():

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_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/c/d;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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.c.d.a():

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_SINK']' [[('Lcom/baidu/android/pushservice/d;', 'j', '()V'), ('Lcom/baidu/android/pushservice/i/l;', 'v', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/l;', 'p', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/l;', 'o', '(Landroid/content/Context;)Ljava/util/List;'), ('Lcom/baidu/android/pushservice/i/l;', 'z', '(Landroid/content/Context; Ljava/lang/String;)Z'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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


    private void j()
    {
        int v1_4 = new StringBuilder();
        v1_4.append("disconnectedByPeer, mStoped == ");
        v1_4.append(this.j);
        com.baidu.android.pushservice.f.a.c("PushConnection", v1_4.toString(), this.l.getApplicationContext());
        android.content.Context v0_2 = new StringBuilder();
        v0_2.append("PushConnection destroy from ");
        v0_2.append(this.l.getPackageName());
        v0_2.append(" at Time ");
        v0_2.append(System.currentTimeMillis());
        com.baidu.android.pushservice.i.l.b(v0_2.toString(), this.l);
        this.k();
        if (!this.j) {
            this.k = (this.k + 1);
            if (this.k < 3) {
                this.a.removeCallbacks(this.s);
                android.content.Context v0_9 = this.k;
                android.content.Context v2_6 = (((v0_9 - 1) * 30) * 1000);
                if (v0_9 == 1) {
                    v2_6 = 3000;
                }
                if ((com.baidu.android.pushservice.a.d(this.l)) && (this.l.getPackageName().equals(com.baidu.android.pushservice.i.l.v(this.l)))) {
                    com.baidu.android.pushservice.a.c(this.l, 0);
                }
                this.a.postDelayed(this.s, ((long) v2_6));
                int v1_14 = new StringBuilder();
                v1_14.append("Schedule retry-- retry times: ");
                v1_14.append(this.k);
                v1_14.append(" time delay: ");
                v1_14.append(v2_6);
                com.baidu.android.pushservice.f.a.c("PushConnection", v1_14.toString(), this.l.getApplicationContext());
            }
            return;
        } else {
            return;
        }
    }

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


    public static String v(android.content.Context p1)
    {
        return com.baidu.android.pushservice.i.l.p(p1, p1.getPackageName());
    }

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

Couldn't retrieve source code

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


    public static java.util.List o(android.content.Context p5)
    {
        java.util.List v0_1 = new java.util.ArrayList();
        try {
            java.util.ArrayList v1_2 = p5.getPackageManager();
        } catch (Exception) {
            return v0_1;
        }
        if (v1_2 != null) {
            v0_1 = v1_2.queryBroadcastReceivers(new android.content.Intent("com.baidu.android.pushservice.action.BIND_SYNC"), 576);
            java.util.ArrayList v1_1 = new java.util.ArrayList();
            java.util.Iterator v2_0 = v0_1.iterator();
            while (v2_0.hasNext()) {
                android.content.pm.ResolveInfo v3_2 = ((android.content.pm.ResolveInfo) v2_0.next());
                if (com.baidu.android.pushservice.i.l.z(p5, v3_2.activityInfo.packageName)) {
                    v1_1.add(v3_2);
                }
            }
            v0_1.removeAll(v1_1);
            return v0_1;
        } else {
            return v0_1;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_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/l;', 'p', '(Landroid/content/Context;)Ljava/util/List;'), ('Lcom/baidu/android/pushservice/i/l;', 'z', '(Landroid/content/Context; Ljava/lang/String;)Z'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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.l.p():


    public static java.util.List p(android.content.Context p5)
    {
        java.util.List v0_1 = new java.util.ArrayList();
        try {
            java.util.ArrayList v1_2 = p5.getPackageManager();
        } catch (Exception) {
            return v0_1;
        }
        if (v1_2 != null) {
            v0_1 = v1_2.queryBroadcastReceivers(new android.content.Intent("com.baidu.android.pushservice.action.BIND_SYNC"), 576);
            java.util.ArrayList v1_1 = new java.util.ArrayList();
            java.util.Iterator v2_0 = v0_1.iterator();
            while (v2_0.hasNext()) {
                android.content.pm.ResolveInfo v3_2 = ((android.content.pm.ResolveInfo) v2_0.next());
                if (!com.baidu.android.pushservice.i.l.z(p5, v3_2.activityInfo.packageName)) {
                    v1_1.add(v3_2);
                }
            }
            v0_1.removeAll(v1_1);
            return v0_1;
        } else {
            return v0_1;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_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/l;', 'p', '(Landroid/content/Context;)Ljava/util/List;'), ('Lcom/baidu/android/pushservice/i/l;', 'z', '(Landroid/content/Context; Ljava/lang/String;)Z'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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.l.p():


    public static java.util.List p(android.content.Context p5)
    {
        java.util.List v0_1 = new java.util.ArrayList();
        try {
            java.util.ArrayList v1_2 = p5.getPackageManager();
        } catch (Exception) {
            return v0_1;
        }
        if (v1_2 != null) {
            v0_1 = v1_2.queryBroadcastReceivers(new android.content.Intent("com.baidu.android.pushservice.action.BIND_SYNC"), 576);
            java.util.ArrayList v1_1 = new java.util.ArrayList();
            java.util.Iterator v2_0 = v0_1.iterator();
            while (v2_0.hasNext()) {
                android.content.pm.ResolveInfo v3_2 = ((android.content.pm.ResolveInfo) v2_0.next());
                if (!com.baidu.android.pushservice.i.l.z(p5, v3_2.activityInfo.packageName)) {
                    v1_1.add(v3_2);
                }
            }
            v0_1.removeAll(v1_1);
            return v0_1;
        } else {
            return v0_1;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_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/c/d;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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.c.d.a():

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_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/l;', 'p', '(Landroid/content/Context;)Ljava/util/List;'), ('Lcom/baidu/android/pushservice/i/l;', 'z', '(Landroid/content/Context; Ljava/lang/String;)Z'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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.l.p():


    public static java.util.List p(android.content.Context p5)
    {
        java.util.List v0_1 = new java.util.ArrayList();
        try {
            java.util.ArrayList v1_2 = p5.getPackageManager();
        } catch (Exception) {
            return v0_1;
        }
        if (v1_2 != null) {
            v0_1 = v1_2.queryBroadcastReceivers(new android.content.Intent("com.baidu.android.pushservice.action.BIND_SYNC"), 576);
            java.util.ArrayList v1_1 = new java.util.ArrayList();
            java.util.Iterator v2_0 = v0_1.iterator();
            while (v2_0.hasNext()) {
                android.content.pm.ResolveInfo v3_2 = ((android.content.pm.ResolveInfo) v2_0.next());
                if (!com.baidu.android.pushservice.i.l.z(p5, v3_2.activityInfo.packageName)) {
                    v1_1.add(v3_2);
                }
            }
            v0_1.removeAll(v1_1);
            return v0_1;
        } else {
            return v0_1;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_SINK']' [[('Lcom/baidu/android/pushservice/e$2;', 'onRegister', '(I Ljava/lang/String;)V'), ('Lcom/baidu/android/pushservice/e;', 'j', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'b', '(Landroid/content/Context; Landroid/content/Intent; Ljava/lang/String; Ljava/lang/String;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

Method com.baidu.android.pushservice.e$2.onRegister():


    public void onRegister(int p2, String p3)
    {
        if (this.a) {
            if ((p2 != null) || (android.text.TextUtils.isEmpty(p3))) {
                com.baidu.android.pushservice.e.j(this.b);
            } else {
                com.baidu.android.pushservice.e.a(this.b, p3);
            }
        }
        return;
    }

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


    public static void j(android.content.Context p4)
    {
        try {
            com.baidu.android.pushservice.f.a.b("PushManagerHandler", "errorCode:10011", p4.getApplicationContext());
            android.content.Intent v1_2 = new android.content.Intent();
            v1_2.putExtra("method", "method_bind");
            v1_2.putExtra("error_msg", 10011);
            v1_2.putExtra("content", "errorCode:10011".getBytes());
            v1_2.putExtra("bind_status", 0);
            com.baidu.android.pushservice.i.l.b(p4, v1_2, "com.baidu.android.pushservice.action.RECEIVE", p4.getPackageName());
        } catch (Throwable) {
        }
        return;
    }

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


    public static void b(android.content.Context p3, android.content.Intent p4, String p5, String p6)
    {
        p4.setFlags(32);
        String v1_2 = com.baidu.android.pushservice.i.l.m(p3, p6);
        if (v1_2 >= 32) {
            try {
                if (!android.text.TextUtils.isEmpty(p5)) {
                    p4.setAction(p5);
                }
            } catch (Exception) {
            }
            if (!android.text.TextUtils.isEmpty(p6)) {
                p4.setPackage(p6);
                p4.setClassName(p6, "com.baidu.android.pushservice.CommandService");
            }
            p4.putExtra("command_type", "reflect_receiver");
            if (p3.startService(p4) == null) {
                boolean v0_6 = new StringBuilder();
                v0_6.append("sendRedirecctionIntent#intergratedPushVersion=");
                v0_6.append(v1_2);
                v0_6.append(", packageName=");
                v0_6.append(p6);
                v0_6.append(", intent=");
                v0_6.append(p4.toUri(0));
                com.baidu.android.pushservice.i.l.b(v0_6.toString(), p3);
            } else {
                return;
            }
        }
        if (!com.baidu.android.pushservice.i.l.F(p3)) {
            if (!android.text.TextUtils.isEmpty(p5)) {
                p4.setAction(p5);
            }
            if (!android.text.TextUtils.isEmpty(p6)) {
                p4.setPackage(p6);
            }
            String v5_1 = com.baidu.android.pushservice.i.l.c(p3, p6, p5);
            if (!android.text.TextUtils.isEmpty(v5_1)) {
                p4.setClassName(p6, v5_1);
            }
            p3.sendBroadcast(p4);
            return;
        } else {
            return;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_SINK']' [[('Lcom/baidu/android/pushservice/e$b;', 'run', '()V'), ('Lcom/baidu/android/pushservice/e;', 'j', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'b', '(Landroid/content/Context; Landroid/content/Intent; Ljava/lang/String; Ljava/lang/String;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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


    public void run()
    {
        int v0_4;
        if (!com.baidu.android.pushservice.b.e.e(this.a)) {
            if (!com.baidu.android.pushservice.b.e.f(this.a)) {
                if (!com.baidu.android.pushservice.b.e.d(this.a)) {
                    if (!com.baidu.android.pushservice.b.e.h(this.a)) {
                        v0_4 = 0;
                    } else {
                        v0_4 = com.baidu.android.pushservice.i.j.d(this.a);
                    }
                } else {
                    v0_4 = com.baidu.android.pushservice.i.j.c(this.a);
                }
            } else {
                v0_4 = com.baidu.android.pushservice.i.j.a(this.a);
            }
        } else {
            v0_4 = com.baidu.android.pushservice.i.j.b(this.a);
        }
        if (android.text.TextUtils.isEmpty(v0_4)) {
            com.baidu.android.pushservice.e.j(this.a);
            if (!com.baidu.android.pushservice.e.a().isEmpty()) {
                com.baidu.android.pushservice.e.a().poll();
            }
        }
        return;
    }

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


    public static void j(android.content.Context p4)
    {
        try {
            com.baidu.android.pushservice.f.a.b("PushManagerHandler", "errorCode:10011", p4.getApplicationContext());
            android.content.Intent v1_2 = new android.content.Intent();
            v1_2.putExtra("method", "method_bind");
            v1_2.putExtra("error_msg", 10011);
            v1_2.putExtra("content", "errorCode:10011".getBytes());
            v1_2.putExtra("bind_status", 0);
            com.baidu.android.pushservice.i.l.b(p4, v1_2, "com.baidu.android.pushservice.action.RECEIVE", p4.getPackageName());
        } catch (Throwable) {
        }
        return;
    }

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


    public static void b(android.content.Context p3, android.content.Intent p4, String p5, String p6)
    {
        p4.setFlags(32);
        String v1_2 = com.baidu.android.pushservice.i.l.m(p3, p6);
        if (v1_2 >= 32) {
            try {
                if (!android.text.TextUtils.isEmpty(p5)) {
                    p4.setAction(p5);
                }
            } catch (Exception) {
            }
            if (!android.text.TextUtils.isEmpty(p6)) {
                p4.setPackage(p6);
                p4.setClassName(p6, "com.baidu.android.pushservice.CommandService");
            }
            p4.putExtra("command_type", "reflect_receiver");
            if (p3.startService(p4) == null) {
                boolean v0_6 = new StringBuilder();
                v0_6.append("sendRedirecctionIntent#intergratedPushVersion=");
                v0_6.append(v1_2);
                v0_6.append(", packageName=");
                v0_6.append(p6);
                v0_6.append(", intent=");
                v0_6.append(p4.toUri(0));
                com.baidu.android.pushservice.i.l.b(v0_6.toString(), p3);
            } else {
                return;
            }
        }
        if (!com.baidu.android.pushservice.i.l.F(p3)) {
            if (!android.text.TextUtils.isEmpty(p5)) {
                p4.setAction(p5);
            }
            if (!android.text.TextUtils.isEmpty(p6)) {
                p4.setPackage(p6);
            }
            String v5_1 = com.baidu.android.pushservice.i.l.c(p3, p6, p5);
            if (!android.text.TextUtils.isEmpty(v5_1)) {
                p4.setClassName(p6, v5_1);
            }
            p3.sendBroadcast(p4);
            return;
        } else {
            return;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_SINK']' [[('Lcom/baidu/android/pushservice/e;', 'a', '(Landroid/content/Context;)Landroid/content/Intent;'), ('Lcom/baidu/android/pushservice/e;', 'k', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'b', '(Landroid/content/Context; Landroid/content/Intent; Ljava/lang/String; Ljava/lang/String;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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


    public static android.content.Intent a(android.content.Context p4)
    {
        if (!com.baidu.android.pushservice.e.l(p4)) {
            String v0_1 = com.baidu.android.pushservice.e.a;
            if (v0_1 == -1) {
                v0_1 = com.baidu.android.pushservice.i.i.b(p4, "com.baidu.android.pushservice.PushManager.LOGIN_TYPE", 0);
            }
            String v2_3;
            if (android.text.TextUtils.isEmpty(com.baidu.android.pushservice.e.b)) {
                v2_3 = com.baidu.android.pushservice.i.i.a(p4, "com.baidu.android.pushservice.PushManager.LONGIN_VALUE");
            } else {
                v2_3 = com.baidu.android.pushservice.e.b;
            }
            if (!android.text.TextUtils.isEmpty(v2_3)) {
                android.content.Intent v4_1 = com.baidu.android.pushservice.i.k.c(p4);
                if (v0_1 != null) {
                    return 0;
                } else {
                    v4_1.putExtra("secret_key", v2_3);
                    return v4_1;
                }
            } else {
                com.baidu.android.pushservice.f.a.b("PushManagerHandler", "Can not acquire loginValue, please check if there is a right loginValue", p4);
                com.baidu.android.pushservice.e.k(p4);
                return 0;
            }
        } else {
            return 0;
        }
    }

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


    public static void k(android.content.Context p5)
    {
        android.content.Intent v0_1 = new android.content.Intent();
        String v2_2 = com.baidu.android.pushservice.PushConstants.a(30602);
        v0_1.setAction("com.baidu.android.pushservice.action.RECEIVE");
        v0_1.putExtra("method", "method_bind");
        v0_1.putExtra("error_msg", 30602);
        v0_1.putExtra("content", v2_2.getBytes());
        v0_1.setFlags(32);
        com.baidu.android.pushservice.i.l.b(p5, v0_1, v0_1.getAction(), p5.getPackageName());
        return;
    }

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


    public static void b(android.content.Context p3, android.content.Intent p4, String p5, String p6)
    {
        p4.setFlags(32);
        String v1_2 = com.baidu.android.pushservice.i.l.m(p3, p6);
        if (v1_2 >= 32) {
            try {
                if (!android.text.TextUtils.isEmpty(p5)) {
                    p4.setAction(p5);
                }
            } catch (Exception) {
            }
            if (!android.text.TextUtils.isEmpty(p6)) {
                p4.setPackage(p6);
                p4.setClassName(p6, "com.baidu.android.pushservice.CommandService");
            }
            p4.putExtra("command_type", "reflect_receiver");
            if (p3.startService(p4) == null) {
                boolean v0_6 = new StringBuilder();
                v0_6.append("sendRedirecctionIntent#intergratedPushVersion=");
                v0_6.append(v1_2);
                v0_6.append(", packageName=");
                v0_6.append(p6);
                v0_6.append(", intent=");
                v0_6.append(p4.toUri(0));
                com.baidu.android.pushservice.i.l.b(v0_6.toString(), p3);
            } else {
                return;
            }
        }
        if (!com.baidu.android.pushservice.i.l.F(p3)) {
            if (!android.text.TextUtils.isEmpty(p5)) {
                p4.setAction(p5);
            }
            if (!android.text.TextUtils.isEmpty(p6)) {
                p4.setPackage(p6);
            }
            String v5_1 = com.baidu.android.pushservice.i.l.c(p3, p6, p5);
            if (!android.text.TextUtils.isEmpty(v5_1)) {
                p4.setClassName(p6, v5_1);
            }
            p3.sendBroadcast(p4);
            return;
        } else {
            return;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_SINK']' [[('Lcom/baidu/android/pushservice/e;', 'a', '(Landroid/content/Context; I)Landroid/content/Intent;'), ('Lcom/baidu/android/pushservice/e;', 'a', '(Landroid/content/Context;)Landroid/content/Intent;'), ('Lcom/baidu/android/pushservice/e;', 'k', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'b', '(Landroid/content/Context; Landroid/content/Intent; Ljava/lang/String; Ljava/lang/String;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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


    public static android.content.Intent a(android.content.Context p3, int p4)
    {
        android.content.Intent v0 = com.baidu.android.pushservice.e.a(p3);
        if (v0 != null) {
            v0.putExtra("method", "method_bind");
            v0.putExtra("bind_status", p4);
            v0.putExtra("push_sdk_version", com.baidu.android.pushservice.a.a());
            v0.setFlags((v0.getFlags() | 32));
            if (android.os.Build$VERSION.SDK_INT >= 19) {
                String v3_1 = com.baidu.android.pushservice.i.h.a(p3);
                StringBuilder v1_3 = new StringBuilder();
                v1_3.append(v3_1);
                v1_3.append("");
                v0.putExtra("bind_notify_status", v1_3.toString());
            }
            return v0;
        } else {
            return 0;
        }
    }

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


    public static android.content.Intent a(android.content.Context p4)
    {
        if (!com.baidu.android.pushservice.e.l(p4)) {
            String v0_1 = com.baidu.android.pushservice.e.a;
            if (v0_1 == -1) {
                v0_1 = com.baidu.android.pushservice.i.i.b(p4, "com.baidu.android.pushservice.PushManager.LOGIN_TYPE", 0);
            }
            String v2_3;
            if (android.text.TextUtils.isEmpty(com.baidu.android.pushservice.e.b)) {
                v2_3 = com.baidu.android.pushservice.i.i.a(p4, "com.baidu.android.pushservice.PushManager.LONGIN_VALUE");
            } else {
                v2_3 = com.baidu.android.pushservice.e.b;
            }
            if (!android.text.TextUtils.isEmpty(v2_3)) {
                android.content.Intent v4_1 = com.baidu.android.pushservice.i.k.c(p4);
                if (v0_1 != null) {
                    return 0;
                } else {
                    v4_1.putExtra("secret_key", v2_3);
                    return v4_1;
                }
            } else {
                com.baidu.android.pushservice.f.a.b("PushManagerHandler", "Can not acquire loginValue, please check if there is a right loginValue", p4);
                com.baidu.android.pushservice.e.k(p4);
                return 0;
            }
        } else {
            return 0;
        }
    }

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


    public static void k(android.content.Context p5)
    {
        android.content.Intent v0_1 = new android.content.Intent();
        String v2_2 = com.baidu.android.pushservice.PushConstants.a(30602);
        v0_1.setAction("com.baidu.android.pushservice.action.RECEIVE");
        v0_1.putExtra("method", "method_bind");
        v0_1.putExtra("error_msg", 30602);
        v0_1.putExtra("content", v2_2.getBytes());
        v0_1.setFlags(32);
        com.baidu.android.pushservice.i.l.b(p5, v0_1, v0_1.getAction(), p5.getPackageName());
        return;
    }

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


    public static void b(android.content.Context p3, android.content.Intent p4, String p5, String p6)
    {
        p4.setFlags(32);
        String v1_2 = com.baidu.android.pushservice.i.l.m(p3, p6);
        if (v1_2 >= 32) {
            try {
                if (!android.text.TextUtils.isEmpty(p5)) {
                    p4.setAction(p5);
                }
            } catch (Exception) {
            }
            if (!android.text.TextUtils.isEmpty(p6)) {
                p4.setPackage(p6);
                p4.setClassName(p6, "com.baidu.android.pushservice.CommandService");
            }
            p4.putExtra("command_type", "reflect_receiver");
            if (p3.startService(p4) == null) {
                boolean v0_6 = new StringBuilder();
                v0_6.append("sendRedirecctionIntent#intergratedPushVersion=");
                v0_6.append(v1_2);
                v0_6.append(", packageName=");
                v0_6.append(p6);
                v0_6.append(", intent=");
                v0_6.append(p4.toUri(0));
                com.baidu.android.pushservice.i.l.b(v0_6.toString(), p3);
            } else {
                return;
            }
        }
        if (!com.baidu.android.pushservice.i.l.F(p3)) {
            if (!android.text.TextUtils.isEmpty(p5)) {
                p4.setAction(p5);
            }
            if (!android.text.TextUtils.isEmpty(p6)) {
                p4.setPackage(p6);
            }
            String v5_1 = com.baidu.android.pushservice.i.l.c(p3, p6, p5);
            if (!android.text.TextUtils.isEmpty(v5_1)) {
                p4.setClassName(p6, v5_1);
            }
            p3.sendBroadcast(p4);
            return;
        } else {
            return;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_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/l;', 'p', '(Landroid/content/Context;)Ljava/util/List;'), ('Lcom/baidu/android/pushservice/i/l;', 'z', '(Landroid/content/Context; Ljava/lang/String;)Z'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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.l.p():


    public static java.util.List p(android.content.Context p5)
    {
        java.util.List v0_1 = new java.util.ArrayList();
        try {
            java.util.ArrayList v1_2 = p5.getPackageManager();
        } catch (Exception) {
            return v0_1;
        }
        if (v1_2 != null) {
            v0_1 = v1_2.queryBroadcastReceivers(new android.content.Intent("com.baidu.android.pushservice.action.BIND_SYNC"), 576);
            java.util.ArrayList v1_1 = new java.util.ArrayList();
            java.util.Iterator v2_0 = v0_1.iterator();
            while (v2_0.hasNext()) {
                android.content.pm.ResolveInfo v3_2 = ((android.content.pm.ResolveInfo) v2_0.next());
                if (!com.baidu.android.pushservice.i.l.z(p5, v3_2.activityInfo.packageName)) {
                    v1_1.add(v3_2);
                }
            }
            v0_1.removeAll(v1_1);
            return v0_1;
        } else {
            return v0_1;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_SINK']' [[('Lcom/baidu/android/pushservice/e;', 'a', '(Landroid/content/Context; Ljava/lang/String;)V'), ('Lcom/baidu/android/pushservice/e;', 'a', '(Landroid/content/Context; I)Landroid/content/Intent;'), ('Lcom/baidu/android/pushservice/e;', 'a', '(Landroid/content/Context;)Landroid/content/Intent;'), ('Lcom/baidu/android/pushservice/e;', 'k', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'b', '(Landroid/content/Context; Landroid/content/Intent; Ljava/lang/String; Ljava/lang/String;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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


    public static void a(android.content.Context p8, String p9)
    {
        try {
            if ((com.baidu.android.pushservice.e.j == null) || (com.baidu.android.pushservice.e.k.isEmpty())) {
                if ((com.baidu.android.pushservice.b.e.g(p8)) || (com.baidu.android.pushservice.b.e.h(p8))) {
                    String v0_3 = 0;
                    android.content.Intent v1_1 = com.baidu.android.pushservice.e.a(p8, 0);
                    if (v1_1 != null) {
                        int v2_1 = com.baidu.android.pushservice.b.e.a(p8).b();
                        if (android.text.TextUtils.isEmpty(p9)) {
                            com.baidu.android.pushservice.e.j(p8);
                        } else {
                            org.json.JSONObject v3_2 = new org.json.JSONObject();
                            org.json.JSONObject v4_1 = new org.json.JSONObject();
                            if (v2_1 != 5) {
                                if (v2_1 != 6) {
                                    if (v2_1 != 7) {
                                        if (v2_1 != 8) {
                                            if (v2_1 == 9) {
                                                v4_1.put("platform", 5);
                                                v0_3 = 1;
                                            }
                                        } else {
                                            v4_1.put("platform", 4);
                                        }
                                    } else {
                                        v4_1.put("platform", 3);
                                    }
                                } else {
                                    v4_1.put("platform", 1);
                                }
                            } else {
                                v4_1.put("platform", 0);
                            }
                            if (v0_3 != null) {
                                v4_1.put("token", p9);
                                v3_2.put("info", v4_1);
                                com.baidu.android.pushservice.i.j.a(p8, v2_1, p9);
                            }
                            v1_1.putExtra("push_proxy", v3_2.toString());
                            com.baidu.android.pushservice.e.a(p8, v1_1);
                        }
                    } else {
                        return;
                    }
                } else {
                    return;
                }
            } else {
                com.baidu.android.pushservice.e.j.sendEmptyMessage(65553);
            }
        } catch (Exception) {
            com.baidu.android.pushservice.e.j(p8);
        }
        return;
    }

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


    public static android.content.Intent a(android.content.Context p3, int p4)
    {
        android.content.Intent v0 = com.baidu.android.pushservice.e.a(p3);
        if (v0 != null) {
            v0.putExtra("method", "method_bind");
            v0.putExtra("bind_status", p4);
            v0.putExtra("push_sdk_version", com.baidu.android.pushservice.a.a());
            v0.setFlags((v0.getFlags() | 32));
            if (android.os.Build$VERSION.SDK_INT >= 19) {
                String v3_1 = com.baidu.android.pushservice.i.h.a(p3);
                StringBuilder v1_3 = new StringBuilder();
                v1_3.append(v3_1);
                v1_3.append("");
                v0.putExtra("bind_notify_status", v1_3.toString());
            }
            return v0;
        } else {
            return 0;
        }
    }

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


    public static android.content.Intent a(android.content.Context p4)
    {
        if (!com.baidu.android.pushservice.e.l(p4)) {
            String v0_1 = com.baidu.android.pushservice.e.a;
            if (v0_1 == -1) {
                v0_1 = com.baidu.android.pushservice.i.i.b(p4, "com.baidu.android.pushservice.PushManager.LOGIN_TYPE", 0);
            }
            String v2_3;
            if (android.text.TextUtils.isEmpty(com.baidu.android.pushservice.e.b)) {
                v2_3 = com.baidu.android.pushservice.i.i.a(p4, "com.baidu.android.pushservice.PushManager.LONGIN_VALUE");
            } else {
                v2_3 = com.baidu.android.pushservice.e.b;
            }
            if (!android.text.TextUtils.isEmpty(v2_3)) {
                android.content.Intent v4_1 = com.baidu.android.pushservice.i.k.c(p4);
                if (v0_1 != null) {
                    return 0;
                } else {
                    v4_1.putExtra("secret_key", v2_3);
                    return v4_1;
                }
            } else {
                com.baidu.android.pushservice.f.a.b("PushManagerHandler", "Can not acquire loginValue, please check if there is a right loginValue", p4);
                com.baidu.android.pushservice.e.k(p4);
                return 0;
            }
        } else {
            return 0;
        }
    }

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


    public static void k(android.content.Context p5)
    {
        android.content.Intent v0_1 = new android.content.Intent();
        String v2_2 = com.baidu.android.pushservice.PushConstants.a(30602);
        v0_1.setAction("com.baidu.android.pushservice.action.RECEIVE");
        v0_1.putExtra("method", "method_bind");
        v0_1.putExtra("error_msg", 30602);
        v0_1.putExtra("content", v2_2.getBytes());
        v0_1.setFlags(32);
        com.baidu.android.pushservice.i.l.b(p5, v0_1, v0_1.getAction(), p5.getPackageName());
        return;
    }

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


    public static void b(android.content.Context p3, android.content.Intent p4, String p5, String p6)
    {
        p4.setFlags(32);
        String v1_2 = com.baidu.android.pushservice.i.l.m(p3, p6);
        if (v1_2 >= 32) {
            try {
                if (!android.text.TextUtils.isEmpty(p5)) {
                    p4.setAction(p5);
                }
            } catch (Exception) {
            }
            if (!android.text.TextUtils.isEmpty(p6)) {
                p4.setPackage(p6);
                p4.setClassName(p6, "com.baidu.android.pushservice.CommandService");
            }
            p4.putExtra("command_type", "reflect_receiver");
            if (p3.startService(p4) == null) {
                boolean v0_6 = new StringBuilder();
                v0_6.append("sendRedirecctionIntent#intergratedPushVersion=");
                v0_6.append(v1_2);
                v0_6.append(", packageName=");
                v0_6.append(p6);
                v0_6.append(", intent=");
                v0_6.append(p4.toUri(0));
                com.baidu.android.pushservice.i.l.b(v0_6.toString(), p3);
            } else {
                return;
            }
        }
        if (!com.baidu.android.pushservice.i.l.F(p3)) {
            if (!android.text.TextUtils.isEmpty(p5)) {
                p4.setAction(p5);
            }
            if (!android.text.TextUtils.isEmpty(p6)) {
                p4.setPackage(p6);
            }
            String v5_1 = com.baidu.android.pushservice.i.l.c(p3, p6, p5);
            if (!android.text.TextUtils.isEmpty(v5_1)) {
                p4.setClassName(p6, v5_1);
            }
            p3.sendBroadcast(p4);
            return;
        } else {
            return;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_SINK']' [[('Lcom/baidu/android/pushservice/e;', 'b', '(Landroid/content/Context;)Z'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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


    public static boolean b(android.content.Context p5)
    {
        int v0 = 1;
        try {
            int v1_3;
            if (!com.baidu.android.pushservice.i.l.D(p5)) {
                v1_3 = -1;
                if (v1_3 == -1) {
                    v1_3 = com.baidu.android.pushservice.c.c.c(p5);
                }
                if (v1_3 == com.baidu.android.pushservice.a.a()) {
                    v0 = 0;
                }
            } else {
                int v1_5 = new StringBuilder();
                v1_5.append(p5.getPackageName());
                v1_5.append(".push_sync");
                int v1_1 = p5.getSharedPreferences(v1_5.toString(), 5);
                v1_1.edit();
                v1_3 = v1_1.getInt("version2", 0);
            }
        } catch (Exception) {
        }
        return v0;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_SINK']' [[('Lcom/baidu/android/pushservice/e;', 'c', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/e;', 'k', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'b', '(Landroid/content/Context; Landroid/content/Intent; Ljava/lang/String; Ljava/lang/String;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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


    public static void c(android.content.Context p2)
    {
        android.content.Context v2_1 = p2.getApplicationContext();
        if (android.text.TextUtils.isEmpty(com.baidu.android.pushservice.e.d)) {
            com.baidu.android.pushservice.e.d = com.baidu.android.pushservice.i.i.a(v2_1, "BD_PROXY_APPID_KEY");
        }
        if (android.text.TextUtils.isEmpty(com.baidu.android.pushservice.e.e)) {
            com.baidu.android.pushservice.e.e = com.baidu.android.pushservice.i.i.a(v2_1, "BD_PROXY_APPKEY_KEY");
        }
        if ((!android.text.TextUtils.isEmpty(com.baidu.android.pushservice.e.d)) && (!android.text.TextUtils.isEmpty(com.baidu.android.pushservice.e.e))) {
            com.baidu.android.pushservice.i.l.d(v2_1, com.baidu.android.pushservice.e.d, com.baidu.android.pushservice.e.e);
            com.baidu.android.pushservice.e.o(v2_1);
            return;
        } else {
            com.baidu.android.pushservice.e.k(v2_1);
            return;
        }
    }

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


    public static void k(android.content.Context p5)
    {
        android.content.Intent v0_1 = new android.content.Intent();
        String v2_2 = com.baidu.android.pushservice.PushConstants.a(30602);
        v0_1.setAction("com.baidu.android.pushservice.action.RECEIVE");
        v0_1.putExtra("method", "method_bind");
        v0_1.putExtra("error_msg", 30602);
        v0_1.putExtra("content", v2_2.getBytes());
        v0_1.setFlags(32);
        com.baidu.android.pushservice.i.l.b(p5, v0_1, v0_1.getAction(), p5.getPackageName());
        return;
    }

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


    public static void b(android.content.Context p3, android.content.Intent p4, String p5, String p6)
    {
        p4.setFlags(32);
        String v1_2 = com.baidu.android.pushservice.i.l.m(p3, p6);
        if (v1_2 >= 32) {
            try {
                if (!android.text.TextUtils.isEmpty(p5)) {
                    p4.setAction(p5);
                }
            } catch (Exception) {
            }
            if (!android.text.TextUtils.isEmpty(p6)) {
                p4.setPackage(p6);
                p4.setClassName(p6, "com.baidu.android.pushservice.CommandService");
            }
            p4.putExtra("command_type", "reflect_receiver");
            if (p3.startService(p4) == null) {
                boolean v0_6 = new StringBuilder();
                v0_6.append("sendRedirecctionIntent#intergratedPushVersion=");
                v0_6.append(v1_2);
                v0_6.append(", packageName=");
                v0_6.append(p6);
                v0_6.append(", intent=");
                v0_6.append(p4.toUri(0));
                com.baidu.android.pushservice.i.l.b(v0_6.toString(), p3);
            } else {
                return;
            }
        }
        if (!com.baidu.android.pushservice.i.l.F(p3)) {
            if (!android.text.TextUtils.isEmpty(p5)) {
                p4.setAction(p5);
            }
            if (!android.text.TextUtils.isEmpty(p6)) {
                p4.setPackage(p6);
            }
            String v5_1 = com.baidu.android.pushservice.i.l.c(p3, p6, p5);
            if (!android.text.TextUtils.isEmpty(v5_1)) {
                p4.setClassName(p6, v5_1);
            }
            p3.sendBroadcast(p4);
            return;
        } else {
            return;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_SINK']' [[('Lcom/baidu/android/pushservice/e;', 'd', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/e;', 'k', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'b', '(Landroid/content/Context; Landroid/content/Intent; Ljava/lang/String; Ljava/lang/String;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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


    public static void d(android.content.Context p2)
    {
        android.content.Context v2_1 = p2.getApplicationContext();
        if (android.text.TextUtils.isEmpty(com.baidu.android.pushservice.e.f)) {
            com.baidu.android.pushservice.e.f = com.baidu.android.pushservice.i.i.a(v2_1, "BD_MEIZU_PROXY_APPID_KEY");
        }
        if (android.text.TextUtils.isEmpty(com.baidu.android.pushservice.e.g)) {
            com.baidu.android.pushservice.e.g = com.baidu.android.pushservice.i.i.a(v2_1, "BD_MEIZU_PROXY_APPKEY_KEY");
        }
        if ((!android.text.TextUtils.isEmpty(com.baidu.android.pushservice.e.f)) && (!android.text.TextUtils.isEmpty(com.baidu.android.pushservice.e.g))) {
            com.baidu.android.pushservice.i.l.e(v2_1, com.baidu.android.pushservice.e.f, com.baidu.android.pushservice.e.g);
            com.baidu.android.pushservice.e.o(v2_1);
            return;
        } else {
            com.baidu.android.pushservice.e.k(v2_1);
            return;
        }
    }

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


    public static void k(android.content.Context p5)
    {
        android.content.Intent v0_1 = new android.content.Intent();
        String v2_2 = com.baidu.android.pushservice.PushConstants.a(30602);
        v0_1.setAction("com.baidu.android.pushservice.action.RECEIVE");
        v0_1.putExtra("method", "method_bind");
        v0_1.putExtra("error_msg", 30602);
        v0_1.putExtra("content", v2_2.getBytes());
        v0_1.setFlags(32);
        com.baidu.android.pushservice.i.l.b(p5, v0_1, v0_1.getAction(), p5.getPackageName());
        return;
    }

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


    public static void b(android.content.Context p3, android.content.Intent p4, String p5, String p6)
    {
        p4.setFlags(32);
        String v1_2 = com.baidu.android.pushservice.i.l.m(p3, p6);
        if (v1_2 >= 32) {
            try {
                if (!android.text.TextUtils.isEmpty(p5)) {
                    p4.setAction(p5);
                }
            } catch (Exception) {
            }
            if (!android.text.TextUtils.isEmpty(p6)) {
                p4.setPackage(p6);
                p4.setClassName(p6, "com.baidu.android.pushservice.CommandService");
            }
            p4.putExtra("command_type", "reflect_receiver");
            if (p3.startService(p4) == null) {
                boolean v0_6 = new StringBuilder();
                v0_6.append("sendRedirecctionIntent#intergratedPushVersion=");
                v0_6.append(v1_2);
                v0_6.append(", packageName=");
                v0_6.append(p6);
                v0_6.append(", intent=");
                v0_6.append(p4.toUri(0));
                com.baidu.android.pushservice.i.l.b(v0_6.toString(), p3);
            } else {
                return;
            }
        }
        if (!com.baidu.android.pushservice.i.l.F(p3)) {
            if (!android.text.TextUtils.isEmpty(p5)) {
                p4.setAction(p5);
            }
            if (!android.text.TextUtils.isEmpty(p6)) {
                p4.setPackage(p6);
            }
            String v5_1 = com.baidu.android.pushservice.i.l.c(p3, p6, p5);
            if (!android.text.TextUtils.isEmpty(v5_1)) {
                p4.setClassName(p6, v5_1);
            }
            p3.sendBroadcast(p4);
            return;
        } else {
            return;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_SINK']' [[('Lcom/baidu/android/pushservice/e;', 'd', '(Landroid/content/Context; I Ljava/lang/String;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'b', '(Landroid/content/Context; Landroid/content/Intent; Ljava/lang/String; Ljava/lang/String;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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


    public static void d(android.content.Context p5, int p6, String p7)
    {
        int v0_1 = new StringBuilder();
        v0_1.append("errorCode:");
        v0_1.append(p6);
        v0_1.append(",errorMsg:");
        v0_1.append(p7);
        String v7_3 = v0_1.toString();
        com.baidu.android.pushservice.f.a.b("PushManagerHandler", v7_3, p5.getApplicationContext());
        if (p5 != null) {
            com.baidu.android.pushservice.c.c.a(p5, 0);
            if (com.baidu.android.pushservice.i.l.D(p5)) {
                android.content.SharedPreferences$Editor v3_2 = new StringBuilder();
                v3_2.append(p5.getPackageName());
                v3_2.append(".push_sync");
                android.content.SharedPreferences$Editor v3_5 = p5.getSharedPreferences(v3_2.toString(), 5).edit();
                v3_5.putLong("priority2", 0);
                v3_5.commit();
            }
            android.content.SharedPreferences$Editor v1_5 = p5.getSharedPreferences("com.baidu.pushservice.BIND_CACHE", 0).edit();
            v1_5.putBoolean("bind_status", 0);
            v1_5.commit();
        }
        android.content.SharedPreferences$Editor v1_7 = new android.content.Intent();
        v1_7.putExtra("method", "method_bind");
        v1_7.putExtra("error_msg", p6);
        v1_7.putExtra("content", v7_3.getBytes());
        v1_7.putExtra("bind_status", 0);
        com.baidu.android.pushservice.i.l.b(p5, v1_7, "com.baidu.android.pushservice.action.RECEIVE", p5.getPackageName());
        return;
    }

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


    public static void b(android.content.Context p3, android.content.Intent p4, String p5, String p6)
    {
        p4.setFlags(32);
        String v1_2 = com.baidu.android.pushservice.i.l.m(p3, p6);
        if (v1_2 >= 32) {
            try {
                if (!android.text.TextUtils.isEmpty(p5)) {
                    p4.setAction(p5);
                }
            } catch (Exception) {
            }
            if (!android.text.TextUtils.isEmpty(p6)) {
                p4.setPackage(p6);
                p4.setClassName(p6, "com.baidu.android.pushservice.CommandService");
            }
            p4.putExtra("command_type", "reflect_receiver");
            if (p3.startService(p4) == null) {
                boolean v0_6 = new StringBuilder();
                v0_6.append("sendRedirecctionIntent#intergratedPushVersion=");
                v0_6.append(v1_2);
                v0_6.append(", packageName=");
                v0_6.append(p6);
                v0_6.append(", intent=");
                v0_6.append(p4.toUri(0));
                com.baidu.android.pushservice.i.l.b(v0_6.toString(), p3);
            } else {
                return;
            }
        }
        if (!com.baidu.android.pushservice.i.l.F(p3)) {
            if (!android.text.TextUtils.isEmpty(p5)) {
                p4.setAction(p5);
            }
            if (!android.text.TextUtils.isEmpty(p6)) {
                p4.setPackage(p6);
            }
            String v5_1 = com.baidu.android.pushservice.i.l.c(p3, p6, p5);
            if (!android.text.TextUtils.isEmpty(v5_1)) {
                p4.setClassName(p6, v5_1);
            }
            p3.sendBroadcast(p4);
            return;
        } else {
            return;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_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/l;', 'p', '(Landroid/content/Context;)Ljava/util/List;'), ('Lcom/baidu/android/pushservice/i/l;', 'z', '(Landroid/content/Context; Ljava/lang/String;)Z'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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.l.p():


    public static java.util.List p(android.content.Context p5)
    {
        java.util.List v0_1 = new java.util.ArrayList();
        try {
            java.util.ArrayList v1_2 = p5.getPackageManager();
        } catch (Exception) {
            return v0_1;
        }
        if (v1_2 != null) {
            v0_1 = v1_2.queryBroadcastReceivers(new android.content.Intent("com.baidu.android.pushservice.action.BIND_SYNC"), 576);
            java.util.ArrayList v1_1 = new java.util.ArrayList();
            java.util.Iterator v2_0 = v0_1.iterator();
            while (v2_0.hasNext()) {
                android.content.pm.ResolveInfo v3_2 = ((android.content.pm.ResolveInfo) v2_0.next());
                if (!com.baidu.android.pushservice.i.l.z(p5, v3_2.activityInfo.packageName)) {
                    v1_1.add(v3_2);
                }
            }
            v0_1.removeAll(v1_1);
            return v0_1;
        } else {
            return v0_1;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_SINK']' [[('Lcom/baidu/android/pushservice/e;', 'g', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/e;', 'a', '(Landroid/content/Context;)Landroid/content/Intent;'), ('Lcom/baidu/android/pushservice/e;', 'k', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'b', '(Landroid/content/Context; Landroid/content/Intent; Ljava/lang/String; Ljava/lang/String;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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.a():


    public static android.content.Intent a(android.content.Context p4)
    {
        if (!com.baidu.android.pushservice.e.l(p4)) {
            String v0_1 = com.baidu.android.pushservice.e.a;
            if (v0_1 == -1) {
                v0_1 = com.baidu.android.pushservice.i.i.b(p4, "com.baidu.android.pushservice.PushManager.LOGIN_TYPE", 0);
            }
            String v2_3;
            if (android.text.TextUtils.isEmpty(com.baidu.android.pushservice.e.b)) {
                v2_3 = com.baidu.android.pushservice.i.i.a(p4, "com.baidu.android.pushservice.PushManager.LONGIN_VALUE");
            } else {
                v2_3 = com.baidu.android.pushservice.e.b;
            }
            if (!android.text.TextUtils.isEmpty(v2_3)) {
                android.content.Intent v4_1 = com.baidu.android.pushservice.i.k.c(p4);
                if (v0_1 != null) {
                    return 0;
                } else {
                    v4_1.putExtra("secret_key", v2_3);
                    return v4_1;
                }
            } else {
                com.baidu.android.pushservice.f.a.b("PushManagerHandler", "Can not acquire loginValue, please check if there is a right loginValue", p4);
                com.baidu.android.pushservice.e.k(p4);
                return 0;
            }
        } else {
            return 0;
        }
    }

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


    public static void k(android.content.Context p5)
    {
        android.content.Intent v0_1 = new android.content.Intent();
        String v2_2 = com.baidu.android.pushservice.PushConstants.a(30602);
        v0_1.setAction("com.baidu.android.pushservice.action.RECEIVE");
        v0_1.putExtra("method", "method_bind");
        v0_1.putExtra("error_msg", 30602);
        v0_1.putExtra("content", v2_2.getBytes());
        v0_1.setFlags(32);
        com.baidu.android.pushservice.i.l.b(p5, v0_1, v0_1.getAction(), p5.getPackageName());
        return;
    }

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


    public static void b(android.content.Context p3, android.content.Intent p4, String p5, String p6)
    {
        p4.setFlags(32);
        String v1_2 = com.baidu.android.pushservice.i.l.m(p3, p6);
        if (v1_2 >= 32) {
            try {
                if (!android.text.TextUtils.isEmpty(p5)) {
                    p4.setAction(p5);
                }
            } catch (Exception) {
            }
            if (!android.text.TextUtils.isEmpty(p6)) {
                p4.setPackage(p6);
                p4.setClassName(p6, "com.baidu.android.pushservice.CommandService");
            }
            p4.putExtra("command_type", "reflect_receiver");
            if (p3.startService(p4) == null) {
                boolean v0_6 = new StringBuilder();
                v0_6.append("sendRedirecctionIntent#intergratedPushVersion=");
                v0_6.append(v1_2);
                v0_6.append(", packageName=");
                v0_6.append(p6);
                v0_6.append(", intent=");
                v0_6.append(p4.toUri(0));
                com.baidu.android.pushservice.i.l.b(v0_6.toString(), p3);
            } else {
                return;
            }
        }
        if (!com.baidu.android.pushservice.i.l.F(p3)) {
            if (!android.text.TextUtils.isEmpty(p5)) {
                p4.setAction(p5);
            }
            if (!android.text.TextUtils.isEmpty(p6)) {
                p4.setPackage(p6);
            }
            String v5_1 = com.baidu.android.pushservice.i.l.c(p3, p6, p5);
            if (!android.text.TextUtils.isEmpty(v5_1)) {
                p4.setClassName(p6, v5_1);
            }
            p3.sendBroadcast(p4);
            return;
        } else {
            return;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_SINK']' [[('Lcom/baidu/android/pushservice/e;', 'h', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/e;', 'k', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'b', '(Landroid/content/Context; Landroid/content/Intent; Ljava/lang/String; Ljava/lang/String;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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


    public static void h(android.content.Context p2)
    {
        if ((com.baidu.android.pushservice.e.j != null) && (!com.baidu.android.pushservice.e.k.isEmpty())) {
            com.baidu.android.pushservice.e.j.sendEmptyMessage(65553);
            com.baidu.android.pushservice.e.k(p2);
        }
        return;
    }

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


    public static void k(android.content.Context p5)
    {
        android.content.Intent v0_1 = new android.content.Intent();
        String v2_2 = com.baidu.android.pushservice.PushConstants.a(30602);
        v0_1.setAction("com.baidu.android.pushservice.action.RECEIVE");
        v0_1.putExtra("method", "method_bind");
        v0_1.putExtra("error_msg", 30602);
        v0_1.putExtra("content", v2_2.getBytes());
        v0_1.setFlags(32);
        com.baidu.android.pushservice.i.l.b(p5, v0_1, v0_1.getAction(), p5.getPackageName());
        return;
    }

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


    public static void b(android.content.Context p3, android.content.Intent p4, String p5, String p6)
    {
        p4.setFlags(32);
        String v1_2 = com.baidu.android.pushservice.i.l.m(p3, p6);
        if (v1_2 >= 32) {
            try {
                if (!android.text.TextUtils.isEmpty(p5)) {
                    p4.setAction(p5);
                }
            } catch (Exception) {
            }
            if (!android.text.TextUtils.isEmpty(p6)) {
                p4.setPackage(p6);
                p4.setClassName(p6, "com.baidu.android.pushservice.CommandService");
            }
            p4.putExtra("command_type", "reflect_receiver");
            if (p3.startService(p4) == null) {
                boolean v0_6 = new StringBuilder();
                v0_6.append("sendRedirecctionIntent#intergratedPushVersion=");
                v0_6.append(v1_2);
                v0_6.append(", packageName=");
                v0_6.append(p6);
                v0_6.append(", intent=");
                v0_6.append(p4.toUri(0));
                com.baidu.android.pushservice.i.l.b(v0_6.toString(), p3);
            } else {
                return;
            }
        }
        if (!com.baidu.android.pushservice.i.l.F(p3)) {
            if (!android.text.TextUtils.isEmpty(p5)) {
                p4.setAction(p5);
            }
            if (!android.text.TextUtils.isEmpty(p6)) {
                p4.setPackage(p6);
            }
            String v5_1 = com.baidu.android.pushservice.i.l.c(p3, p6, p5);
            if (!android.text.TextUtils.isEmpty(v5_1)) {
                p4.setClassName(p6, v5_1);
            }
            p3.sendBroadcast(p4);
            return;
        } else {
            return;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_SINK']' [[('Lcom/baidu/android/pushservice/e;', 'i', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/e;', 'h', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/e;', 'k', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'b', '(Landroid/content/Context; Landroid/content/Intent; Ljava/lang/String; Ljava/lang/String;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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


    public static void i(android.content.Context p0)
    {
        com.baidu.android.pushservice.e.h(p0);
        return;
    }

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


    public static void h(android.content.Context p2)
    {
        if ((com.baidu.android.pushservice.e.j != null) && (!com.baidu.android.pushservice.e.k.isEmpty())) {
            com.baidu.android.pushservice.e.j.sendEmptyMessage(65553);
            com.baidu.android.pushservice.e.k(p2);
        }
        return;
    }

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


    public static void k(android.content.Context p5)
    {
        android.content.Intent v0_1 = new android.content.Intent();
        String v2_2 = com.baidu.android.pushservice.PushConstants.a(30602);
        v0_1.setAction("com.baidu.android.pushservice.action.RECEIVE");
        v0_1.putExtra("method", "method_bind");
        v0_1.putExtra("error_msg", 30602);
        v0_1.putExtra("content", v2_2.getBytes());
        v0_1.setFlags(32);
        com.baidu.android.pushservice.i.l.b(p5, v0_1, v0_1.getAction(), p5.getPackageName());
        return;
    }

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


    public static void b(android.content.Context p3, android.content.Intent p4, String p5, String p6)
    {
        p4.setFlags(32);
        String v1_2 = com.baidu.android.pushservice.i.l.m(p3, p6);
        if (v1_2 >= 32) {
            try {
                if (!android.text.TextUtils.isEmpty(p5)) {
                    p4.setAction(p5);
                }
            } catch (Exception) {
            }
            if (!android.text.TextUtils.isEmpty(p6)) {
                p4.setPackage(p6);
                p4.setClassName(p6, "com.baidu.android.pushservice.CommandService");
            }
            p4.putExtra("command_type", "reflect_receiver");
            if (p3.startService(p4) == null) {
                boolean v0_6 = new StringBuilder();
                v0_6.append("sendRedirecctionIntent#intergratedPushVersion=");
                v0_6.append(v1_2);
                v0_6.append(", packageName=");
                v0_6.append(p6);
                v0_6.append(", intent=");
                v0_6.append(p4.toUri(0));
                com.baidu.android.pushservice.i.l.b(v0_6.toString(), p3);
            } else {
                return;
            }
        }
        if (!com.baidu.android.pushservice.i.l.F(p3)) {
            if (!android.text.TextUtils.isEmpty(p5)) {
                p4.setAction(p5);
            }
            if (!android.text.TextUtils.isEmpty(p6)) {
                p4.setPackage(p6);
            }
            String v5_1 = com.baidu.android.pushservice.i.l.c(p3, p6, p5);
            if (!android.text.TextUtils.isEmpty(v5_1)) {
                p4.setClassName(p6, v5_1);
            }
            p3.sendBroadcast(p4);
            return;
        } else {
            return;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_SINK']' [[('Lcom/baidu/android/pushservice/e;', 'j', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'b', '(Landroid/content/Context; Landroid/content/Intent; Ljava/lang/String; Ljava/lang/String;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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


    public static void j(android.content.Context p4)
    {
        try {
            com.baidu.android.pushservice.f.a.b("PushManagerHandler", "errorCode:10011", p4.getApplicationContext());
            android.content.Intent v1_2 = new android.content.Intent();
            v1_2.putExtra("method", "method_bind");
            v1_2.putExtra("error_msg", 10011);
            v1_2.putExtra("content", "errorCode:10011".getBytes());
            v1_2.putExtra("bind_status", 0);
            com.baidu.android.pushservice.i.l.b(p4, v1_2, "com.baidu.android.pushservice.action.RECEIVE", p4.getPackageName());
        } catch (Throwable) {
        }
        return;
    }

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


    public static void b(android.content.Context p3, android.content.Intent p4, String p5, String p6)
    {
        p4.setFlags(32);
        String v1_2 = com.baidu.android.pushservice.i.l.m(p3, p6);
        if (v1_2 >= 32) {
            try {
                if (!android.text.TextUtils.isEmpty(p5)) {
                    p4.setAction(p5);
                }
            } catch (Exception) {
            }
            if (!android.text.TextUtils.isEmpty(p6)) {
                p4.setPackage(p6);
                p4.setClassName(p6, "com.baidu.android.pushservice.CommandService");
            }
            p4.putExtra("command_type", "reflect_receiver");
            if (p3.startService(p4) == null) {
                boolean v0_6 = new StringBuilder();
                v0_6.append("sendRedirecctionIntent#intergratedPushVersion=");
                v0_6.append(v1_2);
                v0_6.append(", packageName=");
                v0_6.append(p6);
                v0_6.append(", intent=");
                v0_6.append(p4.toUri(0));
                com.baidu.android.pushservice.i.l.b(v0_6.toString(), p3);
            } else {
                return;
            }
        }
        if (!com.baidu.android.pushservice.i.l.F(p3)) {
            if (!android.text.TextUtils.isEmpty(p5)) {
                p4.setAction(p5);
            }
            if (!android.text.TextUtils.isEmpty(p6)) {
                p4.setPackage(p6);
            }
            String v5_1 = com.baidu.android.pushservice.i.l.c(p3, p6, p5);
            if (!android.text.TextUtils.isEmpty(v5_1)) {
                p4.setClassName(p6, v5_1);
            }
            p3.sendBroadcast(p4);
            return;
        } else {
            return;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_SINK']' [[('Lcom/baidu/android/pushservice/e;', 'k', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'b', '(Landroid/content/Context; Landroid/content/Intent; Ljava/lang/String; Ljava/lang/String;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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


    public static void k(android.content.Context p5)
    {
        android.content.Intent v0_1 = new android.content.Intent();
        String v2_2 = com.baidu.android.pushservice.PushConstants.a(30602);
        v0_1.setAction("com.baidu.android.pushservice.action.RECEIVE");
        v0_1.putExtra("method", "method_bind");
        v0_1.putExtra("error_msg", 30602);
        v0_1.putExtra("content", v2_2.getBytes());
        v0_1.setFlags(32);
        com.baidu.android.pushservice.i.l.b(p5, v0_1, v0_1.getAction(), p5.getPackageName());
        return;
    }

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


    public static void b(android.content.Context p3, android.content.Intent p4, String p5, String p6)
    {
        p4.setFlags(32);
        String v1_2 = com.baidu.android.pushservice.i.l.m(p3, p6);
        if (v1_2 >= 32) {
            try {
                if (!android.text.TextUtils.isEmpty(p5)) {
                    p4.setAction(p5);
                }
            } catch (Exception) {
            }
            if (!android.text.TextUtils.isEmpty(p6)) {
                p4.setPackage(p6);
                p4.setClassName(p6, "com.baidu.android.pushservice.CommandService");
            }
            p4.putExtra("command_type", "reflect_receiver");
            if (p3.startService(p4) == null) {
                boolean v0_6 = new StringBuilder();
                v0_6.append("sendRedirecctionIntent#intergratedPushVersion=");
                v0_6.append(v1_2);
                v0_6.append(", packageName=");
                v0_6.append(p6);
                v0_6.append(", intent=");
                v0_6.append(p4.toUri(0));
                com.baidu.android.pushservice.i.l.b(v0_6.toString(), p3);
            } else {
                return;
            }
        }
        if (!com.baidu.android.pushservice.i.l.F(p3)) {
            if (!android.text.TextUtils.isEmpty(p5)) {
                p4.setAction(p5);
            }
            if (!android.text.TextUtils.isEmpty(p6)) {
                p4.setPackage(p6);
            }
            String v5_1 = com.baidu.android.pushservice.i.l.c(p3, p6, p5);
            if (!android.text.TextUtils.isEmpty(v5_1)) {
                p4.setClassName(p6, v5_1);
            }
            p3.sendBroadcast(p4);
            return;
        } else {
            return;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_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/a/b;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/a/b;'), ('Lcom/baidu/android/pushservice/a/b;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/a/b;', 'a', '()V'), ('Lcom/baidu/android/pushservice/a/b;', 'a', '(Ljava/lang/String; Ljava/util/ArrayList;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'o', '(Landroid/content/Context;)Ljava/util/List;'), ('Lcom/baidu/android/pushservice/i/l;', 'z', '(Landroid/content/Context; Ljava/lang/String;)Z'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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.a.b.a():


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

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


    private b(android.content.Context p4)
    {
        this.a = new java.util.ArrayList();
        this.d = new java.util.HashMap();
        this.c = p4.getApplicationContext();
        String v0_1 = com.baidu.android.pushservice.c.c.e(p4);
        if ((android.text.TextUtils.isEmpty(v0_1)) && (com.baidu.android.pushservice.i.l.D(this.c))) {
            String v0_4 = new StringBuilder();
            v0_4.append(this.c.getPackageName());
            v0_4.append(".push_sync");
            v0_1 = com.baidu.android.pushservice.i.m.a(this.c, v0_4.toString(), "r_v2");
        }
        if (!android.text.TextUtils.isEmpty(v0_1)) {
            String v0_7 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v0_1));
        }
        try {
            int v1_11 = p4.getPackageManager().getPackageInfo(p4.getPackageName(), 0).versionCode;
        } catch (Exception) {
        }
        if (com.baidu.android.pushservice.i.i.b(this.c, "com.baidu.push.sync.vn", -1) < v1_11) {
            this.a();
            com.baidu.android.pushservice.i.i.a(this.c, "com.baidu.push.sync.vn", v1_11);
        }
        return;
    }

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


    private void a()
    {
        this.a("r_v2", this.a);
        return;
    }

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


    private void a(String p12, java.util.ArrayList p13)
    {
        android.content.Context v1_3;
        String v0_1 = new StringBuilder();
        v0_1.append(this.c.getPackageName());
        v0_1.append(".push_sync");
        String v0_2 = v0_1.toString();
        if (!com.baidu.android.pushservice.i.l.E(this.c)) {
            v1_3 = com.baidu.android.pushservice.i.l.o(this.c);
        } else {
            v1_3 = com.baidu.android.pushservice.i.l.p(this.c);
        }
        android.content.Context v1_6 = v1_3.iterator();
        while (v1_6.hasNext()) {
            com.baidu.android.pushservice.a.f v2_8 = ((android.content.pm.ResolveInfo) v1_6.next());
            try {
                com.baidu.android.pushservice.a.f v2_2;
                java.util.Iterator v3_8 = v2_8.activityInfo.packageName;
                com.baidu.android.pushservice.a.f v5_0 = 0;
            } catch (com.baidu.android.pushservice.a.f v2_5) {
                com.baidu.android.pushservice.g.o.a(this.c, v2_5);
            }
            if (!com.baidu.android.pushservice.i.l.D(this.c)) {
                v2_2 = 0;
            } else {
                int v4_4 = com.baidu.android.pushservice.i.l.v(this.c, v2_8.activityInfo.packageName);
                if (v4_4 == 0) {
                } else {
                    com.baidu.android.pushservice.a.f v5_8 = new StringBuilder();
                    v5_8.append(v2_8.activityInfo.packageName);
                    v5_8.append(".push_sync");
                    v5_0 = com.baidu.android.pushservice.i.m.a(v4_4, v5_8.toString(), p12);
                    int v6_6 = new StringBuilder();
                    v6_6.append(v2_8.activityInfo.packageName);
                    v6_6.append(".self_push_sync");
                    v2_2 = com.baidu.android.pushservice.i.m.a(v4_4, v6_6.toString(), "bindinfo");
                }
            }
            if (((android.text.TextUtils.isEmpty(v5_0)) || (android.text.TextUtils.isEmpty(v2_2))) && (com.baidu.android.pushservice.i.l.m(this.c, v3_8) > 50)) {
                if (!android.text.TextUtils.equals(this.c.getPackageName(), "com.baidu.searchbox")) {
                    v5_0 = com.baidu.android.pushservice.c.d.e(this.c, v3_8);
                }
                v2_2 = com.baidu.android.pushservice.c.d.f(this.c, v3_8);
            }
            int v4_0 = 1;
            if (!android.text.TextUtils.isEmpty(v5_0)) {
                java.util.Iterator v3_2 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v5_0));
                if (v3_2 != null) {
                    java.util.Iterator v3_3 = v3_2.iterator();
                    while (v3_3.hasNext()) {
                        com.baidu.android.pushservice.a.f v5_6 = ((com.baidu.android.pushservice.a.f) v3_3.next());
                        int v7_2 = p13.iterator();
                        while (v7_2.hasNext()) {
                            com.baidu.android.pushservice.a.f v8_3 = ((com.baidu.android.pushservice.a.f) v7_2.next());
                            if ((android.text.TextUtils.equals(v5_6.c, v8_3.c)) || (android.text.TextUtils.equals(v5_6.a, v8_3.a))) {
                                p13.remove(v8_3);
                                p13.add(v5_6);
                                int v7_3 = 1;
                            }
                            if (v7_3 == 0) {
                                p13.add(v5_6);
                            }
                        }
                        v7_3 = 0;
                    }
                }
            }
            if (!android.text.TextUtils.isEmpty(v2_2)) {
                com.baidu.android.pushservice.a.f v2_4 = this.h(com.baidu.android.pushservice.a.b.a(v2_2));
                java.util.Iterator v3_5 = p13.iterator();
                while (v3_5.hasNext()) {
                    com.baidu.android.pushservice.a.f v5_4 = ((com.baidu.android.pushservice.a.f) v3_5.next());
                    if (android.text.TextUtils.equals(v2_4.c, v5_4.c)) {
                        p13.remove(v5_4);
                        p13.add(v2_4);
                    }
                    if (v4_0 == 0) {
                        p13.add(v2_4);
                    }
                }
                v4_0 = 0;
            }
        }
        if (p13.size() > 0) {
            String v13_2 = this.b(this.a(p13));
            com.baidu.android.pushservice.c.c.c(this.c, v13_2);
            if (com.baidu.android.pushservice.i.l.D(this.c)) {
                com.baidu.android.pushservice.i.m.a(this.c, v0_2, p12, v13_2);
            }
        }
        return;
    }

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


    public static java.util.List o(android.content.Context p5)
    {
        java.util.List v0_1 = new java.util.ArrayList();
        try {
            java.util.ArrayList v1_2 = p5.getPackageManager();
        } catch (Exception) {
            return v0_1;
        }
        if (v1_2 != null) {
            v0_1 = v1_2.queryBroadcastReceivers(new android.content.Intent("com.baidu.android.pushservice.action.BIND_SYNC"), 576);
            java.util.ArrayList v1_1 = new java.util.ArrayList();
            java.util.Iterator v2_0 = v0_1.iterator();
            while (v2_0.hasNext()) {
                android.content.pm.ResolveInfo v3_2 = ((android.content.pm.ResolveInfo) v2_0.next());
                if (com.baidu.android.pushservice.i.l.z(p5, v3_2.activityInfo.packageName)) {
                    v1_1.add(v3_2);
                }
            }
            v0_1.removeAll(v1_1);
            return v0_1;
        } else {
            return v0_1;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_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/c/d;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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.c.d.a():

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_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/l;', 'p', '(Landroid/content/Context;)Ljava/util/List;'), ('Lcom/baidu/android/pushservice/i/l;', 'z', '(Landroid/content/Context; Ljava/lang/String;)Z'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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.l.p():


    public static java.util.List p(android.content.Context p5)
    {
        java.util.List v0_1 = new java.util.ArrayList();
        try {
            java.util.ArrayList v1_2 = p5.getPackageManager();
        } catch (Exception) {
            return v0_1;
        }
        if (v1_2 != null) {
            v0_1 = v1_2.queryBroadcastReceivers(new android.content.Intent("com.baidu.android.pushservice.action.BIND_SYNC"), 576);
            java.util.ArrayList v1_1 = new java.util.ArrayList();
            java.util.Iterator v2_0 = v0_1.iterator();
            while (v2_0.hasNext()) {
                android.content.pm.ResolveInfo v3_2 = ((android.content.pm.ResolveInfo) v2_0.next());
                if (!com.baidu.android.pushservice.i.l.z(p5, v3_2.activityInfo.packageName)) {
                    v1_1.add(v3_2);
                }
            }
            v0_1.removeAll(v1_1);
            return v0_1;
        } else {
            return v0_1;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_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/l;', 'p', '(Landroid/content/Context;)Ljava/util/List;'), ('Lcom/baidu/android/pushservice/i/l;', 'z', '(Landroid/content/Context; Ljava/lang/String;)Z'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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.l.p():


    public static java.util.List p(android.content.Context p5)
    {
        java.util.List v0_1 = new java.util.ArrayList();
        try {
            java.util.ArrayList v1_2 = p5.getPackageManager();
        } catch (Exception) {
            return v0_1;
        }
        if (v1_2 != null) {
            v0_1 = v1_2.queryBroadcastReceivers(new android.content.Intent("com.baidu.android.pushservice.action.BIND_SYNC"), 576);
            java.util.ArrayList v1_1 = new java.util.ArrayList();
            java.util.Iterator v2_0 = v0_1.iterator();
            while (v2_0.hasNext()) {
                android.content.pm.ResolveInfo v3_2 = ((android.content.pm.ResolveInfo) v2_0.next());
                if (!com.baidu.android.pushservice.i.l.z(p5, v3_2.activityInfo.packageName)) {
                    v1_1.add(v3_2);
                }
            }
            v0_1.removeAll(v1_1);
            return v0_1;
        } else {
            return v0_1;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_SINK']' [[('Lcom/baidu/android/pushservice/f;', 'b', '(Landroid/content/Context;)Z'), ('Lcom/baidu/android/pushservice/i/l;', 'v', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/l;', 'p', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/l;', 'o', '(Landroid/content/Context;)Ljava/util/List;'), ('Lcom/baidu/android/pushservice/i/l;', 'z', '(Landroid/content/Context; Ljava/lang/String;)Z'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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


    private boolean b(android.content.Context p6)
    {
        String v0_0 = com.baidu.android.pushservice.i.l.v(p6);
        android.content.Context v1_3 = p6.getPackageName();
        if (!v1_3.equals(v0_0)) {
            if (!com.baidu.android.pushservice.a.d(this.j)) {
                StringBuilder v2_1 = new StringBuilder();
                v2_1.append("Current push service : ");
                v2_1.append(v1_3);
                v2_1.append(" should stop!!!");
                v2_1.append(" highest priority service is: ");
                v2_1.append(v0_0);
                com.baidu.android.pushservice.f.a.a(com.baidu.android.pushservice.f.b, v2_1.toString(), this.j);
                return 1;
            } else {
                return 0;
            }
        } else {
            StringBuilder v2_3 = new StringBuilder();
            v2_3.append("Try use current push service, package name is: ");
            v2_3.append(v1_3);
            com.baidu.android.pushservice.f.a.a(com.baidu.android.pushservice.f.b, v2_3.toString(), this.j);
            if (com.baidu.android.pushservice.a.d(this.j)) {
                com.baidu.android.pushservice.a.c(p6, 0);
            }
            return 0;
        }
    }

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


    public static String v(android.content.Context p1)
    {
        return com.baidu.android.pushservice.i.l.p(p1, p1.getPackageName());
    }

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

Couldn't retrieve source code

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


    public static java.util.List o(android.content.Context p5)
    {
        java.util.List v0_1 = new java.util.ArrayList();
        try {
            java.util.ArrayList v1_2 = p5.getPackageManager();
        } catch (Exception) {
            return v0_1;
        }
        if (v1_2 != null) {
            v0_1 = v1_2.queryBroadcastReceivers(new android.content.Intent("com.baidu.android.pushservice.action.BIND_SYNC"), 576);
            java.util.ArrayList v1_1 = new java.util.ArrayList();
            java.util.Iterator v2_0 = v0_1.iterator();
            while (v2_0.hasNext()) {
                android.content.pm.ResolveInfo v3_2 = ((android.content.pm.ResolveInfo) v2_0.next());
                if (com.baidu.android.pushservice.i.l.z(p5, v3_2.activityInfo.packageName)) {
                    v1_1.add(v3_2);
                }
            }
            v0_1.removeAll(v1_1);
            return v0_1;
        } else {
            return v0_1;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_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/l;', 'p', '(Landroid/content/Context;)Ljava/util/List;'), ('Lcom/baidu/android/pushservice/i/l;', 'z', '(Landroid/content/Context; Ljava/lang/String;)Z'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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.l.p():


    public static java.util.List p(android.content.Context p5)
    {
        java.util.List v0_1 = new java.util.ArrayList();
        try {
            java.util.ArrayList v1_2 = p5.getPackageManager();
        } catch (Exception) {
            return v0_1;
        }
        if (v1_2 != null) {
            v0_1 = v1_2.queryBroadcastReceivers(new android.content.Intent("com.baidu.android.pushservice.action.BIND_SYNC"), 576);
            java.util.ArrayList v1_1 = new java.util.ArrayList();
            java.util.Iterator v2_0 = v0_1.iterator();
            while (v2_0.hasNext()) {
                android.content.pm.ResolveInfo v3_2 = ((android.content.pm.ResolveInfo) v2_0.next());
                if (!com.baidu.android.pushservice.i.l.z(p5, v3_2.activityInfo.packageName)) {
                    v1_1.add(v3_2);
                }
            }
            v0_1.removeAll(v1_1);
            return v0_1;
        } else {
            return v0_1;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_SINK']' [[('Lcom/baidu/android/pushservice/f;', 'p', '()Z'), ('Lcom/baidu/android/pushservice/i/l;', 'v', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/l;', 'p', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/l;', 'o', '(Landroid/content/Context;)Ljava/util/List;'), ('Lcom/baidu/android/pushservice/i/l;', 'z', '(Landroid/content/Context; Ljava/lang/String;)Z'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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


    private boolean p()
    {
        com.baidu.android.pushservice.message.a.c.a(this.j);
        String v0_3 = com.baidu.android.pushservice.i.g.a(this.j);
        android.content.Context v2_11 = new StringBuilder();
        v2_11.append("heartbeat networkConnected :");
        v2_11.append(v0_3);
        com.baidu.android.pushservice.f.a.a(com.baidu.android.pushservice.f.b, v2_11.toString(), this.j);
        boolean v1_1 = com.baidu.android.pushservice.i.l.v(this.j);
        if ((!com.baidu.android.pushservice.i.l.c(this.j)) && ((android.text.TextUtils.isEmpty(v1_1)) || ((this.j.getPackageName().equals(v1_1)) || (com.baidu.android.pushservice.a.d(this.j))))) {
            if (v0_3 != null) {
                String v0_2 = com.baidu.android.pushservice.f.a;
                if (v0_2 != null) {
                    if (v0_2.a()) {
                        com.baidu.android.pushservice.f.a.d();
                        if (!this.o) {
                            this.o = 1;
                            String v0_8 = new android.content.Intent("com.baidu.android.pushservice.action.METHOD");
                            v0_8.putExtra("method", "com.baidu.android.pushservice.action.SEND_APPSTAT");
                            this.c().a(v0_8);
                        }
                    } else {
                        if (com.baidu.android.pushservice.i.a(this.j).e()) {
                            this.r();
                        } else {
                            com.baidu.android.pushservice.f.a.c(com.baidu.android.pushservice.f.b, "Channel token is not available, start NETWORK REGISTER SERVICE .", this.j);
                            this.q();
                        }
                    }
                    String v0_14 = new StringBuilder();
                    v0_14.append("heartbeat PushConnection isConnected ");
                    v0_14.append(com.baidu.android.pushservice.f.a.a());
                    v0_14.append(" at Time ");
                    v0_14.append(System.currentTimeMillis());
                    com.baidu.android.pushservice.i.l.b(v0_14.toString(), this.j.getApplicationContext());
                }
                return 1;
            } else {
                String v0_16 = com.baidu.android.pushservice.f.a;
                if (v0_16 != null) {
                    v0_16.a(1);
                }
                return 1;
            }
        } else {
            this.m();
            return 0;
        }
    }

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


    public static String v(android.content.Context p1)
    {
        return com.baidu.android.pushservice.i.l.p(p1, p1.getPackageName());
    }

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

Couldn't retrieve source code

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


    public static java.util.List o(android.content.Context p5)
    {
        java.util.List v0_1 = new java.util.ArrayList();
        try {
            java.util.ArrayList v1_2 = p5.getPackageManager();
        } catch (Exception) {
            return v0_1;
        }
        if (v1_2 != null) {
            v0_1 = v1_2.queryBroadcastReceivers(new android.content.Intent("com.baidu.android.pushservice.action.BIND_SYNC"), 576);
            java.util.ArrayList v1_1 = new java.util.ArrayList();
            java.util.Iterator v2_0 = v0_1.iterator();
            while (v2_0.hasNext()) {
                android.content.pm.ResolveInfo v3_2 = ((android.content.pm.ResolveInfo) v2_0.next());
                if (com.baidu.android.pushservice.i.l.z(p5, v3_2.activityInfo.packageName)) {
                    v1_1.add(v3_2);
                }
            }
            v0_1.removeAll(v1_1);
            return v0_1;
        } else {
            return v0_1;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_SINK']' [[('Lcom/baidu/android/pushservice/i/l;', 'r', '(Landroid/content/Context;)Ljava/util/ArrayList;'), ('Lcom/baidu/android/pushservice/i/l;', 'o', '(Landroid/content/Context;)Ljava/util/List;'), ('Lcom/baidu/android/pushservice/i/l;', 'z', '(Landroid/content/Context; Ljava/lang/String;)Z'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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


    public static java.util.ArrayList r(android.content.Context p3)
    {
        java.util.Iterator v3_1;
        if (!com.baidu.android.pushservice.i.l.E(p3)) {
            v3_1 = com.baidu.android.pushservice.i.l.o(p3.getApplicationContext());
        } else {
            v3_1 = com.baidu.android.pushservice.i.l.p(p3.getApplicationContext());
        }
        java.util.ArrayList v0_2 = new java.util.ArrayList();
        java.util.Iterator v3_2 = v3_1.iterator();
        while (v3_2.hasNext()) {
            String v1_2 = ((android.content.pm.ResolveInfo) v3_2.next());
            if (!v0_2.contains(v1_2.activityInfo.packageName)) {
                v0_2.add(v1_2.activityInfo.packageName);
            }
        }
        return v0_2;
    }

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


    public static java.util.List o(android.content.Context p5)
    {
        java.util.List v0_1 = new java.util.ArrayList();
        try {
            java.util.ArrayList v1_2 = p5.getPackageManager();
        } catch (Exception) {
            return v0_1;
        }
        if (v1_2 != null) {
            v0_1 = v1_2.queryBroadcastReceivers(new android.content.Intent("com.baidu.android.pushservice.action.BIND_SYNC"), 576);
            java.util.ArrayList v1_1 = new java.util.ArrayList();
            java.util.Iterator v2_0 = v0_1.iterator();
            while (v2_0.hasNext()) {
                android.content.pm.ResolveInfo v3_2 = ((android.content.pm.ResolveInfo) v2_0.next());
                if (com.baidu.android.pushservice.i.l.z(p5, v3_2.activityInfo.packageName)) {
                    v1_1.add(v3_2);
                }
            }
            v0_1.removeAll(v1_1);
            return v0_1;
        } else {
            return v0_1;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_SINK']' [[('Lcom/baidu/android/pushservice/i/l;', 'u', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/l;', 'p', '(Landroid/content/Context;)Ljava/util/List;'), ('Lcom/baidu/android/pushservice/i/l;', 'z', '(Landroid/content/Context; Ljava/lang/String;)Z'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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.l.p():


    public static java.util.List p(android.content.Context p5)
    {
        java.util.List v0_1 = new java.util.ArrayList();
        try {
            java.util.ArrayList v1_2 = p5.getPackageManager();
        } catch (Exception) {
            return v0_1;
        }
        if (v1_2 != null) {
            v0_1 = v1_2.queryBroadcastReceivers(new android.content.Intent("com.baidu.android.pushservice.action.BIND_SYNC"), 576);
            java.util.ArrayList v1_1 = new java.util.ArrayList();
            java.util.Iterator v2_0 = v0_1.iterator();
            while (v2_0.hasNext()) {
                android.content.pm.ResolveInfo v3_2 = ((android.content.pm.ResolveInfo) v2_0.next());
                if (!com.baidu.android.pushservice.i.l.z(p5, v3_2.activityInfo.packageName)) {
                    v1_1.add(v3_2);
                }
            }
            v0_1.removeAll(v1_1);
            return v0_1;
        } else {
            return v0_1;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_SINK']' [[('Lcom/baidu/android/pushservice/g/k;', 'a', '(Landroid/content/Context; Lcom/baidu/android/pushservice/a/f; Lcom/baidu/android/pushservice/g/j; Lcom/baidu/android/pushservice/g/i;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'a', '(Lcom/baidu/android/pushservice/g/i; Landroid/content/Context; Ljava/lang/String;)Lcom/baidu/android/pushservice/g/i;'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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


    private static void a(android.content.Context p1, com.baidu.android.pushservice.a.f p2, com.baidu.android.pushservice.g.j p3, com.baidu.android.pushservice.g.i p4)
    {
        if (p2 != null) {
            p4.b(p2.c());
            p4 = com.baidu.android.pushservice.i.l.a(p4, p1, p2.c());
            p3.j = p2.c();
        }
        try {
            com.baidu.android.pushservice.g.o.a(p1, p3);
            com.baidu.android.pushservice.g.o.a(p1, p4);
        } catch (Exception) {
        }
        return;
    }

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


    public static com.baidu.android.pushservice.g.i a(com.baidu.android.pushservice.g.i p3, android.content.Context p4, String p5)
    {
        String v0_0 = com.baidu.android.pushservice.i.l.a(p4, p5);
        if (v0_0 != null) {
            p3.c(v0_0.applicationInfo.loadLabel(p4.getPackageManager()).toString());
            p3.e(v0_0.versionName);
            p3.a(v0_0.versionCode);
            p3.d(com.baidu.android.pushservice.i.l.n(p4, p5));
            p3.b(com.baidu.android.pushservice.i.l.m(p4, p5));
        }
        return p3;
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_SINK']' [[('Lcom/baidu/android/pushservice/g/k;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String; I [B I I)V'), ('Lcom/baidu/android/pushservice/a/b;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/a/b;'), ('Lcom/baidu/android/pushservice/a/b;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/a/b;', 'a', '()V'), ('Lcom/baidu/android/pushservice/a/b;', 'a', '(Ljava/lang/String; Ljava/util/ArrayList;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'o', '(Landroid/content/Context;)Ljava/util/List;'), ('Lcom/baidu/android/pushservice/i/l;', 'z', '(Landroid/content/Context; Ljava/lang/String;)Z'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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


    public static void a(android.content.Context p3, String p4, String p5, int p6, byte[] p7, int p8, int p9)
    {
        com.baidu.android.pushservice.g.j v0_1 = new com.baidu.android.pushservice.g.j();
        v0_1.d = "010101";
        v0_1.a = p5;
        v0_1.e = System.currentTimeMillis();
        v0_1.f = com.baidu.android.pushservice.g.a.b.b(p3);
        v0_1.b = new String(p7).length();
        v0_1.g = p8;
        v0_1.c = p6;
        v0_1.h = p4;
        com.baidu.android.pushservice.g.i v5_5 = new com.baidu.android.pushservice.g.i(p4);
        com.baidu.android.pushservice.a.f v4_1 = com.baidu.android.pushservice.a.b.a(p3).d(p4);
        if (v4_1 == null) {
            v5_5.b("NP");
            v5_5.c(p9);
        } else {
            int v6_10;
            v5_5.b(v4_1.c());
            if (!com.baidu.android.pushservice.i.l.D(p3, v4_1.c())) {
                v6_10 = com.baidu.android.pushservice.g.i.b;
            } else {
                if (!com.baidu.android.pushservice.i.l.c()) {
                    if (!com.baidu.android.pushservice.i.l.a()) {
                        if (!com.baidu.android.pushservice.i.l.b()) {
                            if (!com.baidu.android.pushservice.i.l.d()) {
                            } else {
                                v6_10 = com.baidu.android.pushservice.g.i.f;
                            }
                        } else {
                            v6_10 = com.baidu.android.pushservice.g.i.e;
                        }
                    } else {
                        v6_10 = com.baidu.android.pushservice.g.i.d;
                    }
                } else {
                    v6_10 = com.baidu.android.pushservice.g.i.c;
                }
            }
            v5_5.c(v6_10);
        }
        com.baidu.android.pushservice.g.k.a(p3, v4_1, v0_1, v5_5);
        return;
    }

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


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

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


    private b(android.content.Context p4)
    {
        this.a = new java.util.ArrayList();
        this.d = new java.util.HashMap();
        this.c = p4.getApplicationContext();
        String v0_1 = com.baidu.android.pushservice.c.c.e(p4);
        if ((android.text.TextUtils.isEmpty(v0_1)) && (com.baidu.android.pushservice.i.l.D(this.c))) {
            String v0_4 = new StringBuilder();
            v0_4.append(this.c.getPackageName());
            v0_4.append(".push_sync");
            v0_1 = com.baidu.android.pushservice.i.m.a(this.c, v0_4.toString(), "r_v2");
        }
        if (!android.text.TextUtils.isEmpty(v0_1)) {
            String v0_7 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v0_1));
        }
        try {
            int v1_11 = p4.getPackageManager().getPackageInfo(p4.getPackageName(), 0).versionCode;
        } catch (Exception) {
        }
        if (com.baidu.android.pushservice.i.i.b(this.c, "com.baidu.push.sync.vn", -1) < v1_11) {
            this.a();
            com.baidu.android.pushservice.i.i.a(this.c, "com.baidu.push.sync.vn", v1_11);
        }
        return;
    }

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


    private void a()
    {
        this.a("r_v2", this.a);
        return;
    }

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


    private void a(String p12, java.util.ArrayList p13)
    {
        android.content.Context v1_3;
        String v0_1 = new StringBuilder();
        v0_1.append(this.c.getPackageName());
        v0_1.append(".push_sync");
        String v0_2 = v0_1.toString();
        if (!com.baidu.android.pushservice.i.l.E(this.c)) {
            v1_3 = com.baidu.android.pushservice.i.l.o(this.c);
        } else {
            v1_3 = com.baidu.android.pushservice.i.l.p(this.c);
        }
        android.content.Context v1_6 = v1_3.iterator();
        while (v1_6.hasNext()) {
            com.baidu.android.pushservice.a.f v2_8 = ((android.content.pm.ResolveInfo) v1_6.next());
            try {
                com.baidu.android.pushservice.a.f v2_2;
                java.util.Iterator v3_8 = v2_8.activityInfo.packageName;
                com.baidu.android.pushservice.a.f v5_0 = 0;
            } catch (com.baidu.android.pushservice.a.f v2_5) {
                com.baidu.android.pushservice.g.o.a(this.c, v2_5);
            }
            if (!com.baidu.android.pushservice.i.l.D(this.c)) {
                v2_2 = 0;
            } else {
                int v4_4 = com.baidu.android.pushservice.i.l.v(this.c, v2_8.activityInfo.packageName);
                if (v4_4 == 0) {
                } else {
                    com.baidu.android.pushservice.a.f v5_8 = new StringBuilder();
                    v5_8.append(v2_8.activityInfo.packageName);
                    v5_8.append(".push_sync");
                    v5_0 = com.baidu.android.pushservice.i.m.a(v4_4, v5_8.toString(), p12);
                    int v6_6 = new StringBuilder();
                    v6_6.append(v2_8.activityInfo.packageName);
                    v6_6.append(".self_push_sync");
                    v2_2 = com.baidu.android.pushservice.i.m.a(v4_4, v6_6.toString(), "bindinfo");
                }
            }
            if (((android.text.TextUtils.isEmpty(v5_0)) || (android.text.TextUtils.isEmpty(v2_2))) && (com.baidu.android.pushservice.i.l.m(this.c, v3_8) > 50)) {
                if (!android.text.TextUtils.equals(this.c.getPackageName(), "com.baidu.searchbox")) {
                    v5_0 = com.baidu.android.pushservice.c.d.e(this.c, v3_8);
                }
                v2_2 = com.baidu.android.pushservice.c.d.f(this.c, v3_8);
            }
            int v4_0 = 1;
            if (!android.text.TextUtils.isEmpty(v5_0)) {
                java.util.Iterator v3_2 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v5_0));
                if (v3_2 != null) {
                    java.util.Iterator v3_3 = v3_2.iterator();
                    while (v3_3.hasNext()) {
                        com.baidu.android.pushservice.a.f v5_6 = ((com.baidu.android.pushservice.a.f) v3_3.next());
                        int v7_2 = p13.iterator();
                        while (v7_2.hasNext()) {
                            com.baidu.android.pushservice.a.f v8_3 = ((com.baidu.android.pushservice.a.f) v7_2.next());
                            if ((android.text.TextUtils.equals(v5_6.c, v8_3.c)) || (android.text.TextUtils.equals(v5_6.a, v8_3.a))) {
                                p13.remove(v8_3);
                                p13.add(v5_6);
                                int v7_3 = 1;
                            }
                            if (v7_3 == 0) {
                                p13.add(v5_6);
                            }
                        }
                        v7_3 = 0;
                    }
                }
            }
            if (!android.text.TextUtils.isEmpty(v2_2)) {
                com.baidu.android.pushservice.a.f v2_4 = this.h(com.baidu.android.pushservice.a.b.a(v2_2));
                java.util.Iterator v3_5 = p13.iterator();
                while (v3_5.hasNext()) {
                    com.baidu.android.pushservice.a.f v5_4 = ((com.baidu.android.pushservice.a.f) v3_5.next());
                    if (android.text.TextUtils.equals(v2_4.c, v5_4.c)) {
                        p13.remove(v5_4);
                        p13.add(v2_4);
                    }
                    if (v4_0 == 0) {
                        p13.add(v2_4);
                    }
                }
                v4_0 = 0;
            }
        }
        if (p13.size() > 0) {
            String v13_2 = this.b(this.a(p13));
            com.baidu.android.pushservice.c.c.c(this.c, v13_2);
            if (com.baidu.android.pushservice.i.l.D(this.c)) {
                com.baidu.android.pushservice.i.m.a(this.c, v0_2, p12, v13_2);
            }
        }
        return;
    }

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


    public static java.util.List o(android.content.Context p5)
    {
        java.util.List v0_1 = new java.util.ArrayList();
        try {
            java.util.ArrayList v1_2 = p5.getPackageManager();
        } catch (Exception) {
            return v0_1;
        }
        if (v1_2 != null) {
            v0_1 = v1_2.queryBroadcastReceivers(new android.content.Intent("com.baidu.android.pushservice.action.BIND_SYNC"), 576);
            java.util.ArrayList v1_1 = new java.util.ArrayList();
            java.util.Iterator v2_0 = v0_1.iterator();
            while (v2_0.hasNext()) {
                android.content.pm.ResolveInfo v3_2 = ((android.content.pm.ResolveInfo) v2_0.next());
                if (com.baidu.android.pushservice.i.l.z(p5, v3_2.activityInfo.packageName)) {
                    v1_1.add(v3_2);
                }
            }
            v0_1.removeAll(v1_1);
            return v0_1;
        } else {
            return v0_1;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_SINK']' [[('Lcom/baidu/android/pushservice/g/k;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String; Ljava/lang/String;)V'), ('Lcom/baidu/android/pushservice/a/b;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/a/b;'), ('Lcom/baidu/android/pushservice/a/b;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/a/b;', 'a', '()V'), ('Lcom/baidu/android/pushservice/a/b;', 'a', '(Ljava/lang/String; Ljava/util/ArrayList;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'o', '(Landroid/content/Context;)Ljava/util/List;'), ('Lcom/baidu/android/pushservice/i/l;', 'z', '(Landroid/content/Context; Ljava/lang/String;)Z'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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

Couldn't retrieve source code

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


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

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


    private b(android.content.Context p4)
    {
        this.a = new java.util.ArrayList();
        this.d = new java.util.HashMap();
        this.c = p4.getApplicationContext();
        String v0_1 = com.baidu.android.pushservice.c.c.e(p4);
        if ((android.text.TextUtils.isEmpty(v0_1)) && (com.baidu.android.pushservice.i.l.D(this.c))) {
            String v0_4 = new StringBuilder();
            v0_4.append(this.c.getPackageName());
            v0_4.append(".push_sync");
            v0_1 = com.baidu.android.pushservice.i.m.a(this.c, v0_4.toString(), "r_v2");
        }
        if (!android.text.TextUtils.isEmpty(v0_1)) {
            String v0_7 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v0_1));
        }
        try {
            int v1_11 = p4.getPackageManager().getPackageInfo(p4.getPackageName(), 0).versionCode;
        } catch (Exception) {
        }
        if (com.baidu.android.pushservice.i.i.b(this.c, "com.baidu.push.sync.vn", -1) < v1_11) {
            this.a();
            com.baidu.android.pushservice.i.i.a(this.c, "com.baidu.push.sync.vn", v1_11);
        }
        return;
    }

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


    private void a()
    {
        this.a("r_v2", this.a);
        return;
    }

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


    private void a(String p12, java.util.ArrayList p13)
    {
        android.content.Context v1_3;
        String v0_1 = new StringBuilder();
        v0_1.append(this.c.getPackageName());
        v0_1.append(".push_sync");
        String v0_2 = v0_1.toString();
        if (!com.baidu.android.pushservice.i.l.E(this.c)) {
            v1_3 = com.baidu.android.pushservice.i.l.o(this.c);
        } else {
            v1_3 = com.baidu.android.pushservice.i.l.p(this.c);
        }
        android.content.Context v1_6 = v1_3.iterator();
        while (v1_6.hasNext()) {
            com.baidu.android.pushservice.a.f v2_8 = ((android.content.pm.ResolveInfo) v1_6.next());
            try {
                com.baidu.android.pushservice.a.f v2_2;
                java.util.Iterator v3_8 = v2_8.activityInfo.packageName;
                com.baidu.android.pushservice.a.f v5_0 = 0;
            } catch (com.baidu.android.pushservice.a.f v2_5) {
                com.baidu.android.pushservice.g.o.a(this.c, v2_5);
            }
            if (!com.baidu.android.pushservice.i.l.D(this.c)) {
                v2_2 = 0;
            } else {
                int v4_4 = com.baidu.android.pushservice.i.l.v(this.c, v2_8.activityInfo.packageName);
                if (v4_4 == 0) {
                } else {
                    com.baidu.android.pushservice.a.f v5_8 = new StringBuilder();
                    v5_8.append(v2_8.activityInfo.packageName);
                    v5_8.append(".push_sync");
                    v5_0 = com.baidu.android.pushservice.i.m.a(v4_4, v5_8.toString(), p12);
                    int v6_6 = new StringBuilder();
                    v6_6.append(v2_8.activityInfo.packageName);
                    v6_6.append(".self_push_sync");
                    v2_2 = com.baidu.android.pushservice.i.m.a(v4_4, v6_6.toString(), "bindinfo");
                }
            }
            if (((android.text.TextUtils.isEmpty(v5_0)) || (android.text.TextUtils.isEmpty(v2_2))) && (com.baidu.android.pushservice.i.l.m(this.c, v3_8) > 50)) {
                if (!android.text.TextUtils.equals(this.c.getPackageName(), "com.baidu.searchbox")) {
                    v5_0 = com.baidu.android.pushservice.c.d.e(this.c, v3_8);
                }
                v2_2 = com.baidu.android.pushservice.c.d.f(this.c, v3_8);
            }
            int v4_0 = 1;
            if (!android.text.TextUtils.isEmpty(v5_0)) {
                java.util.Iterator v3_2 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v5_0));
                if (v3_2 != null) {
                    java.util.Iterator v3_3 = v3_2.iterator();
                    while (v3_3.hasNext()) {
                        com.baidu.android.pushservice.a.f v5_6 = ((com.baidu.android.pushservice.a.f) v3_3.next());
                        int v7_2 = p13.iterator();
                        while (v7_2.hasNext()) {
                            com.baidu.android.pushservice.a.f v8_3 = ((com.baidu.android.pushservice.a.f) v7_2.next());
                            if ((android.text.TextUtils.equals(v5_6.c, v8_3.c)) || (android.text.TextUtils.equals(v5_6.a, v8_3.a))) {
                                p13.remove(v8_3);
                                p13.add(v5_6);
                                int v7_3 = 1;
                            }
                            if (v7_3 == 0) {
                                p13.add(v5_6);
                            }
                        }
                        v7_3 = 0;
                    }
                }
            }
            if (!android.text.TextUtils.isEmpty(v2_2)) {
                com.baidu.android.pushservice.a.f v2_4 = this.h(com.baidu.android.pushservice.a.b.a(v2_2));
                java.util.Iterator v3_5 = p13.iterator();
                while (v3_5.hasNext()) {
                    com.baidu.android.pushservice.a.f v5_4 = ((com.baidu.android.pushservice.a.f) v3_5.next());
                    if (android.text.TextUtils.equals(v2_4.c, v5_4.c)) {
                        p13.remove(v5_4);
                        p13.add(v2_4);
                    }
                    if (v4_0 == 0) {
                        p13.add(v2_4);
                    }
                }
                v4_0 = 0;
            }
        }
        if (p13.size() > 0) {
            String v13_2 = this.b(this.a(p13));
            com.baidu.android.pushservice.c.c.c(this.c, v13_2);
            if (com.baidu.android.pushservice.i.l.D(this.c)) {
                com.baidu.android.pushservice.i.m.a(this.c, v0_2, p12, v13_2);
            }
        }
        return;
    }

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


    public static java.util.List o(android.content.Context p5)
    {
        java.util.List v0_1 = new java.util.ArrayList();
        try {
            java.util.ArrayList v1_2 = p5.getPackageManager();
        } catch (Exception) {
            return v0_1;
        }
        if (v1_2 != null) {
            v0_1 = v1_2.queryBroadcastReceivers(new android.content.Intent("com.baidu.android.pushservice.action.BIND_SYNC"), 576);
            java.util.ArrayList v1_1 = new java.util.ArrayList();
            java.util.Iterator v2_0 = v0_1.iterator();
            while (v2_0.hasNext()) {
                android.content.pm.ResolveInfo v3_2 = ((android.content.pm.ResolveInfo) v2_0.next());
                if (com.baidu.android.pushservice.i.l.z(p5, v3_2.activityInfo.packageName)) {
                    v1_1.add(v3_2);
                }
            }
            v0_1.removeAll(v1_1);
            return v0_1;
        } else {
            return v0_1;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_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/c/d;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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.c.d.a():

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_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/c/d;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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.c.d.a():

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_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/c/d;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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.c.d.a():

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_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/c/d;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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.c.d.a():

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_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/c/d;', 'a', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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.c.d.a():

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_SINK']' [[('Lcom/baidu/android/pushservice/h;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/a/b;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/a/b;'), ('Lcom/baidu/android/pushservice/a/b;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/a/b;', 'a', '()V'), ('Lcom/baidu/android/pushservice/a/b;', 'a', '(Ljava/lang/String; Ljava/util/ArrayList;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'o', '(Landroid/content/Context;)Ljava/util/List;'), ('Lcom/baidu/android/pushservice/i/l;', 'z', '(Landroid/content/Context; Ljava/lang/String;)Z'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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.a.b.a():


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

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


    private b(android.content.Context p4)
    {
        this.a = new java.util.ArrayList();
        this.d = new java.util.HashMap();
        this.c = p4.getApplicationContext();
        String v0_1 = com.baidu.android.pushservice.c.c.e(p4);
        if ((android.text.TextUtils.isEmpty(v0_1)) && (com.baidu.android.pushservice.i.l.D(this.c))) {
            String v0_4 = new StringBuilder();
            v0_4.append(this.c.getPackageName());
            v0_4.append(".push_sync");
            v0_1 = com.baidu.android.pushservice.i.m.a(this.c, v0_4.toString(), "r_v2");
        }
        if (!android.text.TextUtils.isEmpty(v0_1)) {
            String v0_7 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v0_1));
        }
        try {
            int v1_11 = p4.getPackageManager().getPackageInfo(p4.getPackageName(), 0).versionCode;
        } catch (Exception) {
        }
        if (com.baidu.android.pushservice.i.i.b(this.c, "com.baidu.push.sync.vn", -1) < v1_11) {
            this.a();
            com.baidu.android.pushservice.i.i.a(this.c, "com.baidu.push.sync.vn", v1_11);
        }
        return;
    }

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


    private void a()
    {
        this.a("r_v2", this.a);
        return;
    }

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


    private void a(String p12, java.util.ArrayList p13)
    {
        android.content.Context v1_3;
        String v0_1 = new StringBuilder();
        v0_1.append(this.c.getPackageName());
        v0_1.append(".push_sync");
        String v0_2 = v0_1.toString();
        if (!com.baidu.android.pushservice.i.l.E(this.c)) {
            v1_3 = com.baidu.android.pushservice.i.l.o(this.c);
        } else {
            v1_3 = com.baidu.android.pushservice.i.l.p(this.c);
        }
        android.content.Context v1_6 = v1_3.iterator();
        while (v1_6.hasNext()) {
            com.baidu.android.pushservice.a.f v2_8 = ((android.content.pm.ResolveInfo) v1_6.next());
            try {
                com.baidu.android.pushservice.a.f v2_2;
                java.util.Iterator v3_8 = v2_8.activityInfo.packageName;
                com.baidu.android.pushservice.a.f v5_0 = 0;
            } catch (com.baidu.android.pushservice.a.f v2_5) {
                com.baidu.android.pushservice.g.o.a(this.c, v2_5);
            }
            if (!com.baidu.android.pushservice.i.l.D(this.c)) {
                v2_2 = 0;
            } else {
                int v4_4 = com.baidu.android.pushservice.i.l.v(this.c, v2_8.activityInfo.packageName);
                if (v4_4 == 0) {
                } else {
                    com.baidu.android.pushservice.a.f v5_8 = new StringBuilder();
                    v5_8.append(v2_8.activityInfo.packageName);
                    v5_8.append(".push_sync");
                    v5_0 = com.baidu.android.pushservice.i.m.a(v4_4, v5_8.toString(), p12);
                    int v6_6 = new StringBuilder();
                    v6_6.append(v2_8.activityInfo.packageName);
                    v6_6.append(".self_push_sync");
                    v2_2 = com.baidu.android.pushservice.i.m.a(v4_4, v6_6.toString(), "bindinfo");
                }
            }
            if (((android.text.TextUtils.isEmpty(v5_0)) || (android.text.TextUtils.isEmpty(v2_2))) && (com.baidu.android.pushservice.i.l.m(this.c, v3_8) > 50)) {
                if (!android.text.TextUtils.equals(this.c.getPackageName(), "com.baidu.searchbox")) {
                    v5_0 = com.baidu.android.pushservice.c.d.e(this.c, v3_8);
                }
                v2_2 = com.baidu.android.pushservice.c.d.f(this.c, v3_8);
            }
            int v4_0 = 1;
            if (!android.text.TextUtils.isEmpty(v5_0)) {
                java.util.Iterator v3_2 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v5_0));
                if (v3_2 != null) {
                    java.util.Iterator v3_3 = v3_2.iterator();
                    while (v3_3.hasNext()) {
                        com.baidu.android.pushservice.a.f v5_6 = ((com.baidu.android.pushservice.a.f) v3_3.next());
                        int v7_2 = p13.iterator();
                        while (v7_2.hasNext()) {
                            com.baidu.android.pushservice.a.f v8_3 = ((com.baidu.android.pushservice.a.f) v7_2.next());
                            if ((android.text.TextUtils.equals(v5_6.c, v8_3.c)) || (android.text.TextUtils.equals(v5_6.a, v8_3.a))) {
                                p13.remove(v8_3);
                                p13.add(v5_6);
                                int v7_3 = 1;
                            }
                            if (v7_3 == 0) {
                                p13.add(v5_6);
                            }
                        }
                        v7_3 = 0;
                    }
                }
            }
            if (!android.text.TextUtils.isEmpty(v2_2)) {
                com.baidu.android.pushservice.a.f v2_4 = this.h(com.baidu.android.pushservice.a.b.a(v2_2));
                java.util.Iterator v3_5 = p13.iterator();
                while (v3_5.hasNext()) {
                    com.baidu.android.pushservice.a.f v5_4 = ((com.baidu.android.pushservice.a.f) v3_5.next());
                    if (android.text.TextUtils.equals(v2_4.c, v5_4.c)) {
                        p13.remove(v5_4);
                        p13.add(v2_4);
                    }
                    if (v4_0 == 0) {
                        p13.add(v2_4);
                    }
                }
                v4_0 = 0;
            }
        }
        if (p13.size() > 0) {
            String v13_2 = this.b(this.a(p13));
            com.baidu.android.pushservice.c.c.c(this.c, v13_2);
            if (com.baidu.android.pushservice.i.l.D(this.c)) {
                com.baidu.android.pushservice.i.m.a(this.c, v0_2, p12, v13_2);
            }
        }
        return;
    }

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


    public static java.util.List o(android.content.Context p5)
    {
        java.util.List v0_1 = new java.util.ArrayList();
        try {
            java.util.ArrayList v1_2 = p5.getPackageManager();
        } catch (Exception) {
            return v0_1;
        }
        if (v1_2 != null) {
            v0_1 = v1_2.queryBroadcastReceivers(new android.content.Intent("com.baidu.android.pushservice.action.BIND_SYNC"), 576);
            java.util.ArrayList v1_1 = new java.util.ArrayList();
            java.util.Iterator v2_0 = v0_1.iterator();
            while (v2_0.hasNext()) {
                android.content.pm.ResolveInfo v3_2 = ((android.content.pm.ResolveInfo) v2_0.next());
                if (com.baidu.android.pushservice.i.l.z(p5, v3_2.activityInfo.packageName)) {
                    v1_1.add(v3_2);
                }
            }
            v0_1.removeAll(v1_1);
            return v0_1;
        } else {
            return v0_1;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_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/a/b;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/a/b;'), ('Lcom/baidu/android/pushservice/a/b;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/a/b;', 'a', '()V'), ('Lcom/baidu/android/pushservice/a/b;', 'a', '(Ljava/lang/String; Ljava/util/ArrayList;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'o', '(Landroid/content/Context;)Ljava/util/List;'), ('Lcom/baidu/android/pushservice/i/l;', 'z', '(Landroid/content/Context; Ljava/lang/String;)Z'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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.a.b.a():


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

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


    private b(android.content.Context p4)
    {
        this.a = new java.util.ArrayList();
        this.d = new java.util.HashMap();
        this.c = p4.getApplicationContext();
        String v0_1 = com.baidu.android.pushservice.c.c.e(p4);
        if ((android.text.TextUtils.isEmpty(v0_1)) && (com.baidu.android.pushservice.i.l.D(this.c))) {
            String v0_4 = new StringBuilder();
            v0_4.append(this.c.getPackageName());
            v0_4.append(".push_sync");
            v0_1 = com.baidu.android.pushservice.i.m.a(this.c, v0_4.toString(), "r_v2");
        }
        if (!android.text.TextUtils.isEmpty(v0_1)) {
            String v0_7 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v0_1));
        }
        try {
            int v1_11 = p4.getPackageManager().getPackageInfo(p4.getPackageName(), 0).versionCode;
        } catch (Exception) {
        }
        if (com.baidu.android.pushservice.i.i.b(this.c, "com.baidu.push.sync.vn", -1) < v1_11) {
            this.a();
            com.baidu.android.pushservice.i.i.a(this.c, "com.baidu.push.sync.vn", v1_11);
        }
        return;
    }

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


    private void a()
    {
        this.a("r_v2", this.a);
        return;
    }

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


    private void a(String p12, java.util.ArrayList p13)
    {
        android.content.Context v1_3;
        String v0_1 = new StringBuilder();
        v0_1.append(this.c.getPackageName());
        v0_1.append(".push_sync");
        String v0_2 = v0_1.toString();
        if (!com.baidu.android.pushservice.i.l.E(this.c)) {
            v1_3 = com.baidu.android.pushservice.i.l.o(this.c);
        } else {
            v1_3 = com.baidu.android.pushservice.i.l.p(this.c);
        }
        android.content.Context v1_6 = v1_3.iterator();
        while (v1_6.hasNext()) {
            com.baidu.android.pushservice.a.f v2_8 = ((android.content.pm.ResolveInfo) v1_6.next());
            try {
                com.baidu.android.pushservice.a.f v2_2;
                java.util.Iterator v3_8 = v2_8.activityInfo.packageName;
                com.baidu.android.pushservice.a.f v5_0 = 0;
            } catch (com.baidu.android.pushservice.a.f v2_5) {
                com.baidu.android.pushservice.g.o.a(this.c, v2_5);
            }
            if (!com.baidu.android.pushservice.i.l.D(this.c)) {
                v2_2 = 0;
            } else {
                int v4_4 = com.baidu.android.pushservice.i.l.v(this.c, v2_8.activityInfo.packageName);
                if (v4_4 == 0) {
                } else {
                    com.baidu.android.pushservice.a.f v5_8 = new StringBuilder();
                    v5_8.append(v2_8.activityInfo.packageName);
                    v5_8.append(".push_sync");
                    v5_0 = com.baidu.android.pushservice.i.m.a(v4_4, v5_8.toString(), p12);
                    int v6_6 = new StringBuilder();
                    v6_6.append(v2_8.activityInfo.packageName);
                    v6_6.append(".self_push_sync");
                    v2_2 = com.baidu.android.pushservice.i.m.a(v4_4, v6_6.toString(), "bindinfo");
                }
            }
            if (((android.text.TextUtils.isEmpty(v5_0)) || (android.text.TextUtils.isEmpty(v2_2))) && (com.baidu.android.pushservice.i.l.m(this.c, v3_8) > 50)) {
                if (!android.text.TextUtils.equals(this.c.getPackageName(), "com.baidu.searchbox")) {
                    v5_0 = com.baidu.android.pushservice.c.d.e(this.c, v3_8);
                }
                v2_2 = com.baidu.android.pushservice.c.d.f(this.c, v3_8);
            }
            int v4_0 = 1;
            if (!android.text.TextUtils.isEmpty(v5_0)) {
                java.util.Iterator v3_2 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v5_0));
                if (v3_2 != null) {
                    java.util.Iterator v3_3 = v3_2.iterator();
                    while (v3_3.hasNext()) {
                        com.baidu.android.pushservice.a.f v5_6 = ((com.baidu.android.pushservice.a.f) v3_3.next());
                        int v7_2 = p13.iterator();
                        while (v7_2.hasNext()) {
                            com.baidu.android.pushservice.a.f v8_3 = ((com.baidu.android.pushservice.a.f) v7_2.next());
                            if ((android.text.TextUtils.equals(v5_6.c, v8_3.c)) || (android.text.TextUtils.equals(v5_6.a, v8_3.a))) {
                                p13.remove(v8_3);
                                p13.add(v5_6);
                                int v7_3 = 1;
                            }
                            if (v7_3 == 0) {
                                p13.add(v5_6);
                            }
                        }
                        v7_3 = 0;
                    }
                }
            }
            if (!android.text.TextUtils.isEmpty(v2_2)) {
                com.baidu.android.pushservice.a.f v2_4 = this.h(com.baidu.android.pushservice.a.b.a(v2_2));
                java.util.Iterator v3_5 = p13.iterator();
                while (v3_5.hasNext()) {
                    com.baidu.android.pushservice.a.f v5_4 = ((com.baidu.android.pushservice.a.f) v3_5.next());
                    if (android.text.TextUtils.equals(v2_4.c, v5_4.c)) {
                        p13.remove(v5_4);
                        p13.add(v2_4);
                    }
                    if (v4_0 == 0) {
                        p13.add(v2_4);
                    }
                }
                v4_0 = 0;
            }
        }
        if (p13.size() > 0) {
            String v13_2 = this.b(this.a(p13));
            com.baidu.android.pushservice.c.c.c(this.c, v13_2);
            if (com.baidu.android.pushservice.i.l.D(this.c)) {
                com.baidu.android.pushservice.i.m.a(this.c, v0_2, p12, v13_2);
            }
        }
        return;
    }

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


    public static java.util.List o(android.content.Context p5)
    {
        java.util.List v0_1 = new java.util.ArrayList();
        try {
            java.util.ArrayList v1_2 = p5.getPackageManager();
        } catch (Exception) {
            return v0_1;
        }
        if (v1_2 != null) {
            v0_1 = v1_2.queryBroadcastReceivers(new android.content.Intent("com.baidu.android.pushservice.action.BIND_SYNC"), 576);
            java.util.ArrayList v1_1 = new java.util.ArrayList();
            java.util.Iterator v2_0 = v0_1.iterator();
            while (v2_0.hasNext()) {
                android.content.pm.ResolveInfo v3_2 = ((android.content.pm.ResolveInfo) v2_0.next());
                if (com.baidu.android.pushservice.i.l.z(p5, v3_2.activityInfo.packageName)) {
                    v1_1.add(v3_2);
                }
            }
            v0_1.removeAll(v1_1);
            return v0_1;
        } else {
            return v0_1;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_SINK']' [[('Lcom/baidu/android/pushservice/h;', 'b', '(Landroid/content/Intent;)V'), ('Lcom/baidu/android/pushservice/a/b;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/a/b;'), ('Lcom/baidu/android/pushservice/a/b;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/a/b;', 'a', '()V'), ('Lcom/baidu/android/pushservice/a/b;', 'a', '(Ljava/lang/String; Ljava/util/ArrayList;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'o', '(Landroid/content/Context;)Ljava/util/List;'), ('Lcom/baidu/android/pushservice/i/l;', 'z', '(Landroid/content/Context; Ljava/lang/String;)Z'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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


    private void b(android.content.Intent p10)
    {
        com.baidu.android.pushservice.d.l v6_1 = new com.baidu.android.pushservice.d.l(p10);
        int v7 = p10.getIntExtra("bind_status", 0);
        int v8 = p10.getIntExtra("push_sdk_version", 0);
        com.baidu.android.pushservice.f.a.a("RegistrationService", "<<< METHOD_BIND ", this.a);
        android.content.Context v0_4 = new StringBuilder();
        v0_4.append("RegistrationService#handleBind#METHOD_BIND request arrive at ");
        v0_4.append(System.currentTimeMillis());
        com.baidu.android.pushservice.i.l.b(v0_4.toString(), this.a);
        android.content.Context v0_9 = com.baidu.android.pushservice.a.b.a(this.a).f(v6_1.e);
        if ((android.text.TextUtils.isEmpty(v6_1.i)) || ((!com.baidu.android.pushservice.a.b.a(this.a).b(v6_1.e, v6_1.i)) || (android.text.TextUtils.isEmpty(v0_9)))) {
            String v10_9;
            android.content.Context v0_18;
            android.content.Context v0_11 = new StringBuilder();
            v0_11.append("RegistrationService#handleBind#METHOD_BIND request start at ");
            v0_11.append(System.currentTimeMillis());
            com.baidu.android.pushservice.i.l.b(v0_11.toString(), this.a);
            if (!p10.hasExtra("bind_notify_status")) {
                v10_9 = this.a(new com.baidu.android.pushservice.d.f(v6_1, this.a, v7, v8));
                v0_18 = new StringBuilder();
            } else {
                String v10_10 = new com.baidu.android.pushservice.d.f;
                v10_10(v6_1, this.a, v7, v8, p10.getStringExtra("bind_notify_status"));
                v10_9 = this.a(v10_10);
                v0_18 = new StringBuilder();
            }
            v0_18.append("submitApiProcessor for bind=");
            v0_18.append(v6_1.toString());
            com.baidu.android.pushservice.i.l.b(v0_18.toString(), this.a);
            if (v10_9 == null) {
                new Thread(new com.baidu.android.pushservice.d.f(v6_1, this.a, v7, v8)).start();
                String v10_14 = new StringBuilder();
                v10_14.append("submitApiProcessor failed bind ");
                v10_14.append(v6_1.toString());
                com.baidu.android.pushservice.i.l.b(v10_14.toString(), this.a);
            }
            return;
        } else {
            String v10_3 = new android.content.Intent();
            v10_3.putExtra("method", v6_1.a);
            v10_3.putExtra("error_msg", 0);
            v10_3.putExtra("content", v0_9.getBytes());
            v10_3.putExtra("bind_status", v7);
            com.baidu.android.pushservice.i.l.b(this.a, v10_3, "com.baidu.android.pushservice.action.RECEIVE", v6_1.e);
            String v10_5 = new StringBuilder();
            v10_5.append("RegistrationService#handleBind#returned by cacheContent = ");
            v10_5.append(v0_9);
            com.baidu.android.pushservice.i.l.b(v10_5.toString(), this.a);
            return;
        }
    }

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


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

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


    private b(android.content.Context p4)
    {
        this.a = new java.util.ArrayList();
        this.d = new java.util.HashMap();
        this.c = p4.getApplicationContext();
        String v0_1 = com.baidu.android.pushservice.c.c.e(p4);
        if ((android.text.TextUtils.isEmpty(v0_1)) && (com.baidu.android.pushservice.i.l.D(this.c))) {
            String v0_4 = new StringBuilder();
            v0_4.append(this.c.getPackageName());
            v0_4.append(".push_sync");
            v0_1 = com.baidu.android.pushservice.i.m.a(this.c, v0_4.toString(), "r_v2");
        }
        if (!android.text.TextUtils.isEmpty(v0_1)) {
            String v0_7 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v0_1));
        }
        try {
            int v1_11 = p4.getPackageManager().getPackageInfo(p4.getPackageName(), 0).versionCode;
        } catch (Exception) {
        }
        if (com.baidu.android.pushservice.i.i.b(this.c, "com.baidu.push.sync.vn", -1) < v1_11) {
            this.a();
            com.baidu.android.pushservice.i.i.a(this.c, "com.baidu.push.sync.vn", v1_11);
        }
        return;
    }

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


    private void a()
    {
        this.a("r_v2", this.a);
        return;
    }

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


    private void a(String p12, java.util.ArrayList p13)
    {
        android.content.Context v1_3;
        String v0_1 = new StringBuilder();
        v0_1.append(this.c.getPackageName());
        v0_1.append(".push_sync");
        String v0_2 = v0_1.toString();
        if (!com.baidu.android.pushservice.i.l.E(this.c)) {
            v1_3 = com.baidu.android.pushservice.i.l.o(this.c);
        } else {
            v1_3 = com.baidu.android.pushservice.i.l.p(this.c);
        }
        android.content.Context v1_6 = v1_3.iterator();
        while (v1_6.hasNext()) {
            com.baidu.android.pushservice.a.f v2_8 = ((android.content.pm.ResolveInfo) v1_6.next());
            try {
                com.baidu.android.pushservice.a.f v2_2;
                java.util.Iterator v3_8 = v2_8.activityInfo.packageName;
                com.baidu.android.pushservice.a.f v5_0 = 0;
            } catch (com.baidu.android.pushservice.a.f v2_5) {
                com.baidu.android.pushservice.g.o.a(this.c, v2_5);
            }
            if (!com.baidu.android.pushservice.i.l.D(this.c)) {
                v2_2 = 0;
            } else {
                int v4_4 = com.baidu.android.pushservice.i.l.v(this.c, v2_8.activityInfo.packageName);
                if (v4_4 == 0) {
                } else {
                    com.baidu.android.pushservice.a.f v5_8 = new StringBuilder();
                    v5_8.append(v2_8.activityInfo.packageName);
                    v5_8.append(".push_sync");
                    v5_0 = com.baidu.android.pushservice.i.m.a(v4_4, v5_8.toString(), p12);
                    int v6_6 = new StringBuilder();
                    v6_6.append(v2_8.activityInfo.packageName);
                    v6_6.append(".self_push_sync");
                    v2_2 = com.baidu.android.pushservice.i.m.a(v4_4, v6_6.toString(), "bindinfo");
                }
            }
            if (((android.text.TextUtils.isEmpty(v5_0)) || (android.text.TextUtils.isEmpty(v2_2))) && (com.baidu.android.pushservice.i.l.m(this.c, v3_8) > 50)) {
                if (!android.text.TextUtils.equals(this.c.getPackageName(), "com.baidu.searchbox")) {
                    v5_0 = com.baidu.android.pushservice.c.d.e(this.c, v3_8);
                }
                v2_2 = com.baidu.android.pushservice.c.d.f(this.c, v3_8);
            }
            int v4_0 = 1;
            if (!android.text.TextUtils.isEmpty(v5_0)) {
                java.util.Iterator v3_2 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v5_0));
                if (v3_2 != null) {
                    java.util.Iterator v3_3 = v3_2.iterator();
                    while (v3_3.hasNext()) {
                        com.baidu.android.pushservice.a.f v5_6 = ((com.baidu.android.pushservice.a.f) v3_3.next());
                        int v7_2 = p13.iterator();
                        while (v7_2.hasNext()) {
                            com.baidu.android.pushservice.a.f v8_3 = ((com.baidu.android.pushservice.a.f) v7_2.next());
                            if ((android.text.TextUtils.equals(v5_6.c, v8_3.c)) || (android.text.TextUtils.equals(v5_6.a, v8_3.a))) {
                                p13.remove(v8_3);
                                p13.add(v5_6);
                                int v7_3 = 1;
                            }
                            if (v7_3 == 0) {
                                p13.add(v5_6);
                            }
                        }
                        v7_3 = 0;
                    }
                }
            }
            if (!android.text.TextUtils.isEmpty(v2_2)) {
                com.baidu.android.pushservice.a.f v2_4 = this.h(com.baidu.android.pushservice.a.b.a(v2_2));
                java.util.Iterator v3_5 = p13.iterator();
                while (v3_5.hasNext()) {
                    com.baidu.android.pushservice.a.f v5_4 = ((com.baidu.android.pushservice.a.f) v3_5.next());
                    if (android.text.TextUtils.equals(v2_4.c, v5_4.c)) {
                        p13.remove(v5_4);
                        p13.add(v2_4);
                    }
                    if (v4_0 == 0) {
                        p13.add(v2_4);
                    }
                }
                v4_0 = 0;
            }
        }
        if (p13.size() > 0) {
            String v13_2 = this.b(this.a(p13));
            com.baidu.android.pushservice.c.c.c(this.c, v13_2);
            if (com.baidu.android.pushservice.i.l.D(this.c)) {
                com.baidu.android.pushservice.i.m.a(this.c, v0_2, p12, v13_2);
            }
        }
        return;
    }

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


    public static java.util.List o(android.content.Context p5)
    {
        java.util.List v0_1 = new java.util.ArrayList();
        try {
            java.util.ArrayList v1_2 = p5.getPackageManager();
        } catch (Exception) {
            return v0_1;
        }
        if (v1_2 != null) {
            v0_1 = v1_2.queryBroadcastReceivers(new android.content.Intent("com.baidu.android.pushservice.action.BIND_SYNC"), 576);
            java.util.ArrayList v1_1 = new java.util.ArrayList();
            java.util.Iterator v2_0 = v0_1.iterator();
            while (v2_0.hasNext()) {
                android.content.pm.ResolveInfo v3_2 = ((android.content.pm.ResolveInfo) v2_0.next());
                if (com.baidu.android.pushservice.i.l.z(p5, v3_2.activityInfo.packageName)) {
                    v1_1.add(v3_2);
                }
            }
            v0_1.removeAll(v1_1);
            return v0_1;
        } else {
            return v0_1;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_SINK']' [[('Lcom/baidu/android/pushservice/h;', 'd', '(Landroid/content/Intent;)V'), ('Lcom/baidu/android/pushservice/a/b;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/a/b;'), ('Lcom/baidu/android/pushservice/a/b;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/a/b;', 'a', '()V'), ('Lcom/baidu/android/pushservice/a/b;', 'a', '(Ljava/lang/String; Ljava/util/ArrayList;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'o', '(Landroid/content/Context;)Ljava/util/List;'), ('Lcom/baidu/android/pushservice/i/l;', 'z', '(Landroid/content/Context; Ljava/lang/String;)Z'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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


    private void d(android.content.Intent p4)
    {
        com.baidu.android.pushservice.d.l v0_1 = new com.baidu.android.pushservice.d.l(p4);
        com.baidu.android.pushservice.f.a.a("RegistrationService", "<<< METHOD_UNBIND ", this.a);
        if ((!android.text.TextUtils.isEmpty(v0_1.e)) && (!android.text.TextUtils.isEmpty(v0_1.i))) {
            String v4_5 = com.baidu.android.pushservice.a.b.a(this.a).c(v0_1.e);
            if ((v4_5 != null) && (!android.text.TextUtils.isEmpty(v4_5.a()))) {
                v0_1.f = v4_5.a();
            }
            com.baidu.android.pushservice.a.b.a(this.a).g(v0_1.e);
        }
        this.a(new com.baidu.android.pushservice.d.z(v0_1, this.a));
        return;
    }

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


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

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


    private b(android.content.Context p4)
    {
        this.a = new java.util.ArrayList();
        this.d = new java.util.HashMap();
        this.c = p4.getApplicationContext();
        String v0_1 = com.baidu.android.pushservice.c.c.e(p4);
        if ((android.text.TextUtils.isEmpty(v0_1)) && (com.baidu.android.pushservice.i.l.D(this.c))) {
            String v0_4 = new StringBuilder();
            v0_4.append(this.c.getPackageName());
            v0_4.append(".push_sync");
            v0_1 = com.baidu.android.pushservice.i.m.a(this.c, v0_4.toString(), "r_v2");
        }
        if (!android.text.TextUtils.isEmpty(v0_1)) {
            String v0_7 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v0_1));
        }
        try {
            int v1_11 = p4.getPackageManager().getPackageInfo(p4.getPackageName(), 0).versionCode;
        } catch (Exception) {
        }
        if (com.baidu.android.pushservice.i.i.b(this.c, "com.baidu.push.sync.vn", -1) < v1_11) {
            this.a();
            com.baidu.android.pushservice.i.i.a(this.c, "com.baidu.push.sync.vn", v1_11);
        }
        return;
    }

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


    private void a()
    {
        this.a("r_v2", this.a);
        return;
    }

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


    private void a(String p12, java.util.ArrayList p13)
    {
        android.content.Context v1_3;
        String v0_1 = new StringBuilder();
        v0_1.append(this.c.getPackageName());
        v0_1.append(".push_sync");
        String v0_2 = v0_1.toString();
        if (!com.baidu.android.pushservice.i.l.E(this.c)) {
            v1_3 = com.baidu.android.pushservice.i.l.o(this.c);
        } else {
            v1_3 = com.baidu.android.pushservice.i.l.p(this.c);
        }
        android.content.Context v1_6 = v1_3.iterator();
        while (v1_6.hasNext()) {
            com.baidu.android.pushservice.a.f v2_8 = ((android.content.pm.ResolveInfo) v1_6.next());
            try {
                com.baidu.android.pushservice.a.f v2_2;
                java.util.Iterator v3_8 = v2_8.activityInfo.packageName;
                com.baidu.android.pushservice.a.f v5_0 = 0;
            } catch (com.baidu.android.pushservice.a.f v2_5) {
                com.baidu.android.pushservice.g.o.a(this.c, v2_5);
            }
            if (!com.baidu.android.pushservice.i.l.D(this.c)) {
                v2_2 = 0;
            } else {
                int v4_4 = com.baidu.android.pushservice.i.l.v(this.c, v2_8.activityInfo.packageName);
                if (v4_4 == 0) {
                } else {
                    com.baidu.android.pushservice.a.f v5_8 = new StringBuilder();
                    v5_8.append(v2_8.activityInfo.packageName);
                    v5_8.append(".push_sync");
                    v5_0 = com.baidu.android.pushservice.i.m.a(v4_4, v5_8.toString(), p12);
                    int v6_6 = new StringBuilder();
                    v6_6.append(v2_8.activityInfo.packageName);
                    v6_6.append(".self_push_sync");
                    v2_2 = com.baidu.android.pushservice.i.m.a(v4_4, v6_6.toString(), "bindinfo");
                }
            }
            if (((android.text.TextUtils.isEmpty(v5_0)) || (android.text.TextUtils.isEmpty(v2_2))) && (com.baidu.android.pushservice.i.l.m(this.c, v3_8) > 50)) {
                if (!android.text.TextUtils.equals(this.c.getPackageName(), "com.baidu.searchbox")) {
                    v5_0 = com.baidu.android.pushservice.c.d.e(this.c, v3_8);
                }
                v2_2 = com.baidu.android.pushservice.c.d.f(this.c, v3_8);
            }
            int v4_0 = 1;
            if (!android.text.TextUtils.isEmpty(v5_0)) {
                java.util.Iterator v3_2 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v5_0));
                if (v3_2 != null) {
                    java.util.Iterator v3_3 = v3_2.iterator();
                    while (v3_3.hasNext()) {
                        com.baidu.android.pushservice.a.f v5_6 = ((com.baidu.android.pushservice.a.f) v3_3.next());
                        int v7_2 = p13.iterator();
                        while (v7_2.hasNext()) {
                            com.baidu.android.pushservice.a.f v8_3 = ((com.baidu.android.pushservice.a.f) v7_2.next());
                            if ((android.text.TextUtils.equals(v5_6.c, v8_3.c)) || (android.text.TextUtils.equals(v5_6.a, v8_3.a))) {
                                p13.remove(v8_3);
                                p13.add(v5_6);
                                int v7_3 = 1;
                            }
                            if (v7_3 == 0) {
                                p13.add(v5_6);
                            }
                        }
                        v7_3 = 0;
                    }
                }
            }
            if (!android.text.TextUtils.isEmpty(v2_2)) {
                com.baidu.android.pushservice.a.f v2_4 = this.h(com.baidu.android.pushservice.a.b.a(v2_2));
                java.util.Iterator v3_5 = p13.iterator();
                while (v3_5.hasNext()) {
                    com.baidu.android.pushservice.a.f v5_4 = ((com.baidu.android.pushservice.a.f) v3_5.next());
                    if (android.text.TextUtils.equals(v2_4.c, v5_4.c)) {
                        p13.remove(v5_4);
                        p13.add(v2_4);
                    }
                    if (v4_0 == 0) {
                        p13.add(v2_4);
                    }
                }
                v4_0 = 0;
            }
        }
        if (p13.size() > 0) {
            String v13_2 = this.b(this.a(p13));
            com.baidu.android.pushservice.c.c.c(this.c, v13_2);
            if (com.baidu.android.pushservice.i.l.D(this.c)) {
                com.baidu.android.pushservice.i.m.a(this.c, v0_2, p12, v13_2);
            }
        }
        return;
    }

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


    public static java.util.List o(android.content.Context p5)
    {
        java.util.List v0_1 = new java.util.ArrayList();
        try {
            java.util.ArrayList v1_2 = p5.getPackageManager();
        } catch (Exception) {
            return v0_1;
        }
        if (v1_2 != null) {
            v0_1 = v1_2.queryBroadcastReceivers(new android.content.Intent("com.baidu.android.pushservice.action.BIND_SYNC"), 576);
            java.util.ArrayList v1_1 = new java.util.ArrayList();
            java.util.Iterator v2_0 = v0_1.iterator();
            while (v2_0.hasNext()) {
                android.content.pm.ResolveInfo v3_2 = ((android.content.pm.ResolveInfo) v2_0.next());
                if (com.baidu.android.pushservice.i.l.z(p5, v3_2.activityInfo.packageName)) {
                    v1_1.add(v3_2);
                }
            }
            v0_1.removeAll(v1_1);
            return v0_1;
        } else {
            return v0_1;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_SINK']' [[('Lcom/baidu/android/pushservice/h;', 'f', '(Landroid/content/Intent;)Z'), ('Lcom/baidu/android/pushservice/a/b;', 'a', '(Landroid/content/Context;)Lcom/baidu/android/pushservice/a/b;'), ('Lcom/baidu/android/pushservice/a/b;', '<init>', '(Landroid/content/Context;)V'), ('Lcom/baidu/android/pushservice/a/b;', 'a', '()V'), ('Lcom/baidu/android/pushservice/a/b;', 'a', '(Ljava/lang/String; Ljava/util/ArrayList;)V'), ('Lcom/baidu/android/pushservice/i/l;', 'o', '(Landroid/content/Context;)Ljava/util/List;'), ('Lcom/baidu/android/pushservice/i/l;', 'z', '(Landroid/content/Context; Ljava/lang/String;)Z'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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


    private boolean f(android.content.Intent p5)
    {
        String v0_1 = p5.getStringExtra("package_name");
        String v1_0 = p5.getStringExtra("app_id");
        if (android.text.TextUtils.isEmpty(v1_0)) {
            com.baidu.android.pushservice.d.l v2_1 = com.baidu.android.pushservice.a.b.a(this.a).c(v0_1);
            if (v2_1 != null) {
                v1_0 = v2_1.a();
            }
        }
        String v5_1 = p5.getStringExtra("user_id");
        com.baidu.android.pushservice.d.l v2_4 = new com.baidu.android.pushservice.d.l();
        v2_4.a = "com.baidu.android.pushservice.action.UNBINDAPP";
        if (!android.text.TextUtils.isEmpty(v0_1)) {
            v2_4.e = v0_1;
        }
        if ((!android.text.TextUtils.isEmpty(v1_0)) && (!"null".equals(v1_0))) {
            v2_4.f = v1_0;
        }
        if ((!android.text.TextUtils.isEmpty(v5_1)) && (!"null".equals(v5_1))) {
            v2_4.g = v5_1;
        }
        if (!android.text.TextUtils.isEmpty(v2_4.e)) {
            String v5_6 = com.baidu.android.pushservice.a.b.a(this.a).c(v2_4.e);
            if ((v5_6 != null) && (!android.text.TextUtils.isEmpty(v5_6.a()))) {
                v2_4.f = v5_6.a();
            }
            com.baidu.android.pushservice.a.b.a(this.a).g(v2_4.e);
        }
        return this.a(new com.baidu.android.pushservice.d.aa(v2_4, this.a));
    }

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


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

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


    private b(android.content.Context p4)
    {
        this.a = new java.util.ArrayList();
        this.d = new java.util.HashMap();
        this.c = p4.getApplicationContext();
        String v0_1 = com.baidu.android.pushservice.c.c.e(p4);
        if ((android.text.TextUtils.isEmpty(v0_1)) && (com.baidu.android.pushservice.i.l.D(this.c))) {
            String v0_4 = new StringBuilder();
            v0_4.append(this.c.getPackageName());
            v0_4.append(".push_sync");
            v0_1 = com.baidu.android.pushservice.i.m.a(this.c, v0_4.toString(), "r_v2");
        }
        if (!android.text.TextUtils.isEmpty(v0_1)) {
            String v0_7 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v0_1));
        }
        try {
            int v1_11 = p4.getPackageManager().getPackageInfo(p4.getPackageName(), 0).versionCode;
        } catch (Exception) {
        }
        if (com.baidu.android.pushservice.i.i.b(this.c, "com.baidu.push.sync.vn", -1) < v1_11) {
            this.a();
            com.baidu.android.pushservice.i.i.a(this.c, "com.baidu.push.sync.vn", v1_11);
        }
        return;
    }

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


    private void a()
    {
        this.a("r_v2", this.a);
        return;
    }

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


    private void a(String p12, java.util.ArrayList p13)
    {
        android.content.Context v1_3;
        String v0_1 = new StringBuilder();
        v0_1.append(this.c.getPackageName());
        v0_1.append(".push_sync");
        String v0_2 = v0_1.toString();
        if (!com.baidu.android.pushservice.i.l.E(this.c)) {
            v1_3 = com.baidu.android.pushservice.i.l.o(this.c);
        } else {
            v1_3 = com.baidu.android.pushservice.i.l.p(this.c);
        }
        android.content.Context v1_6 = v1_3.iterator();
        while (v1_6.hasNext()) {
            com.baidu.android.pushservice.a.f v2_8 = ((android.content.pm.ResolveInfo) v1_6.next());
            try {
                com.baidu.android.pushservice.a.f v2_2;
                java.util.Iterator v3_8 = v2_8.activityInfo.packageName;
                com.baidu.android.pushservice.a.f v5_0 = 0;
            } catch (com.baidu.android.pushservice.a.f v2_5) {
                com.baidu.android.pushservice.g.o.a(this.c, v2_5);
            }
            if (!com.baidu.android.pushservice.i.l.D(this.c)) {
                v2_2 = 0;
            } else {
                int v4_4 = com.baidu.android.pushservice.i.l.v(this.c, v2_8.activityInfo.packageName);
                if (v4_4 == 0) {
                } else {
                    com.baidu.android.pushservice.a.f v5_8 = new StringBuilder();
                    v5_8.append(v2_8.activityInfo.packageName);
                    v5_8.append(".push_sync");
                    v5_0 = com.baidu.android.pushservice.i.m.a(v4_4, v5_8.toString(), p12);
                    int v6_6 = new StringBuilder();
                    v6_6.append(v2_8.activityInfo.packageName);
                    v6_6.append(".self_push_sync");
                    v2_2 = com.baidu.android.pushservice.i.m.a(v4_4, v6_6.toString(), "bindinfo");
                }
            }
            if (((android.text.TextUtils.isEmpty(v5_0)) || (android.text.TextUtils.isEmpty(v2_2))) && (com.baidu.android.pushservice.i.l.m(this.c, v3_8) > 50)) {
                if (!android.text.TextUtils.equals(this.c.getPackageName(), "com.baidu.searchbox")) {
                    v5_0 = com.baidu.android.pushservice.c.d.e(this.c, v3_8);
                }
                v2_2 = com.baidu.android.pushservice.c.d.f(this.c, v3_8);
            }
            int v4_0 = 1;
            if (!android.text.TextUtils.isEmpty(v5_0)) {
                java.util.Iterator v3_2 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v5_0));
                if (v3_2 != null) {
                    java.util.Iterator v3_3 = v3_2.iterator();
                    while (v3_3.hasNext()) {
                        com.baidu.android.pushservice.a.f v5_6 = ((com.baidu.android.pushservice.a.f) v3_3.next());
                        int v7_2 = p13.iterator();
                        while (v7_2.hasNext()) {
                            com.baidu.android.pushservice.a.f v8_3 = ((com.baidu.android.pushservice.a.f) v7_2.next());
                            if ((android.text.TextUtils.equals(v5_6.c, v8_3.c)) || (android.text.TextUtils.equals(v5_6.a, v8_3.a))) {
                                p13.remove(v8_3);
                                p13.add(v5_6);
                                int v7_3 = 1;
                            }
                            if (v7_3 == 0) {
                                p13.add(v5_6);
                            }
                        }
                        v7_3 = 0;
                    }
                }
            }
            if (!android.text.TextUtils.isEmpty(v2_2)) {
                com.baidu.android.pushservice.a.f v2_4 = this.h(com.baidu.android.pushservice.a.b.a(v2_2));
                java.util.Iterator v3_5 = p13.iterator();
                while (v3_5.hasNext()) {
                    com.baidu.android.pushservice.a.f v5_4 = ((com.baidu.android.pushservice.a.f) v3_5.next());
                    if (android.text.TextUtils.equals(v2_4.c, v5_4.c)) {
                        p13.remove(v5_4);
                        p13.add(v2_4);
                    }
                    if (v4_0 == 0) {
                        p13.add(v2_4);
                    }
                }
                v4_0 = 0;
            }
        }
        if (p13.size() > 0) {
            String v13_2 = this.b(this.a(p13));
            com.baidu.android.pushservice.c.c.c(this.c, v13_2);
            if (com.baidu.android.pushservice.i.l.D(this.c)) {
                com.baidu.android.pushservice.i.m.a(this.c, v0_2, p12, v13_2);
            }
        }
        return;
    }

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


    public static java.util.List o(android.content.Context p5)
    {
        java.util.List v0_1 = new java.util.ArrayList();
        try {
            java.util.ArrayList v1_2 = p5.getPackageManager();
        } catch (Exception) {
            return v0_1;
        }
        if (v1_2 != null) {
            v0_1 = v1_2.queryBroadcastReceivers(new android.content.Intent("com.baidu.android.pushservice.action.BIND_SYNC"), 576);
            java.util.ArrayList v1_1 = new java.util.ArrayList();
            java.util.Iterator v2_0 = v0_1.iterator();
            while (v2_0.hasNext()) {
                android.content.pm.ResolveInfo v3_2 = ((android.content.pm.ResolveInfo) v2_0.next());
                if (com.baidu.android.pushservice.i.l.z(p5, v3_2.activityInfo.packageName)) {
                    v1_1.add(v3_2);
                }
            }
            v0_1.removeAll(v1_1);
            return v0_1;
        } else {
            return v0_1;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_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/l;', 'v', '(Landroid/content/Context;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/l;', 'p', '(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;'), ('Lcom/baidu/android/pushservice/i/l;', 'o', '(Landroid/content/Context;)Ljava/util/List;'), ('Lcom/baidu/android/pushservice/i/l;', 'z', '(Landroid/content/Context; Ljava/lang/String;)Z'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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.l.v():


    public static String v(android.content.Context p1)
    {
        return com.baidu.android.pushservice.i.l.p(p1, p1.getPackageName());
    }

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

Couldn't retrieve source code

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


    public static java.util.List o(android.content.Context p5)
    {
        java.util.List v0_1 = new java.util.ArrayList();
        try {
            java.util.ArrayList v1_2 = p5.getPackageManager();
        } catch (Exception) {
            return v0_1;
        }
        if (v1_2 != null) {
            v0_1 = v1_2.queryBroadcastReceivers(new android.content.Intent("com.baidu.android.pushservice.action.BIND_SYNC"), 576);
            java.util.ArrayList v1_1 = new java.util.ArrayList();
            java.util.Iterator v2_0 = v0_1.iterator();
            while (v2_0.hasNext()) {
                android.content.pm.ResolveInfo v3_2 = ((android.content.pm.ResolveInfo) v2_0.next());
                if (com.baidu.android.pushservice.i.l.z(p5, v3_2.activityInfo.packageName)) {
                    v1_1.add(v3_2);
                }
            }
            v0_1.removeAll(v1_1);
            return v0_1;
        } else {
            return v0_1;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPreferences() not found.

[TAINT] Const '5' ==>>> Sink '['Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;', '1', 'SHARED_PREFERENCE_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/l;', 'p', '(Landroid/content/Context;)Ljava/util/List;'), ('Lcom/baidu/android/pushservice/i/l;', 'z', '(Landroid/content/Context; Ljava/lang/String;)Z'), ('Lcom/baidu/android/pushservice/i/l;', 'm', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/c/d;', 'c', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/l;', 'C', '(Landroid/content/Context; Ljava/lang/String;)I'), ('Lcom/baidu/android/pushservice/i/m;', 'a', '(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;'), ('Landroid/content/Context;', 'getSharedPreferences', '(Ljava/lang/String; I)Landroid/content/SharedPreferences;')]]

Call to shared preference method using insecure permission (WORLD_WRITABLE)

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.l.p():


    public static java.util.List p(android.content.Context p5)
    {
        java.util.List v0_1 = new java.util.ArrayList();
        try {
            java.util.ArrayList v1_2 = p5.getPackageManager();
        } catch (Exception) {
            return v0_1;
        }
        if (v1_2 != null) {
            v0_1 = v1_2.queryBroadcastReceivers(new android.content.Intent("com.baidu.android.pushservice.action.BIND_SYNC"), 576);
            java.util.ArrayList v1_1 = new java.util.ArrayList();
            java.util.Iterator v2_0 = v0_1.iterator();
            while (v2_0.hasNext()) {
                android.content.pm.ResolveInfo v3_2 = ((android.content.pm.ResolveInfo) v2_0.next());
                if (!com.baidu.android.pushservice.i.l.z(p5, v3_2.activityInfo.packageName)) {
                    v1_1.add(v3_2);
                }
            }
            v0_1.removeAll(v1_1);
            return v0_1;
        } else {
            return v0_1;
        }
    }

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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

Couldn't retrieve source code

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


    public static int C(android.content.Context p3, String p4)
    {
        int v0 = 0;
        try {
            com.baidu.android.pushservice.a.f v1_2 = com.baidu.android.pushservice.c.c.e(p3);
        } catch (Exception) {
            return v0;
        }
        if ((android.text.TextUtils.isEmpty(v1_2)) && (com.baidu.android.pushservice.i.l.D(p3))) {
            com.baidu.android.pushservice.a.f v1_0 = new StringBuilder();
            v1_0.append(p3.getPackageName());
            v1_0.append(".push_sync");
            v1_2 = com.baidu.android.pushservice.i.m.a(p3, v1_0.toString(), "r_v2");
        }
        if (android.text.TextUtils.isEmpty(v1_2)) {
            return v0;
        } else {
            int v3_3 = com.baidu.android.pushservice.a.b.e(com.baidu.android.pushservice.a.b.a(v1_2));
            if (v3_3 == 0) {
                return v0;
            } else {
                int v3_4 = v3_3.iterator();
                while (v3_4.hasNext()) {
                    com.baidu.android.pushservice.a.f v1_5 = ((com.baidu.android.pushservice.a.f) v3_4.next());
                    if (android.text.TextUtils.equals(v1_5.c(), p4)) {
                        v0 = v1_5.e();
                        break;
                    }
                }
                return v0;
            }
        }
    }

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


    public static String a(android.content.Context p1, String p2, String p3)
    {
        try {
            int v1_2 = p1.getSharedPreferences(p2, 5).getString(p3, "");
        } catch (Exception) {
            v1_2 = 0;
        }
        return v1_2;
    }

Method android.content.Context.getSharedPref