Skip to content

Commit 4e2ec04

Browse files
authored
[Xamarin.Android.Build.Tasks] Timing.xml & android:exported="true" (#7551)
Context: 1efa0cf API-33 requires that publicly accessible receivers need to use [`<receiver android:exported="true"/>`][0]in order to them to work. The `Timing.xml` overlay did not have this attribute, which prevented the `mono.android.app.DumpTimingData` receiver from working as intended on Android 12. Update `Timing.xml` so that the `DumpTimingData` receiver is appropriately exported and usable on Android 12. [0]: https://developer.android.com/guide/topics/manifest/receiver-element#exported
1 parent 4500d7d commit 4e2ec04

File tree

1 file changed

+1
-1
lines changed
  • src/Xamarin.Android.Build.Tasks/ManifestOverlays

1 file changed

+1
-1
lines changed

src/Xamarin.Android.Build.Tasks/ManifestOverlays/Timing.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools">
33
<application>
4-
<receiver android:name="mono.android.app.DumpTimingData" tools:node="replace">
4+
<receiver android:name="mono.android.app.DumpTimingData" tools:node="replace" android:exported="true">
55
<intent-filter>
66
<action android:name="mono.android.app.DUMP_TIMING_DATA"/>
77
</intent-filter>

0 commit comments

Comments
 (0)