50度灰 v5.8.2版本的 MD5 值为:9fe3d350fdc75fa1a3ec45509fa0107e
以下内容为反编译后的 fa.java 源代码,内容仅作参考
package com.flurry.sdk;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.support.customtabs.CustomTabsIntent;
import com.flurry.android.FlurryPrivacySession;
import com.flurry.sdk.di;
import com.flurry.sdk.dk;
import com.flurry.sdk.ex;
import com.google.android.exoplayer2.C;
import com.tencent.qcloud.core.http.e;
import java.util.HashMap;
import java.util.Map;
import org.json.JSONException;
import org.json.JSONObject;
public class fa {
private static final String f3200a = "fa";
private static fa f3201b = new fa();
private fa() {
}
public static void b(Context context, FlurryPrivacySession.a aVar) {
Intent intent = new Intent("android.intent.action.VIEW", aVar.f2499a);
intent.setFlags(C.ENCODING_PCM_MU_LAW);
context.startActivity(intent);
}
public static void a(final FlurryPrivacySession.Request request) {
ck.a().b(new eo() {
@Override
public final void a() {
Map b2 = fa.b(request);
di diVar = new di();
diVar.f3019g = "https://api.login.yahoo.com/oauth2/device_session";
diVar.h = dk.a.kPost;
diVar.a("Content-Type", e.a.f10695b);
diVar.f3004b = new JSONObject(b2).toString();
diVar.f3006d = new dx();
diVar.f3005c = new dx();
diVar.f3003a = new di.a<String, String>() {
@Override
public final void a(di<String, String> diVar2, String str) {
String str2 = str;
try {
int i = diVar2.f3020q;
if (i != 200) {
db.e(fa.f3200a, "Error in getting privacy dashboard url. Error code = ".concat(String.valueOf(i)));
FlurryPrivacySession.Callback callback = request.callback;
if (callback != null) {
callback.failure();
return;
}
return;
}
JSONObject jSONObject = new JSONObject(str2);
fa.a(fa.this, new FlurryPrivacySession.a(jSONObject.getString("device_session_id"), jSONObject.getLong("expires_in"), request));
FlurryPrivacySession.Callback callback2 = request.callback;
if (callback2 != null) {
callback2.success();
}
} catch (JSONException e2) {
db.b(fa.f3200a, "Error in getting privacy dashboard url. ", e2);
FlurryPrivacySession.Callback callback3 = request.callback;
if (callback3 != null) {
callback3.failure();
}
}
}
};
cg.a().a((Object) fa.this, (fa) diVar);
}
});
}
static Map b(FlurryPrivacySession.Request request) {
HashMap hashMap = new HashMap();
hashMap.put("device_verifier", request.verifier);
HashMap hashMap2 = new HashMap();
String d2 = bs.a().d();
if (d2 != null) {
hashMap2.put("gpaid", d2);
}
String str = bs.a().f2793b;
if (str != null) {
hashMap2.put("andid", str);
}
hashMap.putAll(hashMap2);
HashMap hashMap3 = new HashMap();
byte[] e2 = bs.a().e();
if (e2 != null) {
hashMap3.put("flurry_guid", em.a(e2));
}
hashMap3.put("flurry_project_api_key", ck.a().f2893b);
hashMap.putAll(hashMap3);
Context context = request.context;
HashMap hashMap4 = new HashMap();
hashMap4.put("src", "flurryandroidsdk");
hashMap4.put("srcv", "11.7.1");
hashMap4.put("appsrc", context.getPackageName());
cb.a();
hashMap4.put("appsrcv", cb.a(context));
hashMap.putAll(hashMap4);
return hashMap;
}
static void a(fa faVar, final FlurryPrivacySession.a aVar) {
Context context = ck.a().f2892a;
if (ex.a(context)) {
ex.a(context, new CustomTabsIntent.Builder().setShowTitle(true).build(), Uri.parse(aVar.f2499a.toString()), new ex.a() {
@Override
public final void a(Context context2) {
fa.b(context2, aVar);
}
});
} else {
b(context, aVar);
}
}
}