Ackpine
Ackpine copied to clipboard
Self-update doesn't update session's state
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.
Partial fix (for SESSION_BASED package installer sessions) is released in 0.4.1 through 2c245c15e63d45f93730723b7a1e148397d4c4af.
An (almost) fix is released in 0.7.6 through 156400f6a71a1f0efb38dd45000df956d5f47173.
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.