With a trivial QApplication
in ~/hello
I compile and deploy through
mkdir ~/hello_build
cd ~/hello_build
/Qt/5.7/android_armv7/bin/qmake -r -spec android-g++ ~/hello/hello.pro
make
make install INSTALL_ROOT=android
/Library/Java/JavaVirtualMachines/jdk1.8.0_92.jdk/Contents/Home/bin/keytool -genkey -v -keystore ~/hello/hello.keystore -alias hello-alias -keyalg RSA -keysize 2048 -validity 10000
/Qt/5.7/android_armv7/bin/androiddeployqt --output android --verbose --input android-libHello.so-deployment-settings.json --sign ~/hello/hello.keystore hello-alias --storepass MyPassword
At this point I see that AndroidManifest.xml
has popped up in ~/hello_build/android, and so I replace
<manifest package="org.qtproject.example.Hello"
with
<manifest package="com.mycorp.Hello"
and install
/android/platform-tools/adb install ~/hello_build/android/bin/QtApp-release-signed.apk
But now when I enter the android shell
/android/platform-tools/adb shell
and check the fully qualified package name, I see that it's still org.qtproject.example.Hello
$ pm list packages | grep hello
package:org.qtproject.example.Hello
Which string should I edit to set the fully qualified Qt/Android app name? Can this be done as early as in the .pro
file?