diff --git a/android/app/src/main/jniLibs/armeabi-v7a/libaapt2.so b/android/app/src/main/jniLibs/armeabi-v7a/libaapt2.so index 8506316d8b..46bdce5ce7 100644 Binary files a/android/app/src/main/jniLibs/armeabi-v7a/libaapt2.so and b/android/app/src/main/jniLibs/armeabi-v7a/libaapt2.so differ diff --git a/assets/i18n/strings.i18n.json b/assets/i18n/strings.i18n.json index 39f2c5d770..d84f4c1e09 100755 --- a/assets/i18n/strings.i18n.json +++ b/assets/i18n/strings.i18n.json @@ -54,7 +54,7 @@ "patcherView": { "widgetTitle": "Patcher", "patchButton": "Patch", - "armv7WarningDialogText": "Patching on ARMv7 devices is not yet supported and might fail. Continue anyways?", + "incompatibleArchWarningDialogText": "Patching on this architecture is not yet supported and might fail. Continue anyways?", "removedPatchesWarningDialogText": "The following patches have been removed since the last time you used them.\n\n${patches}\n\nContinue anyways?", "requiredOptionDialogText": "Some patch options have to be set." }, diff --git a/docs/0_prerequisites.md b/docs/0_prerequisites.md index 605c208947..da9b7e916d 100644 --- a/docs/0_prerequisites.md +++ b/docs/0_prerequisites.md @@ -5,9 +5,6 @@ To use ReVanced Manager, you need to fulfill certain requirements. ## 🤝 Requirements - An Android device running Android 8 or higher -- Any device architecture except ARMv7[^1] - -[^1]: Patching on ARMv7 is limited to bytecode patching but may work in certain circumstances for resource patching. You can check your device architecture in ReVanced Manager settings. ## ⏭️ What's next diff --git a/lib/ui/views/patcher/patcher_view.dart b/lib/ui/views/patcher/patcher_view.dart index f3dc39c098..52596762f7 100644 --- a/lib/ui/views/patcher/patcher_view.dart +++ b/lib/ui/views/patcher/patcher_view.dart @@ -27,7 +27,7 @@ class PatcherView extends StatelessWidget { if (model.checkRequiredPatchOption(context)) { final bool proceed = model.showRemovedPatchesDialog(context); if (proceed && context.mounted) { - model.showArmv7WarningDialog(context); + model.showIncompatibleArchWarningDialog(context); } } }, diff --git a/lib/ui/views/patcher/patcher_viewmodel.dart b/lib/ui/views/patcher/patcher_viewmodel.dart index 5f8f532423..62456bec25 100644 --- a/lib/ui/views/patcher/patcher_viewmodel.dart +++ b/lib/ui/views/patcher/patcher_viewmodel.dart @@ -70,7 +70,7 @@ class PatcherViewModel extends BaseViewModel { FilledButton( onPressed: () { Navigator.of(context).pop(); - showArmv7WarningDialog(context); + showIncompatibleArchWarningDialog(context); }, child: Text(t.yesButton), ), @@ -116,18 +116,18 @@ class PatcherViewModel extends BaseViewModel { ); } - Future showArmv7WarningDialog(BuildContext context) async { - final bool armv7 = await AboutInfo.getInfo().then((info) { + Future showIncompatibleArchWarningDialog(BuildContext context) async { + final bool notSupported = await AboutInfo.getInfo().then((info) { final List archs = info['supportedArch']; - final supportedAbis = ['arm64-v8a', 'x86', 'x86_64']; + final supportedAbis = ['arm64-v8a', 'x86', 'x86_64', 'arm-v7a']; return !archs.any((arch) => supportedAbis.contains(arch)); }); - if (context.mounted && armv7) { + if (context.mounted && notSupported) { return showDialog( context: context, builder: (context) => AlertDialog( title: Text(t.warning), - content: Text(t.patcherView.armv7WarningDialogText), + content: Text(t.patcherView.incompatibleArchWarningDialogText), actions: [ FilledButton( onPressed: () => Navigator.of(context).pop(),