导航菜单

页面标题

页面副标题

万能钥匙 v1.1.23 - NotificationMonitor.java 源代码

正在查看: 万能钥匙 v1.1.23 应用的 NotificationMonitor.java JAVA 源代码文件

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


package com.lantern.notification;

import android.content.Intent;
import android.os.IBinder;
import android.service.notification.NotificationListenerService;
import android.service.notification.StatusBarNotification;
import com.meituan.robust.ChangeQuickRedirect;
import com.meituan.robust.PatchProxy;
import com.meituan.robust.PatchProxyResult;
import com.wifi.connect.provider.MsgProvider;
import com.wifi.connect.service.MsgService;
import pa.d;

public class NotificationMonitor extends NotificationListenerService {
    public static ChangeQuickRedirect changeQuickRedirect;
    public int a = 0;

    public void a() {
        if (PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 777, new Class[0], Void.TYPE).isSupported) {
            return;
        }
        int i = this.a;
        this.a = i + 1;
        if (i < 3) {
            Intent intent = new Intent(MsgService.e);
            intent.setPackage(getPackageName());
            intent.putExtra("source", "notifyService");
            try {
                startService(intent);
            } catch (Exception e) {
                d.c(e);
            }
            MsgProvider.b(this, intent);
        }
    }

    @Override
    public IBinder onBind(Intent intent) {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[]{intent}, this, changeQuickRedirect, false, 776, new Class[]{Intent.class}, IBinder.class);
        if (proxy.isSupported) {
            return (IBinder) proxy.result;
        }
        d.f("OK");
        return super.onBind(intent);
    }

    @Override
    public void onCreate() {
        if (PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 775, new Class[0], Void.TYPE).isSupported) {
            return;
        }
        super.onCreate();
        d.f("OK");
    }

    @Override
    public void onNotificationPosted(StatusBarNotification statusBarNotification) {
        if (PatchProxy.proxy(new Object[]{statusBarNotification}, this, changeQuickRedirect, false, 773, new Class[]{StatusBarNotification.class}, Void.TYPE).isSupported) {
            return;
        }
        d.a("post:" + statusBarNotification, new Object[0]);
        a();
    }

    @Override
    public void onNotificationRemoved(StatusBarNotification statusBarNotification) {
        if (PatchProxy.proxy(new Object[]{statusBarNotification}, this, changeQuickRedirect, false, 774, new Class[]{StatusBarNotification.class}, Void.TYPE).isSupported) {
            return;
        }
        d.a("remove:" + statusBarNotification, new Object[0]);
        a();
    }
}