@DSVerified @DSBan(DSCat.DROIDSAFE_INTERNAL) public static void modelBroadCastReceiver(BroadcastReceiver receiver) { if (mApplication != null) { receiver.setApplication(mApplication); // callback receiver if (receiver instanceof android.app.admin.DeviceAdminReceiver) { DeviceAdminReceiver ar = (DeviceAdminReceiver) receiver; Intent appIntent = mApplication.droidsafeGetIntent(); ar.onDisableRequested(context, appIntent); ar.onDisabled(context, appIntent); ar.onEnabled(context, appIntent); ar.onPasswordChanged(context, appIntent); ar.onPasswordExpiring(context, appIntent); ar.onPasswordFailed(context, appIntent); ar.onPasswordSucceeded(context, appIntent); } if (receiver instanceof android.appwidget.AppWidgetProvider) { AppWidgetProvider aw = (AppWidgetProvider) receiver; Intent appIntent = mApplication.droidsafeGetIntent(); aw.onReceive(context, appIntent); aw.onEnabled(context); aw.onDisabled(context); int[] appWidgetIds = new int[1]; appWidgetIds[0] = DSUtils.FAKE_INT; aw.onUpdate(context, AppWidgetManager.getInstance(context), appWidgetIds); aw.onDeleted(context, appWidgetIds); } } }
@Override public void onEnabled(Context context, Intent intent) { super.onEnabled(context, intent); Log.i(TAG, "서비스 시작"); }
@Override public void onEnabled(Context context, Intent intent) { super.onEnabled(context, intent); Log.i(LOG_TAG_ADMIN, "Device admin is now active!"); }
@Override public void onEnabled(Context context, Intent intent) { super.onEnabled(context, intent); }