mirror of
https://github.com/syncthing/syncthing-android.git
synced 2025-01-07 10:42:07 +00:00
parent
a16802cfec
commit
04376d3bc8
1 changed files with 11 additions and 1 deletions
|
@ -180,6 +180,16 @@ public class Constants {
|
|||
* to syncthing core v0.14.53+.
|
||||
*/
|
||||
public static Boolean osSupportsTLS12() {
|
||||
return Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP;
|
||||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ("huawei".equalsIgnoreCase(Build.MANUFACTURER)) {
|
||||
if (com.nutomic.syncthingandroid.util.Util.containsIgnoreCase(Build.MODEL, "CAN")) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue