diff --git a/README.md b/README.md
index ca2080f..cc2a138 100644
--- a/README.md
+++ b/README.md
@@ -69,14 +69,6 @@ I actively maintain the plugin.
npm install cordova-plugin-apkupdater
-### Android Legacy Support Libraries
-
-It is not recommended, but you can install the plugin without AndroidX. Just set the following variable:
-
- cordova plugin add cordova-plugin-apkupdater --variable AndroidXEnabled=false
-
-
-
# Basic example
### Ionic 2+ with Typescript
diff --git a/plugin.xml b/plugin.xml
index 2276a8f..4f3f8b0 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -19,8 +19,6 @@
-
-
@@ -45,6 +43,7 @@
+
diff --git a/src/android/tools/PermissionManager.java b/src/android/tools/PermissionManager.java
index 0cf1ef7..cd7c01f 100644
--- a/src/android/tools/PermissionManager.java
+++ b/src/android/tools/PermissionManager.java
@@ -24,7 +24,7 @@ public static boolean hasWritePermission(Context context) {
public static void requestWritePermission(Context context) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
- ((Activity) context).requestPermissions(new String[]{Manifest.permission.READ_EXTERNAL_STORAGE, Manifest.permission.WRITE_EXTERNAL_STORAGE}, PERMISSION_REQUEST_CODE);
+ ((Activity) context).requestPermissions(new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE}, PERMISSION_REQUEST_CODE);
}
}
diff --git a/src/nodejs/hooks/after-plugin-add.js b/src/nodejs/hooks/after-plugin-add.js
deleted file mode 100644
index f05c162..0000000
--- a/src/nodejs/hooks/after-plugin-add.js
+++ /dev/null
@@ -1,30 +0,0 @@
-module.exports = function (context) {
-
- let cli = context.opts.cli_variables;
-
- if (cli == null || cli.ANDROIDXENABLED == null || cli.ANDROIDXENABLED === 'true') {
- return; // AndroidX enabled
- }
-
- console.log('Installing "cordova-plugin-apkupdater" without AndroidX');
-
- let fs = require('fs');
- let UTF8 = 'utf8';
-
- const pluginXml = __dirname + '/../../../plugin.xml';
- let data = fs.readFileSync(pluginXml, UTF8);
- data = data.replace(//g, '');
- data = data.replace(//g, '');
- fs.writeFileSync(pluginXml, data, UTF8);
-
- const ApkInstaller = __dirname + '/../../android/tools/ApkInstaller.java';
- data = fs.readFileSync(ApkInstaller, UTF8);
- data = data.replace(/import androidx.core.content.FileProvider;/g, 'import android.support.v4.content.FileProvider;');
- fs.writeFileSync(ApkInstaller, data, UTF8);
-
- const FileProvider = __dirname + '/../../android/tools/FileProvider.java';
- data = fs.readFileSync(FileProvider, UTF8);
- data = data.replace(/androidx.core.content.FileProvider/g, 'android.support.v4.content.FileProvider');
- fs.writeFileSync(FileProvider, data, UTF8);
-
-};
\ No newline at end of file