Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business


OverviewFelgo 3 Support (Qt 5) › unwanted android.permission.RECORD_AUDIO, android.permission.CAMERA permissions

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • #24586



    I try to publish an app with Qt & Felgo to Google Play Store.

    Google Play says that

    An apk with version code 1 in your app requests the following permissions: android.permission.RECORD_AUDIO, android.permission.CAMERA. Apps that use these permissions in an APK must have a privacy policy.

    But I don’t add the permissions to my AndroidManifest.xml file.
    it’s content is :


    <?xml version="1.0"?>
    <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="org.qtproject.example.Library" android:installLocation="auto" android:versionCode="4" android:versionName="1.0.3">
        <supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:smallScreens="true"/>
        <application android:name="org.qtproject.qt.android.bindings.QtApplication" android:extractNativeLibs="true" android:hardwareAccelerated="true" android:label="-- %%INSERT_APP_NAME%% --" android:requestLegacyExternalStorage="true" android:allowNativeHeapPointerTagging="false">
            <activity android:name="org.qtproject.qt.android.bindings.QtActivity" android:configChanges="orientation|uiMode|screenLayout|screenSize|smallestScreenSize|layoutDirection|locale|fontScale|keyboard|keyboardHidden|navigation|mcc|mnc|density" android:label="-- %%INSERT_APP_NAME%% --" android:launchMode="singleTop" android:screenOrientation="portrait">
                    <action android:name="android.intent.action.MAIN"/>
                    <category android:name="android.intent.category.LAUNCHER"/>
                <meta-data android:name="android.app.lib_name" android:value="-- %%INSERT_APP_LIB_NAME%% --"/>
                <meta-data android:name="android.app.arguments" android:value="-- %%INSERT_APP_ARGUMENTS%% --"/>
                <meta-data android:name="android.app.extract_android_style" android:value="minimal"/>
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
        <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>

    What do you suggest?

    Kind Regards.



    Felgo Team

    Hi Burhan,

    you probably still have those lines in your manifest file:

       <!-- The following comment will be replaced upon deployment with default permissions based on the dependencies of the application.
             Remove the comment if you do not require these default permissions. -->
        <!-- %%INSERT_PERMISSIONS -->
        <!-- The following comment will be replaced upon deployment with default features based on the dependencies of the application.
             Remove the comment if you do not require these default features. -->
        <!-- %%INSERT_FEATURES -->

    As expressed in those comments, please remove those lines and just add your required permissions and features.





    Thank you for your reply but I don’t add those lines to AndroidManifest.xml file. And the Manifest file is as I shared.
    My current project has been created from QT then added Felgo on it . I created a new project from Felgo but now there are several errors:

    ../LibraryProject/main.cpp:2:10: fatal error: ‘FelgoApplication’ file not found
    #include <FelgoApplication>

    ../LibraryProject/main.cpp:4: error: ‘QQmlApplicationEngine’ file not found

    ../LibraryProject/main.cpp:12: error: variable has incomplete type ‘QApplication’

    ../Qt/6.2.1/android_arm64_v8a/include/QtCore/qcoreevent.h:357: forward declaration of ‘QApplication’

    ../LibraryProject/main.cpp:14: error: unknown type name ‘FelgoApplication’

    ../LibraryProject/main.cpp:19: error: unknown type name ‘QQmlApplicationEngine’

    ../LibraryProject/main.cpp:24: error: use of undeclared identifier ‘PRODUCT_LICENSE_KEY’


    Felgo Team

    This looks like you have selected a kit that does not include Felgo in Qt Creator, when trying to build the application.



    How can I export/import a Kit from Felgo to QT Creator. So I have 2 different installations which one is only QT Creator then Felgo has been added to it on marketplace, the other one is mainly Felgo



    I solved the issue. First cloned the android kit in Felgo then copied android kit folder under QT Creator Kits folder which QT find them automatically. Then opened the QT Creator (the first installation) then modified the C and C++ Debug libraries.Then created template (Androidmanifest.xml and gradle files ) again. After the building process and producing the aab file, now Google Play doesn’t say any warnings about permissions 🙂

Viewing 6 posts - 1 through 6 (of 6 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded