导航菜单

页面标题

页面副标题

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

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

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


package com.iflytek.mdmservice.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.SystemClock;
import com.iflytek.mdmcommon.SpHelper;
import com.iflytek.mdmservice.MDMApp;
import com.iflytek.mdmservice.db.entity.DeviceInfo;
import com.iflytek.mdmservice.k.d0;

public class SyncTimeReceiver extends BroadcastReceiver {

    class a implements d0.w {
        a(SyncTimeReceiver syncTimeReceiver) {
        }

        @Override
        public void a(String str) {
            Intent intent = new Intent("com.iflytek.mdm.action.SYNC_TIME_STATUS");
            intent.putExtra(DeviceInfo.STATUS, 0);
            intent.setPackage("com.simplemobiletools.clock");
            MDMApp.j().sendBroadcast(intent);
        }

        @Override
        public void onException(Exception exc) {
            Intent intent = new Intent("com.iflytek.mdm.action.SYNC_TIME_STATUS");
            intent.putExtra(DeviceInfo.STATUS, 0);
            intent.setPackage("com.simplemobiletools.clock");
            MDMApp.j().sendBroadcast(intent);
        }

        @Override
        public void onSuccess(String str) {
            SpHelper.putLong("sync_success_time", SystemClock.elapsedRealtime());
            Intent intent = new Intent("com.iflytek.mdm.action.SYNC_TIME_STATUS");
            intent.putExtra(DeviceInfo.STATUS, 1);
            intent.setPackage("com.simplemobiletools.clock");
            MDMApp.j().sendBroadcast(intent);
        }
    }

    @Override
    public void onReceive(Context context, Intent intent) {
        d0.b0().l0(new a(this));
    }
}