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

Unverified Commit b0b46009 authored by Rohit Sekhar's avatar Rohit Sekhar Committed by Michael Bestas
Browse files

FP5: init: Setup bluetooth MAC address

Change-Id: I714cd19bdfd120f895c1c987b6a943495194d138
parent ffae9e47
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -216,6 +216,8 @@ PRODUCT_PACKAGES += \
PRODUCT_PACKAGES += \
    fstab.default \
    fstab.default.vendor_ramdisk \
    init.bt_mac.rc \
    init.bt_mac.sh \
    init.class_main.sh \
    init.qcom.early_boot.sh \
    init.qcom.post_boot.sh \
+13 −0
Original line number Diff line number Diff line
@@ -10,6 +10,13 @@ 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",
@@ -45,6 +52,12 @@ prebuilt_etc {
    vendor: true,
}

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

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

init/init.bt_mac.sh

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

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