update wifi, back to lineage charger, remove init.sec.boot.sh, add wifiloader (trick to run "cat /proc/deferred_initcalls")

This commit is contained in:
Valera1978 2018-07-19 13:51:34 +03:00
parent c0c8c50cef
commit bfbaafc49e
8 changed files with 46 additions and 22 deletions

View file

@ -43,7 +43,8 @@ TARGET_NO_BOOTLOADER := true
# Kernel # Kernel
BOARD_KERNEL_BASE := 0x80000000 BOARD_KERNEL_BASE := 0x80000000
BOARD_KERNEL_CMDLINE := console=null androidboot.hardware=qcom msm_rtb.filter=0x237 ehci-hcd.park=3 androidboot.bootdevice=7464900.sdhci lpm_levels.sleep_disabled=1 rcupdate.rcu_expedited=1 cma=32M@0-0xffffffff androidboot.selinux=permissive #BOARD_KERNEL_CMDLINE := console=null androidboot.hardware=qcom msm_rtb.filter=0x237 ehci-hcd.park=3 androidboot.bootdevice=7464900.sdhci lpm_levels.sleep_disabled=1 rcupdate.rcu_expedited=1 cma=32M@0-0xffffffff androidboot.selinux=permissive
BOARD_KERNEL_CMDLINE := console=null androidboot.hardware=qcom msm_rtb.filter=0x237 ehci-hcd.park=3 androidboot.bootdevice=7464900.sdhci lpm_levels.sleep_disabled=1 rcupdate.rcu_expedited=1 cma=32M@0-0xffffffff
BOARD_KERNEL_IMAGE_NAME := Image.gz BOARD_KERNEL_IMAGE_NAME := Image.gz
BOARD_KERNEL_PAGESIZE := 4096 BOARD_KERNEL_PAGESIZE := 4096
BOARD_KERNEL_SEPARATED_DT := true BOARD_KERNEL_SEPARATED_DT := true
@ -173,7 +174,7 @@ BOARD_HARDWARE_CLASS += \
$(DEVICE_PATH)/lineagehw $(DEVICE_PATH)/lineagehw
# Power # Power
TARGET_HAS_NO_WIFI_STATS := true #TARGET_HAS_NO_WIFI_STATS := true
TARGET_POWERHAL_VARIANT := qcom TARGET_POWERHAL_VARIANT := qcom
# QCOM # QCOM
@ -207,15 +208,17 @@ BOARD_SEPOLICY_DIRS += $(DEVICE_PATH)/sepolicy
BOARD_HAS_QCOM_WLAN := true BOARD_HAS_QCOM_WLAN := true
BOARD_HAS_QCOM_WLAN_SDK := true BOARD_HAS_QCOM_WLAN_SDK := true
BOARD_WLAN_DEVICE := qcwcn BOARD_WLAN_DEVICE := qcwcn
BOARD_HOSTAPD_DRIVER := NL80211
BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE)
BOARD_WPA_SUPPLICANT_DRIVER := NL80211 BOARD_WPA_SUPPLICANT_DRIVER := NL80211
BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE) BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE)
WPA_SUPPLICANT_VERSION := VER_0_8_X BOARD_HOSTAPD_DRIVER := NL80211
BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE)
HOSTAPD_VERSION := VER_0_8_X
WIFI_DRIVER_FW_PATH_AP := "ap" WIFI_DRIVER_FW_PATH_AP := "ap"
WIFI_DRIVER_FW_PATH_STA := "sta" WIFI_DRIVER_FW_PATH_STA := "sta"
WIFI_DRIVER_FW_PATH_P2P := "p2p" WIFI_DRIVER_FW_PATH_P2P := "p2p"
WPA_SUPPLICANT_USE_HIDL := true WPA_SUPPLICANT_VERSION := VER_0_8_X
BOARD_HAVE_SAMSUNG_WIFI := true
# inherit from the proprietary version # inherit from the proprietary version
-include vendor/samsung/gts3llte/BoardConfigVendor.mk -include vendor/samsung/gts3llte/BoardConfigVendor.mk

View file

