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

Android: Emulator builds should not add additional permissions

    Details

    • Story Points:
      5
    • Sprint:
      2020 Sprint 2

      Description

      Summary:
      When building with deployment type "development" (ie: for the Android emulator), the Titanium build system adds the following permissions to the "AndroidManifest.xml" file, even if they're not defined in the "tiapp.xml" file.

      • android.permission.ACCESS_COARSE_LOCATION
      • android.permission.ACCESS_FINE_LOCATION
      • android.permission.ACCESS_MOCK_LOCATION

      The above behavior was intentional and was intended for fast incremental builds with LiveView and the emulator. However, this behavior has been known to cause confusion.

      To-Do:
      In Titanium 9.0.0, we should remove the above behavior. The build system should produce a consistent "AndroidManifest.xml" for all deployment types (ie: "test", "development", and "production").

      Note:
      Titanium should still include its default permissions listed below.

      • android.permission.INTERNET
      • android.permission.ACCESS_WIFI_STATE
      • android.permission.ACCESS_NETWORK_STATE
      • android.permission.WRITE_EXTERNAL_STORAGE

      If you don't want the above default permissions injected, then you can set the following in your "tiapp.xml" file to override this behavior.

      <ti:app xmlns:ti="http://ti.appcelerator.org">
      	<override-permissions>true</override-permissions>
      </ti:app>
      

        Attachments

          Activity

            People

            • Assignee:
              jquick Joshua Quick
              Reporter:
              topener Rene Pot
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-6254
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration