Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Android :- Set application permission

    Mobile and Embedded
    3
    4
    2308
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      tonysonney last edited by

      This is more like a Android question. How do I set permissions for the Android apks generated using Qt creator. Basically, my GUI needs to access usb and any hid devices. But not sure how to set appropriate permissions.
      I have verified, the problem is permission by writing equivalent binary in cpp and running it as root and normal shell user.

      Thanks in advance for any help.

      1 Reply Last reply Reply Quote 0
      • benlau
        benlau Qt Champions 2016 last edited by

        Within the ANDROID_PACKAGE_SOURCE_DIR (defined in .pro) , add AndroidManifest.xml and set the permission inside the file.

        1 Reply Last reply Reply Quote 0
        • T
          tonysonney last edited by

          Thank you for the reply. But what permission do I set. I tried setting permission
          "android.permission.ACCESS_SUPERUSER" . But the app when deployed does not seem to request for root access. I checked the app list in superSU in which may application is not present.

          yogeshpatel23 1 Reply Last reply Reply Quote 0
          • yogeshpatel23
            yogeshpatel23 @tonysonney last edited by

            @tonysonney :
            Whenever you execute SU command programmatically in your application, you should get pop-up to allow app for root access, I think after that you will be able to see your app in superSU list .

            Thanks,
            Yogesh

            1 Reply Last reply Reply Quote 0
            • First post
              Last post