- // API 19 uses an old version of OpenSSL, which exposes users to man-in-the-middle attacks.
- if (Build.VERSION.SDK_INT == 19) {
- try {
- // Update OpenSSL using Google Play Services. This command must be removed for the build to succeed on F-Droid.
- ProviderInstaller.installIfNeeded(this);
- } catch (GooglePlayServicesRepairableException exception) {
- Log.i("Privacy Browser", "OpenSSL needs to be updated");
- } catch (GooglePlayServicesNotAvailableException exception) {
- Log.i("Privacy Browser", "OpenSSL cannot be updated because Google Play Services are not available");
- }
- }
-