From 6a8b68e68ce831c1aa4d9b4af0bae9ee558acd42 Mon Sep 17 00:00:00 2001 From: cyBerta Date: Tue, 8 Oct 2019 02:07:20 +0200 Subject: set target sdk version to API 28, fix related issues (#8959) --- app/build.gradle | 2 +- app/src/main/AndroidManifest.xml | 1 + app/src/main/java/se/leap/bitmaskclient/utils/ConfigHelper.java | 6 +----- 3 files changed, 3 insertions(+), 6 deletions(-) (limited to 'app') diff --git a/app/build.gradle b/app/build.gradle index 91cbeed1..5d98e2e4 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -17,7 +17,7 @@ android { versionCode 141 versionName "1.0.1" minSdkVersion 16 - targetSdkVersion 27 + targetSdkVersion 28 vectorDrawables.useSupportLibrary = true buildConfigField 'boolean', 'openvpn3', 'false' diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 9a2b1e43..9e8c0d98 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -23,6 +23,7 @@ + diff --git a/app/src/main/java/se/leap/bitmaskclient/utils/ConfigHelper.java b/app/src/main/java/se/leap/bitmaskclient/utils/ConfigHelper.java index da74c7c4..d0c0ce0c 100644 --- a/app/src/main/java/se/leap/bitmaskclient/utils/ConfigHelper.java +++ b/app/src/main/java/se/leap/bitmaskclient/utils/ConfigHelper.java @@ -116,7 +116,7 @@ public class ConfigHelper { public static RSAPrivateKey parseRsaKeyFromString(String rsaKeyString) { RSAPrivateKey key; try { - KeyFactory kf = KeyFactory.getInstance("RSA", "BC"); + KeyFactory kf = KeyFactory.getInstance("RSA"); rsaKeyString = rsaKeyString.replaceFirst("-----BEGIN RSA PRIVATE KEY-----", "").replaceFirst("-----END RSA PRIVATE KEY-----", ""); PKCS8EncodedKeySpec keySpec = new PKCS8EncodedKeySpec(Base64.decode(rsaKeyString)); key = (RSAPrivateKey) kf.generatePrivate(keySpec); @@ -128,10 +128,6 @@ public class ConfigHelper { // TODO Auto-generated catch block e.printStackTrace(); return null; - } catch (NoSuchProviderException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - return null; } catch (NullPointerException e) { e.printStackTrace(); return null; -- cgit v1.2.3