FLIX VISION v2.8.2版本的 MD5 值为:4d33b143293b36f23ce5a6a5834e6993
以下内容为反编译后的 h.java 源代码,内容仅作参考
package n6;
import android.R;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.content.pm.ServiceInfo;
import android.content.res.Resources;
import android.net.Uri;
public final class h {
public static final String[] f16705a;
static {
Uri.parse("http://play.google.com/store/apps/details");
f16705a = new String[]{"com.google.android.youtube", "com.google.android.youtube.tv", "com.google.android.youtube.googletv", "com.google.android.gms", null};
}
public static String a(Context context) {
ServiceInfo serviceInfo;
String str;
PackageManager packageManager = context.getPackageManager();
for (String str2 : f16705a) {
ResolveInfo resolveService = packageManager.resolveService(new Intent("com.google.android.youtube.api.service.START").setPackage(str2), 0);
if (resolveService != null && (serviceInfo = resolveService.serviceInfo) != null && (str = serviceInfo.packageName) != null) {
return str;
}
}
return packageManager.hasSystemFeature("android.software.leanback") ? "com.google.android.youtube.tv" : packageManager.hasSystemFeature("com.google.android.tv") ? "com.google.android.youtube.googletv" : "com.google.android.youtube";
}
public static boolean a(Context context, String str) {
try {
Resources resourcesForApplication = context.getPackageManager().getResourcesForApplication(str);
if (str.equals("com.google.android.youtube.googletvdev")) {
str = "com.google.android.youtube.googletv";
}
int identifier = resourcesForApplication.getIdentifier("youtube_api_version_code", "integer", str);
return identifier == 0 || 12 > resourcesForApplication.getInteger(identifier) / 100;
} catch (PackageManager.NameNotFoundException unused) {
return true;
}
}
public static Context b(Context context) {
try {
return context.createPackageContext(a(context), 3);
} catch (PackageManager.NameNotFoundException unused) {
return null;
}
}
public static int c(Context context) {
Context b5 = b(context);
int identifier = b5 != null ? b5.getResources().getIdentifier("clientTheme", "style", a(context)) : 0;
return identifier == 0 ? R.style.Theme.DeviceDefault : identifier;
}
public static String d(Context context) {
try {
return context.getPackageManager().getPackageInfo(context.getPackageName(), 0).versionName;
} catch (PackageManager.NameNotFoundException e10) {
throw new IllegalStateException("Cannot retrieve calling Context's PackageInfo", e10);
}
}
}