360手机助手 v3.3.0版本的 MD5 值为:127c345ad16bbebee6e347381328afd0
以下内容为反编译后的 e.java 源代码,内容仅作参考
package com.qihoo.appstore.personnalcenter.sdk;
import android.content.Context;
import android.content.Intent;
import android.text.TextUtils;
import android.util.Log;
import com.qihoo.appstore.activities.MainActivity;
import com.qihoo.appstore.activities.PopluarizeActivity;
import com.qihoo.freewifi.push.R;
import com.qihoo360.accounts.QihooAccount;
import com.qihoo360.accounts.a.a.w;
public class e {
private static final boolean f3009a = com.qihoo360.mobilesafe.a.a.f5313a;
private com.qihoo360.accounts.sso.a.c f3010b;
private boolean c;
private final Context d;
private int e = 3;
private final com.qihoo360.accounts.sso.a.a f = new f(this);
public e(Context context) {
this.d = context.getApplicationContext();
e();
}
public static int b(e eVar) {
int i = eVar.e;
eVar.e = i - 1;
return i;
}
public static com.qihoo360.accounts.a.a.c.b b() {
return new com.qihoo360.accounts.a.a.c.b("mpc_zhushou", "973dbf24m", "j8a7i2u6");
}
public static String b(String str) {
try {
return com.qihoo.appstore.utils.h.b(com.qihoo.express.mini.c.c.a(str.getBytes()), 0);
} catch (Exception e) {
return str;
}
}
private void e() {
this.f3010b = new com.qihoo360.accounts.sso.a.c(this.d, this.f, this.d.getMainLooper(), "mpc_zhushou", "973dbf24m", "j8a7i2u6");
if (f3009a) {
Log.d("xx", "am=" + this.f3010b);
}
}
private com.qihoo360.accounts.sso.a.c f() {
if (this.c) {
return this.f3010b;
}
return null;
}
public QihooAccount a(Context context) {
String b2 = com.qihoo.appstore.personnalcenter.g.b(context, "qid");
String b3 = com.qihoo.appstore.personnalcenter.g.b(context, "account");
String[] a2 = a(com.qihoo.appstore.personnalcenter.g.b(context, "qt"));
String str = a2[0];
String str2 = a2[1];
if (TextUtils.isEmpty(b2) || TextUtils.isEmpty(str) || TextUtils.isEmpty(str2) || TextUtils.isEmpty(b3)) {
return null;
}
return new QihooAccount(b3, b2, str, str2, false, null);
}
public w a(Context context, com.qihoo360.accounts.a.a.a.e eVar) {
return new w(context, b(), context.getMainLooper(), eVar);
}
public String a(String str, String str2) {
return "Q=" + str + ";T=" + str2;
}
public void a(QihooAccount qihooAccount) {
if (qihooAccount != null && f() != null) {
f().a(qihooAccount);
}
com.qihoo.appstore.personnalcenter.g.a(this.d, false);
}
public QihooAccount[] a() {
if (f() != null) {
return f().c();
}
return null;
}
public String[] a(String str) {
String[] strArr = new String[2];
if (str.indexOf("Q=") >= 0) {
int indexOf = str.indexOf("Q=") + 2;
int indexOf2 = str.indexOf(";", indexOf);
if (indexOf2 < 0) {
indexOf2 = str.length();
}
strArr[0] = str.substring(indexOf, indexOf2);
}
if (str.indexOf("T=") >= 0) {
int indexOf3 = str.indexOf("T=") + 2;
int indexOf4 = str.indexOf(";", indexOf3);
if (indexOf4 < 0) {
indexOf4 = str.length();
}
strArr[1] = str.substring(indexOf3, indexOf4);
}
return strArr;
}
public void b(Context context) {
Intent intent = new Intent(context, (Class<?>) PopluarizeActivity.class);
intent.putExtra("needCookie", false);
intent.putExtra("title", context.getString(R.string.user_info_user_licence));
intent.putExtra("detail_url", "http://i.360.cn/reg/protocol?titlebar_space=1");
intent.putExtra("showScan", false);
MainActivity.e().b(intent);
}
public void b(QihooAccount qihooAccount) {
if (qihooAccount != null && f() != null) {
f().b(qihooAccount);
}
com.qihoo.appstore.personnalcenter.g.a(this.d, true);
}
public void c() {
if (this.f3010b != null) {
this.f3010b.b();
}
}
public void c(QihooAccount qihooAccount) {
if (qihooAccount == null || f() == null) {
return;
}
f().c(qihooAccount);
}
}