From e3700b5f8bf2ea16020f91c66b1722b7588d7a87 Mon Sep 17 00:00:00 2001 From: Zhao Wei Liew Date: Thu, 3 Nov 2016 17:47:37 +0800 Subject: [PATCH] land: Clean up some setprops * Move them to product/ * Remove obsolete ones Change-Id: Id0159c636f515e53a0779d9bde2923c4d3492e88 --- product/qcom-radio.mk | 1 + product/qcom-wifi.mk | 4 ++++ rootdir/init.qcom.rc | 23 ----------------------- 3 files changed, 5 insertions(+), 23 deletions(-) diff --git a/product/qcom-radio.mk b/product/qcom-radio.mk index 9f0771d..9e6392b 100644 --- a/product/qcom-radio.mk +++ b/product/qcom-radio.mk @@ -17,6 +17,7 @@ PRODUCT_PROPERTY_OVERRIDES += \ persist.radio.multisim.config=dsds \ persist.radio.sib16_support=1 \ rild.libpath=/vendor/lib64/libril-qc-qmi-1.so \ + ro.telephony.call_ring.multiple=false \ ro.telephony.default_network=20 \ ro.use_data_netmgrd=true diff --git a/product/qcom-wifi.mk b/product/qcom-wifi.mk index 8b50644..28c8aa5 100644 --- a/product/qcom-wifi.mk +++ b/product/qcom-wifi.mk @@ -3,6 +3,10 @@ PRODUCT_COPY_FILES += \ frameworks/native/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml \ frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml +# Properties +PRODUCT_PROPERTY_OVERRIDES += \ + wifi.interface=wlan0 + # Wifi PRODUCT_PACKAGES += \ libqsap_sdk \ diff --git a/rootdir/init.qcom.rc b/rootdir/init.qcom.rc index a61e421..fde2aee 100644 --- a/rootdir/init.qcom.rc +++ b/rootdir/init.qcom.rc @@ -108,18 +108,10 @@ on boot #Create NETMGR daemon socket area mkdir /dev/socket/netmgr 0750 radio radio - setprop wifi.interface wlan0 #NULL lixiuzhen 2016\04\03 add ota prop for mbn update setprop persist.radio.start_ota_daemon 1 setprop persist.radio.sw_mbn_openmkt 1 -# Define TCP buffer sizes for various networks -# ReadMin, ReadInitial, ReadMax, WriteMin, WriteInitial, WriteMax, - setprop net.tcp.buffersize.wifi 524288,2097152,4194304,262144,524288,1048576 - - - setprop ro.telephony.call_ring.multiple false - #enable camera read sensors data setprop persist.camera.gyro.disable 0 setprop persist.camera.stats.test 5 @@ -133,21 +125,6 @@ on boot #For bridgemgr daemon to inform the USB driver of the correct transport chown radio radio /sys/class/android_usb/f_rmnet_smd_sdio/transport -# Define TCP buffer sizes for various networks -# ReadMin, ReadInitial, ReadMax, WriteMin, WriteInitial, WriteMax, - setprop net.tcp.buffersize.default 4096,87380,524288,4096,16384,110208 - setprop net.tcp.buffersize.lte 2097152,4194304,8388608,262144,524288,1048576 - setprop net.tcp.buffersize.umts 4094,87380,110208,4096,16384,110208 - setprop net.tcp.buffersize.hspa 4094,87380,1220608,4096,16384,1220608 - setprop net.tcp.buffersize.hsupa 4094,87380,1220608,4096,16384,1220608 - setprop net.tcp.buffersize.hsdpa 4094,87380,1220608,4096,16384,1220608 - setprop net.tcp.buffersize.hspap 4094,87380,1220608,4096,16384,1220608 - setprop net.tcp.buffersize.edge 4093,26280,35040,4096,16384,35040 - setprop net.tcp.buffersize.gprs 4092,8760,11680,4096,8760,11680 - setprop net.tcp.buffersize.evdo 4094,87380,524288,4096,16384,262144 - - setprop net.tcp.2g_init_rwnd 10 - # Assign TCP buffer thresholds to be ceiling value of technology maximums # Increased technology maximums should be reflected here. write /proc/sys/net/core/rmem_max 8388608