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

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Won't Do
    • Affects Version/s: 5.13.0
    • Fix Version/s: None
    • Component/s: Qt IVI
    • Platform/s:
      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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There is 1 open Gerrit change