Skip to content

Commit

Permalink
fix: Update AAPT2 library to support patching on ARMv7
Browse files Browse the repository at this point in the history
  • Loading branch information
oSumAtrIX committed Jul 25, 2024
1 parent 52a89b1 commit 68dbce6
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import android.content.Context
import app.revanced.manager.patcher.LibraryResolver
import android.os.Build.SUPPORTED_ABIS as DEVICE_ABIS
object Aapt : LibraryResolver() {
private val WORKING_ABIS = setOf("arm64-v8a", "x86", "x86_64")
private val WORKING_ABIS = setOf("arm64-v8a", "x86", "x86_64", "armeabi-v7a")

fun supportsDevice() = (DEVICE_ABIS intersect WORKING_ABIS).isNotEmpty()

Expand Down
Binary file added app/src/main/jniLibs/armeabi-v7a/libaapt2.so
Binary file not shown.
2 changes: 1 addition & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<string name="select_app">Select an app</string>
<string name="select_patches">Select patches</string>

<string name="unsupported_architecture_warning">Patching on ARMv7 devices is not yet supported and will most likely fail.</string>
<string name="unsupported_architecture_warning">Patching on this device architecture is unsupported and will most likely fail.</string>

<string name="import_">Import</string>
<string name="import_bundle">Import patch bundle</string>
Expand Down
3 changes: 0 additions & 3 deletions docs/0_prerequisites.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ In order to use ReVanced Manager, certain requirements must be met.
## 🤝 Requirements

- An Android device running Android 8 or higher
- Any device architecture except ARMv7[^1]

[^1]: This constraint only applies to patches, that require patching APK resources which is why some patches may or may not work on ARMv7 architecture. You can find out, which architectures your device supports here: [⚙️ Configuring ReVanced Manager](2_4_settings.md#%E2%84%B9%EF%B8%8F-about).

## ⏭️ What's next

Expand Down

0 comments on commit 68dbce6

Please sign in to comment.