Skip to content

add workaround for upstream async dexopt bug#236

Merged
thestinger merged 1 commit into
GrapheneOS:16from
muhomorr:16_07-27_base
Jul 27, 2025
Merged

add workaround for upstream async dexopt bug#236
thestinger merged 1 commit into
GrapheneOS:16from
muhomorr:16_07-27_base

Conversation

@muhomorr
Copy link
Copy Markdown
Member

Async dexopt was added in Android 16. It has introduced a bug in handling of concurrent installs of the same package. Such installs started to corrupt the internal PackageManager state of the affected packages, which led to system_server crashes when attempting to uninstall them.

As a workaround, this commit makes the package installer reject install requests for packages that are already being installed (package updates are considered to be installs too).

For more info, see #230
Based on #234

Closes GrapheneOS/os-issue-tracker#5782

Async dexopt was added in Android 16. It has introduced a bug in handling of concurrent installs
of the same package. Such installs started to corrupt the internal PackageManager state of the
affected packages, which led to system_server crashes when attempting to uninstall them.

As a workaround, this commit makes the package installer reject install requests for packages that
are already being installed (package updates are considered to be installs too).

For more info, see GrapheneOS#230
Based on GrapheneOS#234
@thestinger thestinger merged commit 04c87ea into GrapheneOS:16 Jul 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

system_server crashes while uninstalling application

2 participants