Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Extra permissions on AndroidManifest.xml



  • I have a Qt5 game (https://github.com/omidnikta/qtmind) that I can successfully deploy as follows (Host is Arch Linux)

    /opt/android-qt5/5.2.0/bin/qmake
    make install INSTALL_ROOT=android-build/
    /opt/android-qt5/5.2.0/bin/androiddeployqt --output android-build/

    Although the only permission is my AndroidManifest.xml is

    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>

    but androiddeplyqt keeps adding

    <uses-permission android:name="android.permission.CAMERA" />
    <uses-permission android:name="android.permission.RECORD_AUDIO" />
    <uses-feature android:name="android.hardware.camera" />

    to the AndroidManifest.xml. Any way to prevent that behaviour?



  • Do you have QT += multimedia in your .pro files somewhere? It will pull in this permission I guess. Also you could try to let Creator create the manifest file in the source dir (in deploy options) and then edit that version. If it doesn't work, file a bug at bugreports.qt-project.org



  • I figure out the funny bug. In the AndroidManifest.xml I had

    <!-- %%INSERT_PERMISSIONS -->
    <!-- %%INSERT_FEATURES -->

    and it turns out to be the problem. After removing these lines the problem solved.


Log in to reply