Android Oreo fix

This commit is contained in:
M66B 2017-09-12 07:11:35 +02:00
parent 0525ed94b4
commit 4d8431e706
1 changed files with 2 additions and 1 deletions

View File

@ -108,7 +108,8 @@ public class ActivityPro extends AppCompatActivity {
Linkify.addLinks(tvDev1Title, Pattern.compile(".*"), "http://www.netguard.me/#" + SKU_SUPPORT1, null, filter);
Linkify.addLinks(tvDev2Title, Pattern.compile(".*"), "http://www.netguard.me/#" + SKU_SUPPORT2, null, filter);
String challenge = (Build.VERSION.SDK_INT < Build.VERSION_CODES.O ? Build.SERIAL : "ID:" + Settings.Secure.ANDROID_ID);
String android_id = Settings.Secure.getString(getContentResolver(), Settings.Secure.ANDROID_ID);
String challenge = (Build.VERSION.SDK_INT < Build.VERSION_CODES.O ? Build.SERIAL : "O3" + android_id);
String seed = (Build.VERSION.SDK_INT < Build.VERSION_CODES.O ? "NetGuard2" : "NetGuard3");
// Challenge