避免用户同意隐私协议前获取IMEI和MAC,缓存IMEI避免频繁获取

This commit is contained in:
juntao
2020-10-14 18:23:08 +08:00
parent 04a8f5772c
commit 8dfda56586
23 changed files with 99 additions and 63 deletions

View File

@ -2,10 +2,10 @@ package com.gh.common.util;
import android.content.Context;
import com.gh.common.exposure.meta.MetaUtil;
import com.gh.common.loghub.LoghubUtils;
import com.halo.assistant.HaloApp;
import com.lightgame.download.DownloadEntity;
import com.lightgame.utils.Util_System_Phone_State;
import com.lightgame.utils.Utils;
import org.json.JSONObject;
@ -53,7 +53,7 @@ public class DataLogUtils {
String channel = HaloApp.getInstance().getChannel();
map.put("version", version);
map.put("user", user);
map.put("device_id", Util_System_Phone_State.getDeviceId(context));
map.put("device_id", MetaUtil.getIMEI());
map.put("channel", channel);
Map<String, String> params = new HashMap<>();