Velasquez_V4 v3.0.0版本的 MD5 值为:f925d3b85f8d5849bcc8f37caec6acf7

以下内容为反编译后的 C0140.java 源代码,内容仅作参考


package com.applisto.appcloner.classes;

import android.app.Notification;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.PorterDuff;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.Icon;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import android.os.Parcelable;
import android.text.TextUtils;
import android.util.Log;
import com.swift.sandhook.utils.FileUtils$FileMode;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Calendar;
import java.util.Iterator;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Set;
import obfuse4.obfuse.NPStringFog4;
public class C0140 implements InvocationHandler {
    final C0139 f355;
    final Context f356;
    final Object f357;

    public C0140(C0139 this$0, Context context, Object obj) {
        this.f355 = this$0;
        this.f356 = context;
        this.f357 = obj;
    }

    @Override
    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
        String str;
        boolean m468;
        String str2;
        String str3;
        int id;
        boolean blockAllNotifications;
        boolean z;
        Notification notification;
        Integer num;
        Integer num2;
        String str4;
        Integer num3;
        Bundle m465;
        String str5;
        String str6;
        Set set;
        boolean z2;
        Object text;
        StringBuilder sb;
        boolean quietTime;
        int i;
        boolean z3;
        boolean z4;
        boolean z5;
        boolean z6;
        String str7;
        String str8;
        String str9;
        String str10;
        String str11;
        String str12;
        String str13;
        String str14;
        String str15;
        String str16;
        String str17;
        String str18;
        String str19;
        int i2;
        Icon icon;
        Integer num4;
        boolean z7;
        boolean z8;
        boolean z9;
        String str20;
        String str21;
        Parcelable[] parcelables;
        Parcelable[] parcelables2;
        boolean z10;
        List list;
        List list2;
        Exception e;
        String str22;
        List<Map<String, Object>> list3;
        String str23;
        String str24;
        String str25;
        String str26;
        boolean z11;
        String str27;
        Integer num5;
        Icon icon2;
        String str28;
        Icon icon3;
        String str29;
        Map map;
        String str30;
        String str31;
        String str32;
        String str33;
        String str34;
        String str35;
        String str36;
        String str37;
        String str38;
        String str39;
        String str40;
        String str41;
        String str42;
        String str43;
        String str44;
        String str45;
        String str46;
        String str47;
        String str48;
        String str49;
        String str50;
        Map map2;
        Handler handler;
        int i3;
        Map map3;
        String str51;
        int i4;
        Handler handler2;
        String str52;
        String str53;
        String str54;
        String str55;
        String str56;
        String str57;
        String str58;
        String str59;
        String str60;
        String str61;
        String str62;
        String str63;
        String str64;
        String str65;
        String str66;
        String str67;
        String str68;
        String str69;
        int i5;
        int i6;
        int i7;
        int i8;
        String str70;
        String str71;
        String str72;
        String channelId;
        String str73;
        Set<String> set2;
        String str74;
        String str75;
        boolean z12;
        String decode = NPStringFog4.decode("2A2B6A257A747A2277");
        if (NPStringFog4.decode("010A44135740512B5D4459505851034408560A3358470C665050").equals(method.getName())) {
            m468 = this.f355.m468();
            if (!m468) {
                try {
                    str3 = C0139.f319;
                    Log.i(str3, NPStringFog4.decode("0D0A430959500F455F55445E5E565810") + method);
                    try {
                        id = ((Integer) args[3]).intValue();
                    } catch (ClassCastException e2) {
                        id = ((Integer) args[2]).intValue();
                    }
                    if (id != 1621363246 && id != 4534513) {
                        blockAllNotifications = C0139.f321;
                        z = C0139.f320;
                        if (z) {
                            z12 = this.f355.f348;
                            if (z12) {
                                blockAllNotifications = false;
                            }
                        }
                        if (blockAllNotifications) {
                            str75 = C0139.f319;
                            Log.i(str75, NPStringFog4.decode("0D0A430959500F45505C5F555A5706100F56100D575A0753455E575F"));
                            return null;
                        }
                        try {
                            notification = (Notification) args[4];
                        } catch (ClassCastException e3) {
                            notification = (Notification) args[3];
                        }
                        num = C0139.f322;
                        if (num != null) {
                            try {
                                num2 = C0139.f322;
                                notification.color = num2.intValue();
                                str4 = C0139.f319;
                                StringBuilder sb2 = new StringBuilder();
                                sb2.append(NPStringFog4.decode("0D0A430959500F45415544165F5D165907500705455A0B5C1154575D594B0C120A0B410F545C570446595F58725D0E5F130344"));
                                num3 = C0139.f322;
                                sb2.append(num3);
                                Log.i(str4, sb2.toString());
                            } catch (NoSuchFieldError e4) {
                            }
                        }
                        m465 = C0139.m465(notification);
                        Bundle extras = m465;
                        str5 = C0139.f319;
                        Log.i(str5, NPStringFog4.decode("0D0A430959500F455748444450415810") + extras);
                        StringBuilder sb3 = new StringBuilder();
                        sb3.append(extras.getString(NPStringFog4.decode("050A51145D5C504B4659445A54"), ""));
                        sb3.append(' ');
                        sb3.append(extras.getString(NPStringFog4.decode("050A51145D5C504B4659445A541C005906"), ""));
                        sb3.append(' ');
                        Object text2 = extras.get(NPStringFog4.decode("050A51145D5C504B46554842"));
                        if (text2 != null) {
                            sb3.append(text2);
                            sb3.append(' ');
                        }
                        sb3.append(extras.getString(NPStringFog4.decode("050A51145D5C504B50595762544A16"), ""));
                        sb3.append(' ');
                        sb3.append(extras.getString(NPStringFog4.decode("050A51145D5C504B5B5E565965571A44"), ""));
                        sb3.append(' ');
                        sb3.append(notification.tickerText);
                        CharSequence[] textLines = extras.getCharSequenceArray(NPStringFog4.decode("050A51145D5C504B465548427D5B0C5512"));
                        if (textLines != null) {
                            for (CharSequence textLine : textLines) {
                                sb3.append(textLine);
                                sb3.append(' ');
                            }
                        }
                        String concatenatedText = sb3.toString();
                        str6 = C0139.f319;
                        Log.i(str6, NPStringFog4.decode("0D0A430959500F45515F5E555046075E004D010065561C460B17") + concatenatedText);
                        set = this.f355.f328;
                        if (!set.isEmpty()) {
                            String lowerCaseConcatenatedText = concatenatedText.toLowerCase(Locale.ENGLISH);
                            set2 = this.f355.f328;
                            for (String notificationFilterString : set2) {
                                if (lowerCaseConcatenatedText.contains(notificationFilterString)) {
                                    str74 = C0139.f319;
                                    Log.i(str74, NPStringFog4.decode("0D0A430959500F45505C5F555A5706100F56100D575A0753455E575F0D19595D100D530F5154400C5D5E765F5D460742324D160D5F545E12") + notificationFilterString);
                                    return null;
                                }
                            }
                        }
                        if (Build.VERSION.SDK_INT >= 26) {
                            channelId = this.f355.m466(this.f356, concatenatedText);
                            str73 = C0139.f319;
                            Log.i(str73, NPStringFog4.decode("0D0A430959500F45515851585F570E79050344") + channelId);
                            if (!TextUtils.isEmpty(channelId)) {
                                Field f = Notification.class.getDeclaredField(NPStringFog4.decode("09275D075C5B51097B54"));
                                f.setAccessible(true);
                                f.set(notification, channelId);
                                extras.putString(NPStringFog4.decode("070C54085C50583A5B54"), channelId);
                            }
                        }
                        z2 = this.f355.f332;
                        if (!z2) {
                            text = text2;
                            sb = sb3;
                            quietTime = false;
                        } else {
                            Calendar start = Calendar.getInstance();
                            i5 = this.f355.f335;
                            start.set(11, i5);
                            i6 = this.f355.f336;
                            start.set(12, i6);
                            start.set(13, 0);
                            start.set(14, 0);
                            Calendar end = Calendar.getInstance();
                            i7 = this.f355.f333;
                            end.set(11, i7);
                            i8 = this.f355.f334;
                            end.set(12, i8);
                            end.set(13, 0);
                            end.set(14, 0);
                            if (end.before(start)) {
                                end.add(5, 1);
                            }
                            Calendar c1 = Calendar.getInstance();
                            Calendar c2 = Calendar.getInstance();
                            c2.add(5, 1);
                            if ((start.before(c1) && end.after(c1)) || (start.before(c2) && end.after(c2))) {
                                quietTime = true;
                            } else {
                                quietTime = false;
                            }
                            str70 = C0139.f319;
                            text = text2;
                            StringBuilder sb4 = new StringBuilder();
                            sb = sb3;
                            sb4.append(NPStringFog4.decode("0D0A430959500F4541445144450842"));
                            sb4.append(start.getTime());
                            sb4.append(NPStringFog4.decode("48445008560F14"));
                            sb4.append(end.getTime());
                            Log.i(str70, sb4.toString());
                            str71 = C0139.f319;
                            Log.i(str71, NPStringFog4.decode("0D0A430959500F4551010A16") + c1.getTime() + NPStringFog4.decode("484456540815") + c2.getTime());
                            str72 = C0139.f319;
                            StringBuilder sb5 = new StringBuilder();
                            sb5.append(NPStringFog4.decode("0D0A430959500F454345595345660B5D040344"));
                            sb5.append(quietTime);
                            Log.i(str72, sb5.toString());
                        }
                        if (quietTime) {
                            notification.sound = null;
                            notification.vibrate = null;
                            notification.defaults &= -2;
                            notification.defaults &= -3;
                        }
                        String decode2 = NPStringFog4.decode("20217327677960");
                        if (!quietTime) {
                            str52 = this.f355.f338;
                            if (decode2.equals(str52)) {
                                notification.sound = null;
                                notification.defaults |= 1;
                                str69 = C0139.f319;
                                Log.i(str69, NPStringFog4.decode("0D0A430959500F45415F455855084254045F05115D47"));
                            } else {
                                String decode3 = NPStringFog4.decode("372D79237C7671");
                                str53 = this.f355.f338;
                                if (decode3.equals(str53)) {
                                    notification.sound = null;
                                    notification.defaults &= -2;
                                    str56 = C0139.f319;
                                    Log.i(str56, NPStringFog4.decode("0D0A430959500F45415F4558550842430855010A5256"));
                                } else {
                                    String decode4 = NPStringFog4.decode("273166327D78");
                                    str54 = this.f355.f338;
                                    if (decode4.equals(str54)) {
                                        Uri uri = Uri.parse(NPStringFog4.decode("070B5B12575B405F1D1F") + this.f356.getPackageName() + NPStringFog4.decode("4A075A0B1C5444155E5943425E1C0340115A080B5F56161C525B5942455C441C2001530747594035405F465F5557101F004A170145404B1C5F584C5850505453100D5A08615A410B5676595A54"));
                                        notification.sound = uri;
                                        notification.defaults = notification.defaults & (-2);
                                        str55 = C0139.f319;
                                        Log.i(str55, NPStringFog4.decode("0D0A430959500F45415F455855084253144A100B5C084447435E0211") + uri);
                                    }
                                }
                            }
                            str57 = this.f355.f342;
                            if (decode2.equals(str57)) {
                                notification.vibrate = null;
                                notification.defaults |= 2;
                                str68 = C0139.f319;
                                Log.i(str68, NPStringFog4.decode("0D0A430959500F454459524450460B5F0F034400545505475D43"));
                            } else {
                                String decode5 = NPStringFog4.decode("372D79237C7671");
                                str58 = this.f355.f342;
                                if (decode5.equals(str58)) {
                                    notification.vibrate = null;
                                    notification.defaults &= -3;
                                    str67 = C0139.f319;
                                    Log.i(str67, NPStringFog4.decode("0D0A430959500F454459524450460B5F0F034417585F015C5252"));
                                } else {
                                    String decode6 = NPStringFog4.decode("3221673F6D667C2A6064");
                                    str59 = this.f355.f342;
                                    if (decode6.equals(str59)) {
                                        notification.vibrate = new long[]{0, 50};
                                        notification.defaults &= -3;
                                        str66 = C0139.f319;
                                        Log.i(str66, NPStringFog4.decode("0D0A430959500F454459524450460B5F0F03441254411D12425F574342"));
                                    } else {
                                        String decode7 = NPStringFog4.decode("372C7A3466");
                                        str60 = this.f355.f342;
                                        if (decode7.equals(str60)) {
                                            notification.vibrate = new long[]{0, 100};
                                            notification.defaults &= -3;
                                            str65 = C0139.f319;
                                            Log.i(str65, NPStringFog4.decode("0D0A430959500F454459524450460B5F0F034417595C1646"));
                                        } else {
                                            String decode8 = NPStringFog4.decode("282B7B21");
                                            str61 = this.f355.f342;
                                            if (decode8.equals(str61)) {
                                                notification.vibrate = new long[]{0, 500};
                                                notification.defaults &= -3;
                                                str64 = C0139.f319;
                                                Log.i(str64, NPStringFog4.decode("0D0A430959500F454459524450460B5F0F0344085E5D03"));
                                            } else {
                                                String decode9 = NPStringFog4.decode("3221673F6D797B2B75");
                                                str62 = this.f355.f342;
                                                if (decode9.equals(str62)) {
                                                    notification.vibrate = new long[]{0, 1000};
                                                    notification.defaults &= -3;
                                                    str63 = C0139.f319;
                                                    Log.i(str63, NPStringFog4.decode("0D0A430959500F454459524450460B5F0F03441254411D125D585656"));
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                        i = this.f355.f340;
                        if (i != 0) {
                            map2 = this.f355.f354;
                            Runnable runnable = (Runnable) map2.get(Integer.valueOf(id));
                            if (runnable != null) {
                                handler2 = this.f355.f353;
                                handler2.removeCallbacks(runnable);
                            }
                            int finalId = id;
                            RunnableC0141 runnableC0141 = new RunnableC0141(this, finalId);
                            handler = this.f355.f353;
                            i3 = this.f355.f340;
                            handler.postDelayed(runnableC0141, i3 * 1000);
                            map3 = this.f355.f354;
                            map3.put(Integer.valueOf(id), runnableC0141);
                            str51 = C0139.f319;
                            StringBuilder sb6 = new StringBuilder();
                            sb6.append(NPStringFog4.decode("0D0A430959500F454153585355470E550519100D5C560B47450C1858520317"));
                            sb6.append(id);
                            sb6.append(NPStringFog4.decode("4844580F5E595D160810"));
                            i4 = this.f355.f340;
                            sb6.append(i4 * 1000);
                            Log.i(str51, sb6.toString());
                        }
                        z3 = this.f355.f323;
                        if (z3 && Build.VERSION.SDK_INT >= 21) {
                            extras.putInt(NPStringFog4.decode("0C015402414044"), 2);
                            notification.priority = 1;
                            str50 = C0139.f319;
                            Log.i(str50, NPStringFog4.decode("0D0A430959500F455A5551524267127E0E4D0D0258500546585856420D19595D100D530F5154400C5D5E0A16") + notification);
                        }
                        z4 = this.f355.f325;
                        if (z4) {
                            notification.flags |= FileUtils$FileMode.MODE_IRUSR;
                            str49 = C0139.f319;
                            Log.i(str49, NPStringFog4.decode("0D0A430959500F455E5F53575D7D0C5C18770B1058550D515043515E584A0C120A0B410F545C570446595F580B12") + notification);
                        }
                        z5 = this.f355.f326;
                        if (z5) {
                            notification.flags &= -3;
                            notification.flags &= -33;
                            str48 = C0139.f319;
                            Log.i(str48, NPStringFog4.decode("0D0A430959500F455C5F7F58565D0B5E06770B1058550D515043515E584A0C120A0B410F545C570446595F580B12") + notification);
                        }
                        z6 = this.f355.f349;
                        if (z6) {
                            try {
                                notification.when = System.currentTimeMillis();
                                extras.putBoolean(NPStringFog4.decode("050A51145D5C504B41585F41665A075E"), true);
                                str8 = C0139.f319;
                                Log.i(str8, NPStringFog4.decode("0D0A430959500F4541585F417F5D165907500705455A0B5C655E55540D19595D100D530F5154400C5D5E0A16") + notification);
                            } catch (Exception e5) {
                                str7 = C0139.f319;
                                Log.w(str7, e5);
                            }
                        }
                        if (Build.VERSION.SDK_INT >= 21) {
                            String decode10 = NPStringFog4.decode("3431772A7B76");
                            str44 = this.f355.f343;
                            if (decode10.equals(str44)) {
                                notification.visibility = 1;
                                str47 = C0139.f319;
                                Log.i(str47, NPStringFog4.decode("0D0A430959500F455F515453115C0D44085F0D0750470D5D5F17484454555E515F445B09465C520C5151445F5E5C5810") + notification);
                            } else {
                                String decode11 = NPStringFog4.decode("34367C30736171");
                                str45 = this.f355.f343;
                                if (decode11.equals(str45)) {
                                    notification.visibility = -1;
                                    notification.publicVersion = null;
                                    str46 = C0139.f319;
                                    Log.i(str46, NPStringFog4.decode("0D0A430959500F455F515453115C0D44085F0D0750470D5D5F1748435F4F5646015F15085D415D035B535142585D0C0A41") + notification);
                                }
                            }
                        }
                        String decode12 = NPStringFog4.decode("29256D");
                        str9 = this.f355.f331;
                        if (decode12.equals(str9)) {
                            notification.priority = 2;
                            str43 = C0139.f319;
                            Log.i(str43, NPStringFog4.decode("0D0A430959500F4562627979637B36693E74253C0A130A5D455E5E585558435B0B0A0F46") + notification);
                        } else {
                            String decode13 = NPStringFog4.decode("2C2D722E");
                            str10 = this.f355.f331;
                            if (!decode13.equals(str10)) {
                                str11 = this.f355.f331;
                                if (decode2.equals(str11)) {
                                    notification.priority = 0;
                                    str16 = C0139.f319;
                                    Log.i(str16, NPStringFog4.decode("0D0A430959500F4562627979637B36693E7D2122706628660A17565E4250515B0705410F5D5B0E45") + notification);
                                } else {
                                    String decode14 = NPStringFog4.decode("282B62");
                                    str12 = this.f355.f331;
                                    if (decode14.equals(str12)) {
                                        notification.priority = -1;
                                        str15 = C0139.f319;
                                        Log.i(str15, NPStringFog4.decode("0D0A430959500F4562627979637B36693E752B330A130A5D455E5E585558435B0B0A0F46") + notification);
                                    } else {
                                        String decode15 = NPStringFog4.decode("292D7B");
                                        str13 = this.f355.f331;
                                        if (decode15.equals(str13)) {
                                            notification.priority = -2;
                                            str14 = C0139.f319;
                                            Log.i(str14, NPStringFog4.decode("0D0A430959500F4562627979637B36693E742D2A0A130A5D455E5E585558435B0B0A0F46") + notification);
                                        }
                                    }
                                }
                            } else {
                                notification.priority = 1;
                                str17 = C0139.f319;
                                Log.i(str17, NPStringFog4.decode("0D0A430959500F4562627979637B36693E712D237908445C5E4351575F5A56460D0B5B5C12") + notification);
                            }
                        }
                        str18 = this.f355.f330;
                        if (!decode.equals(str18)) {
                            if (notification.ledARGB == 0) {
                                notification.ledARGB = -1;
                            }
                            notification.defaults &= -5;
                            notification.flags |= 1;
                            notification.priority = 0;
                            String decode16 = NPStringFog4.decode("2B2A");
                            str38 = this.f355.f330;
                            if (decode16.equals(str38)) {
                                notification.ledOnMS = 100000000;
                                notification.ledOffMS = 1;
                            } else {
                                String decode17 = NPStringFog4.decode("222874357A6A67297D67");
                                str39 = this.f355.f330;
                                if (decode17.equals(str39)) {
                                    notification.ledOnMS = 1000;
                                    notification.ledOffMS = 2000;
                                } else {
                                    String decode18 = NPStringFog4.decode("222874357A6A79207679657B");
                                    str40 = this.f355.f330;
                                    if (decode18.equals(str40)) {
                                        notification.ledOnMS = 500;
                                        notification.ledOffMS = 1000;
                                    } else {
                                        String decode19 = NPStringFog4.decode("222874357A6A72246164");
                                        str41 = this.f355.f330;
                                        if (decode19.equals(str41)) {
                                            notification.ledOnMS = 250;
                                            notification.ledOffMS = 250;
                                        } else {
                                            String decode20 = NPStringFog4.decode("2B2273");
                                            str42 = this.f355.f330;
                                            if (decode20.equals(str42)) {
                                                notification.ledOnMS = 0;
                                                notification.ledOffMS = 0;
                                            }
                                        }
                                    }
                                }
                            }
                        }
                        str19 = this.f355.f329;
                        if (!decode.equals(str19)) {
                            if ((notification.defaults & 4) != 0) {
                                str37 = this.f355.f330;
                                if (!decode.equals(str37)) {
                                    notification.ledOnMS = 1000;
                                    notification.ledOffMS = 250;
                                }
                            }
                            notification.defaults &= -5;
                            notification.flags |= 1;
                            notification.priority = 0;
                            String decode21 = NPStringFog4.decode("332C7C3277");
                            str30 = this.f355.f329;
                            if (decode21.equals(str30)) {
                                notification.ledARGB = -1;
                            } else {
                                String decode22 = NPStringFog4.decode("362171");
                                str31 = this.f355.f329;
                                if (decode22.equals(str31)) {
                                    notification.ledARGB = -65536;
                                } else {
                                    String decode23 = NPStringFog4.decode("3D21792A7D62");
                                    str32 = this.f355.f329;
                                    if (decode23.equals(str32)) {
                                        notification.ledARGB = -256;
                                    } else {
                                        String decode24 = NPStringFog4.decode("233670237C");
                                        str33 = this.f355.f329;
                                        if (decode24.equals(str33)) {
                                            notification.ledARGB = -16711936;
                                        } else {
                                            String decode25 = NPStringFog4.decode("273D7428");
                                            str34 = this.f355.f329;
                                            if (decode25.equals(str34)) {
                                                notification.ledARGB = -16711681;
                                            } else {
                                                String decode26 = NPStringFog4.decode("26286023");
                                                str35 = this.f355.f329;
                                                if (decode26.equals(str35)) {
                                                    notification.ledARGB = -16776961;
                                                } else {
                                                    String decode27 = NPStringFog4.decode("292572237C6175");
                                                    str36 = this.f355.f329;
                                                    if (decode27.equals(str36)) {
                                                        notification.ledARGB = -65281;
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                        i2 = this.f355.f337;
                        if (i2 > 0 && Build.VERSION.SDK_INT >= 16) {
                            Intent i9 = new Intent(NPStringFog4.decode("070B5848534544095B4344591F53124002550B0A54414A535243515E5817647C2B2B6F236D7B7B317B76797570662B7F2F"));
                            i9.setPackage(this.f356.getPackageName());
                            i9.putExtra(NPStringFog4.decode("0D00"), id);
                            PendingIntent pendingIntent = PendingIntent.getBroadcast(this.f356, id, i9, 1073741824);
                            map = this.f355.f352;
                            map.put(Integer.valueOf(id), notification);
                            List<Notification.Action> actions = new ArrayList<>();
                            if (notification.actions != null) {
                                actions.addAll(Arrays.asList(notification.actions));
                            }
                            Iterator<Notification.Action> it = actions.iterator();
                            while (it.hasNext()) {
                                Notification.Action action = it.next();
                                if (action.getExtras() != null && action.getExtras().getBoolean(NPStringFog4.decode("170A5A0948506B04514459595F"))) {
                                    it.remove();
                                }
                            }
                            Notification.Action action2 = new Notification.Action(0, NPStringFog4.decode("370A5A094850"), pendingIntent);
                            action2.getExtras().putBoolean(NPStringFog4.decode("170A5A0948506B04514459595F"), true);
                            actions.add(action2);
                            while (actions.size() > 3) {
                                actions.remove(0);
                            }
                            notification.actions = (Notification.Action[]) actions.toArray(new Notification.Action[0]);
                        }
                        icon = this.f355.f324;
                        if (icon != null) {
                            Method m = Notification.class.getMethod(NPStringFog4.decode("170141355F5458097B535F58"), Icon.class);
                            icon2 = this.f355.f324;
                            m.invoke(notification, icon2);
                            str28 = C0139.f319;
                            Log.i(str28, NPStringFog4.decode("0D0A430959500F454055405A50510754414A09055D5F445B525856"));
                            if (extras.containsKey(NPStringFog4.decode("050A51145D5C504B5E514251547B015F0F"))) {
                                String decode28 = NPStringFog4.decode("050A51145D5C504B5E514251547B015F0F");
                                icon3 = this.f355.f324;
                                extras.putParcelable(decode28, icon3);
                                str29 = C0139.f319;
                                Log.i(str29, NPStringFog4.decode("0D0A430959500F454055405A50510754415505165656445B525856"));
                            }
                        }
                        num4 = C0139.f322;
                        if (num4 != null) {
                            z11 = this.f355.f341;
                            if (z11 && Build.VERSION.SDK_INT >= 23) {
                                try {
                                    Icon smallIcon = notification.getSmallIcon();
                                    if (smallIcon != null) {
                                        Drawable drawable = smallIcon.loadDrawable(this.f356);
                                        int w = drawable.getIntrinsicWidth();
                                        int h = drawable.getIntrinsicHeight();
                                        Bitmap bitmap = Bitmap.createBitmap(w, h, Bitmap.Config.ARGB_8888);
                                        Canvas canvas = new Canvas(bitmap);
                                        num5 = C0139.f322;
                                        drawable.setColorFilter(num5.intValue(), PorterDuff.Mode.SRC_ATOP);
                                        drawable.setBounds(0, 0, w, h);
                                        drawable.draw(canvas);
                                        Icon smallIcon2 = Icon.createWithBitmap(bitmap);
                                        String decode29 = NPStringFog4.decode("170141355F5458097B535F58");
                                        Class[] clsArr = new Class[1];
                                        try {
                                            clsArr[0] = Icon.class;
                                            Notification.class.getMethod(decode29, clsArr).invoke(notification, smallIcon2);
                                        } catch (Throwable th) {
                                            th = th;
                                            Throwable t = th;
                                            str27 = C0139.f319;
                                            Log.w(str27, t);
                                            z7 = this.f355.f345;
                                            if (z7) {
                                            }
                                            z8 = this.f355.f344;
                                            if (z8) {
                                            }
                                            z9 = this.f355.f346;
                                            if (z9) {
                                            }
                                            z10 = this.f355.f350;
                                            if (z10) {
                                            }
                                            list = this.f355.f339;
                                            if (list != null) {
                                            }
                                            return method.invoke(this.f357, args);
                                        }
                                    }
                                } catch (Throwable th2) {
                                    th = th2;
                                }
                                z7 = this.f355.f345;
                                if (z7) {
                                    try {
                                        notification.largeIcon = null;
                                        extras.remove(NPStringFog4.decode("050A51145D5C504B5E514251547B015F0F"));
                                        Bundle wearableExtensions = extras.getBundle(NPStringFog4.decode("050A51145D5C504B4555514450500E554F7C3C30747D377B7E796B"));
                                        if (wearableExtensions != null) {
                                            wearableExtensions.remove(NPStringFog4.decode("0605560D55475B105C54"));
                                        }
                                        Bundle carExtensions = extras.getBundle(NPStringFog4.decode("050A51145D5C504B51514218746A36752F6A2D2B7F60"));
                                        if (carExtensions != null) {
                                            carExtensions.remove(NPStringFog4.decode("08054701576A5D065D5E"));
                                        }
                                        Field f2 = Notification.class.getDeclaredField(NPStringFog4.decode("0928541455507D065D5E"));
                                        f2.setAccessible(true);
                                        f2.set(notification, null);
                                        str26 = C0139.f319;
                                        Log.i(str26, NPStringFog4.decode("0D0A430959500F4540555D59475706100F56100D575A0753455E575F1650545D0A"));
                                    } catch (Exception e6) {
                                        str25 = C0139.f319;
                                        Log.w(str25, e6);
                                    }
                                }
                                z8 = this.f355.f344;
                                if (z8) {
                                    try {
                                        notification.contentIntent = null;
                                        notification.deleteIntent = null;
                                        notification.actions = null;
                                        Bundle bundle = extras.getBundle(NPStringFog4.decode("050A51145D5C504B4555514450500E554F7C3C30747D377B7E796B"));
                                        if (bundle != null) {
                                            bundle.remove(NPStringFog4.decode("0507410F5D5B47"));
                                        }
                                        str24 = C0139.f319;
                                        Log.i(str24, NPStringFog4.decode("0D0A430959500F4540555D59475706100F56100D575A0753455E575F165854460D0B5B15"));
                                    } catch (Exception e7) {
                                        str23 = C0139.f319;
                                        Log.w(str23, e7);
                                    }
                                }
                                z9 = this.f355.f346;
                                if (z9) {
                                    try {
                                        extras.remove(NPStringFog4.decode("050A51145D5C504B5F55434550550B5E066C170143"));
                                        extras.remove(NPStringFog4.decode("050A51145D5C504B42555F465D574C5C084A10"));
                                        extras.remove(NPStringFog4.decode("050A51145D5C504B42555F465D57"));
                                        if (Build.VERSION.SDK_INT >= 24 && (parcelables2 = extras.getParcelableArray(NPStringFog4.decode("050A51145D5C504B5F55434550550743"))) != null) {
                                            for (Parcelable parcelable : parcelables2) {
                                                if (parcelable instanceof Bundle) {
                                                    Bundle bundle2 = (Bundle) parcelable;
                                                    bundle2.remove(NPStringFog4.decode("17015B025747"));
                                                    bundle2.remove(NPStringFog4.decode("17015B0257476B15574243595F"));
                                                }
                                            }
                                        }
                                        if (Build.VERSION.SDK_INT >= 26 && (parcelables = extras.getParcelableArray(NPStringFog4.decode("050A51145D5C504B5F554345505507434F510D17455C165B52"))) != null) {
                                            for (Parcelable parcelable2 : parcelables) {
                                                if (parcelable2 instanceof Bundle) {
                                                    Bundle bundle3 = (Bundle) parcelable2;
                                                    bundle3.remove(NPStringFog4.decode("17015B025747"));
                                                    bundle3.remove(NPStringFog4.decode("17015B0257476B15574243595F"));
                                                }
                                            }
                                        }
                                        str21 = C0139.f319;
                                        Log.i(str21, NPStringFog4.decode("0D0A430959500F4540555D59475706100F56100D575A0753455E575F1649525D140850"));
                                    } catch (Exception e8) {
                                        str20 = C0139.f319;
                                        Log.w(str20, e8);
                                    }
                                }
                                z10 = this.f355.f350;
                                if (z10 && notification.extras != null) {
                                    notification.extras.remove(NPStringFog4.decode("050A51145D5C504B42595342444007"));
                                    notification.extras.remove(NPStringFog4.decode("050A51145D5C504B5E514251547B015F0F17060D56"));
                                    notification.extras.remove(NPStringFog4.decode("050A51145D5C504B46555D465D531655"));
                                }
                                list = this.f355.f339;
                                if (list != null) {
                                    list2 = this.f355.f339;
                                    if (!list2.isEmpty()) {
                                        try {
                                            list3 = this.f355.f339;
                                            for (Map<String, Object> replacement : list3) {
                                                Object text3 = text;
                                                StringBuilder sb7 = sb;
                                                Bundle extras2 = extras;
                                                try {
                                                    this.f355.m470(notification, (String) replacement.get(NPStringFog4.decode("1601450A535651")), (String) replacement.get(NPStringFog4.decode("130D410E")), ((Boolean) replacement.get(NPStringFog4.decode("0D035B09405077044155"))).booleanValue(), ((Boolean) replacement.get(NPStringFog4.decode("1601450A5356512C5C6459425D57"))).booleanValue(), ((Boolean) replacement.get(NPStringFog4.decode("1601450A5356512C5C735F5845570C44"))).booleanValue(), ((Boolean) replacement.get(NPStringFog4.decode("1601450A5356512C5C7D55454253055512"))).booleanValue(), ((Boolean) replacement.get(NPStringFog4.decode("1601450A5356512C5C715342585D0C43"))).booleanValue());
                                                    text = text3;
                                                    sb = sb7;
                                                    extras = extras2;
                                                } catch (Exception e9) {
                                                    e = e9;
                                                    str22 = C0139.f319;
                                                    Log.w(str22, e);
                                                    return method.invoke(this.f357, args);
                                                }
                                            }
                                        } catch (Exception e10) {
                                            e = e10;
                                        }
                                    }
                                }
                            }
                        }
                        z7 = this.f355.f345;
                        if (z7) {
                        }
                        z8 = this.f355.f344;
                        if (z8) {
                        }
                        z9 = this.f355.f346;
                        if (z9) {
                        }
                        z10 = this.f355.f350;
                        if (z10) {
                            notification.extras.remove(NPStringFog4.decode("050A51145D5C504B42595342444007"));
                            notification.extras.remove(NPStringFog4.decode("050A51145D5C504B5E514251547B015F0F17060D56"));
                            notification.extras.remove(NPStringFog4.decode("050A51145D5C504B46555D465D531655"));
                        }
                        list = this.f355.f339;
                        if (list != null) {
                        }
                    }
                } catch (Exception e11) {
                    str2 = C0139.f319;
                    Log.w(str2, e11);
                }
                return method.invoke(this.f357, args);
            }
        }
        if (NPStringFog4.decode("0716500746507A0A4659565F525316590E57270C505D0A575D704A5E434944").equals(method.getName()) || NPStringFog4.decode("0716500746507A0A4659565F525316590E57270C505D0A575D44").equals(method.getName()) || NPStringFog4.decode("0716500746507A0A4659565F525316590E57270C505D0A575D447E5E446956510F055203").equals(method.getName())) {
            str = this.f355.f351;
            if (!TextUtils.isEmpty(str)) {
                StackTraceElement[] stackTrace = new Exception().getStackTrace();
                for (int n = 1; n < stackTrace.length; n++) {
                    String className = stackTrace[n].getClassName();
                    if (className.contains(NPStringFog4.decode("070B5848534544095B4344591F53124002550B0A54414A515D564B42534A"))) {
                        return method.invoke(this.f357, args);
                    }
                }
                return null;
            }
        }
        return method.invoke(this.f357, args);
    }
}