summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Xie <mattx@google.com>2012-07-16 20:43:25 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-07-16 20:43:25 -0700
commiteba4538aa5d037be946552e9e7531d20e9ddf3d1 (patch)
tree5ed0e7719c870cb631597d033f6093daf6b7c04c
parentf100767f6612b1eeb8f0e0b00bea5fa2d465c25c (diff)
parentb5f88903c387b208629bcc04aad2c92f242e4144 (diff)
downloaddevice_samsung_tuna-eba4538aa5d037be946552e9e7531d20e9ddf3d1.zip
device_samsung_tuna-eba4538aa5d037be946552e9e7531d20e9ddf3d1.tar.gz
device_samsung_tuna-eba4538aa5d037be946552e9e7531d20e9ddf3d1.tar.bz2
Merge "Add bthid device driver ko file. Init it as device driver node. Author: Priti Aghera"
-rw-r--r--bthid.kobin0 -> 91186 bytes
-rw-r--r--device.mk3
-rwxr-xr-xinit.tuna.rc5
3 files changed, 8 insertions, 0 deletions
diff --git a/bthid.ko b/bthid.ko
new file mode 100644
index 0000000..a2d82a1
--- /dev/null
+++ b/bthid.ko
Binary files differ
diff --git a/device.mk b/device.mk
index 1e3c028..3c343a4 100644
--- a/device.mk
+++ b/device.mk
@@ -79,6 +79,9 @@ PRODUCT_COPY_FILES += \
PRODUCT_COPY_FILES += \
system/bluetooth/data/main.le.conf:system/etc/bluetooth/main.conf
+PRODUCT_COPY_FILES += \
+ device/samsung/tuna/bthid.ko:system/lib/modules/bthid.ko
+
# Wifi
ifneq ($(TARGET_PREBUILT_WIFI_MODULE),)
PRODUCT_COPY_FILES += \
diff --git a/init.tuna.rc b/init.tuna.rc
index 070ab1d..86dec0c 100755
--- a/init.tuna.rc
+++ b/init.tuna.rc
@@ -46,6 +46,11 @@ on boot
write /sys/bus/usb/devices/usb1/power/autosuspend_delay_ms 0
write /sys/bus/usb/devices/usb2/power/autosuspend_delay_ms 0
+# Start kernel driver (for BTHID)
+ insmod /system/lib/modules/bthid.ko
+ chmod 0660 /dev/bthid
+ chown bluetooth bluetooth /dev/bthid
+
on fs
mkdir /factory 0775 radio radio
mount_all /fstab.tuna