From 3571a891d509965ffe7eb15def6da8e0367e261e Mon Sep 17 00:00:00 2001 From: Eskil Abrahamsen Blomfeldt Date: Thu, 7 Nov 2013 13:43:05 +0100 Subject: [PATCH] Android: Add permissions/features for Qt Multimedia module To avoid potential exceptions when using Qt Multimedia, the applications needs to request camera and audio recording capabilities by default. Task-number: QTBUG-33953 Change-Id: I75061e24c65a24f7f45dcfdbb5edb1874c1eb4da Reviewed-by: Yoann Lopes --- src/multimedia/multimedia.pro | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/multimedia/multimedia.pro b/src/multimedia/multimedia.pro index 8bcfd02..63c3f19 100644 --- a/src/multimedia/multimedia.pro +++ b/src/multimedia/multimedia.pro @@ -60,6 +60,11 @@ ANDROID_LIB_DEPENDENCIES = \ lib/libQt5MultimediaQuick_p.so:Qt5Quick ANDROID_BUNDLED_FILES += \ lib/libQt5MultimediaQuick_p.so +ANDROID_PERMISSIONS += \ + android.permission.CAMERA \ + android.permission.RECORD_AUDIO +ANDROID_FEATURES += \ + android.hardware.camera MODULE_PLUGIN_TYPES = \ mediaservice \ audio \ -- 2.7.4