solrudev / Ackpine

Android package installer library
https://solrudev.github.io/Ackpine/
Apache License 2.0
51 stars 7 forks source link

Self-update doesn't update session's state #33

Open solrudev opened 8 months ago

solrudev commented 8 months ago

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 commented 6 months ago

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