[other] update sms_hash
This commit is contained in:
@@ -63,13 +63,6 @@ static def getAppHash() {
|
||||
return "\"" + properties.get("APP_HASH") + "\""
|
||||
}
|
||||
|
||||
static def getSmsHash() {
|
||||
Properties properties = new Properties()
|
||||
properties.load(new FileInputStream("./API_KEYS"))
|
||||
|
||||
return "\"" + properties.get("SMS_HASH") + "\""
|
||||
}
|
||||
|
||||
static def getGoogleMapsAPI() {
|
||||
Properties properties = new Properties()
|
||||
properties.load(new FileInputStream("./API_KEYS"))
|
||||
@@ -250,7 +243,6 @@ android {
|
||||
// Telegram: https://core.telegram.org/api/obtaining_api_id
|
||||
buildConfigField 'int', 'APP_ID', getAppID()
|
||||
buildConfigField 'String', 'APP_HASH', getAppHash()
|
||||
buildConfigField 'String', 'SMS_HASH', getSmsHash()
|
||||
// Google Console: https://console.cloud.google.com/google/maps-apis/credentials
|
||||
resValue 'string', 'MAPS_V2_API', getGoogleMapsAPI()
|
||||
|
||||
|
||||
@@ -38,7 +38,8 @@ public class BuildVars {
|
||||
|
||||
APP_ID = BuildConfig.APP_ID; // Obtain your own APP_ID at https://core.telegram.org/api/obtaining_api_id
|
||||
APP_HASH = BuildConfig.APP_HASH; // Obtain your own APP_HASH at https://core.telegram.org/api/obtaining_api_id
|
||||
SMS_HASH = BuildConfig.SMS_HASH; // Obtain your own SMS_HASH with https://bit.ly/3rxcuTd
|
||||
SMS_HASH = isBetaApp() ? "2P1CNXYRAK6" : "UfajQkYoxTu";
|
||||
// Using our SMS_HASH you will not be able to get the SMS Retriever to work, generate your own keys with https://raw.githubusercontent.com/googlearchive/android-credentials/master/sms-verification/bin/sms_retriever_hash_v9.sh
|
||||
|
||||
if (ApplicationLoader.applicationContext != null) {
|
||||
SharedPreferences sharedPreferences = ApplicationLoader.applicationContext.getSharedPreferences("systemConfig", Context.MODE_PRIVATE);
|
||||
|
||||
Reference in New Issue
Block a user