@@ -222,10 +222,12 @@ Also, failed to set the launchMode from the resource, INSTALL_PARSE_FAILED_UNEXP
222
222
</receiver >
223
223
224
224
<!-- Preferences are exported by default because they have intent filters.
225
- But they should be not exported to avoid a security issue on older Androids (see lint check). -->
225
+ But they should be not exported to avoid a security issue on older Androids (see lint check).
226
+ But on Android 12 they must be exported again...
227
+ -->
226
228
<activity
227
229
android : name =" .activity.Preferences"
228
- android : exported =" false "
230
+ android : exported =" true "
229
231
android : label =" @string/labelActivityPreferences" >
230
232
<intent-filter >
231
233
<action android : name =" android.intent.action.MAIN" />
@@ -236,7 +238,7 @@ Also, failed to set the launchMode from the resource, INSTALL_PARSE_FAILED_UNEXP
236
238
237
239
<activity
238
240
android : name =" .PreferencesRecognitionServiceHttp"
239
- android : exported =" false "
241
+ android : exported =" true "
240
242
android : label =" @string/labelActivityPreferencesRecognitionServiceHttp"
241
243
android : parentActivityName =" .activity.RecServiceSelectorActivity" >
242
244
<intent-filter >
@@ -248,7 +250,7 @@ Also, failed to set the launchMode from the resource, INSTALL_PARSE_FAILED_UNEXP
248
250
249
251
<activity
250
252
android : name =" .PreferencesRecognitionServiceWs"
251
- android : exported =" false "
253
+ android : exported =" true "
252
254
android : label =" @string/labelActivityPreferencesRecognitionServiceWs"
253
255
android : parentActivityName =" .activity.RecServiceSelectorActivity" >
254
256
<intent-filter >
@@ -260,6 +262,7 @@ Also, failed to set the launchMode from the resource, INSTALL_PARSE_FAILED_UNEXP
260
262
261
263
<activity
262
264
android : name =" .AboutActivity"
265
+ android : exported =" false"
263
266
android : label =" @string/labelActivityAbout"
264
267
android : parentActivityName =" .activity.Preferences"
265
268
android : theme =" @style/Theme.K6nele" />
@@ -268,13 +271,16 @@ Also, failed to set the launchMode from the resource, INSTALL_PARSE_FAILED_UNEXP
268
271
<!-- TODO: do not reparent -->
269
272
<activity
270
273
android : name =" .activity.DetailsActivity"
274
+ android : exported =" false"
271
275
android : theme =" @style/Theme.K6nele.Dialog" />
272
276
<!-- TODO: remove Light (once style inheritance works) -->
273
277
<activity
274
278
android : name =" .activity.RewritesErrorsActivity"
279
+ android : exported =" false"
275
280
android : theme =" @style/Theme.K6nele.Light.Dialog" />
276
281
<activity
277
282
android : name =" .activity.ComboSelectorActivity"
283
+ android : exported =" false"
278
284
android : label =" @string/dialogTitleCombo"
279
285
android : parentActivityName =" .activity.Preferences" />
280
286
<activity
@@ -284,14 +290,17 @@ Also, failed to set the launchMode from the resource, INSTALL_PARSE_FAILED_UNEXP
284
290
android : parentActivityName =" .activity.Preferences" />
285
291
<activity
286
292
android : name =" .activity.AppListActivity"
293
+ android : exported =" false"
287
294
android : label =" @string/labelActivityAppList"
288
295
android : parentActivityName =" .activity.Preferences" />
289
296
<activity
290
297
android : name =" .activity.GrammarListActivity"
298
+ android : exported =" false"
291
299
android : label =" @string/labelActivityGrammarList"
292
300
android : parentActivityName =" .activity.Preferences" />
293
301
<activity
294
302
android : name =" .activity.ServerListActivity"
303
+ android : exported =" false"
295
304
android : label =" @string/labelActivityServerList"
296
305
android : parentActivityName =" .PreferencesRecognitionServiceHttp" />
297
306
<!-- Exporting this to allow a shortcut to be created e.g. using Tasker. -->
@@ -302,6 +311,7 @@ Also, failed to set the launchMode from the resource, INSTALL_PARSE_FAILED_UNEXP
302
311
android : parentActivityName =" .activity.Preferences" />
303
312
<activity
304
313
android : name =" .activity.RewritesLoaderActivity"
314
+ android : exported =" false"
305
315
android : label =" @string/labelActivityRewritesLoader"
306
316
android : theme =" @style/Theme.K6nele.Dialog.NoActionBar"
307
317
android : windowSoftInputMode =" stateUnchanged" >
@@ -330,6 +340,7 @@ Also, failed to set the launchMode from the resource, INSTALL_PARSE_FAILED_UNEXP
330
340
</activity >
331
341
<activity
332
342
android : name =" .activity.RewritesActivity"
343
+ android : exported =" false"
333
344
android : parentActivityName =" .activity.RewritesSelectorActivity" >
334
345
<!--
335
346
<meta-data
@@ -339,6 +350,7 @@ Also, failed to set the launchMode from the resource, INSTALL_PARSE_FAILED_UNEXP
339
350
</activity >
340
351
<activity
341
352
android : name =" .activity.PermissionsRequesterActivity"
353
+ android : exported =" false"
342
354
android : theme =" @style/Theme.K6nele.Translucent" />
343
355
<activity
344
356
android : name =" .activity.FetchUrlActivity"
@@ -352,22 +364,26 @@ Also, failed to set the launchMode from the resource, INSTALL_PARSE_FAILED_UNEXP
352
364
android : theme =" @style/Theme.K6nele.Translucent" />
353
365
<activity
354
366
android : name =" .activity.QuickSettingsActivity"
367
+ android : exported =" false"
355
368
android : label =" @string/labelActivityQuickSettings"
356
369
android : parentActivityName =" .activity.Preferences" />
357
370
<activity
358
371
android : name =" .activity.RecognitionServiceWsUrlActivity"
372
+ android : exported =" false"
359
373
android : label =" @string/titleWsServer"
360
374
android : parentActivityName =" .PreferencesRecognitionServiceWs"
361
375
android : windowSoftInputMode =" stateUnchanged" />
362
376
<activity
363
377
android : name =" .demo.SimpleDemo"
378
+ android : exported =" false"
364
379
android : theme =" @style/Theme.K6nele.Translucent" />
365
380
<activity
366
381
android : name =" .demo.ExtrasDemo"
367
382
android : exported =" true"
368
383
android : theme =" @style/Theme.K6nele.Translucent" />
369
384
<activity
370
385
android : name =" .demo.HandsfreeDemoActivity"
386
+ android : exported =" true"
371
387
android : label =" @string/labelActivityHandsfreeDemo" >
372
388
<intent-filter >
373
389
<action android : name =" android.intent.action.MAIN" />
@@ -382,6 +398,7 @@ Also, failed to set the launchMode from the resource, INSTALL_PARSE_FAILED_UNEXP
382
398
android : theme =" @style/Theme.K6nele.Light" />
383
399
<activity
384
400
android : name =" .demo.VoiceSearchDemo"
401
+ android : exported =" false"
385
402
android : label =" @string/labelActivityVoiceSearchDemo" />
386
403
387
404
<activity
@@ -458,6 +475,7 @@ Also, failed to set the launchMode from the resource, INSTALL_PARSE_FAILED_UNEXP
458
475
459
476
<service
460
477
android : name =" .service.SpeechInputMethodService"
478
+ android : exported =" true"
461
479
android : foregroundServiceType =" microphone"
462
480
android : label =" @string/labelIme"
463
481
android : permission =" android.permission.BIND_INPUT_METHOD" >
0 commit comments