Aqara Home v2.4.1版本的 MD5 值为:529779ac2bc0131db52a1fc3098d2b35
以下内容为反编译后的 cf.java 源代码,内容仅作参考
package com.loc;
import android.util.Base64;
import com.amazonaws.services.s3.util.Mimetypes;
import java.nio.charset.StandardCharsets;
public final class cf {
public static boolean a(byte[] bArr) {
String str;
if (bArr != null) {
byte[] bArr2 = null;
try {
dm dmVar = new dm();
dmVar.b.put("Content-Type", Mimetypes.f4066e);
dmVar.b.put("aps_c_src", Base64.encodeToString(("lc_" + ((int) di.a())).getBytes(), 2));
dmVar.b.put("aps_c_key", Base64.encodeToString((di.c() + "*" + di.f()).getBytes(), 2));
dmVar.d = bArr;
if (bw.a) {
str = "http://aps.testing.amap.com/collection/collectData?src=baseCol&ver=v74&";
} else {
str = (bw.b ? "https://" : "http://") + "cgicol.amap.com/collection/collectData?src=baseCol&ver=v74&";
}
dmVar.a = str;
dn a = cz.a().a(dmVar);
if (a != null && a.a == 200) {
bArr2 = a.c;
}
if (bArr2 != null) {
return "true".equals(new String(bArr2, StandardCharsets.UTF_8));
}
return false;
} catch (Exception e2) {
dk.a(e2);
return false;
}
}
return false;
}
}