Uploaded image for project: 'Qt Automotive Suite'
  1. Qt Automotive Suite
  2. AUTOSUITE-1161

Grouping Android services in one process is not supported in ivigenerator server_qtro template

    XMLWordPrintable

Details

    • Android

    Description

      Creating Android service for each remote backend (generated with ivigenerator server_qtro template), cause significant overhead in RAM (Android service without any logic consume around 6 MB on Android 9, X86). To overcome that problem Android services can be grouped to one process.

      Android system enables grouping services into one process in operating system by setting the same "android:process" property for multiple services in Manifest file:

       

      ...
      <service android:process=":process1" android:name=".Service1">
      ...
      </service>
      ...
      <service android:process=":process1" android:name=".Service2">
      ...
      </service>
      ...

       

      The server_qtro template code, contains a singleton class Core. The same singleton class is generated for all services, making it impossible for us to initialize more than one service within a single process.

       

       

      Attachments

        Issue Links

          Activity

            People

              gagi Dominik Holland
              dawid Dawid Kubiszewski
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: