private static boolean initBadger(android.content.Context p3)
    {
        String v0_9 = p3.getPackageManager().getLaunchIntentForPackage(p3.getPackageName());
        if (v0_9 != null) {
            com.onesignal.shortcutbadger.ShortcutBadger.sComponentName = v0_9.getComponent();
            String v0_2 = new android.content.Intent(android.intent.action.MAIN);
            v0_2.addCategory(android.intent.category.HOME);
            com.onesignal.shortcutbadger.impl.DefaultBadger v3_2 = p3.getPackageManager().resolveActivity(v0_2, 65536);
            if ((v3_2 != null) && (!v3_2.activityInfo.name.toLowerCase().contains(resolver))) {
                com.onesignal.shortcutbadger.impl.DefaultBadger v3_4 = v3_2.activityInfo.packageName;
                String v0_8 = com.onesignal.shortcutbadger.ShortcutBadger.BADGERS.iterator();
                while (v0_8.hasNext()) {
                    try {
                        com.onesignal.shortcutbadger.Badger v2_4 = ((com.onesignal.shortcutbadger.Badger) ((Class) v0_8.next()).newInstance());
                    } catch (Exception) {
                    }
                    if ((v2_4 != null) && (v2_4.getSupportLaunchers().contains(v3_4))) {
                        com.onesignal.shortcutbadger.ShortcutBadger.sShortcutBadger = v2_4;
                        break;
                    }
                }
                if (com.onesignal.shortcutbadger.ShortcutBadger.sShortcutBadger == null) {
                    if (!android.os.Build.MANUFACTURER.equalsIgnoreCase(ZUK)) {
                        if (!android.os.Build.MANUFACTURER.equalsIgnoreCase(OPPO)) {
                            if (!android.os.Build.MANUFACTURER.equalsIgnoreCase(VIVO)) {
                                com.onesignal.shortcutbadger.ShortcutBadger.sShortcutBadger = new com.onesignal.shortcutbadger.impl.DefaultBadger();
                            } else {
                                com.onesignal.shortcutbadger.ShortcutBadger.sShortcutBadger = new com.onesignal.shortcutbadger.impl.VivoHomeBadger();
                            }
                        } else {
                            com.onesignal.shortcutbadger.ShortcutBadger.sShortcutBadger = new com.onesignal.shortcutbadger.impl.OPPOHomeBader();
                        }
                    } else {
                        com.onesignal.shortcutbadger.ShortcutBadger.sShortcutBadger = new com.onesignal.shortcutbadger.impl.ZukHomeBadger();
                    }
                }
                return 1;
            } else {
                return 0;
            }
        } else {
            String v0_14 = new StringBuilder();
            v0_14.append(Unable to find launch intent for package );
            v0_14.append(p3.getPackageName());
            android.util.Log.e(ShortcutBadger, v0_14.toString());
            return 0;
        }
    }