diff options
author | mauimauer <sebastian@n-unity.de> | 2011-12-02 17:12:37 +0100 |
---|---|---|
committer | mauimauer <sebastian@n-unity.de> | 2011-12-02 17:12:37 +0100 |
commit | 92844bc4fe83cb5ebc3a344856781e1e71dc2a56 (patch) | |
tree | 434ef268cbbcfa488ba4df59715dc806d9a1b203 | |
parent | a7f9a0672159b7e2fabb77a6abbd837916c0e07f (diff) | |
download | device_samsung_n7000-92844bc4fe83cb5ebc3a344856781e1e71dc2a56.zip device_samsung_n7000-92844bc4fe83cb5ebc3a344856781e1e71dc2a56.tar.gz device_samsung_n7000-92844bc4fe83cb5ebc3a344856781e1e71dc2a56.tar.bz2 |
Various fixes...
-rwxr-xr-x | BoardConfig.mk | 3 | ||||
-rwxr-xr-x | bdaddr_read/Android.mk | 27 | ||||
-rwxr-xr-x | bdaddr_read/bdaddr_read.c | 54 | ||||
-rwxr-xr-x | galaxynote.mk | 6 | ||||
-rwxr-xr-x | init.smdkv310.rc | 1 | ||||
-rwxr-xr-x | kernel | bin | 5109760 -> 4483244 bytes | |||
-rwxr-xr-x | modules/Si4709_driver.ko | bin | 287503 -> 287238 bytes | |||
-rwxr-xr-x | modules/bthid.ko | bin | 98989 -> 98724 bytes | |||
-rwxr-xr-x | modules/cifs.ko | bin | 3467122 -> 3466857 bytes | |||
-rwxr-xr-x | modules/dhd.ko | bin | 361129 -> 360566 bytes | |||
-rwxr-xr-x | modules/gspca_main.ko | bin | 226185 -> 224206 bytes | |||
-rwxr-xr-x | modules/j4fs.ko | bin | 339776 -> 339511 bytes | |||
-rwxr-xr-x | modules/scsi_wait_scan.ko | bin | 35492 -> 35227 bytes | |||
-rwxr-xr-x | modules/vibrator.ko | bin | 134477 -> 134208 bytes |
14 files changed, 90 insertions, 1 deletions
diff --git a/BoardConfig.mk b/BoardConfig.mk index 96a68f3..dd8e347 100755 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -93,6 +93,9 @@ WIFI_DRIVER_MODULE_NAME := "dhd" WIFI_DRIVER_MODULE_ARG := "firmware_path=/system/vendor/firmware/bcm4330_sta.bin nvram_path=/system/etc/nvram_net.txt" WIFI_BAND := 802_11_ABG +# Touchscreen +BOARD_USE_LEGACY_TOUCHSCREEN := true + # Bluetooth BOARD_HAVE_BLUETOOTH := true BOARD_HAVE_BLUETOOTH_BCM := true diff --git a/bdaddr_read/Android.mk b/bdaddr_read/Android.mk new file mode 100755 index 0000000..6769659 --- /dev/null +++ b/bdaddr_read/Android.mk @@ -0,0 +1,27 @@ +# Copyright (C) 2010 Ricardo Cerqueira
+# Copyright (C) 2011 Pawit Pornkitprasan
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+LOCAL_PATH:= $(call my-dir)
+include $(CLEAR_VARS)
+
+LOCAL_MODULE_TAGS := optional
+
+LOCAL_SRC_FILES := bdaddr_read.c
+
+LOCAL_SHARED_LIBRARIES := libcutils
+
+LOCAL_MODULE := bdaddr_read
+
+include $(BUILD_EXECUTABLE)
diff --git a/bdaddr_read/bdaddr_read.c b/bdaddr_read/bdaddr_read.c new file mode 100755 index 0000000..5286e5f --- /dev/null +++ b/bdaddr_read/bdaddr_read.c @@ -0,0 +1,54 @@ +#include <fcntl.h>
+#include <string.h>
+#include <cutils/properties.h>
+#include <cutils/log.h>
+
+#define LOG_TAG "bdaddr"
+#define SAMSUNG_BDADDR_PATH "/efs/imei/bt.txt"
+#define BDADDR_PATH "/data/bdaddr"
+
+/* Read bluetooth MAC from SAMSUNG_BDADDR_PATH (different format),
+ * write it to BDADDR_PATH, and set ro.bt.bdaddr_path to BDADDR_PATH
+ *
+ * Adapted from bdaddr_read.c of thunderg
+ */
+
+int main() {
+ char tmpbdaddr[23]; // bt_macaddr:xxxxxxxxxxxx
+ char bdaddr[18];
+ int count;
+ int fd;
+
+ fd = open(SAMSUNG_BDADDR_PATH, O_RDONLY);
+ if(fd < 0) {
+ fprintf(stderr, "open(%s) failed\n", SAMSUNG_BDADDR_PATH);
+ LOGE("Can't open %s\n", SAMSUNG_BDADDR_PATH);
+ return -1;
+ }
+
+ count = read(fd, tmpbdaddr, sizeof(tmpbdaddr));
+ if (count < 0) {
+ fprintf(stderr, "read(%s) failed\n", SAMSUNG_BDADDR_PATH);
+ LOGE("Can't read %s\n", SAMSUNG_BDADDR_PATH);
+ return -1;
+ }
+ else if (count != sizeof(tmpbdaddr)) {
+ fprintf(stderr, "read(%s) unexpected size %d\n", SAMSUNG_BDADDR_PATH, count);
+ LOGE("Error reading %s (unexpected size %d)\n", SAMSUNG_BDADDR_PATH, count);
+ return -1;
+ }
+
+ count = sprintf(bdaddr, "%2.2s:%2.2s:%2.2s:%2.2s:%2.2s:%2.2s\0",
+ tmpbdaddr+11,tmpbdaddr+13,tmpbdaddr+15,tmpbdaddr+17,tmpbdaddr+19,tmpbdaddr+21);
+
+ fd = open(BDADDR_PATH, O_WRONLY|O_CREAT|O_TRUNC, 00600|00060|00006);
+ if (fd < 0) {
+ fprintf(stderr, "open(%s) failed\n", BDADDR_PATH);
+ LOGE("Can't open %s\n", BDADDR_PATH);
+ return -2;
+ }
+ write(fd, bdaddr, 18);
+ close(fd);
+ property_set("ro.bt.bdaddr_path", BDADDR_PATH);
+ return 0;
+}
\ No newline at end of file diff --git a/galaxynote.mk b/galaxynote.mk index 88a2b4a..6efec02 100755 --- a/galaxynote.mk +++ b/galaxynote.mk @@ -103,7 +103,7 @@ PRODUCT_PACKAGES += \ # Ril PRODUCT_PROPERTY_OVERRIDES += \ ro.telephony.ril_class=samsung \ - ro.telephony.ril.v3=1 \ + ro.telephony.ril.v3=icccardstatus,datacall,signalstrength,facilitylock \ mobiledata.interfaces=pdp0,eth0,gprs,ppp0 # Filesystem management tools @@ -112,6 +112,10 @@ PRODUCT_PACKAGES += \ make_ext4fs \ setup_fs +# Bluetooth MAC Address +PRODUCT_PACKAGES += \ + bdaddr_read + # Live Wallpapers PRODUCT_PACKAGES += \ Galaxy4 \ diff --git a/init.smdkv310.rc b/init.smdkv310.rc index 24a1cfb..7d5593a 100755 --- a/init.smdkv310.rc +++ b/init.smdkv310.rc @@ -277,6 +277,7 @@ service tvout /system/bin/tvoutserver group graphics
service gpsd /system/bin/gpsd -c /system/etc/gps.xml
+ class main
socket gps seqpacket 0660 gps system
user gps
group system inet sdcard_rw
Binary files differdiff --git a/modules/Si4709_driver.ko b/modules/Si4709_driver.ko Binary files differindex ace0c2a..730243d 100755 --- a/modules/Si4709_driver.ko +++ b/modules/Si4709_driver.ko diff --git a/modules/bthid.ko b/modules/bthid.ko Binary files differindex 8dc98ee..f45e4d5 100755 --- a/modules/bthid.ko +++ b/modules/bthid.ko diff --git a/modules/cifs.ko b/modules/cifs.ko Binary files differindex 5f3f128..72d6674 100755 --- a/modules/cifs.ko +++ b/modules/cifs.ko diff --git a/modules/dhd.ko b/modules/dhd.ko Binary files differindex f09ec5f..ac0d5de 100755 --- a/modules/dhd.ko +++ b/modules/dhd.ko diff --git a/modules/gspca_main.ko b/modules/gspca_main.ko Binary files differindex 9734391..afb77b5 100755 --- a/modules/gspca_main.ko +++ b/modules/gspca_main.ko diff --git a/modules/j4fs.ko b/modules/j4fs.ko Binary files differindex cd2694c..dd2f1e1 100755 --- a/modules/j4fs.ko +++ b/modules/j4fs.ko diff --git a/modules/scsi_wait_scan.ko b/modules/scsi_wait_scan.ko Binary files differindex 61a6761..86fc5a7 100755 --- a/modules/scsi_wait_scan.ko +++ b/modules/scsi_wait_scan.ko diff --git a/modules/vibrator.ko b/modules/vibrator.ko Binary files differindex 0287524..4adc7e7 100755 --- a/modules/vibrator.ko +++ b/modules/vibrator.ko |