导航菜单

页面标题

页面副标题

管控平台 v5.2.3.0. - ExportSilentInstallService.java 源代码

正在查看: 管控平台 v5.2.3.0. 应用的 ExportSilentInstallService.java JAVA 源代码文件

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


package com.iflytek.mdmservice.service;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.os.RemoteException;
import androidx.annotation.Nullable;
import com.iflytek.mdmcommon.ComboUtil;
import com.iflytek.mdmcommon.LogUtil;
import com.iflytek.mdmcommon.SpHelper;
import com.iflytek.mdmlibrary.MdmSdk;
import com.iflytek.mdmservice.MDMApp;
import com.iflytek.mdmservice.h;
import com.iflytek.user.combo.ComboManage;

public class ExportSilentInstallService extends Service {

    h.a f470a = new a(this);

    class a extends h.a {

        class RunnableC0015a implements Runnable {

            final String f471a;

            final String f472b;

            RunnableC0015a(a aVar, String str, String str2) {
                this.f471a = str;
                this.f472b = str2;
            }

            @Override
            public void run() {
                try {
                    if (ComboUtil.getInstance(MDMApp.j()).canDownload(MDMApp.j(), String.valueOf(SpHelper.getLong(ComboManage.USER_ID, -1L)))) {
                        LogUtil.ce("ExportSilentInstallService", "当前用户套餐未到期");
                    } else {
                        if (com.iflytek.mdmservice.utils.g.a(this.f471a)) {
                            MdmSdk.silentInstall(this.f472b);
                            return;
                        }
                        Object[] objArr = new Object[1];
                        objArr[0] = this.f471a == null ? "未知应用" : this.f471a;
                        LogUtil.ce("ExportSilentInstallService", String.format("当前应用【%s】不在自更新列表当中", objArr));
                    }
                } catch (Exception e) {
                    if (e.getMessage() != null) {
                        LogUtil.ce("ExportSilentInstallService", e.getMessage());
                    }
                }
            }
        }

        a(ExportSilentInstallService exportSilentInstallService) {
        }

        @Override
        public void u(String str, String str2) throws RemoteException {
            try {
                MDMApp.j().o().execute(new RunnableC0015a(this, str, str2));
            } catch (Exception e) {
                if (e.getMessage() != null) {
                    LogUtil.ce("ExportSilentInstallService", e.getMessage());
                }
            }
        }
    }

    @Override
    @Nullable
    public IBinder onBind(Intent intent) {
        return this.f470a;
    }
}