Skip to content

feat: safeguard incompatible APK architectures - #3517

Open
keeltrace wants to merge 1 commit into
ReVanced:devfrom
keeltrace:feat/apk-architecture-safeguard
Open

keeltrace wants to merge 1 commit into
ReVanced:devfrom
keeltrace:feat/apk-architecture-safeguard

Conversation

@keeltrace

Copy link
Copy Markdown

Why

Manager can currently patch an APK whose native libraries target a CPU architecture the device cannot run, leading to a wasted patch followed by an install/runtime failure.

What

  • Inspect native-library ABI directories inside the resolved APK before patch execution.
  • Treat APKs without ABI-specific native libraries as architecture-independent.
  • Block incompatible APKs by default and expose a safeguard toggle under Advanced settings for users who intentionally want to continue.

Testing

  • git -c core.whitespace=cr-at-eol diff --check
  • ./gradlew :app:assembleRelease

Closes #2595

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant