fixed 2fa, fixed some issues with proxy, deleted xtrafrancyz proxy, fixed compiling, some other fixes
This commit is contained in:
@@ -21,13 +21,6 @@ local.properties
|
||||
/smali/VTLite.apk.idsig
|
||||
.idea/gradle.xml
|
||||
.idea/compiler.xml
|
||||
apksigner.jar
|
||||
apktool_2.6.0.jar
|
||||
debug.jks
|
||||
smali/VTLite_signed.apk.idsig
|
||||
local.properties
|
||||
gradle.properties
|
||||
smali/lib/armeabi-v7a/liblite.so
|
||||
smali/assets/version.properties
|
||||
app/src/main/assets/version.properties
|
||||
smali/build/resources.zip
|
||||
@@ -94,7 +94,6 @@ public class TelegramStickersDbHelper extends SQLiteOpenHelper {
|
||||
e.printStackTrace();
|
||||
max = 0;
|
||||
}
|
||||
Log.d("sova", "Found last index: " + max);
|
||||
return max + 1;
|
||||
}
|
||||
|
||||
|
||||
@@ -2,7 +2,6 @@ package ru.vtosters.lite.dnr;
|
||||
|
||||
import ru.vtosters.lite.utils.Prefs;
|
||||
|
||||
// Настройки Донецкой Народной Республики
|
||||
public class DNRPrefs {
|
||||
public static boolean getStoriesRead() {
|
||||
return Prefs.BooleanFalse("read_s");
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
package ru.vtosters.lite.foaf;
|
||||
|
||||
import static ru.vtosters.lite.utils.Proxy.getApiCom;
|
||||
|
||||
import android.app.ProgressDialog;
|
||||
import android.content.Context;
|
||||
import android.content.DialogInterface;
|
||||
@@ -51,7 +53,7 @@ public class FoafBase {
|
||||
StringBuilder sb;
|
||||
if (Prefs.proxy()) {
|
||||
sb = new StringBuilder();
|
||||
str = "https://vk-api-proxy.xtrafrancyz.net/_/vk.com/foaf.php?id=";
|
||||
str = "https://" + getApiCom() + "/_/vk.com/foaf.php?id=";
|
||||
} else {
|
||||
sb = new StringBuilder();
|
||||
str = "https://vk.com/foaf.php?id=";
|
||||
|
||||
@@ -623,7 +623,7 @@ public class Prefs {
|
||||
}
|
||||
|
||||
public static boolean proxy() {
|
||||
return ru.vtosters.lite.utils.Helper.GetPreferences().getString("proxy", "").equals("xtrafrancyz");
|
||||
return ru.vtosters.lite.utils.Helper.GetPreferences().getString("proxy", "").equals("apiproxy");
|
||||
}
|
||||
|
||||
public static boolean authors_rec(String str) {
|
||||
|
||||
@@ -43,64 +43,45 @@ public class Proxy {
|
||||
}
|
||||
|
||||
public static String getApiCom() {
|
||||
if (!Prefs.proxy()) {
|
||||
String string = Helper.GetPreferences().getString("proxyapi", "");
|
||||
if (!Prefs.proxy() & string.isEmpty()) {
|
||||
return "api.vk.com";
|
||||
}
|
||||
String string = Helper.GetPreferences().getString("proxyapi", "");
|
||||
if (!string.isEmpty()) {
|
||||
return string;
|
||||
}
|
||||
return "vk-api-proxy.xtrafrancyz.net";
|
||||
return string;
|
||||
}
|
||||
|
||||
public static String getAwayPhpCom() {
|
||||
if (!Prefs.proxy()) {
|
||||
String string = Helper.GetPreferences().getString("proxyapi", "");
|
||||
if (!Prefs.proxy() & string.isEmpty()) {
|
||||
return "m.vk.com";
|
||||
}
|
||||
String string = Helper.GetPreferences().getString("proxyapi", "");
|
||||
if (!string.isEmpty()) {
|
||||
return string;
|
||||
}
|
||||
return "vk-api-proxy.xtrafrancyz.net";
|
||||
return string;
|
||||
}
|
||||
|
||||
public static String getOauthCom() {
|
||||
if (!Prefs.proxy()) {
|
||||
String string = Helper.GetPreferences().getString("proxyoauth", "");
|
||||
if (!Prefs.proxy() & string.isEmpty()) {
|
||||
return "oauth.vk.com";
|
||||
}
|
||||
String string = Helper.GetPreferences().getString("proxyoauth", "");
|
||||
if (!string.isEmpty()) {
|
||||
return string;
|
||||
}
|
||||
return "vk-oauth-proxy.xtrafrancyz.net";
|
||||
return string;
|
||||
}
|
||||
|
||||
public static String getStaticCom() {
|
||||
if (!ru.vtosters.lite.utils.Prefs.proxy()) {
|
||||
String string = Helper.GetPreferences().getString("proxystatic", "");
|
||||
if (!Prefs.proxy() & string.isEmpty()) {
|
||||
return "static.vk.com";
|
||||
}
|
||||
String string = Helper.GetPreferences().getString("proxystatic", "");
|
||||
if (!string.isEmpty()) {
|
||||
return string;
|
||||
}
|
||||
return "vk-static-proxy.xtrafrancyz.net";
|
||||
return string;
|
||||
}
|
||||
|
||||
public static String staticFix(String str) {
|
||||
String str2;
|
||||
String str3;
|
||||
if (!Prefs.proxy()) {
|
||||
String string = Helper.GetPreferences().getString("proxystatic", "");
|
||||
if (!Prefs.proxy() & string.isEmpty()) {
|
||||
return str;
|
||||
}
|
||||
String string = Helper.GetPreferences().getString("proxystatic", "");
|
||||
if (string.isEmpty()) {
|
||||
str3 = "static.vk.com";
|
||||
str2 = "vk-static-proxy.xtrafrancyz.net";
|
||||
} else {
|
||||
str3 = "static.vk.com";
|
||||
str2 = string;
|
||||
}
|
||||
return str.replace(str2, str3);
|
||||
str2 = string;
|
||||
return str.replace(str2, "static.vk.com");
|
||||
}
|
||||
|
||||
public static String GetConnector(String str) {
|
||||
|
||||
@@ -467,7 +467,7 @@
|
||||
</string-array>
|
||||
<string-array name="proxy">
|
||||
<item>Без прокси</item>
|
||||
<item>xtrafrancyz</item>
|
||||
<item>Проксирование API</item>
|
||||
<item>zaborona.help</item>
|
||||
<item>Сторонний HTTP</item>
|
||||
<item>Сторонний HTTPS</item>
|
||||
|
||||
@@ -4131,7 +4131,6 @@
|
||||
<string name="proxyownersxtrsources">Исходный код прокси сервера</string>
|
||||
<string name="proxyimpinfosum">Не используйте прокси если ВК не заблокирован в вашей стране\n\nДля применения изменений необходимо перезапустить приложение</string>
|
||||
<string name="useproxyinfo">Информация об использовании прокси</string>
|
||||
<string name="useproxyinfosum">По умолчанию используется прокси-сервер от xtrafrancyz, но вы можете использовать сторонние прокси-серверы\n\nВводите домены без http/https\n\nЕсли ссылок нет, по умолчанию используется прокси-сервер от xtrafrancyz</string>
|
||||
<string name="interfacenewsfeed">Лента</string>
|
||||
<string name="interfaceemoji">Эмодзи и стикеры</string>
|
||||
<string name="interfacestartfr">Стандартный стартовый фрагмент</string>
|
||||
|
||||
@@ -204,7 +204,6 @@
|
||||
<item name="text_secondary">@android:color/system_accent2_700</item>
|
||||
<item name="background_content">@android:color/system_neutral1_10</item>
|
||||
<item name="background_page">@android:color/system_neutral1_50</item>
|
||||
|
||||
<item name="android:windowLightStatusBar">true</item>
|
||||
<item name="action_sheet_action_foreground">@android:color/system_accent1_900</item>
|
||||
<item name="action_sheet_separator">@color/black_alpha12</item>
|
||||
@@ -397,9 +396,8 @@
|
||||
<item name="accent">@android:color/system_accent1_500</item>
|
||||
<item name="text_primary">@android:color/system_accent1_900</item>
|
||||
<item name="text_secondary">@android:color/system_accent2_700</item>
|
||||
<item name="background_content">@android:color/system_neutral1_10</item>
|
||||
<item name="background_content">@*android:color/system_neutral1_10</item>
|
||||
<item name="background_page">@android:color/system_neutral1_50</item>
|
||||
|
||||
<item name="android:windowLightStatusBar">true</item>
|
||||
<item name="action_sheet_action_foreground">?accent</item>
|
||||
<item name="action_sheet_separator">@color/black_alpha12</item>
|
||||
|
||||
@@ -628,7 +628,7 @@
|
||||
</string-array>
|
||||
<string-array name="proxy">
|
||||
<item>No Proxy</item>
|
||||
<item>xtrafrancyz</item>
|
||||
<item>API Proxy</item>
|
||||
<item>zaborona.help</item>
|
||||
<item>Custom HTTP</item>
|
||||
<item>Custom HTTPS</item>
|
||||
@@ -636,7 +636,7 @@
|
||||
</string-array>
|
||||
<string-array name="proxy_value">
|
||||
<item>noproxy</item>
|
||||
<item>xtrafrancyz</item>
|
||||
<item>apiproxy</item>
|
||||
<item>zaborona</item>
|
||||
<item>http</item>
|
||||
<item>https</item>
|
||||
|
||||
@@ -4255,7 +4255,6 @@ Does not affect vk.cc links"</string>
|
||||
<string name="proxyownersxtrsources">Proxy server sources</string>
|
||||
<string name="proxyimpinfosum">Don\'t use proxy if VK is available in your country\n\nYou need to restart the application to apply proxy settings</string>
|
||||
<string name="useproxyinfo">Information about using a proxy</string>
|
||||
<string name="useproxyinfosum">By default a proxy from xtrafrancyz is used, but you can use third-party proxies\n\nEnter domains without http/https\n\nIf there are no links, the proxy from xtrafrancyz is used by default</string>
|
||||
<string name="interfacenewsfeed">Feed</string>
|
||||
<string name="interfaceemoji">Emoji and stickers</string>
|
||||
<string name="interfacestartfr">Default start fragment</string>
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
<Preference android:enabled="false" android:title="@string/proxyimpinfo" android:summary="@string/proxyimpinfosum" />
|
||||
<com.vtosters.lite.ui.SummaryListPreference android:entries="@array/proxy" android:title="@string/useproxy" android:key="proxy" android:defaultValue="noproxy" android:dialogTitle="@string/useproxysum" android:entryValues="@array/proxy_value" />
|
||||
<PreferenceCategory android:title="@string/proxyadvsettings">
|
||||
<Preference android:enabled="false" android:title="@string/useproxyinfo" android:summary="@string/useproxyinfosum" />
|
||||
<EditTextPreference android:title="@string/proxyapi" android:key="proxyapi" android:defaultValue="" />
|
||||
<EditTextPreference android:title="@string/proxyoauth" android:key="proxyoauth" android:defaultValue="" />
|
||||
<EditTextPreference android:title="@string/proxystatic" android:key="proxystatic" android:defaultValue="" />
|
||||
|
||||
@@ -380,7 +380,7 @@
|
||||
|
||||
const-string v1, "libverify_support"
|
||||
|
||||
const/4 v2, 0x0
|
||||
const/4 v2, 0x1
|
||||
|
||||
invoke-static {v2}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user