Ackpine icon indicating copy to clipboard operation
Ackpine copied to clipboard

Self-update doesn't update session's state

Open solrudev opened this issue 2 years ago • 3 comments

When a self-update is performed through Ackpine, session's state doesn't get updated and is stuck as COMMITTED.

The problem lies in full process stop. SESSION_BASED installer's BroadcastReceiver is not getting invoked when containing package is replaced, while INTENT_BASED installer's Activity can't receive result after full stop. It's possible to receive MY_PACKAGE_REPLACED event, but one can't determine which Ackpine session caused it.

solrudev avatar Oct 29 '23 12:10 solrudev

Partial fix (for SESSION_BASED package installer sessions) is released in 0.4.1 through 2c245c15e63d45f93730723b7a1e148397d4c4af.

solrudev avatar Jan 06 '24 16:01 solrudev

An (almost) fix is released in 0.7.6 through 156400f6a71a1f0efb38dd45000df956d5f47173.

solrudev avatar Oct 12 '24 15:10 solrudev

It seems that full fix of the issue is impossible for INTENT_BASED sessions. But if you have any ideas on how to tackle this issue, feel free to discuss it here or submit a PR.

solrudev avatar Oct 12 '24 20:10 solrudev