Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-45433

androiddeployqt: wrong package name passed to "adb uninstall"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.4.0
    • Fix Version/s: 5.6.0 RC
    • Component/s: QPA
    • Environment:
      QC 3.3.0
      Kubuntu 14.04 amd64 host
    • Platform/s:
      Android
    • Commits:
      30329ce24004a54e0bd1bbeff2b139ab13bb6946

      Description

      When calling androiddeployqt with parameter --install --no-build, it will try to uninstall a package with a wrong package name. The adb line:

      adb -s <device>  uninstall org.qtproject.example.<packagename>
      

      The "org.qtproject.example.<packagename>" is incorrect. The package name needs to be read from the AndroidManifest.xml, but that only happens if androiddeployqt is called without --no-build.

      Suggestion: the function updateAndroidManifest() should be split into a part that updates the manifest and one that parses the manifest to get packagename and versions. The second function should also be called when --no-build is specified. I would do it, but I am unsure about the checkOldAndroidLabelString check which I don't understand and which makes the splitting of that function a bit trickier.

      Original bug report description:

      Whenever I sign my package and try to install it, I get a popup in QC saying:

      Another application with the same package id but signed with different ceritificate already exists.

      Do you want to uninstall the existing package next time?

      Beside the fact that there is a typo in the above in certificate, it appears to make no difference if I click Yes or No buttons, I need to manually uninstall the previous package anyway.

      Not sure what Yes should do, should it uninstall it for me?

        Attachments

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

          Activity

            People

            Assignee:
            portale Alessandro Portale
            Reporter:
            grego Harri Pasanen
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes