[Android Head-Units] shanetrainST:
So I started today putting together a batch ADB file to test the CM version of the BT for joying

I have completely run out of time to finish it and I wont be able to complete it till next week, there is quite a bit to go on it and i am not even sure it works, so if anyone want to continue with it, u can.

The ADB Files are not my work and i don't take credit for it, I only added the files and made the batch

This work is not complete and SHOULD NOT BE USED in its current state.

Attached is the half built BluetoothUpgrade Files

View attachment 4215258

Echo off

adb kill-server

adb connect %1

adb root

adb connect %1

adb shell mount -o rw,remount /system

adb shell mount -o rw,remount /system /system

adb shell mount -o rw,remount /

adb shell mount -o rw,remount / /

# Push New Files To SDcard (Should Be Finished)

adb push Bluetooth.apk /sdcard/

adb push BluetoothExt.apk /sdcard/

adb push BluetoothMidiService.apk /sdcard/

adb push btnvtool /sdcard/

adb push btsnoop /sdcard/

adb push MTP_WCD9306_Bluetooth_cal.acdb /sdcard/

adb push MTP_Bluetooth_cal_ZD550KL.acdb /sdcard/

adb push MTP_Bluetooth_cal_ZE550KL.acdb /sdcard/

adb push MTP_Bluetooth_cal_ZE600KL.acdb /sdcard/

adb push QRD_Bluetooth_cal.acdb /sdcard/

adb push QRD_SKUL_Bluetooth_cal.acdb /sdcard/

adb push bt_did.conf /sdcard/

adb push bt_stack.conf /sdcard/

adb push android.hardware.bluetooth.xml /sdcard/

adb push android.hardware.bluetooth_le.xml /sdcard/

adb push init.qcom.bt.sh /sdcard/

adb push libbluetooth_jni.so /sdcard/

adb push bluetooth.default.so /sdcard/

adb push libbt-vendor.so /sdcard/

adb push libbtnv.so /sdcard/

# Move The Original Files To OLD Files (List Not Finsished)

adb shell "su -c cp /system/Bluetooth/Bluetooth.apk /system/Bluetooth/Bluetooth.apk.old"

adb shell "su -c cp /system/Bluetooth/oat/x86/Bluetooth.odex /system/Bluetooth/oat/x86/Bluetooth.odex.old"

adb shell "su -c cp /system/Bluetooth/lib/libbluetooth_jni.so /system/Bluetooth/lib/libbluetooth_jni.so.old"

adb shell "su -c cp /system/BluetoothMidiService/BluetoothMidiService.apk /system/BluetoothMidiService/BluetoothMidiService.apk.old"

adb shell "su -c cp /system/BluetoothMidiService/oat/x86/BluetoothMidiService.odex /system/BluetoothMidiService/oat/x86/BluetoothMidiService.odex.old"

# Make New Directories (List Not Finished)

adb shell "mkdir /system/app/BluetoothExt/"

adb shell "mkdir /system/etc/acdbdata/"

adb shell "mkdir /system/etc/acdbdata/MTP/"

adb shell "mkdir /system/etc/acdbdata/MTP/msm8939-tapan-snd-card/"

adb shell "mkdir /system/etc/acdbdata/MTP/ZD550KL/"

adb shell "mkdir /system/etc/acdbdata/MTP/ZE550KL/"

adb shell "mkdir /system/etc/acdbdata/MTP/ZE600KL/"

adb shell "mkdir /system/etc/acdbdata/QRD/"

adb shell "mkdir /system/etc/acdbdata/QRD/msm8939-snd-card-skul/"

adb shell "mkdir /system/vendor/lib64"

# Set Permissions Of New Directories (List Not Finished)

adb shell "chmod 0755 /system/app/BluetoothExt/"

adb shell "chmod 0755 /system/etc/acdbdata/"

adb shell "chmod 0755 /system/etc/acdbdata/MTP/"

adb shell "chmod 0755 /system/etc/acdbdata/MTP/msm8939-tapan-snd-card/"

adb shell "chmod 0755 /system/etc/acdbdata/MTP/ZD550KL/"

adb shell "chmod 0755 /system/etc/acdbdata/MTP/ZE550KL/"

adb shell "chmod 0755 /system/etc/acdbdata/MTP/ZE600KL/"

adb shell "chmod 0755 /system/etc/acdbdata/QRD/"

adb shell "chmod 0755 /system/etc/acdbdata/QRD/msm8939-snd-card-skul/

adb shell "chmod 0755 /system/vendor/lib64"

# Copy The New Files To Locations (Should Be Finished, Not tested)

adb shell "su -c cp /sdcard/Bluetooth.apk /system/app/Bluetooth/Bluetooth.apk"

adb shell "su -c cp /sdcard/BluetoothExt.apk /system/app/BluetoothExt/BluetoothExt.apk"

adb shell "su -c cp /sdcard/BluetoothMidiService.apk /system/app/BluetoothMidiService/BluetoothMidiService.apk"

adb shell "su -c cp /sdcard/btnvtool /system/bin/btnvtool"

adb shell "su -c cp /sdcard/btsnoop /system/bin/btsnoop"

adb shell "su -c cp /sdcard/MTP_Bluetooth_cal.acdb /system/etc/acdbdata/MTP/MTP_Bluetooth_cal.acdb"

adb shell "su -c cp /sdcard/MTP_WCD9306_Bluetooth_cal.acdb /system/etc/acdbdata/MTP/msm8939-tapan-snd-card/MTP_WCD9306_Bluetooth_cal.acdb"

adb shell "su -c cp /sdcard/MTP_Bluetooth_cal_ZD550KL.acdb /system/etc/acdbdata/MTP/ZD550KL/MTP_Bluetooth_cal_ZD550KL.acdb"

adb shell "su -c cp /sdcard/MTP_Bluetooth_cal_ZE550KL.acdb /system/etc/acdbdata/MTP/ZE550KL/MTP_Bluetooth_cal_ZE550KL.acdb"

adb shell "su -c cp /sdcard/MTP_Bluetooth_cal_ZE600KL.acdb /system/etc/acdbdata/MTP/ZE600KL/MTP_Bluetooth_cal_ZE600KL.acdb"

adb shell "su -c cp /sdcard/QRD_Bluetooth_cal.acdb /system/etc/acdbdata/QRD/QRD_Bluetooth_cal.acdb"

adb shell "su -c cp /sdcard/QRD_SKUL_Bluetooth_cal.acdb /system/etc/acdbdata/QRD/msm8939-snd-card-skul/QRD_SKUL_Bluetooth_cal.acdb"

adb shell "su -c cp /sdcard/bt_did.conf /system/etc/bluetooth/bt_did.conf"

adb shell "su -c cp /sdcard/bt_stack.conf /system/etc/bluetooth/bt_stack.conf"

adb shell "su -c cp /sdcard/android.hardware.bluetooth.xml /system/etc/permissions/android.hardware.bluetooth.xml"

adb shell "su -c cp /sdcard/android.hardware.bluetooth_le.xml /system/etc/permissions/android.hardware.bluetooth_le.xml"

adb shell "su -c cp /sdcard/init.qcom.bt.sh /system/etc/init.qcom.bt.sh"

adb shell "su -c cp /sdcard/libbluetooth_jni.so /system/lib/libbluetooth_jni.so"

adb shell "su -c cp /sdcard/bluetooth.default.so /system/lib/hw/bluetooth.default.so"

adb shell "su -c cp /sdcard/libbt-vendor.so /system/vendor/lib/libbt-vendor.so"

adb shell "su -c cp /sdcard/libbtnv.so /system/vendor/lib64/libbtnv.so"

# Set Permission Of New Files (Should Be Finished, Not tested)

adb shell "su -c chmod 644 /system/app/Bluetooth/Bluetooth.apk"

adb shell "su -c chmod 644 /system/app/BluetoothExt/BluetoothExt.apk"

adb shell "su -c chmod 644 /system/app/BluetoothMidiService/BluetoothMidiService.apk"

adb shell "su -c chmod 644 /system/bin/btnvtool"

adb shell "su -c chmod 644 /system/bin/btsnoop"

adb shell "su -c chmod 644 /system/etc/acdbdata/MTP/MTP_Bluetooth_cal.acdb"

adb shell "su -c chmod 644 /system/etc/acdbdata/MTP/msm8939-tapan-snd-card/MTP_WCD9306_Bluetooth_cal.acdb"

adb shell "su -c chmod 644 /system/etc/acdbdata/MTP/ZD550KL/MTP_Bluetooth_cal_ZD550KL.acdb"

adb shell "su -c chmod 644 /system/etc/acdbdata/MTP/ZE550KL/MTP_Bluetooth_cal_ZE550KL.acdb"

adb shell "su -c chmod 644 /system/etc/acdbdata/MTP/ZE600KL/MTP_Bluetooth_cal_ZE600KL.acdb"

adb shell "su -c chmod 644 /system/etc/acdbdata/QRD/QRD_Bluetooth_cal.acdb"

adb shell "su -c chmod 644 /system/etc/acdbdata/QRD/msm8939-snd-card-skul/QRD_SKUL_Bluetooth_cal.acdb"

adb shell "su -c chmod 644 /system/etc/bluetooth/bt_did.conf"

adb shell "su -c chmod 644 /system/etc/bluetooth/bt_stack.conf"

adb shell "su -c chmod 644 /system/etc/permissions/android.hardware.bluetooth.xml"

adb shell "su -c chmod 644 /system/etc/permissions/android.hardware.bluetooth_le.xml"

adb shell "su -c chmod 644 /system/etc/init.qcom.bt.sh"

adb shell "su -c chmod 644 /system/lib/libbluetooth_jni.so"

adb shell "su -c chmod 644 /system/lib/hw/bluetooth.default.so"

adb shell "su -c chmod 644 /system/vendor/lib/libbt-vendor.so"

adb shell "su -c chmod 644 /system/vendor/lib64/libbtnv.so"