{ "id": "176218", "key": "TIMOB-28475", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "21201", "description": "", "name": "Release 10.1.0", "archived": false, "released": true, "releaseDate": "2021-09-28" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2021-08-02T17:15:45.000+0000", "created": "2021-06-05T04:58:08.000+0000", "epic": { "id": 176213, "key": "TIMOB-28470", "name": "Android 12: Implement Support", "summary": "Android 12: Implement Support", "color": { "key": "color_9" }, "done": false }, "priority": { "name": "Critical", "id": "1" }, "labels": [ "activity", "android", "broadcastReceiver", "build", "exports", "intent-filter", "manifest", "service" ], "versions": [], "issuelinks": [], "assignee": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2021-08-02T17:15:58.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "*Summary:*\r\nWhen targeting Android 12 (aka: API Level 31), all activities, services, and broadcast receivers that have an {{}} defined must also explicitly define an {{android:exported}} attribute or else the build will fail. This is a breaking-change made by Google.\r\nhttps://developer.android.com/about/versions/12/behavior-changes-12#exported\r\n\r\nThe following error will be logged...\r\n{code}\r\nApps targeting Android 12 and higher are required to specify an explicit value for `android:exported` when the corresponding component has an intent filter defined.\r\n{code}\r\n\r\n*To-Do:*\r\nSet exported to {{false}} for the below Titanium SDK [AndroidManifest.xml|https://github.com/appcelerator/titanium_mobile/blob/master/android/titanium/AndroidManifest.xml] activities.\r\n* {{org.appcelerator.titanium.TiActivity}}\r\n* {{org.appcelerator.titanium.TiTranslucentActivity}}\r\n* {{ti.modules.titanium.media.TiCameraActivity}}\r\n* {{ti.modules.titanium.media.TiVideoActivity}}\r\n* {{ti.modules.titanium.ui.android.TiPreferencesActivity}}\r\n\r\nSet exported to {{true}} for SDK test app's main activity in [AndroidManifest.xml|https://github.com/appcelerator/titanium_mobile/blob/master/android/app/src/main/AndroidManifest.xml].\r\n\r\nSet exported to {{true}} for app template's main activity in [AndroidManifest.xml|https://github.com/appcelerator/titanium_mobile/blob/master/android/templates/build/AndroidManifest.xml].\r\n", "attachment": [], "flagged": false, "summary": "Android: Add \"android:exported\" attribute to all activities/services that have an intent-filter", "creator": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "458763", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (master): https://github.com/appcelerator/titanium_mobile/pull/12881", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-06-11T01:19:41.000+0000", "updated": "2021-06-11T01:19:41.000+0000" }, { "id": "458941", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-08-02T17:15:58.000+0000", "updated": "2021-08-02T17:15:58.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }