-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
apksigner from build-tools >= 35.0.0-rc1 requires workaround #105
Comments
Third editI now added an FAQ entry, copied here: What about signatures made by apksigner from build-tools >= 35.0.0-rc1?Since Unlike It now forcibly replaces existing padding even when the file is already aligned as it should be, except when This means it will replace existing zero padding with different padding for each and every non-compressed file. This padding will not only be different but also longer for regular files aligned to 4 bytes with zero padding, but often the same size for Unfortunately, supporting this change in First: use Second: use Third: use Original replyClick "Details" to expand. Indeed, Google broke This is a known issue. Feel free to report it to Google though. Maybe they'll fix it. They did fix the However, supporting that breaking change in As Luckily, there are already 3 alternatives to changing
First edit
Second editAs for the "garbage": unlike |
The third alternative could be automated: if copying the signature fails, add the garbage and retry. However, this is still out of scope for |
As I pointed out elsewhere and not for the first time:
|
Link?
Ah, but 'tis a sekret, wink-wink, nudge-nudge, say no more diff between
so let's try this:
As expected 😞 Now:
Sums?
🎉
How do you think I got so far? 🐱 |
"Known issue" as in "I knew about it but just didn't get around to updating the Don't forget,
What? I just didn't remember the option name and didn't bother looking it up just for you, knowing you couldn't possibly fail to find it, as you clearly just demonstrated.
If you didn't need my help, why open this issue to ask for it? |
@licaon-kter @linsui I don't care about credit here. I'm just glad this can be fixed for the developers that were affected. But given that LK is now taking credit for figuring out what changed: do not ask me for help again next time. You say you don't need my help, fine. Maybe you don't. Maybe your luck won't run out. But then you don't get to ask for my help either. You're on your own from now on. My issue trackers are closed to F-Droid now. Good luck next time. |
Reported to Google: https://issuetracker.google.com/issues/351408623 |
If anyone wants Google to fix this on their end and has a Google account, please consider adding a +1 to the issue. |
Suddenly for the past week more repro APKs can't be verified.
eg. https://github.com/Futsch1/medTimer/releases/tag/v1.8.10 has unsigned and signed
They have in common a thing, they get built by the Github CI, eg. signed here with apksigner from build-tools 35: https://github.com/Futsch1/medTimer/actions/runs/9750431791/job/26909848960#step:16:5
CI recipes use
ubuntu-latest
eg. https://github.com/Futsch1/medTimer/blob/v1.8.10/.github/workflows/android.yml#L14 so maybe the Github image got updated to build-tools 35 and now CI's just end up using it by defaultapksigcopier can't cope with whatever apksigner 35 does?
The text was updated successfully, but these errors were encountered: