APK反编译源代码展示 - 南明离火平台提供

应用版本信息
应用名称:Dgtv
版本号:0.5.8
包名称:haibison.dgtv

MD5 校验值:968838cd794cef01a8eb9d3146a32cc7

反编译源代码说明

CPOExecutor.java 文件包含反编译后的源代码,请注意,该内容仅供学习和参考使用,不得用于非法用途。


package d.sp.services;

import android.app.PendingIntent;
import android.content.ContentProviderResult;
import android.content.ContentValues;
import android.content.Intent;
import android.database.ContentObserver;
import android.net.Uri;
import android.os.Bundle;
import android.os.ResultReceiver;
import android.util.Log;
import d.sp.b;
import d.sp.d;
import f.l.g.c;
import java.util.ArrayList;
import java.util.Iterator;

public class CPOExecutor extends a {
    public static final String A0;
    public static final String B0;
    public static final String C0;
    public static final String D0;
    public static final String E0;
    public static final String F0;
    public static final String G0;
    public static final String H0;
    private static final String u0;
    public static final String v0;
    public static final String w0;
    public static final String x0;
    public static final String y0;
    public static final String z0;

    static {
        String name = CPOExecutor.class.getName();
        u0 = name;
        v0 = name + ".EXECUTE_OPERATIONS";
        w0 = name + ".BULK_INSERT";
        x0 = name + ".TASK_ID";
        y0 = name + ".AUTHORITY";
        z0 = name + ".OPERATIONS";
        A0 = name + ".URI";
        B0 = name + ".CONTENT_VALUES";
        C0 = name + ".RESULT_RECEIVER";
        D0 = name + ".PENDING_INTENT_RESULT";
        E0 = name + ".NOTIFICATION_URIS";
        F0 = name + ".CONTENT_PROVIDER_RESULTS";
        G0 = name + ".BULK_INSERT_COUNT";
        H0 = name + ".THROWABLE";
    }

    public CPOExecutor(String str) {
        super(str);
    }

    protected void b(Intent intent) {
        int i;
        boolean z;
        ResultReceiver resultReceiver;
        PendingIntent pendingIntent;
        String stringExtra = intent.getStringExtra(x0);
        Uri uri = (Uri) intent.getParcelableExtra(A0);
        ArrayList parcelableArrayListExtra = intent.getParcelableArrayListExtra(B0);
        try {
            i = getContentResolver().bulkInsert(uri, (ContentValues[]) parcelableArrayListExtra.toArray(new ContentValues[parcelableArrayListExtra.size()]));
        } catch (Throwable th) {
            th = th;
            i = 0;
        }
        try {
            z = i == parcelableArrayListExtra.size();
            if (z) {
                try {
                    d(intent);
                } catch (Throwable th2) {
                    th = th2;
                    Log.e("D::SP::0.3.0+d", th.getMessage(), th);
                    resultReceiver = (ResultReceiver) intent.getParcelableExtra(C0);
                    if (resultReceiver != null) {
                    }
                    pendingIntent = (PendingIntent) intent.getParcelableExtra(D0);
                    if (pendingIntent != null) {
                    }
                    if (z) {
                    }
                }
            }
            th = null;
        } catch (Throwable th3) {
            th = th3;
            z = false;
            Log.e("D::SP::0.3.0+d", th.getMessage(), th);
            resultReceiver = (ResultReceiver) intent.getParcelableExtra(C0);
            if (resultReceiver != null) {
            }
            pendingIntent = (PendingIntent) intent.getParcelableExtra(D0);
            if (pendingIntent != null) {
            }
            if (z) {
            }
        }
        resultReceiver = (ResultReceiver) intent.getParcelableExtra(C0);
        if (resultReceiver != null) {
            Bundle bundle = new Bundle();
            bundle.putString(x0, stringExtra);
            bundle.putInt(G0, i);
            bundle.putSerializable(H0, th);
            resultReceiver.send(th == null ? 0 : 1, bundle);
        }
        pendingIntent = (PendingIntent) intent.getParcelableExtra(D0);
        if (pendingIntent != null) {
            try {
                pendingIntent.send(this, th == null ? 0 : 1, new Intent().putExtra(x0, stringExtra).putExtra(G0, i).putExtra(H0, th));
            } catch (Throwable th4) {
                Log.e("D::SP::0.3.0+d", th4.getMessage(), th4);
            }
        }
        if (z) {
            c.d(intent);
        }
    }

    protected void c(Intent intent) {
        boolean z;
        ContentProviderResult[] contentProviderResultArr;
        ResultReceiver resultReceiver;
        PendingIntent pendingIntent;
        String stringExtra = intent.getStringExtra(x0);
        Throwable th = null;
        try {
            contentProviderResultArr = getContentResolver().applyBatch(intent.getStringExtra(y0), intent.getParcelableArrayListExtra(z0));
            try {
                int length = contentProviderResultArr.length;
                int i = 0;
                while (true) {
                    if (i >= length) {
                        z = true;
                        break;
                    }
                    ContentProviderResult contentProviderResult = contentProviderResultArr[i];
                    Integer num = contentProviderResult.count;
                    if ((num == null || num.intValue() == 0) && contentProviderResult.uri == null) {
                        z = false;
                        break;
                    }
                    i++;
                }
                if (z) {
                    try {
                        d(intent);
                    } catch (Throwable th2) {
                        th = th2;
                        Log.e("D::SP::0.3.0+d", th.getMessage(), th);
                        resultReceiver = (ResultReceiver) intent.getParcelableExtra(C0);
                        if (resultReceiver != null) {
                        }
                        pendingIntent = (PendingIntent) intent.getParcelableExtra(D0);
                        if (pendingIntent != null) {
                        }
                        if (z) {
                        }
                    }
                }
            } catch (Throwable th3) {
                th = th3;
                z = true;
            }
        } catch (Throwable th4) {
            z = false;
            th = th4;
            contentProviderResultArr = null;
        }
        resultReceiver = (ResultReceiver) intent.getParcelableExtra(C0);
        if (resultReceiver != null) {
            Bundle bundle = new Bundle();
            bundle.putString(x0, stringExtra);
            bundle.putParcelableArray(F0, contentProviderResultArr);
            bundle.putSerializable(H0, th);
            resultReceiver.send(th == null ? 0 : 1, bundle);
        }
        pendingIntent = (PendingIntent) intent.getParcelableExtra(D0);
        if (pendingIntent != null) {
            try {
                pendingIntent.send(this, th == null ? 0 : 1, new Intent().putExtra(x0, stringExtra).putExtra(F0, contentProviderResultArr).putExtra(H0, th));
            } catch (Throwable th5) {
                Log.e("D::SP::0.3.0+d", th5.getMessage(), th5);
            }
        }
        if (z) {
            return;
        }
        c.d(intent);
    }

    protected void d(Intent intent) {
        ArrayList parcelableArrayListExtra = intent.getParcelableArrayListExtra(E0);
        if (parcelableArrayListExtra == null) {
            return;
        }
        Iterator it = parcelableArrayListExtra.iterator();
        while (it.hasNext()) {
            Uri uri = (Uri) it.next();
            getContentResolver().notifyChange(uri, (ContentObserver) null, b.d(uri, "4210a3a5-141f0147-11609534-6f7cc523.SYNC_TO_NETWORK", false));
        }
    }

    @Override
    protected void onHandleIntent(Intent intent) {
        if (d.f10167a) {
            Log.d("D::SP::0.3.0+d", u0 + "#onHandleIntent() >> " + intent);
        }
        if (intent == null) {
            return;
        }
        if (v0.equals(intent.getAction())) {
            c(intent);
        } else if (w0.equals(intent.getAction())) {
            b(intent);
        }
    }

    public CPOExecutor() {
        this(u0);
    }
}