Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7700e22e authored by Himanshu Rawat's avatar Himanshu Rawat
Browse files

System property for changing minimum key size

Introducing a system property to allow increasing the minimum key size
from default of 7 octets.
System property: bluetooth.gap.min_key_size

Test: mmm pacakges/modules/Bluetooth
Flag: EXEMPT guarded by system property
Bug: 362624309
Change-Id: Idaa7eb191158d8487437642b2f2f7f5492619a88
parent 9bb9aa3c
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -11,6 +11,7 @@ sysprop_library {
        "ble.sysprop",
        "bta.sysprop",
        "device_id.sysprop",
        "gap.sysprop",
        "hfp.sysprop",
    ],
    property_owner: "Platform",
+1 −0
Original line number Diff line number Diff line
@@ -7,6 +7,7 @@ sysprop("libcom.android.sysprop.bluetooth") {
    "ble.sysprop",
    "bta.sysprop",
    "device_id.sysprop",
    "gap.sysprop",
    "hfp.sysprop",
  ]
  deps = [ "//bt/floss/android-base:android-base" ]
+1 −0
Original line number Diff line number Diff line
@@ -21,4 +21,5 @@
#include <ble.sysprop.h>
#include <bta.sysprop.h>
#include <device_id.sysprop.h>
#include <gap.sysprop.h>
#include <hfp.sysprop.h>

sysprop/gap.sysprop

0 → 100644
+12 −0
Original line number Diff line number Diff line
module: "android.sysprop.bluetooth.Gap"
owner: Platform

prop {
    api_name: "min_key_size"
    type: Integer
    scope: Internal
    access: Readonly
    prop_name: "bluetooth.gap.min_key_size"
}

+1 −0
Original line number Diff line number Diff line
@@ -43,6 +43,7 @@ source_set("BluetoothHciSources") {
  deps = [
    "//bt/flags:bluetooth_flags_c_lib",
    "//bt/system/gd:gd_default_deps",
    "//bt/sysprop:libcom.android.sysprop.bluetooth",
  ]

  configs += [
Loading