Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-28475

Android: Add "android:exported" attribute to all activities/services that have an intent-filter

    Details

      Description

      Summary:
      When targeting Android 12 (aka: API Level 31), all activities, services, and broadcast receivers that have an <intent-filter/> defined must also explicitly define an android:exported attribute or else the build will fail. This is a breaking-change made by Google.
      https://developer.android.com/about/versions/12/behavior-changes-12#exported

      The following error will be logged...

      Apps targeting Android 12 and higher are required to specify an explicit value for `android:exported` when the corresponding component has an intent filter defined.
      

      To-Do:
      Set exported to false for the below Titanium SDK AndroidManifest.xml activities.

      • org.appcelerator.titanium.TiActivity
      • org.appcelerator.titanium.TiTranslucentActivity
      • ti.modules.titanium.media.TiCameraActivity
      • ti.modules.titanium.media.TiVideoActivity
      • ti.modules.titanium.ui.android.TiPreferencesActivity

      Set exported to true for SDK test app's main activity in AndroidManifest.xml.

      Set exported to true for app template's main activity in AndroidManifest.xml.

        Attachments

          Activity

            People

            • Assignee:
              jquick Joshua Quick
              Reporter:
              jquick Joshua Quick
              Reviewer:
              Gary Mathews
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Integration