Android :- Set application permission
-
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.
-
Within the ANDROID_PACKAGE_SOURCE_DIR (defined in .pro) , add AndroidManifest.xml and set the permission inside the file.
-
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. -
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.@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 .