summaryrefslogtreecommitdiff
path: root/xr/packages/BluetoothQtiSymlink/Android.mk
blob: b25835ab0c8a567fbaa0937d1761c606785c3cda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#
# This is a workaround for Bluetooth not working on OnePlus7 Pro. See b/139486342
#

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE := BluetoothQtiSymlink

lib_dir := $(PRODUCT_OUT)/system/lib
bluetooth_qti := libbluetooth_qti.so
bluetooth := libbluetooth.so
bluetooth_qti_path := $(lib_dir)/$(bluetooth_qti)
bluetooth_path := $(lib_dir)/$(bluetooth)

$(bluetooth_qti_path): $(bluetooth_path)
	cd $(lib_dir) && ln -sf $(bluetooth) $(bluetooth_qti)

droid: $(bluetooth_qti_path)