mirror of
git://code.qt.io/qt/qt5.git
synced 2026-02-01 19:36:04 +08:00
coin: Give coin agent permission to access Bluetooth
The Qt Connectivity tests rely on this.
Change-Id: I7218485e583ebe2c8d381a0104012a86350e6eac
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Reviewed-by: Aku Pietikäinen <aku.pietikainen@qt.io>
(cherry picked from commit 3ad98d0b27)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
committed by
Qt Cherry-pick Bot
parent
be5eb71399
commit
95c6513432
@@ -9,8 +9,16 @@ if touch "$TCC_DATABASE"; then
|
||||
REQ_STR=$(codesign -d -r- "$BOOTSTRAP_AGENT" 2>&1 | awk -F ' => ' '/designated/{print $2}')
|
||||
REQ_HEX=$(echo "$REQ_STR" | csreq -r- -b >(xxd -p | tr -d '\n'))
|
||||
|
||||
SERVICES=()
|
||||
|
||||
# Qt Multimedia tests need microphone access
|
||||
SERVICES+=('kTCCServiceMicrophone')
|
||||
|
||||
# Qt Connectivity tests need Bluetooth access
|
||||
SERVICES+=('kTCCServiceBluetoothAlways')
|
||||
|
||||
# shellcheck disable=SC2043
|
||||
for service in kTCCServiceMicrophone; do
|
||||
for service in "${SERVICES[@]}"; do
|
||||
sqlite3 -echo "$TCC_DATABASE" <<EOF
|
||||
DELETE from access WHERE client = '$BOOTSTRAP_AGENT' AND service = '$service';
|
||||
INSERT INTO access (service, client, client_type, auth_value, auth_reason, auth_version, csreq, flags) VALUES (
|
||||
|
||||
Reference in New Issue
Block a user