Commit fa111c0
committed
vending: suppress EMUI InstallDistActivity; implement splitDeferred
- Add USER_ACTION_NOT_REQUIRED to SessionParams in installPackagesInternal()
for API 31+ (Android 12+) to prevent Huawei EMUI InstallDistActivity from
intercepting every PackageInstaller session commit with a confirmation dialog.
- Implement splitDeferred() in SplitInstallService to route deferred DFM
install requests through splitInstallFlow() instead of being a no-op stub.
Previously, apps like Facebook would fall back to startInstall() for each
deferred module, triggering additional PackageInstaller sessions and
additional InstallDistActivity dialogs on EMUI.
Fixes: microg#35411 parent 352f2d7 commit fa111c0
2 files changed
Lines changed: 28 additions & 2 deletions
File tree
- vending-app/src/main/kotlin/com
- android/vending/installer
- google/android/finsky/splitinstallservice
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
118 | 119 | | |
119 | 120 | | |
120 | 121 | | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
121 | 128 | | |
122 | 129 | | |
123 | 130 | | |
| |||
Lines changed: 21 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
95 | | - | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
96 | 115 | | |
97 | 116 | | |
98 | 117 | | |
| |||
0 commit comments