Recover Files v1.3.9版本的 MD5 值为:27a8b2c239c6cb7111d74d6bb07d21b2
以下内容为反编译后的 m.java 源代码,内容仅作参考
package va;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.content.pm.ResolveInfo;
import android.net.Uri;
import com.blankj.utilcode.util.d2;
import java.util.List;
public class m {
public static final String f40099a = "com.android.chrome";
public static void a(Context context, String str, String str2) {
try {
Intent intent = new Intent("android.intent.action.VIEW", Uri.parse(str));
if (str2.equals("api.whatsapp.com")) {
intent.setPackage("com.whatsapp");
} else if (str2.equals("zalo.me")) {
intent.setPackage("com.zing.zalo");
}
context.startActivity(intent);
} catch (Exception e10) {
e10.printStackTrace();
}
}
public static void b(String str) {
Intent intent = new Intent();
intent.addFlags(268435456);
intent.setAction("android.intent.action.VIEW");
intent.setData(Uri.parse("https://play.google.com/store/apps/details?id=" + str));
try {
d2.a().startActivity(intent);
} catch (Exception unused) {
}
}
public static void c(String str) {
Intent intent = new Intent();
intent.addFlags(268435456);
intent.setAction("android.intent.action.VIEW");
intent.setData(Uri.parse(str));
d(intent);
try {
d2.a().startActivity(intent);
} catch (Exception unused) {
}
}
public static boolean d(Intent intent) {
List<ResolveInfo> queryIntentActivities = d2.a().getPackageManager().queryIntentActivities(intent, 0);
if (queryIntentActivities != null && queryIntentActivities.size() > 0) {
for (ResolveInfo resolveInfo : queryIntentActivities) {
if (resolveInfo.activityInfo.packageName.equals(f40099a)) {
ActivityInfo activityInfo = resolveInfo.activityInfo;
intent.setClassName(activityInfo.packageName, activityInfo.name);
return true;
}
}
}
return false;
}
}