@ -270,19 +270,28 @@ PRODUCT_PACKAGES += \
# OMX # OMX
PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \
libc2dcolorconvert \ libc2dcolorconvert \
libdashplayer \
libdivxdrmdecrypt \
libhypv_intercept \
libmm-omxcore \
libextmedia_jni \ libextmedia_jni \
libOmxAacEnc \ libOmxAacEnc \
libOmxAmrEnc \ libOmxAmrEnc \
libOmxCore \ libOmxCore \
libOmxEvrcEnc \ libOmxEvrcEnc \
libOmxQcelp13Enc \ libOmxQcelp13Enc \
libOmxSwVencMpeg4 \
libOmxSwVencHevc \
libOmxVdec \ libOmxVdec \
libOmxVdecHevc \
libOmxVenc \ libOmxVenc \
libstagefrighthw libOmxVidcCommon \
libstagefrighthw \
libstagefright_soft_flacdec
# Power # Power
PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \
android.hardware.power@1.0-service-qti android.hardware.power@1.1-service-qti
PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/powerhint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.xml $(LOCAL_PATH)/configs/powerhint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.xml
@ -359,13 +368,10 @@ PRODUCT_PACKAGES += \
vndk-sp vndk-sp
# WCNSS # WCNSS
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/wifi/WCNSS_cfg.dat:$(TARGET_COPY_OUT_VENDOR)/etc/firmware/wlan/qca_cld/WCNSS_cfg.dat \
$(LOCAL_PATH)/wifi/WCNSS_qcom_cfg.ini:$(TARGET_COPY_OUT_VENDOR)/etc/firmware/wlan/qca_cld/WCNSS_qcom_cfg.ini
PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/wifi/WCNSS_cfg.dat:system/etc/firmware/wlan/qca_cld/WCNSS_cfg.dat \ $(LOCAL_PATH)/wifi/WCNSS_cfg.dat:system/etc/firmware/wlan/qca_cld/WCNSS_cfg.dat \
$(LOCAL_PATH)/wifi/WCNSS_qcom_cfg.ini:system/etc/firmware/wlan/qca_cld/WCNSS_qcom_cfg.ini $(LOCAL_PATH)/wifi/WCNSS_qcom_cfg.ini:system/etc/firmware/wlan/qca_cld/WCNSS_qcom_cfg.ini \
$(LOCAL_PATH)/wifi/grippower.info:system/etc/firmware/wlan/qca_cld/grippower.info
# Wifi # Wifi
PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \
@ -377,6 +383,10 @@ PRODUCT_PACKAGES += \
wpa_supplicant \ wpa_supplicant \
wpa_supplicant.conf wpa_supplicant.conf
# trick for "cat /proc/deferred_initcalls" in enforce
PRODUCT_PACKAGES += \
wifiloader
PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/wifi/p2p_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/p2p_supplicant_overlay.conf \ $(LOCAL_PATH)/wifi/p2p_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/p2p_supplicant_overlay.conf \
$(LOCAL_PATH)/wifi/wpa_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/wpa_supplicant_overlay.conf $(LOCAL_PATH)/wifi/wpa_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/wpa_supplicant_overlay.conf

View file

@ -180,10 +180,10 @@ on property:sys.boot_completed=1
on property:init.svc.recovery=running on property:init.svc.recovery=running
trigger enable-low-power trigger enable-low-power
#service charger /charger service charger /charger
# class charger class charger
# group system graphics group system graphics
# seclabel u:r:healthd:s0 seclabel u:r:healthd:s0
service energy-awareness /vendor/bin/energy-awareness service energy-awareness /vendor/bin/energy-awareness
class main class main

View file

@ -500,9 +500,9 @@ on charger
mount ext4 /dev/block/bootdevice/by-name/system /system ro barrier=1 mount ext4 /dev/block/bootdevice/by-name/system /system ro barrier=1
# LPM (samsung charger) # LPM (samsung charger)
service lpm /system/bin/lpm #service lpm /system/bin/lpm
class charger # class charger
critical # critical
service dhcpcd_eth0 /system/vendor/bin/dhcpcd -ABKLG service dhcpcd_eth0 /system/vendor/bin/dhcpcd -ABKLG
class late_start class late_start
@ -521,7 +521,11 @@ service ppd /vendor/bin/mm-pp-dpps
socket pps stream 0660 system system socket pps stream 0660 system system
disabled disabled
service sec-sh /system/bin/sh /system/etc/init.sec.boot.sh #service sec-sh /system/bin/sh /system/etc/init.sec.boot.sh
# class main
# user root
# oneshot
service wifiloader /system/bin/wifiloader
class main class main
user root
oneshot oneshot

View file

@ -150,3 +150,6 @@ persist.data.df.dev_name=rmnet_usb0
# Adreno # Adreno
ro.qcom.adreno.qgl.ShaderStorageImageExtendedFormats=0 ro.qcom.adreno.qgl.ShaderStorageImageExtendedFormats=0
# Wifi
wifi.interface=wlan0

1
wifi/grippower.info Normal file
View file

@ -0,0 +1 @@
55:55

View file

@ -1 +1,3 @@
disable_scan_offload=1 disable_scan_offload=1
p2p_no_group_iface=1
p2p_search_delay=100

View file

@ -1,2 +1,3 @@
disable_scan_offload=1 disable_scan_offload=1
p2p_disabled=1 p2p_disabled=1
tdls_external_control=1