Show the correct install error instead of labeling version downgrade as a damaged APK #15

Open
opened 2026-10-20 22:28:53 +00:00 by reseam-bot · 0 comments
Member

Bug description

When installing a patched APK over an existing app, the installer can report INSTALL_FAILED_VERSION_DOWNGRADE, but the user-facing message says the patched APK is damaged and should be patched again. This is misleading: the APK is not necessarily damaged, and retrying the patch will not fix a version downgrade.

Steps to reproduce

  1. Enable the system installer (or use the installer flow shown in the attached report).
  2. Install a patched APK over an existing installation where Android rejects the update as a version downgrade.
  3. Observe the error message.

Expected behavior

Report the actual cause, such as that the installed app has a newer version and must be updated/uninstalled first, rather than calling the patched APK damaged. Keep signature-conflict errors distinct as well.

Actual behavior

The message says: The patched APK is damaged. Patch again. Android said: INSTALL_FAILED_VERSION_DOWNGRADE.

Screenshot/report: https://discord.com/channels/1495093872261599323/1556366364053213315/1562230904997413009

### Bug description When installing a patched APK over an existing app, the installer can report `INSTALL_FAILED_VERSION_DOWNGRADE`, but the user-facing message says the patched APK is damaged and should be patched again. This is misleading: the APK is not necessarily damaged, and retrying the patch will not fix a version downgrade. ### Steps to reproduce 1. Enable the system installer (or use the installer flow shown in the attached report). 2. Install a patched APK over an existing installation where Android rejects the update as a version downgrade. 3. Observe the error message. ### Expected behavior Report the actual cause, such as that the installed app has a newer version and must be updated/uninstalled first, rather than calling the patched APK damaged. Keep signature-conflict errors distinct as well. ### Actual behavior The message says: `The patched APK is damaged. Patch again. Android said: INSTALL_FAILED_VERSION_DOWNGRADE`. Screenshot/report: https://discord.com/channels/1495093872261599323/1556366364053213315/1562230904997413009
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
reseam/manager#15
No description provided.