Fix Android 16 installation with extractNativeLibs=true
- Set extractNativeLibs=true to bypass 16KB alignment requirement - Lower targetSDK to 34 for compatibility mode - Update RR3-Community-Mod.ps1 with 16KB zipalign command - Tested on Android 16 (API 36) Issue: apksigner 0.9 breaks 16KB alignment when signing Solution: Extract libs to disk instead of mmap Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -158,11 +158,12 @@ if ($uberSigner) {
|
||||
exit 1
|
||||
}
|
||||
|
||||
# Zipalign
|
||||
# Zipalign with 16KB page alignment for Android 15+ (API 35+)
|
||||
$zipalign = Get-Command zipalign -ErrorAction SilentlyContinue
|
||||
if ($zipalign) {
|
||||
$alignedApk = $OutputPath -replace '\.apk$', '-aligned.apk'
|
||||
& zipalign -v 4 $OutputPath $alignedApk 2>&1 | Out-Null
|
||||
# Use -p flag for 16KB page alignment (required for Android 15+)
|
||||
& zipalign -p -f -v 16 $OutputPath $alignedApk 2>&1 | Out-Null
|
||||
Move-Item -Path $alignedApk -Destination $OutputPath -Force
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user