From 8fa4eb9fc7c0a3c342490465a495a6e18ff9bb3b Mon Sep 17 00:00:00 2001 From: Quarx2k Date: Fri, 7 Aug 2015 20:17:10 +0600 Subject: [PATCH] Updates for new kernel --- BoardConfig.mk | 2 +- cmhw/org/cyanogenmod/hardware/TapToWake.java | 6 +- device_w7.mk | 14 +- prebuilt/etc/wifi/WCNSS_cfg.dat | Bin 0 -> 10746 bytes prebuilt/etc/wifi/WCNSS_qcom_cfg.ini | 140 +++++++++++++------ sepolicy/bootanim.te | 2 + sepolicy/file.te | 1 + sepolicy/kernel.te | 1 + sepolicy/sensors.te | 1 + sepolicy/ueventd.te | 2 + sepolicy/wcnss_service.te | 2 + 11 files changed, 116 insertions(+), 55 deletions(-) create mode 100755 prebuilt/etc/wifi/WCNSS_cfg.dat create mode 100644 sepolicy/bootanim.te diff --git a/BoardConfig.mk b/BoardConfig.mk index 633609f..f608ca2 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -54,7 +54,7 @@ TARGET_BOOTLOADER_BOARD_NAME := w7 BOARD_KERNEL_SEPARATED_DT := true BOARD_CUSTOM_BOOTIMG_MK := device/lge/w7/mkbootimg.mk TARGET_KERNEL_SOURCE := kernel/lge/msm8226 -TARGET_KERNEL_CONFIG := cm11_msm8226_defconfig +TARGET_KERNEL_CONFIG := w7ds_cyanogenmod_defconfig BOARD_KERNEL_CMDLINE := console=ttyHSL0,115200,n8 androidboot.console=ttyHSL0 user_debug=31 msm_rtb.filter=0x37 androidboot.hardware=w7 androidboot.selinux=enforcing BOARD_KERNEL_BASE := 0x00000000 BOARD_KERNEL_PAGESIZE := 2048 diff --git a/cmhw/org/cyanogenmod/hardware/TapToWake.java b/cmhw/org/cyanogenmod/hardware/TapToWake.java index 3a3bfe9..5eb8096 100644 --- a/cmhw/org/cyanogenmod/hardware/TapToWake.java +++ b/cmhw/org/cyanogenmod/hardware/TapToWake.java @@ -20,7 +20,8 @@ public class TapToWake { - private static String CONTROL_PATH = "/sys/devices/virtual/input/lge_touch/touch_gesture"; + // private static String CONTROL_PATH = "/sys/devices/virtual/input/lge_touch/touch_gesture"; + private static String CONTROL_PATH = "/sys/devices/virtual/input/lge_touch/lpwg_notify"; private static boolean mEnabled = true; public static boolean isSupported() { @@ -33,6 +34,7 @@ public static boolean isEnabled() { public static boolean setEnabled(boolean state) { mEnabled = state; - return FileUtils.writeLine(CONTROL_PATH, (state ? "1" : "0")); + // return FileUtils.writeLine(CONTROL_PATH, (state ? "1" : "0")); + return FileUtils.writeLine(CONTROL_PATH, (state ? "1 1 0 0" : "1 0 0 0")); } } diff --git a/device_w7.mk b/device_w7.mk index 172373c..2834561 100644 --- a/device_w7.mk +++ b/device_w7.mk @@ -56,8 +56,6 @@ PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \ device/lge/w7/prebuilt/etc/wifi/p2p_supplicant_overlay.conf:system/etc/wifi/p2p_supplicant_overlay.conf \ device/lge/w7/prebuilt/etc/wifi/wpa_supplicant_overlay.conf:system/etc/wifi/wpa_supplicant_overlay.conf \ - device/lge/w7/prebuilt/etc/wifi/WCNSS_qcom_wlan_nv.bin:system/etc/firmware/wlan/prima/WCNSS_qcom_wlan_nv.bin \ - device/lge/w7/prebuilt/etc/wifi/WCNSS_qcom_wlan_nv.bin:system/etc/wifi/WCNSS_qcom_wlan_nv.bin \ device/lge/w7/prebuilt/etc/hostapd/hostapd.accept:system/etc/hostapd/hostapd.accept \ device/lge/w7/prebuilt/etc/hostapd/hostapd.deny:system/etc/hostapd/hostapd.deny \ device/lge/w7/prebuilt/etc/hostapd/hostapd_default.conf:system/etc/hostapd/hostapd_default.conf \ @@ -78,9 +76,13 @@ PRODUCT_COPY_FILES += \ device/lge/w7/prebuilt/etc/nfc-nci.conf:system/etc/nfc-nci.conf \ device/lge/w7/prebuilt/etc/libnfc-nxp.conf:system/etc/libnfc-nxp.conf \ device/lge/w7/prebuilt/etc/nfcee_access.xml:system/etc/nfcee_access.xml \ - kernel/lge/msm8226/drivers/staging/prima/firmware_bin/WCNSS_cfg.dat:system/etc/firmware/wlan/prima/WCNSS_cfg.dat \ - kernel/lge/msm8226/drivers/staging/prima/firmware_bin/WCNSS_qcom_cfg.ini:system/etc/firmware/wlan/prima/WCNSS_qcom_cfg.ini \ - kernel/lge/msm8226/drivers/staging/prima/firmware_bin/WCNSS_qcom_cfg.ini:system/etc/wifi/WCNSS_qcom_cfg.ini \ + device/lge/w7/prebuilt/etc/wifi/WCNSS_cfg.dat:system/etc/firmware/wlan/prima/WCNSS_cfg.dat \ + device/lge/w7/prebuilt/etc/wifi/WCNSS_qcom_cfg.ini:system/etc/firmware/wlan/prima/WCNSS_qcom_cfg.ini \ + device/lge/w7/prebuilt/etc/wifi/WCNSS_qcom_wlan_nv.bin:system/etc/firmware/wlan/prima/WCNSS_qcom_wlan_nv.bin \ + device/lge/w7/prebuilt/etc/wifi/WCNSS_qcom_wlan_nv.bin:system/etc/firmware/wlan/prima/WCNSS_qcom_wlan_nv_boot.bin \ + device/lge/w7/prebuilt/etc/wifi/WCNSS_qcom_wlan_nv.bin:system/etc/wifi/WCNSS_qcom_wlan_nv.bin \ + device/lge/w7/prebuilt/etc/wifi/WCNSS_qcom_wlan_nv.bin:system/etc/wifi/WCNSS_qcom_wlan_nv_boot.bin \ + device/lge/w7/prebuilt/etc/wifi/WCNSS_qcom_cfg.ini:system/etc/wifi/WCNSS_qcom_cfg.ini # Ramdisk PRODUCT_COPY_FILES += \ @@ -336,7 +338,7 @@ PRODUCT_PROPERTY_OVERRIDES += \ persist.call_recording.enabled=1 PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ - persist.sys.usb.config=mtp + persist.sys.usb.config=mtp,adb # NFC packages PRODUCT_PACKAGES += \ diff --git a/prebuilt/etc/wifi/WCNSS_cfg.dat b/prebuilt/etc/wifi/WCNSS_cfg.dat new file mode 100755 index 0000000000000000000000000000000000000000..e3434036962cdcb9ffafaae1d64d977e52c9cd46 GIT binary patch literal 10746 zcmeI034B!56^GBuJTifVxrr$5W(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