Skip to content

Commit

Permalink
Zipalign the incremental APK before install
Browse files Browse the repository at this point in the history
This addresses bazelbuild#13050 which prevents the incremental APK from being installed on Android 11 devices due to the fact that the contents of the APK are not aligned on a 4-byte boundary.

Closes bazelbuild#13653.

PiperOrigin-RevId: 435058551
  • Loading branch information
Bencodes authored and copybara-github committed Mar 16, 2022
1 parent 2f9ed1c commit 1b2cf8d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ static void addMobileInstall(
.setJavaResourceFile(stubData)
.setSignedApk(incrementalApk)
.setSigningKeys(signingKeys)
.setZipalignApk(true)
.setSigningLineageFile(signingLineage);

incrementalActionsBuilder.registerActions(ruleContext);
Expand Down

0 comments on commit 1b2cf8d

Please sign in to comment.