Fix .so file 16KB alignment in patched APKs:
- Change .so alignment from 4096 to 16384 bytes to comply with
Android 15+ 16KB page alignment requirements.
Co-Authored-By: MrZhongzq <108169409+mrzhongzq@users.noreply.github.com>
Co-Authored-By: Claude <81847+claude@users.noreply.github.com>
This commit is contained in:
parent
cf6993baa0
commit
43ca1640ab
|
|
@ -118,7 +118,7 @@ public class NPatch {
|
||||||
private static final ZFileOptions Z_FILE_OPTIONS = new ZFileOptions()
|
private static final ZFileOptions Z_FILE_OPTIONS = new ZFileOptions()
|
||||||
.setNoTimestamps(true)
|
.setNoTimestamps(true)
|
||||||
.setAlignmentRule(AlignmentRules.compose(
|
.setAlignmentRule(AlignmentRules.compose(
|
||||||
AlignmentRules.constantForSuffix(".so", 4096),
|
AlignmentRules.constantForSuffix(".so", 16384),
|
||||||
AlignmentRules.constantForSuffix(ORIGINAL_APK_ASSET_PATH, 4096),
|
AlignmentRules.constantForSuffix(ORIGINAL_APK_ASSET_PATH, 4096),
|
||||||
AlignmentRules.constantForSuffix(".arsc", 4)
|
AlignmentRules.constantForSuffix(".arsc", 4)
|
||||||
));
|
));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue