diff --git a/meta-ohos-demo/recipes-connectivity/bluez5/bluez5_%.bbappend b/meta-ohos-demo/recipes-connectivity/bluez5/bluez5_%.bbappend
new file mode 100644
index 0000000000000000000000000000000000000000..ade16020e873adf9f24c6a78034c95f41e2b079e
--- /dev/null
+++ b/meta-ohos-demo/recipes-connectivity/bluez5/bluez5_%.bbappend
@@ -0,0 +1,9 @@
+do_install_append() {
+	# Install main.conf file and turn on AutoEnable flag
+	# to bring up BLE controller on boot.
+	if [ -f ${S}/src/main.conf ]; then
+		install -m 0644 ${S}/src/main.conf ${D}/${sysconfdir}/bluetooth/
+		sed -i 's/#AutoEnable=false/AutoEnable=true/g' \
+			${D}/${sysconfdir}/bluetooth/main.conf
+	fi
+}