正在查看: Plus 12 v10.13.1.1 应用的 BuildVars.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Plus 12 v10.13.1.1 应用的 BuildVars.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package org.telegram.messenger;
import android.os.Build;
import com.android.billingclient.api.ProductDetails;
import java.util.Iterator;
import java.util.Objects;
public class BuildVars {
public static String APP_HASH = null;
public static int APP_ID = 0;
public static boolean BETA = false;
public static boolean BETA_2 = false;
public static boolean BETA_DIRECT = false;
public static boolean BETA_HOCKEY = false;
public static boolean BETA_PS = false;
public static String BUILD_VERSION_STRING = null;
public static boolean CHECK_UPDATES = !PlusUtils.verifyInstallerId();
public static boolean DEBUG_PRIVATE_VERSION = false;
public static boolean DEBUG_VERSION = false;
public static String GOOGLE_AUTH_CLIENT_ID = null;
public static String GOOGLE_AUTH_CLIENT_ID_TELEGRAM = 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 STANDALONE = false;
public static boolean USE_CLOUD_STRINGS = true;
private static Boolean betaApp;
static {
NO_SCOPED_STORAGE = Build.VERSION.SDK_INT <= 29;
BUILD_VERSION_STRING = "10.13.1.1";
boolean z = BETA;
APP_ID = z ? 43608 : 16623;
APP_HASH = z ? "5c81f4ada72ae41cf2fd54de0266fd8c" : "8c9dbfe58437d1739540f5d53c72ae4b";
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 = "326898382893-h4uvm5i5hju53ieh4j6alejfabq8f17j.apps.googleusercontent.com";
GOOGLE_AUTH_CLIENT_ID_TELEGRAM = "760348033671-81kmi3pi84p11ub8hp9a1funsv0rn2p9.apps.googleusercontent.com";
HUAWEI_APP_ID = "101184875";
BETA_HOCKEY = false;
BETA_PS = false;
BETA_DIRECT = z;
BETA_2 = z;
STANDALONE = false;
IS_BILLING_UNAVAILABLE = PlusUtils.verifyInstallerId();
if (ApplicationLoader.applicationContext != null) {
LOGS_ENABLED = ApplicationLoader.applicationContext.getSharedPreferences("systemConfig", 0).getBoolean("logsEnabled", DEBUG_VERSION);
}
}
public static boolean useInvoiceBilling() {
return BillingController.billingClientEmpty || DEBUG_VERSION || ApplicationLoader.isStandaloneBuild() || isBetaApp() || isHuaweiStoreApp() || hasDirectCurrency();
}
private static boolean hasDirectCurrency() {
ProductDetails productDetails;
if (BillingController.getInstance().isReady() && (productDetails = BillingController.PREMIUM_PRODUCT_DETAILS) != null) {
Iterator<ProductDetails.SubscriptionOfferDetails> it = productDetails.getSubscriptionOfferDetails().iterator();
while (it.hasNext()) {
for (ProductDetails.PricingPhase pricingPhase : 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.plus.beta".equals(ApplicationLoader.applicationContext.getPackageName()));
}
return betaApp.booleanValue();
}
public static boolean isHuaweiStoreApp() {
return ApplicationLoader.isHuaweiStoreBuild();
}
public static String getSmsHash() {
return ApplicationLoader.isStandaloneBuild() ? "w0lkcmTZkKh" : DEBUG_VERSION ? "O2P2z+/jBpJ" : "oLeq9AcOZkT";
}
}