吉他调音器专业版 v2.30701.8版本的 MD5 值为:9d8c85f04999890638bf11bd08e611f4
以下内容为反编译后的 BrowserUrlActivity.java 源代码,内容仅作参考
package com.zqez.h07y.hhiu.push.activity;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageInfo;
import android.net.Uri;
import android.os.Bundle;
import android.util.Log;
import androidx.appcompat.app.AppCompatActivity;
import com.bafenyi.zh.bafenyilib.util.PreferenceUtil;
import com.huawei.hms.push.constant.RemoteMessageConst;
import com.i10.y6nx9.ro8.R;
import com.tencent.smtt.sdk.TbsConfig;
import i.p.a.a.q.a;
import java.io.UnsupportedEncodingException;
import java.net.URISyntaxException;
import java.net.URLDecoder;
public class BrowserUrlActivity extends AppCompatActivity {
public boolean a = false;
public String b = "systemBrowser";
public String f6484c = "https://m.tb.cn/h.fYINtHT";
public final void a(String str) {
if (a(this)) {
Intent intent = null;
try {
intent = Intent.parseUri(str, 1);
if (str.contains("alipay") && str.contains("scheme")) {
intent.setPackage("com.eg.android.AlipayGphone");
}
} catch (URISyntaxException e2) {
e2.printStackTrace();
}
this.a = true;
startActivity(intent);
return;
}
if (str.contains("&url=")) {
b(str.split("&url=")[1]);
} else {
finish();
}
}
public final void b(String str) {
if (str.contains("&url=")) {
str = str.split("&url=")[1];
}
try {
str = URLDecoder.decode(str, "utf-8");
} catch (UnsupportedEncodingException e2) {
e2.printStackTrace();
}
Intent intent = new Intent();
intent.setAction("android.intent.action.VIEW");
intent.setData(Uri.parse(str));
if (intent.resolveActivity(getPackageManager()) != null) {
this.a = true;
startActivity(intent);
} else {
finish();
}
}
public final void c(String str) {
Log.e("hhc", "安装微信" + b(this));
finish();
}
@Override
public void onCreate(Bundle bundle) {
super.onCreate(bundle);
setContentView(R.layout.activity_browser_url);
if (getIntent() != null && getIntent().getStringExtra("url") != null) {
Log.e("hhc", "本地推送进入");
a.a(this, "intoApp");
String stringExtra = getIntent().getStringExtra("title");
if (stringExtra != null && stringExtra.length() > 4) {
stringExtra = stringExtra.substring(0, 5);
}
PreferenceUtil.put(RemoteMessageConst.Notification.NOTIFY_TITLE, stringExtra);
this.f6484c = getIntent().getStringExtra("url");
String stringExtra2 = getIntent().getStringExtra("go");
this.b = stringExtra2;
if (stringExtra2 == null) {
this.b = "";
}
} else {
Log.e("hhc", "极光推送进入");
PreferenceUtil.put("banService", true);
this.f6484c = PreferenceUtil.getString("notifyUrl", "");
this.b = PreferenceUtil.getString("notifyGo", "");
}
if (this.b.equals("systemBrowser")) {
b(this.f6484c);
return;
}
if (this.b.equals("alipay")) {
a(this.f6484c);
return;
}
if (this.b.equals("weChat")) {
c(this.f6484c);
} else if (this.f6484c.equals("")) {
finish();
} else {
b(this.f6484c);
}
}
@Override
public void onResume() {
super.onResume();
if (this.a) {
finish();
}
}
public boolean a(Context context) {
return new Intent("android.intent.action.VIEW", Uri.parse("alipays://platformapi/startApp")).resolveActivity(context.getPackageManager()) != null;
}
public final boolean b(Context context) {
PackageInfo packageInfo;
try {
packageInfo = context.getPackageManager().getPackageInfo(TbsConfig.APP_WX, 0);
} catch (Exception e2) {
e2.printStackTrace();
packageInfo = null;
}
return packageInfo != null;
}
}