Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Android :- Set application permission

Android :- Set application permission

Scheduled Pinned Locked Moved Mobile and Embedded
4 Posts 3 Posters 2.6k Views
  • 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 Offline
    T Offline
    tonysonney
    wrote on last edited by
    #1

    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
    0
    • benlauB Offline
      benlauB Offline
      benlau
      Qt Champions 2016
      wrote on last edited by
      #2

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

      1 Reply Last reply
      0
      • T Offline
        T Offline
        tonysonney
        wrote on last edited by
        #3

        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.

        yogeshpatel23Y 1 Reply Last reply
        0
        • T tonysonney

          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.

          yogeshpatel23Y Offline
          yogeshpatel23Y Offline
          yogeshpatel23
          wrote on last edited by
          #4

          @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
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved