OSDN Git Service

Bluetooth: move to vendor partition.
authorSteven Moreland <smoreland@google.com>
Mon, 27 Feb 2017 16:58:08 +0000 (08:58 -0800)
committerSteven Moreland <smoreland@google.com>
Mon, 27 Feb 2017 23:41:04 +0000 (15:41 -0800)
Bug: 35328775
Test: works in both binderized and passthrough modes
Change-Id: I18f21b53c2282e27342a58716475ae213a2837d4

CleanSpec.mk
bluetooth/1.0/default/Android.bp
bluetooth/1.0/default/Android.mk
bluetooth/1.0/default/android.hardware.bluetooth@1.0-service.rc

index 962f6cd..212c8b1 100644 (file)
@@ -48,3 +48,7 @@ $(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/bin/hw/android.hardware*)
 $(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/lib/hw/android.hardware*)
 $(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/lib64/hw/android.hardware*)
 $(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/etc/init/android.hardware*)
+$(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/bin/hw/android.hardware.bluetooth*)
+$(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/lib/hw/android.hardware.bluetooth*)
+$(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/lib64/hw/android.hardware.bluetooth*)
+$(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/etc/init/android.hardware.bluetooth*)
index 69cefd6..d2c65b2 100644 (file)
@@ -15,6 +15,7 @@
 
 cc_library_shared {
     name: "android.hardware.bluetooth@1.0-impl",
+    proprietary: true,
     relative_install_path: "hw",
     srcs: [
         "bluetooth_hci.cc",
index 08bfb4e..1c12f4d 100644 (file)
@@ -17,6 +17,7 @@ LOCAL_PATH:= $(call my-dir)
 
 include $(CLEAR_VARS)
 LOCAL_MODULE_RELATIVE_PATH := hw
+LOCAL_PROPRIETARY_MODULE := true
 LOCAL_MODULE := android.hardware.bluetooth@1.0-service
 LOCAL_INIT_RC := android.hardware.bluetooth@1.0-service.rc
 LOCAL_SRC_FILES := \
index 8c5c02a..8545d2f 100644 (file)
@@ -1,4 +1,4 @@
-service bluetooth-1-0 /system/bin/hw/android.hardware.bluetooth@1.0-service
+service bluetooth-1-0 /vendor/bin/hw/android.hardware.bluetooth@1.0-service
     class hal
     user bluetooth
     group bluetooth