Aqara Home v2.4.1版本的 MD5 值为:529779ac2bc0131db52a1fc3098d2b35

以下内容为反编译后的 SdkMeta.java 源代码,内容仅作参考


package com.alibaba.mtl.appmonitor;

import android.content.Context;
import com.alibaba.mtl.log.d.i;
import java.util.HashMap;
import java.util.Map;
public class SdkMeta {
    public static final String SDK_VERSION = "2.6.4.11_for_bc";
    public static final Map<String, String> d;

    static {
        HashMap hashMap = new HashMap();
        d = hashMap;
        hashMap.put("sdk-version", SDK_VERSION);
    }

    public static Map<String, String> getSDKMetaData() {
        com.alibaba.mtl.log.a.getContext();
        if (!d.containsKey("sdk-version")) {
            d.put("sdk-version", SDK_VERSION);
        }
        return d;
    }

    public static String getString(Context context, String str) {
        if (context == null) {
            return null;
        }
        int i2 = 0;
        try {
            i2 = context.getResources().getIdentifier(str, "string", context.getPackageName());
        } catch (Throwable th) {
            i.a("SdkMeta", "getString Id error", th);
        }
        if (i2 != 0) {
            return context.getString(i2);
        }
        return null;
    }

    public static void setExtra(Map<String, String> map) {
        if (map != null) {
            d.putAll(map);
        }
    }
}