public String genCipherKey() {
IpChange ipChange = $ipChange;
if (ipChange == null || !(ipChange instanceof IpChange)) {
String a = a();//this.a = PreferenceManager.getDefaultSharedPreferences(context);具体不知道用的哪个参数//不是这个,这个是this.a
if (TextUtils.isEmpty(a)) {
return "";
}
try {
MessageDigest messageDigest = MessageDigest.getInstance("MD5");
messageDigest.update(a.getBytes());//传入配置参数
return a(messageDigest.digest());//得到md5转换后的结果
} catch (NoSuchAlgorithmException unused) {
return "";
}
}
return (String) ipChange.ipc$dispatch("1afa5a95", new Object[]{this});
}
@TargetApi(8)
private synchronized String a() {
IpChange ipChange = $ipChange;
if (ipChange != null && (ipChange instanceof IpChange)) {
return (String) ipChange.ipc$dispatch("aff6e538", new Object[]{this});
}
String str = this.c;
if (TextUtils.isEmpty(str)) {
int andIncrement = this.b.getAndIncrement();
if (Build.VERSION.SDK_INT >= 21) {
String[] strArr = Build.SUPPORTED_ABIS;
if (strArr != null && strArr.length != 0) {
if (andIncrement >= 0 && andIncrement < strArr.length) {
str = strArr[andIncrement];
}
str = Build.CPU_ABI;
} else {
str = Build.CPU_ABI;
}
} else if (andIncrement > 0) {
str = Build.CPU_ABI2;
} else {
str = Build.CPU_ABI;
}
}
this.d = str;
String str2 = com.alibaba.wireless.security.aopsdk.replace.android.os.Build.getMODEL() + "/" + str + "/" + Build.BOARD + "/" + Build.HARDWARE + "/" + Build.DEVICE;
this.e = str2;
return str2;
}