暗网解密 v2.0.4版本的 MD5 值为:d3a04548fef88e775cbe4c3c6e7d81ad
以下内容为反编译后的 ef.java 源代码,内容仅作参考
package com.flurry.sdk;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageInfo;
import android.net.Uri;
import androidx.browser.customtabs.CustomTabsIntent;
import com.alibaba.fastjson.asm.Label;
import com.flurry.android.FlurryPrivacySession;
import com.flurry.sdk.dc;
import com.flurry.sdk.de;
import com.flurry.sdk.ec;
import com.flurry.sdk.eq;
import com.lzy.okgo.model.HttpHeaders;
import java.util.HashMap;
import java.util.Map;
import org.json.JSONException;
import org.json.JSONObject;
public final class ef extends f {
private static ef f7321a = new ef();
private FlurryPrivacySession.Request f7322b;
private final o<ak> f7323d;
private ef() {
super("PrivacyManager", eq.a(eq.a.MISC));
this.f7323d = new o<ak>() {
@Override
public final void a(ak akVar) {
n.a().f7679g.unsubscribe(ef.this.f7323d);
ef.a(ef.this);
}
};
}
public static void a(FlurryPrivacySession.Request request) {
ef efVar = f7321a;
efVar.f7322b = request;
efVar.runAsync(new ea() {
@Override
public final void a() {
if (n.a().f7679g.c()) {
ef.a(ef.this);
return;
}
cx.a(3, "PrivacyManager", "Waiting for ID provider.");
n.a().f7679g.subscribe(ef.this.f7323d);
}
});
}
public static void b(Context context, FlurryPrivacySession.a aVar) {
Intent intent = new Intent("android.intent.action.VIEW", aVar.f6643a);
intent.setFlags(Label.FORWARD_REFERENCE_TYPE_SHORT);
context.startActivity(intent);
}
public static void a(ef efVar) {
efVar.runAsync(new ea() {
@Override
public final void a() {
Map b2 = ef.b(ef.this.f7322b);
dc dcVar = new dc();
dcVar.f7230f = "https://api.login.yahoo.com/oauth2/device_session";
dcVar.f7231g = de.a.kPost;
dcVar.a(HttpHeaders.HEAD_KEY_CONTENT_TYPE, "application/json");
dcVar.f7217b = new JSONObject(b2).toString();
dcVar.f7219d = new ds();
dcVar.f7218c = new ds();
dcVar.f7216a = new dc.a<String, String>() {
@Override
public final void a(dc<String, String> dcVar2, String str) {
String str2 = str;
try {
int i = dcVar2.l;
if (i == 200) {
JSONObject jSONObject = new JSONObject(str2);
ef.a(ef.this, new FlurryPrivacySession.a(jSONObject.getString("device_session_id"), jSONObject.getLong("expires_in"), ef.this.f7322b));
ef.this.f7322b.callback.success();
return;
}
cx.e("PrivacyManager", "Error in getting privacy dashboard url. Error code = ".concat(String.valueOf(i)));
ef.this.f7322b.callback.failure();
} catch (JSONException e2) {
cx.e("PrivacyManager", "Error in getting privacy dashboard url. ", e2);
ef.this.f7322b.callback.failure();
}
}
};
cs.a().a(ef.this, dcVar);
}
});
}
public static Map b(FlurryPrivacySession.Request request) {
HashMap hashMap = new HashMap();
hashMap.put("device_verifier", request.verifier);
HashMap hashMap2 = new HashMap();
ak a2 = n.a().f7679g.a();
String str = a2.a().get(al.AndroidAdvertisingId);
if (str != null) {
hashMap2.put("gpaid", str);
}
String str2 = a2.a().get(al.DeviceId);
if (str2 != null) {
hashMap2.put("andid", str2);
}
hashMap.putAll(hashMap2);
HashMap hashMap3 = new HashMap();
byte[] bytes = n.a().f7679g.a().a().get(al.AndroidInstallationId).getBytes();
if (bytes != null) {
hashMap3.put("flurry_guid", dy.a(bytes));
}
hashMap3.put("flurry_project_api_key", n.a().f7680h.f6784a);
hashMap.putAll(hashMap3);
Context context = request.context;
HashMap hashMap4 = new HashMap();
hashMap4.put("src", "flurryandroidsdk");
hashMap4.put("srcv", "14.0.0");
hashMap4.put("appsrc", context.getPackageName());
PackageInfo b2 = dw.b(context);
hashMap4.put("appsrcv", (b2 == null || (r5 = b2.versionName) == null) ? "Unknown" : "Unknown");
hashMap.putAll(hashMap4);
return hashMap;
}
public static void a(ef efVar, final FlurryPrivacySession.a aVar) {
Context a2 = b.a();
if (ec.a(a2)) {
ec.a(a2, new CustomTabsIntent.Builder().setShowTitle(true).build(), Uri.parse(aVar.f6643a.toString()), new ec.a() {
@Override
public final void a(Context context) {
ef.b(context, aVar);
}
});
} else {
b(a2, aVar);
}
}
}