Aqara Home v2.4.1版本的 MD5 值为:529779ac2bc0131db52a1fc3098d2b35
以下内容为反编译后的 h.java 源代码,内容仅作参考
package com.ta.a.d;
import android.content.Context;
import android.text.TextUtils;
public class h implements Runnable {
public static volatile boolean b = false;
public Context mContext;
public h(Context context) {
this.mContext = null;
this.mContext = context;
}
private void a() {
com.ta.a.e.h.f();
if (com.ta.a.e.f.e(this.mContext) && !b) {
b = true;
try {
b();
} catch (Throwable unused) {
}
b = false;
}
}
private void b() {
com.ta.a.e.h.f();
String i2 = i();
if (TextUtils.isEmpty(i2)) {
com.ta.a.e.h.m88a("postData is empty", new Object[0]);
} else if (a(i2)) {
com.ta.a.e.h.m88a("", "upload success");
} else {
com.ta.a.e.h.m88a("", "upload fail");
}
}
private String i() {
String r2 = com.ta.utdid2.device.a.a().r();
if (TextUtils.isEmpty(r2)) {
return null;
}
String a = com.ta.a.c.a.a(r2);
if (com.ta.a.e.h.b()) {
com.ta.a.e.h.b("", a);
}
return com.ta.a.c.b.b(a);
}
@Override
public void run() {
try {
a();
} catch (Throwable th) {
com.ta.a.e.h.a("", th, new Object[0]);
}
}
private boolean a(String str) {
a a = b.a("https://mpush-api.aliyun.com/v2.0/a/audid/req/", str, true);
if (a == null) {
return false;
}
return com.ta.utdid2.device.f.a(a);
}
}