BuzzCast Porno v1.0.0.0版本的 MD5 值为:74d6ef6b6062f3b4dab5598ca2751841
以下内容为反编译后的 ActivityBrowser.java 源代码,内容仅作参考
package com.uc.browser;
import android.app.Activity;
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.content.ComponentName;
import android.content.Intent;
import android.content.res.Configuration;
import android.net.Uri;
import android.os.Bundle;
import android.os.Handler;
import android.os.Process;
import android.support.v4.app.NotificationCompat;
import android.text.TextUtils;
import android.view.ContextMenu;
import android.view.KeyEvent;
import android.view.MenuItem;
import android.view.MotionEvent;
import android.view.View;
import android.view.Window;
import android.webkit.CookieSyncManager;
import android.webkit.WebView;
import android.widget.Toast;
import com.UCMobile.Apollo.MediaPlayer;
import com.uc.browser.crash.NotificationService;
public class ActivityBrowser extends ActivityWithUCMenu implements View.OnCreateContextMenuListener, ob {
public static boolean f2064a = false;
public static boolean f2065b = false;
public static boolean f2066c = false;
public static int f2067d = 0;
public static int f2068e = 0;
public static int f = 0;
public static String g = "";
public static boolean i = false;
private static ActivityBrowser n;
private int[] l = new int[4];
private boolean m = false;
private boolean o = false;
public boolean h = false;
public static ActivityBrowser a() {
return n;
}
public static void a(Activity activity) {
if (activity == null) {
return;
}
if (activity.getResources().getConfiguration().hardKeyboardHidden == 1) {
activity.setRequestedOrientation(-1);
return;
}
kg.c();
int q = kg.q();
if (q == 0) {
if (activity.getRequestedOrientation() != -1) {
activity.setRequestedOrientation(-1);
}
} else if (q == 1) {
if (activity.getRequestedOrientation() != 0) {
activity.setRequestedOrientation(0);
}
} else if (q != 2 || activity.getRequestedOrientation() == 1) {
} else {
activity.setRequestedOrientation(1);
}
}
public static void a(Window window) {
if (f2064a) {
ks.a(window, false);
} else {
ks.a(window, true);
}
}
private boolean a(int i2) {
for (int i3 = 0; i3 < this.l.length; i3++) {
if (this.l[i3] == i2) {
return true;
}
}
return false;
}
public static float b(Activity activity) {
return o.a(activity, kg.e().z());
}
public static void c(Activity activity) {
a(activity);
a(activity.getWindow());
}
public static boolean c() {
return kg.e().h();
}
public static boolean d() {
return i;
}
public void g() {
if (this.o) {
return;
}
this.o = true;
stopService(new Intent(this, NotificationService.class));
if (this.h) {
Intent intent = new Intent(this, ActivityBrowser.class);
intent.setAction("android.intent.action.MAIN");
((AlarmManager) getSystemService(NotificationCompat.CATEGORY_ALARM)).set(1, System.currentTimeMillis() + 1000, PendingIntent.getActivity(this, 0, intent, 335544320));
}
Process.killProcess(Process.myPid());
}
public final void a(boolean z) {
WebViewZoom o;
if (this.m && o.f() != null) {
o f2 = o.f();
if (f2.aa() != null && (o = f2.aa().o()) != null) {
o.setNetworkAvailable(z);
}
o f3 = o.f();
if (f3.f3076a != null) {
boolean g2 = xb.g();
o.c(nv.bb);
o.a(nv.bb, 1, 2000L);
if (!g2) {
new cp(f3.f3076a);
cp.b();
}
}
o.f();
o.a(z);
if (f2065b) {
jy.a().a(0, Boolean.valueOf(z));
}
}
}
public final void b() {
float[] fArr = {getResources().getDimension(2131296550), getResources().getDimension(2131296551), getResources().getDimension(2131296552)};
int dimensionPixelSize = getResources().getDimensionPixelSize(2131296464);
int dimensionPixelSize2 = getResources().getDimensionPixelSize(2131296465);
int dimensionPixelSize3 = getResources().getDimensionPixelSize(2131296466);
int d2 = kg.e().d();
if (d2 == 0) {
dimensionPixelSize -= 2;
dimensionPixelSize2 -= 2;
dimensionPixelSize3 -= 2;
} else if (d2 == 2) {
dimensionPixelSize += 2;
dimensionPixelSize2 += 2;
dimensionPixelSize3 += 2;
}
sf.a();
getResources().getDimension(2131296473);
sf.a(dimensionPixelSize, dimensionPixelSize2, dimensionPixelSize3, getResources().getDisplayMetrics().xdpi, fArr, getResources().getDimensionPixelSize(2131296553));
}
@Override
public boolean dispatchKeyEvent(KeyEvent keyEvent) {
if (i || !this.m || isFinishing()) {
return false;
}
if (a(keyEvent.getKeyCode())) {
return true;
}
return super.dispatchKeyEvent(keyEvent);
}
@Override
public boolean dispatchTouchEvent(MotionEvent motionEvent) {
if (i || isFinishing() || !this.m) {
return false;
}
try {
return super.dispatchTouchEvent(motionEvent);
} catch (Throwable th) {
return true;
}
}
public final void e() {
nw nwVar = no.i;
nw.c(nv.dg);
nw nwVar2 = no.i;
nw.a(nv.dh, Integer.valueOf(ju.f));
nw nwVar3 = no.i;
nw.a(nv.dF);
}
@Override
public void finish() {
super.finish();
new Handler(getMainLooper()).postDelayed(new a(this), 500L);
}
@Override
protected void onActivityResult(int i2, int i3, Intent intent) {
super.onActivityResult(i2, i3, intent);
if (this.m) {
try {
o.f().a(i2, i3, intent);
} catch (Exception e2) {
}
}
}
@Override
public void onConfigurationChanged(Configuration configuration) {
if (this.m) {
super.onConfigurationChanged(configuration);
}
}
@Override
public void onCreate(Bundle bundle) {
super.onCreate(bundle);
requestWindowFeature(1);
requestWindowFeature(3);
requestWindowFeature(4);
n = this;
com.uc.platform.b.a(this);
xb.b(this);
tt.b().a(this);
com.uc.bordcast.e.a().a(this);
com.uc.bordcast.d.a().a(this);
com.uc.platform.g.b(this);
kg.c().a();
tt b2 = tt.b();
String a2 = sp.a(st.d());
if ("id".equals(a2)) {
a2 = "in";
} else if ("he".equals(a2)) {
a2 = "iw";
} else if ("yi".equals(a2)) {
a2 = "ji";
}
b2.a(a2);
pr.k();
byte j = pr.j();
if (j != 2) {
f2066c = true;
gt.a().b();
gt.a();
int f2 = gt.a().f();
String h = gt.a().h();
int g2 = gt.a().g();
if (j == 0) {
lb.a(1, lb.q);
ki.a(0, g2, h, f2);
f2067d = 1;
} else if (1 == j) {
lb.a(1, lb.r);
ki.a(1, g2, h, f2);
f2067d = 2;
} else {
lb.a(1, lb.s);
ki.a(2, g2, h, f2);
f2067d = 3;
}
}
no.a(this, this);
new com.uc.browser.init.a();
new o(this);
new tq();
new ua();
new gz();
new com.uc.userguide.a();
new com.uc.browser.bookmark.a();
new com.uc.bordcast.a();
new com.uc.browser.homepage.a();
new hb();
new ln();
new tr();
new com.uc.browser.customview.a();
new os();
new com.uc.setting.a();
new com.uc.filemanager.e();
new gv();
new jk();
new gf();
new kn();
new ir();
new com.uc.browser.guide.a();
new gq();
new com.uc.browser.upload.l();
new ng();
new nj();
new com.uc.browser.facebook.notification.a();
NotificationService.a();
this.m = true;
ki.b = System.currentTimeMillis();
nw nwVar = no.i;
nw.a(nv.d);
getWindow().getDecorView().setBackgroundDrawable(null);
}
@Override
public void onCreateContextMenu(ContextMenu contextMenu, View view, ContextMenu.ContextMenuInfo contextMenuInfo) {
super.onCreateContextMenu(contextMenu, view, contextMenuInfo);
if (this.m) {
o.f().a(contextMenu, view);
}
}
@Override
protected void onDestroy() {
super.onDestroy();
com.uc.bordcast.e.a().b();
nw nwVar = no.i;
nw.a(nv.cU);
com.uc.bordcast.d.a().b();
o f2 = o.f();
if (f2 != null && !i) {
f2.t();
}
if (f2 != null) {
f2.H();
}
g();
}
@Override
public boolean onKeyDown(int i2, KeyEvent keyEvent) {
if (i || !this.m || a(keyEvent.getKeyCode()) || o.f().a(i2, keyEvent)) {
return true;
}
return super.onKeyDown(i2, keyEvent);
}
@Override
public boolean onKeyUp(int i2, KeyEvent keyEvent) {
if (i) {
return true;
}
if (this.m || !a(keyEvent.getKeyCode())) {
if (o.f() == null || !o.f().b(i2, keyEvent)) {
return super.onKeyUp(i2, keyEvent);
}
return true;
}
return true;
}
@Override
protected void onNewIntent(Intent intent) {
if (this.m) {
nw nwVar = no.i;
nw.a(nv.e, 0, 0, intent);
}
}
@Override
protected void onPause() {
super.onPause();
if (i) {
return;
}
nz.a().a(nz.a(nz.b, false));
try {
CookieSyncManager.getInstance().sync();
WebView.disablePlatformNotifications();
if (o.f() != null) {
pr.a(1);
}
} catch (Exception e2) {
}
kg.c();
kg.v();
ix.e();
}
@Override
protected void onResume() {
super.onResume();
if (i) {
return;
}
UCBrowser.f2181b = System.currentTimeMillis();
nz.a().a(nz.a(nz.b, true));
if (f2065b) {
nw nwVar = no.i;
nw.a(nv.ee);
}
try {
CookieSyncManager.getInstance().stopSync();
} catch (Throwable th) {
CookieSyncManager.createInstance(getApplicationContext());
CookieSyncManager.getInstance().stopSync();
}
WebView.enablePlatformNotifications();
pr.a(0);
}
@Override
protected void onSaveInstanceState(Bundle bundle) {
super.onSaveInstanceState(bundle);
if (!this.m) {
}
}
@Override
public void onWindowFocusChanged(boolean z) {
super.onWindowFocusChanged(z);
if (this.m) {
o f2 = o.f();
if (f2 != null && z) {
f2.a((Activity) this);
}
if (z && kg.e().h()) {
b(this);
}
}
}
@Override
public boolean p(MenuItem menuItem) {
return !this.m ? super.p(menuItem) : o.f().a(menuItem);
}
@Override
public void startActivity(Intent intent) {
if (intent == null) {
return;
}
if ("android.intent.action.VIEW".equals(intent.getAction())) {
String dataString = intent.getDataString();
if (!TextUtils.isEmpty(dataString)) {
ComponentName component = intent.getComponent();
boolean z = (component == null || TextUtils.isEmpty(component.getPackageName()) || TextUtils.isEmpty(component.getClassName())) ? false : true;
if (TextUtils.isEmpty(intent.getType()) && !"http://www.ucweb.com".equalsIgnoreCase(dataString) && com.google.android.c2dm.a.o(dataString) && !"https://play.google.com/store/apps/details?id=com.uc.browser.en".equalsIgnoreCase(dataString) && !z) {
nw nwVar = no.i;
nw.a(nv.r, -1, -1, dataString);
return;
} else if (com.google.android.c2dm.a.n(dataString)) {
Intent intent2 = new Intent("android.intent.action.VIEW", Uri.parse(dataString));
intent2.setClassName("com.android.vending", "com.android.vending.AssetBrowserActivity");
intent2.setFlags(MediaPlayer.MEDIA_ERROR_UNKNOWN);
try {
super.startActivity(intent2);
return;
} catch (Exception e2) {
Toast.makeText(this, tt.b().a(620), 0).show();
return;
}
}
}
}
super.startActivity(intent);
}
}