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

Commit 78cbcd21 authored by Henri Chataing's avatar Henri Chataing
Browse files

RootCanal: Remove default controller-properties.json file

The initialisers in controller_properties.cc make a good
default configuration.

Test: m
Change-Id: I3b90acb61c11d1518ca8be4a600f97d5563d28a1
parent 501e52fe
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -73,7 +73,6 @@ cc_binary {
        "packages/modules/Bluetooth/system/stack/include",
    ],
    init_rc: ["android.hardware.bluetooth@1.1-service.sim.rc"],
    required: ["bt_controller_properties"],
}

cc_library_shared {

tools/rootcanal/data/Android.bp

deleted100644 → 0
+0 −22
Original line number Diff line number Diff line
package {
    // See: http://go/android-license-faq
    // A large-scale-change added 'default_applicable_licenses' to import
    // all of the 'license_kinds' from "system_bt_license"
    // to get the below license kinds:
    //   SPDX-license-identifier-Apache-2.0
    default_applicable_licenses: ["system_bt_license"],
}

prebuilt_etc_host {
    name: "controller_properties.json",
    src: "controller_properties.json",
    sub_dir: "rootcanal/data",
}

prebuilt_etc {
    name: "bt_controller_properties",
    src: "controller_properties.json",
    vendor: true,
    filename_from_src: true,
    sub_dir: "bluetooth",
}
+0 −12
Original line number Diff line number Diff line
{
  "AclDataPacketSize": "1024",
  "EncryptionKeySize": "16",
  "ScoDataPacketSize": "255",
  "NumAclDataPackets": "10",
  "NumScoDataPackets": "10",
  "Version": "12",
  "Revision": "0",
  "LmpPalVersion": "12",
  "ManufacturerName": "0",
  "LmpPalSubversion": "0"
}
+0 −1
Original line number Diff line number Diff line
@@ -31,7 +31,6 @@ using gd_hci::OpCode;
using std::vector;

namespace rootcanal {
constexpr char DualModeController::kControllerPropertiesFile[];
constexpr uint16_t DualModeController::kSecurityManagerNumKeys;
constexpr uint16_t kNumCommandPackets = 0x01;
constexpr uint16_t kLeMaximumAdvertisingDataLength = 256;
+1 −5
Original line number Diff line number Diff line
@@ -51,15 +51,11 @@ using ::bluetooth::hci::CommandView;
// corresponding Bluetooth command in the Core Specification with the prefix
// "Hci" to distinguish it as a controller command.
class DualModeController : public Device {
  // The location of the config file loaded to populate controller attributes.
  static constexpr char kControllerPropertiesFile[] =
      "/vendor/etc/bluetooth/controller_properties.json";
  static constexpr uint16_t kSecurityManagerNumKeys = 15;

 public:
  // Sets all of the methods to be used as callbacks in the HciHandler.
  DualModeController(const std::string& properties_filename =
                         std::string(kControllerPropertiesFile),
  DualModeController(const std::string& properties_filename = "",
                     uint16_t num_keys = kSecurityManagerNumKeys);

  ~DualModeController() = default;