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

androiddeployqt: wrong package name passed to "adb uninstall"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.6.0 RC
    • 5.4.0
    • QPA
    • QC 3.3.0
      Kubuntu 14.04 amd64 host
    • Android
    • 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

        For Gerrit Dashboard: QTBUG-45433
        # Subject Branch Project Status CR V

        Activity

          People

            portale Alessandro Portale
            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