Commit f3448c8
authored
Fix store installs, update offers and in-app browsing (#825)
Three of these are what borrowing `com.android.shell`'s uid costs the manager.
Below API 33 `ContextCompat.registerReceiver` demands
`<package>.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION`, which under the host is
nobody's, so every store install threw before `commit()`; both installers
register by hand now, under a UUID-named action. `createSessionInternal` skips
`INSTALL_REPLACE_EXISTING` for `SHELL_UID`, so a module already on the device
failed with `ALREADY_EXISTS` -- that branch is unchanged from API 27 to AOSP
main, so a store update has never worked parasitically. And `AwSettings` reads
`checkSelfPermission(INTERNET)` in its constructor, which AOSP's Shell did not
request until android-12, so every in-app page failed as `ERR_CACHE_MISS` on a
device whose networking is fine; the context a WebView is built with now answers
that one question, and only where the platform says no.
The fourth is that an offer is decided by numbers a git tag states, which nothing
obliges to be the ones in the APK's manifest, and no rule over `(code, name)` can
bridge that: a module that never changes its tag code is only ever seen to update
through the name clause, and one that reuses a versionName across several codes
only through the code clause. So the Store stops inferring and records instead --
the release it installed, and the version the device reported once it was on --
read in `StoreEntry.upgradable` so every count, filter and badge agrees. Where an
offer names the version already installed it is worded as a reinstall rather than
as an update from a version to itself, which is true whether the tag disagrees
with the manifest or the release is a genuine rebuild. All eighteen locales are
filled in.
Fixes #823.1 parent fbcff2f commit f3448c8
55 files changed
Lines changed: 554 additions & 215 deletions
File tree
- manager/src/main
- kotlin/org/matrix/vector/manager
- data
- model
- repository
- di
- ipc
- ui
- components
- screens
- modules
- repo
- web
- res
- values-ar
- values-de
- values-es
- values-fa
- values-fr
- values-in
- values-it
- values-iw
- values-ja
- values-ko
- values-pl
- values-pt-rBR
- values-ru
- values-tr
- values-uk
- values-vi
- values-zh-rCN
- values-zh-rTW
- values
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 69 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
140 | 144 | | |
141 | 145 | | |
142 | 146 | | |
143 | 147 | | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
144 | 163 | | |
145 | 164 | | |
146 | 165 | | |
| |||
152 | 171 | | |
153 | 172 | | |
154 | 173 | | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
155 | 203 | | |
156 | 204 | | |
157 | 205 | | |
| |||
164 | 212 | | |
165 | 213 | | |
166 | 214 | | |
| 215 | + | |
| 216 | + | |
167 | 217 | | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
168 | 233 | | |
169 | 234 | | |
170 | 235 | | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
171 | 239 | | |
172 | 240 | | |
173 | 241 | | |
| |||
184 | 252 | | |
185 | 253 | | |
186 | 254 | | |
| 255 | + | |
187 | 256 | | |
188 | 257 | | |
189 | 258 | | |
| |||
Lines changed: 16 additions & 79 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | 3 | | |
6 | | - | |
7 | | - | |
8 | 4 | | |
9 | | - | |
10 | 5 | | |
11 | | - | |
12 | | - | |
13 | 6 | | |
14 | 7 | | |
15 | 8 | | |
16 | 9 | | |
17 | 10 | | |
18 | 11 | | |
19 | | - | |
20 | 12 | | |
21 | 13 | | |
22 | 14 | | |
23 | 15 | | |
24 | 16 | | |
| 17 | + | |
| 18 | + | |
25 | 19 | | |
26 | 20 | | |
27 | 21 | | |
| |||
132 | 126 | | |
133 | 127 | | |
134 | 128 | | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
135 | 132 | | |
136 | 133 | | |
137 | 134 | | |
| |||
179 | 176 | | |
180 | 177 | | |
181 | 178 | | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
188 | 185 | | |
189 | 186 | | |
190 | 187 | | |
191 | 188 | | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
241 | 194 | | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | 195 | | |
258 | 196 | | |
259 | 197 | | |
260 | | - | |
261 | 198 | | |
262 | 199 | | |
263 | 200 | | |
| |||
Lines changed: 17 additions & 75 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | 3 | | |
6 | | - | |
7 | | - | |
8 | 4 | | |
9 | | - | |
10 | 5 | | |
11 | | - | |
12 | | - | |
13 | 6 | | |
14 | 7 | | |
15 | 8 | | |
| |||
18 | 11 | | |
19 | 12 | | |
20 | 13 | | |
21 | | - | |
22 | 14 | | |
23 | 15 | | |
24 | 16 | | |
25 | 17 | | |
26 | 18 | | |
| 19 | + | |
| 20 | + | |
27 | 21 | | |
28 | 22 | | |
29 | 23 | | |
| |||
80 | 74 | | |
81 | 75 | | |
82 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
83 | 82 | | |
84 | 83 | | |
85 | 84 | | |
| |||
102 | 101 | | |
103 | 102 | | |
104 | 103 | | |
| 104 | + | |
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
| 185 | + | |
189 | 186 | | |
190 | 187 | | |
191 | 188 | | |
192 | 189 | | |
193 | 190 | | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
256 | 199 | | |
257 | 200 | | |
258 | 201 | | |
259 | 202 | | |
260 | 203 | | |
261 | | - | |
262 | 204 | | |
263 | 205 | | |
0 commit comments