360手机助手 v3.3.0版本的 MD5 值为:127c345ad16bbebee6e347381328afd0
以下内容为反编译后的 ca.java 源代码,内容仅作参考
package com.qihoo.appstore.utils;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.PowerManager;
import com.qihoo.appstore.activities.MainActivity;
import com.qihoo.appstore.clear.ClearBackgroundHelper;
import com.qihoo.appstore.express.PushMessageHandle;
import com.qihoo.appstore.resource.app.App;
import com.qihoo.appstore.utils.UpdateManager;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
public final class ca extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
String f;
List b2;
String g;
List b3;
String h;
List b4;
String i;
List b5;
String j;
List b6;
bk.b("DebugUtils", "================" + intent.getAction() + "===================");
if (intent.getAction().equals("com.qihoo.appstore.debug.wapnetwork")) {
com.qihoo.appstore.f.g.i("test apn dialog");
return;
}
if (intent.getAction().equals("com.qihoo.appstore.debug.silentinstall")) {
Iterator it = com.qihoo.appstore.f.g.a().iterator();
if (it.hasNext()) {
com.qihoo.appstore.f.g.a(((com.qihoo.appstore.f.f) it.next()).a(), 0, 1004);
return;
}
return;
}
if (intent.getAction().equals("com.qihoo.appstore.debug.httpreq")) {
new Thread(new cb(this)).start();
return;
}
if (intent.getAction().equals("com.qihoo.appstore.debug.testdl")) {
String[] split = ((String) intent.getExtra("urls")).split(";");
for (int i2 = 0; i2 < split.length; i2++) {
App app = new App();
app.q(split[i2]);
app.m("com." + split[i2]);
app.d(1);
app.o(split[i2]);
app.b(20000000L);
com.qihoo.appstore.f.g.a((com.qihoo.appstore.e.a.b) app, false, false);
}
return;
}
if (intent.getAction().equals("com.qihoo.appstore.debug.wap")) {
com.qihoo.appstore.f.g.d();
return;
}
if (intent.getAction().equals("com.qihoo.appstore.debug.throwOOM")) {
throw new OutOfMemoryError("debug for crash");
}
if (intent.getAction().equals("com.qihoo.appstore.debug.deepscan")) {
ClearBackgroundHelper.startBackgroundScan();
return;
}
if (intent.getAction().equals("com.qihoo.appstore.debug.PrintSlientTask")) {
for (com.qihoo.appstore.f.f fVar : com.qihoo.appstore.f.g.w()) {
bk.b("DebugUtils", fVar.q() + "," + fVar.l() + "," + fVar.v.I());
}
return;
}
if (intent.getAction().equals("com.qihoo.appstore.debug.openScreen")) {
PowerManager powerManager = (PowerManager) context.getSystemService("power");
if (powerManager.isScreenOn()) {
return;
}
powerManager.newWakeLock(805306394, "ScreenOn").acquire(10000L);
return;
}
if (intent.getAction().equals("com.qihoo.appstore.debug.PrintNormalTask")) {
Iterator it2 = com.qihoo.appstore.f.g.a().iterator();
while (it2.hasNext()) {
com.qihoo.appstore.f.f fVar2 = (com.qihoo.appstore.f.f) it2.next();
bk.b("DebugUtils", fVar2.q() + "," + fVar2.l() + "," + fVar2.v.I());
}
return;
}
if (intent.getAction().equals("com.qihoo.appstore.debug.PrintFinishedSlientTask")) {
Iterator it3 = com.qihoo.appstore.f.g.c(true).iterator();
while (it3.hasNext()) {
com.qihoo.appstore.f.f fVar3 = (com.qihoo.appstore.f.f) it3.next();
bk.b("DebugUtils", fVar3.q() + "," + fVar3.l() + "," + fVar3.v.I());
}
return;
}
if (intent.getAction().equals("com.qihoo.appstore.debug.ForceRefreshUpdate")) {
com.qihoo.appstore.l.d.a(context, true, false);
return;
}
if (intent.getAction().equals("com.qihoo.appstore.debug.RefreshBaoheUpdate")) {
UpdateManager.a(context, true, true, true);
return;
}
if (intent.getAction().equals("com.qihoo.appstore.debug.RestartAllKouDaiTask")) {
com.qihoo.appstore.f.g.b(false);
return;
}
if (intent.getAction().equals("com.qihoo.appstore.debug.ShowKouDaiToast")) {
com.qihoo.appstore.f.cx.a(context, 10, 0, 10000);
return;
}
if (intent.getAction().equals("com.qihoo.appstore.debug.ShowKouDaiDialog1")) {
com.qihoo.appstore.f.cx.b(MainActivity.e(), 5, 30000000);
return;
}
if (intent.getAction().equals("com.qihoo.appstore.debug.ShowKouDaiDialog2")) {
com.qihoo.appstore.f.cx.a(MainActivity.e(), 5, 30000000);
return;
}
if (intent.getAction().equals("com.qihoo.appstore.debug.sendapk")) {
j = bz.j();
b6 = bz.b(j);
PushMessageHandle.f1510b.a(b6, b6.size());
return;
}
if (intent.getAction().equals("com.qihoo.appstore.debug.sendtxturl")) {
i = bz.i();
b5 = bz.b(i);
PushMessageHandle.f1510b.a(b5, b5.size());
return;
}
if (intent.getAction().equals("com.qihoo.appstore.debug.sendmsgtxt")) {
h = bz.h();
b4 = bz.b(h);
PushMessageHandle.f1510b.a(b4, b4.size());
return;
}
if (intent.getAction().equals("com.qihoo.appstore.debug.send360videourl")) {
g = bz.g();
b3 = bz.b(g);
PushMessageHandle.f1510b.a(b3, b3.size());
return;
}
if (intent.getAction().equals("com.qihoo.appstore.debug.send3rx")) {
return;
}
if (intent.getAction().equals("com.qihoo.appstore.debug.uploadpv")) {
com.qihoo.appstore.r.a.a("getUpdate0", (Set) null);
return;
}
if (intent.getAction().equals("com.qihoo.appstore.debug.group_item")) {
f = bz.f();
b2 = bz.b(f);
PushMessageHandle.f1510b.a(b2, b2.size());
return;
}
if (intent.getAction().equals("com.qihoo.appstore.debug.showcrashdialog")) {
com.qihoo.appstore.activities.ay.a(MainActivity.e());
return;
}
if (intent.getAction().equals("com.qihoo.appstore.debug.showupdatedialog")) {
UpdateManager.BaoheUpdateInfo baoheUpdateInfo = new UpdateManager.BaoheUpdateInfo();
baoheUpdateInfo.f3719a = "2.0.0.1";
baoheUpdateInfo.d = 111123445;
baoheUpdateInfo.c = "1.adfadfasdfasdfasfasdf\n2asdlkfjasldfjasdfa\n3alkjdflajdf;lasdfklasdf\n";
MainActivity.e().a(baoheUpdateInfo, true);
return;
}
if (intent.getAction().equals("com.qihoo.appstore.debug.uploaddllog")) {
com.qihoo.appstore.e.c.d.a(context, true);
return;
}
if (intent.getAction().equals("com.qihoo.appstore.debug.enableNewDL")) {
f.h(true);
return;
}
if (intent.getAction().equals("com.qihoo.appstore.debug.disableNewDL")) {
f.h(false);
} else if (intent.getAction().equals("com.qihoo.appstore.debug.updatenotification")) {
bz.b(context);
} else if (intent.getAction().equals("com.qihoo.appstore.debug.pushnotification")) {
bz.c(context);
}
}
}