导航菜单

页面标题

页面副标题

Premium Loader v1.0 - MessengerUtils$ServerService.java 源代码

正在查看: Premium Loader v1.0 应用的 MessengerUtils$ServerService.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.blankj.molihuan.utilcode.util;

import android.app.Application;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.Service;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.os.IBinder;
import android.os.Message;
import android.os.Messenger;
import android.os.RemoteException;
import android.text.TextUtils;
import androidx.activity.j;
import d.e;
import g1.c;
import g1.d;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.concurrent.ConcurrentHashMap;
import l2.f;
import v.k;
import v.l;
import v.m;
import v.n;
import v.o;

public class MessengerUtils$ServerService extends Service {

    public static final int f1669i = 0;

    public final ConcurrentHashMap f1670f = new ConcurrentHashMap();

    public final e f1671g;

    public final Messenger f1672h;

    public MessengerUtils$ServerService() {
        e eVar = new e(this);
        this.f1671g = eVar;
        this.f1672h = new Messenger(eVar);
    }

    public final void a(Message message) {
        Message obtain = Message.obtain(message);
        for (Messenger messenger : this.f1670f.values()) {
            if (messenger != null) {
                try {
                    messenger.send(Message.obtain(obtain));
                } catch (RemoteException e5) {
                    e5.printStackTrace();
                }
            }
        }
        obtain.recycle();
    }

    @Override
    public final IBinder onBind(Intent intent) {
        return this.f1672h.getBinder();
    }

    @Override
    public final int onStartCommand(Intent intent, int i5, int i6) {
        Bundle bundle;
        Bundle extras;
        String string;
        d dVar = d.f2773b;
        ((NotificationManager) f.v().getSystemService("notification")).createNotificationChannel(dVar.f2774a);
        Application v4 = f.v();
        ArrayList arrayList = new ArrayList();
        ArrayList arrayList2 = new ArrayList();
        ArrayList arrayList3 = new ArrayList();
        Notification notification = new Notification();
        notification.when = System.currentTimeMillis();
        notification.audioStreamType = -1;
        ArrayList arrayList4 = new ArrayList();
        String id = dVar.f2774a.getId();
        new ArrayList();
        Bundle bundle2 = new Bundle();
        Notification.Builder a5 = n.a(v4, id);
        a5.setWhen(notification.when).setSmallIcon(notification.icon, notification.iconLevel).setContent(notification.contentView).setTicker(notification.tickerText, null).setVibrate(notification.vibrate).setLights(notification.ledARGB, notification.ledOnMS, notification.ledOffMS).setOngoing((notification.flags & 2) != 0).setOnlyAlertOnce((notification.flags & 8) != 0).setAutoCancel((notification.flags & 16) != 0).setDefaults(notification.defaults).setContentTitle(null).setContentText(null).setContentInfo(null).setContentIntent(null).setDeleteIntent(notification.deleteIntent).setFullScreenIntent(null, (notification.flags & 128) != 0).setNumber(0).setProgress(0, 0, false);
        l.b(a5, null);
        a5.setSubText(null).setUsesChronometer(false).setPriority(0);
        Iterator it = arrayList.iterator();
        if (it.hasNext()) {
            j.j(it.next());
            throw null;
        }
        a5.setShowWhen(true);
        v.j.i(a5, false);
        v.j.g(a5, null);
        v.j.j(a5, null);
        v.j.h(a5, false);
        k.b(a5, null);
        k.c(a5, 0);
        k.f(a5, 0);
        k.d(a5, null);
        k.e(a5, notification.sound, notification.audioAttributes);
        if (!arrayList4.isEmpty()) {
            Iterator it2 = arrayList4.iterator();
            while (it2.hasNext()) {
                k.a(a5, (String) it2.next());
            }
        }
        if (arrayList3.size() > 0) {
            bundle = new Bundle();
            Bundle bundle3 = bundle.getBundle("android.car.EXTENSIONS");
            if (bundle3 == null) {
                bundle3 = new Bundle();
            }
            Bundle bundle4 = new Bundle(bundle3);
            Bundle bundle5 = new Bundle();
            if (arrayList3.size() > 0) {
                Integer.toString(0);
                j.j(arrayList3.get(0));
                new Bundle();
                throw null;
            }
            bundle3.putBundle("invisible_actions", bundle5);
            bundle4.putBundle("invisible_actions", bundle5);
            bundle.putBundle("android.car.EXTENSIONS", bundle3);
            bundle2.putBundle("android.car.EXTENSIONS", bundle4);
        } else {
            bundle = null;
        }
        int i7 = Build.VERSION.SDK_INT;
        a5.setExtras(bundle);
        m.e(a5, null);
        n.b(a5, 0);
        n.e(a5, null);
        n.f(a5, null);
        n.g(a5, 0L);
        n.d(a5, 0);
        if (!TextUtils.isEmpty(id)) {
            a5.setSound(null).setDefaults(0).setLights(0, 0, 0).setVibrate(null);
        }
        Iterator it3 = arrayList2.iterator();
        if (it3.hasNext()) {
            j.j(it3.next());
            throw null;
        }
        if (i7 >= 29) {
            o.a(a5, true);
            o.b(a5, null);
        }
        startForeground(1, a5.build());
        if (intent != null && (extras = intent.getExtras()) != null) {
            Message obtain = Message.obtain(this.f1671g, 2);
            obtain.replyTo = this.f1672h;
            obtain.setData(extras);
            a(obtain);
            Bundle data = obtain.getData();
            if (data != null && (string = data.getString("MESSENGER_UTILS")) != null) {
                j.j(c.f2772a.get(string));
            }
        }
        return 2;
    }
}