ef935f6e37
The lock and unlock of the Android deadlock mutex is now part
of the internal implementation instead of limited to the enum
based permission API. It is unclear why 8bca441b6f
added
the guard only to this API and not to the string based API
as well.
The check for isBackgroundLocationApi29 has been removed,
as the logic seemingly resulted in accepting every single
permission type except location permissions if used via
the enum-based API.
Since Android's platform permission API doesn't have an
Undetermined status, we keep a hash of the status for each
permission type, and by default checkPermission() would
return Undetermined, until a requestPermission() call
is done which updates the internal hash, and after that
checkPermission() would return properly Granted/Denied.
Task-number: QTBUG-100413
Change-Id: Ia95c76af754481a281bc90198e349966c9c2da52
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
54 lines
2.5 KiB
XML
54 lines
2.5 KiB
XML
<?xml version="1.0"?>
|
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
package="org.qtproject.example"
|
|
android:installLocation="auto"
|
|
android:versionCode="-- %%INSERT_VERSION_CODE%% --"
|
|
android:versionName="-- %%INSERT_VERSION_NAME%% --">
|
|
<uses-permission android:name="android.permission.CAMERA" />
|
|
<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" />
|
|
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
|
|
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
|
|
<uses-permission android:name="android.permission.RECORD_AUDIO" />
|
|
<uses-permission android:name="android.permission.BLUETOOTH" />
|
|
<uses-permission android:name="android.permission.READ_CONTACTS" />
|
|
<uses-permission android:name="android.permission.WRITE_CONTACTS" />
|
|
<uses-permission android:name="android.permission.READ_CALENDAR" />
|
|
<uses-permission android:name="android.permission.WRITE_CALENDAR" />
|
|
<!-- %%INSERT_PERMISSIONS -->
|
|
<!-- %%INSERT_FEATURES -->
|
|
<supports-screens
|
|
android:anyDensity="true"
|
|
android:largeScreens="true"
|
|
android:normalScreens="true"
|
|
android:smallScreens="true" />
|
|
<application
|
|
android:name="org.qtproject.qt.android.bindings.QtApplication"
|
|
android:hardwareAccelerated="true"
|
|
android:label="-- %%INSERT_APP_NAME%% --"
|
|
android:requestLegacyExternalStorage="true"
|
|
android:allowNativeHeapPointerTagging="false"
|
|
android:allowBackup="true"
|
|
android:fullBackupOnly="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="unspecified"
|
|
android:exported="true">
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.MAIN" />
|
|
<category android:name="android.intent.category.LAUNCHER" />
|
|
</intent-filter>
|
|
|
|
<meta-data
|
|
android:name="android.app.lib_name"
|
|
android:value="-- %%INSERT_APP_LIB_NAME%% --" />
|
|
|
|
<meta-data
|
|
android:name="android.app.extract_android_style"
|
|
android:value="minimal" />
|
|
</activity>
|
|
</application>
|
|
</manifest>
|