小源钱包 v1.0.0版本的 MD5 值为:2fddb51fa9867693f901004082511bea
以下内容为反编译后的 l1.java 源代码,内容仅作参考
package com.loc;
import android.content.Context;
import android.os.Bundle;
import android.text.TextUtils;
import com.amap.api.location.AMapLocation;
import com.amap.api.location.AMapLocationClientOption;
import com.loc.z1;
import com.umeng.analytics.pro.am;
import java.util.HashMap;
import java.util.Locale;
import org.json.JSONObject;
import p6.v2;
public final class l1 {
public static String f14348a = "5.3";
static HashMap<String, String> f14359l;
public static final String[] f14349b = {"5.1"};
static String f14350c = "http://apilocate.amap.com/mobile/binary";
static String f14351d = "http://dualstack-a.apilocate.amap.com/mobile/binary";
private static final String[] f14352e = {"com.amap.api.location", "com.loc", "com.amap.api.fence"};
static String f14353f = "11G;11K;13J;13S;15O;15U;17J;17Y;197;1A6";
public static String f14354g = null;
public static String f14355h = null;
public static int f14356i = 30000;
public static String f14357j = null;
public static String f14358k = null;
private static z1 f14360m = null;
public static Bundle a(AMapLocationClientOption aMapLocationClientOption) {
Bundle bundle = new Bundle();
if (aMapLocationClientOption == null) {
aMapLocationClientOption = new AMapLocationClientOption();
}
try {
bundle.putParcelable("opt", aMapLocationClientOption);
} catch (Throwable th) {
h(th, "CoreUtil", "getOptionBundle");
}
return bundle;
}
public static AMapLocation b(AMapLocation aMapLocation, AMapLocation aMapLocation2) {
if (aMapLocation2 == null) {
return aMapLocation;
}
try {
aMapLocation.w0(aMapLocation2.O());
aMapLocation.L0(aMapLocation2.Z());
aMapLocation.J0(aMapLocation2.X());
aMapLocation.N0(aMapLocation2.b0());
aMapLocation.H0(aMapLocation2.c0());
String M = aMapLocation2.M();
String H = aMapLocation2.H();
aMapLocation.t0(M);
aMapLocation.o0(H);
aMapLocation.s0(aMapLocation2.L());
aMapLocation.y0(aMapLocation2.Q());
aMapLocation.K0(aMapLocation2.Y());
aMapLocation.q0(aMapLocation2.J());
aMapLocation.p0(aMapLocation2.I());
aMapLocation.x0(aMapLocation2.P());
if (aMapLocation.getExtras() != null) {
aMapLocation.getExtras().putString("citycode", aMapLocation2.M());
aMapLocation.getExtras().putString("desc", aMapLocation2.getExtras().getString("desc"));
aMapLocation.getExtras().putString("adcode", aMapLocation2.H());
} else {
Bundle bundle = new Bundle();
bundle.putString("citycode", aMapLocation2.M());
bundle.putString("desc", aMapLocation2.getExtras().getString("desc"));
bundle.putString("adcode", aMapLocation2.H());
aMapLocation.setExtras(bundle);
}
} catch (Throwable unused) {
}
return aMapLocation;
}
public static AMapLocationClientOption c(Bundle bundle) {
AMapLocationClientOption aMapLocationClientOption = new AMapLocationClientOption();
if (bundle == null) {
return aMapLocationClientOption;
}
try {
bundle.setClassLoader(AMapLocationClientOption.class.getClassLoader());
return (AMapLocationClientOption) bundle.getParcelable("opt");
} catch (Throwable th) {
h(th, "CoreUtil", "getOptionFromBundle");
return aMapLocationClientOption;
}
}
public static String d() {
return f14350c;
}
public static void e(Context context) {
try {
if (a2.s(context)) {
f14350c = "http://abroad.apilocate.amap.com/mobile/binary";
return;
}
q();
g(g1.a(p1.j(context)));
} catch (Throwable th) {
h(th, "CoreUtil", "checkUrl");
}
}
public static void f(AMapLocation aMapLocation, JSONObject jSONObject) {
String str;
if (jSONObject != null) {
try {
double optDouble = jSONObject.optDouble(com.umeng.analytics.pro.d.C, aMapLocation.getLatitude());
double optDouble2 = jSONObject.optDouble("lon", aMapLocation.getLongitude());
aMapLocation.setProvider(jSONObject.optString(com.umeng.analytics.pro.d.M, aMapLocation.getProvider()));
aMapLocation.setLatitude(optDouble);
aMapLocation.setLongitude(optDouble2);
aMapLocation.setAltitude(jSONObject.optDouble("altitude", aMapLocation.getAltitude()));
try {
String optString = jSONObject.optString("accuracy");
if (!TextUtils.isEmpty(optString)) {
aMapLocation.setAccuracy(Float.parseFloat(optString));
}
} catch (Throwable unused) {
}
try {
String optString2 = jSONObject.optString("speed");
if (!TextUtils.isEmpty(optString2)) {
aMapLocation.setSpeed(Float.parseFloat(optString2));
}
} catch (Throwable unused2) {
}
try {
String optString3 = jSONObject.optString("bearing");
if (!TextUtils.isEmpty(optString3)) {
aMapLocation.setBearing(Float.parseFloat(optString3));
}
} catch (Throwable unused3) {
}
aMapLocation.o0(jSONObject.optString("adcode", aMapLocation.H()));
aMapLocation.t0(jSONObject.optString("citycode", aMapLocation.M()));
aMapLocation.p0(jSONObject.optString("address", aMapLocation.I()));
String optString4 = jSONObject.optString("desc", "");
aMapLocation.w0(jSONObject.optString(am.O, aMapLocation.O()));
aMapLocation.K0(jSONObject.optString("province", aMapLocation.Y()));
aMapLocation.s0(jSONObject.optString("city", aMapLocation.L()));
aMapLocation.y0(jSONObject.optString("district", aMapLocation.Q()));
aMapLocation.L0(jSONObject.optString("road", aMapLocation.Z()));
aMapLocation.N0(jSONObject.optString("street", aMapLocation.b0()));
aMapLocation.H0(jSONObject.optString("number", aMapLocation.c0()));
aMapLocation.J0(jSONObject.optString("poiname", aMapLocation.X()));
aMapLocation.q0(jSONObject.optString("aoiname", aMapLocation.J()));
aMapLocation.z0(jSONObject.optInt("errorCode", aMapLocation.R()));
aMapLocation.A0(jSONObject.optString("errorInfo", aMapLocation.T()));
aMapLocation.G0(jSONObject.optInt("locationType", aMapLocation.W()));
aMapLocation.E0(jSONObject.optString("locationDetail", aMapLocation.V()));
aMapLocation.setTime(jSONObject.optLong("time", aMapLocation.getTime()));
boolean optBoolean = jSONObject.optBoolean("isOffset", aMapLocation.g0());
aMapLocation.I0(optBoolean);
aMapLocation.r0(jSONObject.optString("poiid", aMapLocation.K()));
aMapLocation.C0(jSONObject.optString("floor", aMapLocation.U()));
aMapLocation.x0(jSONObject.optString("description", aMapLocation.P()));
if (jSONObject.has("coordType")) {
str = jSONObject.optString("coordType", "GCJ02");
} else if (i(optDouble, optDouble2) && optBoolean) {
aMapLocation.v0("GCJ02");
Bundle bundle = new Bundle();
bundle.putString("citycode", aMapLocation.M());
bundle.putString("desc", optString4.toString());
bundle.putString("adcode", aMapLocation.H());
aMapLocation.setExtras(bundle);
} else {
str = "WGS84";
}
aMapLocation.v0(str);
Bundle bundle2 = new Bundle();
bundle2.putString("citycode", aMapLocation.M());
bundle2.putString("desc", optString4.toString());
bundle2.putString("adcode", aMapLocation.H());
aMapLocation.setExtras(bundle2);
} catch (Throwable th) {
h(th, "CoreUtil", "transformLocation");
}
}
}
private static void g(String str) {
HashMap<String, String> hashMap;
if (str != null) {
try {
if (str.length() == 0 || (hashMap = f14359l) == null || !hashMap.containsKey(str)) {
return;
}
String str2 = f14359l.get(str);
String str3 = null;
if (str2 != null && str2.length() > 0) {
str3 = new String(g1.h(l(str2), str), "utf-8");
}
if (str3 == null || str3.length() <= 0 || !str3.contains("http:")) {
return;
}
f14350c = str3;
} catch (Throwable th) {
h(th, "CoreUtil", "checkUrl");
}
}
}
public static void h(Throwable th, String str, String str2) {
if ("reportError".equals(str2) || (th instanceof v2)) {
return;
}
try {
j.m(th, str, str2);
} catch (Throwable unused) {
}
}
public static boolean i(double d10, double d11) {
int i10 = (int) ((d11 - 73.0d) / 0.5d);
int i11 = (int) ((d10 - 3.5d) / 0.5d);
if (i11 < 0 || i11 >= 101 || i10 < 0 || i10 >= 124) {
return false;
}
try {
return "00000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000001011000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011101010111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111101111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000110111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011010111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001110011100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001010011100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111100110001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111000111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111110011000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111000000000111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111100000000000010111110100000011000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111110000000001111111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111000000111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111111101111111111111111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111111111111111111111111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000101111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111111111111111111111111111111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000001111111111111111111111111111111111111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000111111111111111111111111111111111111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000001111111111111111111111111111111111111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000011111111111111111111111111111111111111111111100000000000000000000000000000000000000000000000000000000000000000011110000000001111111111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000000011000011111100000000111111111111111111111111111111111111111111111100000000000000000000000000000000000000000000000000001111111100111111111100110111111111111111111111111111111111111111111111110000000000000000000000000000000000000000000000000001111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000000000000000000000000000000011111111111111111111111111111111111111111111111111111111111111111111111111111000000000000000000000000000000000000000000000111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000000000000000000000000101111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000000000000000000000000000001111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000000000000000000011111111111111111111111111111111111111111111111111111111111111111111111111111111111111110000000000000000000000000000000000011111111111111111111111111111111111111111111111111111111111111111111111111111111111111110000000000000000000000000000000000001111111111111111111111111111111111111111111111111111111111111111111111111111111111111110000000000000000000000000000000000001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000000000000000000000000000111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000000000000000000000000000001111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000000000000000000000000000000111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000000000000000000000011111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000000000000000000000011111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000000000000000000000111111111111111111111111111111111111111111111111111111111111111111111111111111111111110000000000000000000000000000000000001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110000000000000000000000000000000001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000000000000011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110000000000000000000000000011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000000000000000000111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111011111000000000000000000000000000111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100100000000000000000000000000000111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100011100000000000000000000000000011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000111110000000000000000000000001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110011111110000000000000000000000111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110111111110000000000000000000000111011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110000000000000000000000001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000000011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000000000000000011111111111111111111111111111111111111111111111100001111111111111111111111111111111111111111111111111010000000000000000000000111111111111111111111111111111111111111111110000000000000001111111111111111111111111111111111111111111100000000000000000000011111111111111111111111111111111100000000000000000000000000001111111111111111111111111111111111111111110000000000000000000001111111111111111111111111111111100000000000000000000000000000001111111111111111111111111111111111111111000000000000000000000111111111111111111111111111111110000000000000000000000000000001111111111111111111111111111111111111111100000000000000000000111111111111111111111111111111000000000000000000000000000000000111111111111111111111111111111111111111111000000000000000000001111111111111111111111111110000000000000000000000000000000000001110011111111111111111111111111111111111111100000000000000000000011111111111111111100000000000000000000000000000000000000000000000001111111111111111111111111111111111111000000000000000000001111111111111111111000000000000000000000000000000000000000000000000011111111111111111111111111111111111100000000000000000000011111111111111111100000000000000000000000000000000000000000000000000011111111111111111111111111111111111000000000000000000001111111111111111100000000000000000000000000000000000000000000000000000000111111111111111111111111111111110000000000000000000000000111111111100000000000000000000000000000000000000000000000000111111111111111111111111111111111111111000000000000000000000000011111111100000000000000000000000000000000000000000000000000011111111111111111111111111111110001111100000000000000000000000000111110000000000000000000000000000000000000000000000000000001111111111111111111111111111111000000000000000000000000000000000001110000000000000000000000000000000000000000000000000000000011111111111111111111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111111111111111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010110000000000000000000000".charAt((i11 * 124) + i10) == '1';
} catch (Throwable th) {
h(th, "CoreUtil", "isChina");
return true;
}
}
public static String j() {
return f14351d;
}
public static String k(Context context) {
return v1.a(p1.i(context));
}
private static byte[] l(String str) {
if (str == null || str.length() < 2) {
return new byte[0];
}
String lowerCase = str.toLowerCase(Locale.US);
int length = lowerCase.length() / 2;
byte[] bArr = new byte[length];
for (int i10 = 0; i10 < length; i10++) {
int i11 = i10 * 2;
bArr[i10] = (byte) (o1.U(lowerCase.substring(i11, i11 + 2)) & 255);
}
return bArr;
}
public static z1 m() {
try {
if (f14360m == null) {
f14360m = new z1.a("loc", "6.4.3", "AMAP_Location_SDK_Android 6.4.3").b(p()).a("6.4.3").c();
}
} catch (Throwable th) {
h(th, "CoreUtil", "getSDKInfo");
}
return f14360m;
}
public static void n(Context context) {
try {
if (a2.s(context)) {
f14350c = "http://abroad.apilocate.amap.com/mobile/binary";
f14351d = "http://abroad.apilocate.amap.com/mobile/binary";
return;
}
f14350c = "http://apilocate.amap.com/mobile/binary";
f14351d = "http://dualstack-a.apilocate.amap.com/mobile/binary";
} catch (Throwable th) {
h(th, "CoreUtil", "changeUrl");
}
}
public static String o() {
return f14353f;
}
private static String[] p() {
return (String[]) f14352e.clone();
}
private static void q() {
try {
if (f14359l == null) {
f14359l = new HashMap<>(16);
}
f14359l.clear();
f14359l.put("fe643c382e5c3b3962141f1a2e815a78", "FB923EE67A8B4032DAA517DD8CD7A26FF7C25B0C3663F92A0B61251C4FFFA858DF169D61321C3E7919CB67DF8EFEC827");
f14359l.put("9a571aa113ad987d626c0457828962e6", "D2FF99A88BEB04683D89470D4FA72B1749DA456AB0D0F1A476477CE5A6874F53A9106423D905F9D808C0FCE8E7F1E04AC642F01FE41D0C7D933971F45CBA72B7");
f14359l.put("668319f11506def6208d6afe320dfd52", "53E53D46011A6BBAEA4FAE5442E659E0577CDD336F930C28635C322FB3F51C3C63F7FBAC9EAE448DFA2E5E5D716C4807");
} catch (Throwable th) {
h(th, "CoreUtil", "initUrlHash");
}
}
}