diff --git a/frameworks/ets/taihe/bluetooth_a2dp/idl/ohos.bluetooth.a2dp.taihe b/frameworks/ets/taihe/bluetooth_a2dp/idl/ohos.bluetooth.a2dp.taihe index 48399c4b9f26a4f8745319252ef7239dcf3dd5be..f4292cc16110bc9b2c2c06a7e49874ee49b2fae2 100644 --- a/frameworks/ets/taihe/bluetooth_a2dp/idl/ohos.bluetooth.a2dp.taihe +++ b/frameworks/ets/taihe/bluetooth_a2dp/idl/ohos.bluetooth.a2dp.taihe @@ -15,7 +15,7 @@ @!namespace("@ohos.bluetooth.a2dp", "a2dp") @!sts_inject(""" -static { loadLibrary("bluetoothA2dp_taihe_native.z") } +static { loadLibraryWithPermissionCheck("bluetoothA2dp_taihe_native.z", "@ohos.bluetooth.a2dp") } """) from ohos.bluetooth.baseProfile use BaseProfile; diff --git a/frameworks/ets/taihe/bluetooth_access/idl/ohos.bluetooth.access.taihe b/frameworks/ets/taihe/bluetooth_access/idl/ohos.bluetooth.access.taihe index 208f74100d4b1d6c854f278d6937528f9433824f..2bf0f3c79be9a416e1823ce1b0d6642e8d8825e5 100644 --- a/frameworks/ets/taihe/bluetooth_access/idl/ohos.bluetooth.access.taihe +++ b/frameworks/ets/taihe/bluetooth_access/idl/ohos.bluetooth.access.taihe @@ -15,7 +15,7 @@ @!namespace("@ohos.bluetooth.access", "access") @!sts_inject(""" -static { loadLibrary("bluetoothAccess_taihe_native.z") } +static { loadLibraryWithPermissionCheck("bluetoothAccess_taihe_native.z", "@ohos.bluetooth.access") } """) from ohos.bluetooth.baseProfile use BaseProfile; diff --git a/frameworks/ets/taihe/bluetooth_baseProfile/idl/ohos.bluetooth.baseProfile.taihe b/frameworks/ets/taihe/bluetooth_baseProfile/idl/ohos.bluetooth.baseProfile.taihe index 6aac3b0cd11335d1d71c586a44246d9b1c562cfa..fc049938007067d6b1bb7c15ec2d89cfcea9701d 100644 --- a/frameworks/ets/taihe/bluetooth_baseProfile/idl/ohos.bluetooth.baseProfile.taihe +++ b/frameworks/ets/taihe/bluetooth_baseProfile/idl/ohos.bluetooth.baseProfile.taihe @@ -15,7 +15,7 @@ @!namespace("@ohos.bluetooth.baseProfile", "baseProfile") @!sts_inject(""" -static { loadLibrary("bluetoothBaseProfile_taihe_native.z") } +static { loadLibraryWithPermissionCheck("bluetoothBaseProfile_taihe_native.z", "@ohos.bluetooth.baseProfile") } """) from ohos.bluetooth.constant use ProfileConnectionState; diff --git a/frameworks/ets/taihe/bluetooth_ble/idl/ohos.bluetooth.ble.taihe b/frameworks/ets/taihe/bluetooth_ble/idl/ohos.bluetooth.ble.taihe index a74170a90cdcc735c5e186abcf99d9b3a7eac138..113ce0106a80269c69318c3cd16c1a963b843bb7 100644 --- a/frameworks/ets/taihe/bluetooth_ble/idl/ohos.bluetooth.ble.taihe +++ b/frameworks/ets/taihe/bluetooth_ble/idl/ohos.bluetooth.ble.taihe @@ -15,7 +15,7 @@ @!namespace("@ohos.bluetooth.ble", "ble") @!sts_inject(""" -static { loadLibrary("bluetoothBle_taihe_native.z") } +static { loadLibraryWithPermissionCheck("bluetoothBle_taihe_native.z", "@ohos.bluetooth.ble") } """) from ohos.bluetooth.constant use ProfileConnectionState; diff --git a/frameworks/ets/taihe/bluetooth_connection/idl/ohos.bluetooth.connection.taihe b/frameworks/ets/taihe/bluetooth_connection/idl/ohos.bluetooth.connection.taihe index d834a758a4a4c98097fa4e1bf4b7957db1aa6820..0ad8ff3dad7154fdf56796efb2a1648b4b78dae6 100644 --- a/frameworks/ets/taihe/bluetooth_connection/idl/ohos.bluetooth.connection.taihe +++ b/frameworks/ets/taihe/bluetooth_connection/idl/ohos.bluetooth.connection.taihe @@ -15,7 +15,7 @@ @!namespace("@ohos.bluetooth.connection", "connection") @!sts_inject(""" -static { loadLibrary("bluetoothConnection_taihe_native.z") } +static { loadLibraryWithPermissionCheck("bluetoothConnection_taihe_native.z", "@ohos.bluetooth.connection") } """) from ohos.bluetooth.constant use MajorClass, MajorMinorClass; diff --git a/frameworks/ets/taihe/bluetooth_constant/idl/ohos.bluetooth.constant.taihe b/frameworks/ets/taihe/bluetooth_constant/idl/ohos.bluetooth.constant.taihe index 1b33e638d3347d9e4f6aeb97596e4835b6c130ad..7b86ea77e07f2e5bf85cbba8b85981b7545be631 100644 --- a/frameworks/ets/taihe/bluetooth_constant/idl/ohos.bluetooth.constant.taihe +++ b/frameworks/ets/taihe/bluetooth_constant/idl/ohos.bluetooth.constant.taihe @@ -15,7 +15,7 @@ @!namespace("@ohos.bluetooth.constant", "constant") @!sts_inject(""" -static { loadLibrary("bluetoothConstant_taihe_native.z") } +static { loadLibraryWithPermissionCheck("bluetoothConstant_taihe_native.z", "@ohos.bluetooth.constant") } """) enum ProfileConnectionState: i32 { diff --git a/frameworks/ets/taihe/bluetooth_hfp/idl/ohos.bluetooth.hfp.taihe b/frameworks/ets/taihe/bluetooth_hfp/idl/ohos.bluetooth.hfp.taihe index 19e5f611d30780cc0372b3c7745427e1e6e3d2f0..2d29e143711d5a2def0f9d76ad3d1c8cd8b404c9 100644 --- a/frameworks/ets/taihe/bluetooth_hfp/idl/ohos.bluetooth.hfp.taihe +++ b/frameworks/ets/taihe/bluetooth_hfp/idl/ohos.bluetooth.hfp.taihe @@ -15,7 +15,7 @@ @!namespace("@ohos.bluetooth.hfp", "hfp") @!sts_inject(""" -static { loadLibrary("bluetoothHfp_taihe_native.z") } +static { loadLibraryWithPermissionCheck("bluetoothHfp_taihe_native.z", "@ohos.bluetooth.hfp") } """) from ohos.bluetooth.baseProfile use BaseProfile; diff --git a/frameworks/ets/taihe/bluetooth_hid/idl/ohos.bluetooth.hid.taihe b/frameworks/ets/taihe/bluetooth_hid/idl/ohos.bluetooth.hid.taihe index 87ea5362f09137bd248411ad644fa24f1a1e7762..91220a259fee76d4fe82f64dddfd1c2dbb999922 100644 --- a/frameworks/ets/taihe/bluetooth_hid/idl/ohos.bluetooth.hid.taihe +++ b/frameworks/ets/taihe/bluetooth_hid/idl/ohos.bluetooth.hid.taihe @@ -15,7 +15,7 @@ @!namespace("@ohos.bluetooth.hid", "hid") @!sts_inject(""" -static { loadLibrary("bluetoothHid_taihe_native.z") } +static { loadLibraryWithPermissionCheck("bluetoothHid_taihe_native.z", "@ohos.bluetooth.hid") } """) from ohos.bluetooth.baseProfile use BaseProfile;