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

Commit 877b2b46 authored by Rohit Sekhar's avatar Rohit Sekhar
Browse files

Revert "FP6: init: Setup bluetooth MAC address"

This reverts commit f70aaef1.

Reason:
- We have the tctd binary from FPOS, that originally did this function
  now.
parent b4073792
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -185,7 +185,6 @@ PRODUCT_PACKAGES += \

# Init
PRODUCT_PACKAGES += \
    init.bt_mac.sh \
    init.class_main.sh \
    init.qcom.early_boot.sh \
    init.qcom.sh \
@@ -194,7 +193,6 @@ PRODUCT_PACKAGES += \
PRODUCT_PACKAGES += \
    fstab.qcom \
    fstab.qcom.vendor_ramdisk \
    init.bt_mac.rc \
    init.qcom.rc \
    init.recovery.qcom.rc \
    init.target.rc \
+0 −13
Original line number Diff line number Diff line
@@ -10,13 +10,6 @@ prebuilt_etc {
    vendor_ramdisk_available: true,
}

prebuilt_etc {
    name: "init.bt_mac.rc",
    src: "init.bt_mac.rc",
    sub_dir: "init",
    vendor: true,
}

prebuilt_etc {
    name: "init.qcom.rc",
    src: "init.qcom.rc",
@@ -59,12 +52,6 @@ prebuilt_etc {
    sub_dir: "init/hw",
}

sh_binary {
    name: "init.bt_mac.sh",
    src: "init.bt_mac.sh",
    vendor: true,
}

sh_binary {
    name: "init.class_main.sh",
    src: "init.class_main.sh",

init/init.bt_mac.rc

deleted100644 → 0
+0 −7
Original line number Diff line number Diff line
service init.bt_mac /vendor/bin/init.bt_mac.sh
    class core
    group root system
    oneshot

on post-fs
    mkdir /mnt/vendor/persist/trace_info 0777 root system

init/init.bt_mac.sh

deleted100644 → 0
+0 −4
Original line number Diff line number Diff line
#!/vendor/bin/sh
BT_MACADDR=/mnt/vendor/persist/trace_info/bt_macaddr

setprop persist.vendor.service.bdroid.bdaddr $(cat "$BT_MACADDR")

sepolicy/vendor/bt_mac.te

deleted100644 → 0
+0 −10
Original line number Diff line number Diff line
type bt_mac, domain;
type bt_mac_exec, exec_type, vendor_file_type, file_type;
init_daemon_domain(bt_mac);

allow bt_mac vendor_toolbox_exec:file rx_file_perms;

allow bt_mac mnt_vendor_file:dir search;
r_dir_file(bt_mac, vendor_persist_bt_file)

set_prop(bt_mac, vendor_bluetooth_prop)
Loading