-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Validate fenix is zipaligned #12527
Comments
It does not seem like it's happening because |
imo, I think the autograph server should probably be zipaligning before signing: the steps are too tightly coupled to separate them (e.g. this problem may also exist in FFTV). |
Looking at autograph, there are signs that we may have reimplemented zipalign, rather than call the distributed binary: https://github.com/mozilla-services/autograph/blob/df8afe05c0c3d252a5cbca9c57ff38b71cc67a4e/signer/apk/jar.go#L231-L234 I discovered there is a command to verify zipalign on the app (via SO): zipalign -c -v 4 'path-to-apk' I tested this on the Nightly APK and verification was successful. However, I'm still not confident about what's happening. My theories are:
For action items, I think we should:
|
Set to waiting: waiting for responses from other teams. |
Autograph is not zipaligning APKs. Autograph signs all apks with the apk2 signer which shells out to apksigner. You can check that the signed APK has an APK v2 signature to verify that the apk2 signer was used (the other signer doesn't implement the v2 signature format). It'd be good to |
Discussion in #releaseduty-mobile seems to indicate that we may not be zipaligning builds. There is code to do it but it may be bypassed when we sign via autograph. I don't have the expertise to implement the fix so I'll have to defer to the releng team. My recommendation would be to :
|
To make the action item of this work simpler to track for other parties, I filed #17703 to make the change. Closing this ticket ("validate its zipaligned", which it isn't hence a follow-up) as completed. |
Since our native libs may be uncompressed, we may have non-trivial uncompressed data and this could be a decent performance optimization.
In addressing mozilla-mobile/firefox-echo-show#327, I discovered the autograph signing server does not zipalign apks before building them. A plausible error would be for the release builds to not get zipaligned before being sent to the signing server: we should verify that zipalign this is happening.
┆Issue is synchronized with this Jira Task
The text was updated successfully, but these errors were encountered: