Driving Zone: Germany v1.22.4版本的 MD5 值为:2b6e2d8e8733a3104dcc306c5770286c
以下内容为反编译后的 e.java 源代码,内容仅作参考
package com.my.tracker.obfuscated;
import android.content.Context;
import android.net.Uri;
import android.os.Handler;
import android.text.TextUtils;
import com.adjust.sdk.Constants;
import com.my.tracker.MyTracker;
import com.my.tracker.MyTrackerAttribution;
import java.net.URLDecoder;
import java.util.concurrent.atomic.AtomicBoolean;
import org.json.JSONObject;
public final class e {
final AtomicBoolean f5453a = new AtomicBoolean(false);
final w0 b;
final Context c;
e(w0 w0Var, Context context) {
this.b = w0Var;
this.c = context.getApplicationContext();
}
public static e a(w0 w0Var, Context context) {
return new e(w0Var, context);
}
public static void a(MyTracker.AttributionListener attributionListener, MyTrackerAttribution myTrackerAttribution) {
try {
attributionListener.onReceiveAttribution(myTrackerAttribution);
} catch (Throwable unused) {
v0.b("AttributionHandler error: exception at AttributionListener::onReceiveAttribution()");
}
}
public void a(String str) {
String str2;
if (TextUtils.isEmpty(str)) {
str2 = "AttributionHandler: referrer is empty";
} else {
if (!a()) {
try {
String queryParameter = Uri.parse("https://my.com/?" + URLDecoder.decode(str, "UTF-8")).getQueryParameter("mt_deeplink");
if (TextUtils.isEmpty(queryParameter)) {
v0.a("AttributionHandler: deeplink is empty");
return;
} else {
a(new JSONObject().put(Constants.DEEPLINK, queryParameter));
return;
}
} catch (Throwable th) {
v0.b("AttributionHandler error: handling referrer failed with error: ", th);
return;
}
}
str2 = "AttributionHandler: attribution has already been received";
}
v0.a(str2);
}
void a(JSONObject jSONObject) {
String optString = jSONObject.optString(Constants.DEEPLINK);
if (TextUtils.isEmpty(optString)) {
v0.a("AttributionHandler: deeplink is empty");
return;
}
if (!this.f5453a.compareAndSet(false, true)) {
v0.a("AttributionHandler: attribution has already been received");
return;
}
l0 a2 = l0.a(this.c);
if (!TextUtils.isEmpty(a2.f())) {
v0.a("AttributionHandler: attribution has already been received");
return;
}
a2.i(jSONObject.toString());
final MyTracker.AttributionListener c = this.b.c();
if (c == null) {
return;
}
Handler b = this.b.b();
if (b == null) {
b = d.f5452a;
}
final MyTrackerAttribution newAttribution = MyTrackerAttribution.newAttribution(optString);
try {
b.post(new Runnable() {
@Override
public final void run() {
e.a(MyTracker.AttributionListener.this, newAttribution);
}
});
} catch (Throwable th) {
v0.b("AttributionHandler error: exception occurred while post runnable", th);
}
}
boolean a() {
if (this.f5453a.get()) {
return true;
}
return !TextUtils.isEmpty(l0.a(this.c).f());
}
public void b(String str) {
if (a()) {
v0.a("AttributionHandler: attribution has already been received");
return;
}
try {
JSONObject optJSONObject = new JSONObject(str).optJSONObject("attribution");
if (optJSONObject == null) {
v0.a("AttributionHandler: empty attribution object has been returned");
return;
}
if (!optJSONObject.has("error")) {
a(optJSONObject);
return;
}
v0.a("AttributionHandler: attribution response returned error " + optJSONObject.optInt("error"));
} catch (Throwable th) {
v0.b("AttributionHandler error: handling server attribution failed with error: ", th);
}
}
}