Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.4.0
-
QC 3.3.0
Kubuntu 14.04 amd64 host
-
-
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 |
111072,4 | androiddeployqt: Use correct package name when uninstalling | 5.5 | qt/qttools | Status: MERGED | +2 | 0 |