歌尔基办 v2.7.0版本的 MD5 值为:921fd7c85ec097e8cab7f049269b36e4
以下内容为反编译后的 ah.java 源代码,内容仅作参考
package io.openinstall.sdk;
import android.content.Context;
import android.net.Uri;
import android.os.Handler;
import android.os.Looper;
import android.os.Message;
import android.text.TextUtils;
import com.fm.openinstall.Configuration;
import com.fm.openinstall.listener.AppInstallListener;
import com.fm.openinstall.listener.AppWakeUpListener;
import com.fm.openinstall.listener.GetUpdateApkListener;
import java.util.HashMap;
import java.util.Map;
public abstract class ah extends Handler {
protected Context a;
protected c b;
protected g c;
protected String d;
protected boolean e;
protected bw f;
protected f g;
protected i h;
protected bi i;
protected ba j;
protected Configuration k;
protected Map l;
public ah(Context context, Looper looper, c cVar, f fVar, String str, g gVar, Configuration configuration) {
super(looper);
this.a = context;
this.b = cVar;
this.g = fVar;
this.d = str;
this.c = gVar;
this.k = configuration;
this.f = bw.a();
this.h = i.a(context);
this.i = bi.a(context);
this.j = ba.a(context);
}
public String a(boolean z, String str) {
Object[] objArr = new Object[4];
objArr[0] = z ? bu.b() : bu.a();
objArr[1] = this.e ? "v2_5" : "v2";
objArr[2] = this.d;
objArr[3] = str;
return String.format("https://%s/api/%s/android/%s/%s", objArr);
}
public void a() {
getLooper().quit();
}
public void a(Uri uri) {
Message obtain = Message.obtain();
obtain.what = 12;
obtain.obj = new ai(uri, null, null);
sendMessage(obtain);
}
public void a(Uri uri, AppWakeUpListener appWakeUpListener) {
Message obtain = Message.obtain();
obtain.what = 2;
obtain.obj = new ai(uri, null, appWakeUpListener);
sendMessage(obtain);
}
public void a(GetUpdateApkListener getUpdateApkListener) {
Message obtain = Message.obtain();
obtain.what = 31;
obtain.obj = new ai(null, null, getUpdateApkListener);
sendMessage(obtain);
}
public void a(aq aqVar) {
Message obtain = Message.obtain();
obtain.what = 21;
obtain.obj = new ai(aqVar, null, null);
sendMessage(obtain);
}
public void a(bl blVar) {
Message obtain = Message.obtain();
obtain.what = 1;
obtain.obj = new ai(blVar, null, null);
sendMessage(obtain);
}
public void a(Boolean bool, int i, AppInstallListener appInstallListener) {
Message obtain = Message.obtain();
obtain.what = 3;
obtain.obj = new ai(bool, Integer.valueOf(i), appInstallListener);
sendMessage(obtain);
}
public void a(String str) {
if (TextUtils.isEmpty(str)) {
return;
}
g b = g.b(str);
if (!this.c.equals(b)) {
this.c.a(b);
this.g.a(this.c);
this.c.i();
}
if (TextUtils.isEmpty(this.c.h())) {
return;
}
this.j.b(this.d, this.c.h());
}
public void a(boolean z) {
Message obtain = Message.obtain();
obtain.what = 22;
obtain.obj = new ai(Boolean.valueOf(z), null, null);
sendMessage(obtain);
}
public void b() {
Message obtain = Message.obtain();
obtain.what = 23;
obtain.obj = null;
sendMessage(obtain);
}
public void b(boolean z) {
this.e = z;
this.f.a(z);
}
public Map c() {
if (this.l == null) {
HashMap hashMap = new HashMap();
this.l = hashMap;
hashMap.put("sN", this.h.i());
this.l.put("andI", this.h.j());
this.l.put("Pk", this.h.b());
this.l.put("cF", this.h.a());
this.l.put("ver", this.h.c());
this.l.put("verI", String.valueOf(this.h.d()));
this.l.put("apV", "2.6.2");
}
this.l.put("iI", TextUtils.isEmpty(this.c.h()) ? this.j.a(this.d) : this.c.h());
this.l.put("ts", String.valueOf(System.currentTimeMillis()));
return this.l;
}
}