Skip to content

Commit

Permalink
removing some double entries and system.prop cleanup
Browse files Browse the repository at this point in the history
Change-Id: I9542f9a545baf1cc85b215a8cb06dae59b1028a1

Conflicts:
	BoardConfig.mk
	device_w7.mk
	ril/telephony/java/com/android/internal/telephony/LgeW7RIL.java
	rootdir/init.w7.rc
  • Loading branch information
Highwind1991 authored and judas77 committed Aug 8, 2015
1 parent 8097400 commit ae2a14f
Show file tree
Hide file tree
Showing 4 changed files with 176 additions and 73 deletions.
7 changes: 0 additions & 7 deletions BoardConfig.mk
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,6 @@ TARGET_CPU_VARIANT := cortex-a7

TARGET_BOOTLOADER_BOARD_NAME := w7


#My compilation flags [experimental]
TARGET_GLOBAL_CFLAGS += -march=armv7-a -mtune=cortex-a7 -mfpu=neon -mfloat-abi=softfp
TARGET_GLOBAL_CPPFLAGS += -march=armv7-a -mtune=cortex-a7 -mfpu=neon -mfloat-abi=softfp
TARGET_USE_O3 := true
SUPPRES_UNUSED_WARNING := true

# My Architecture additions [experimental]
OPT_MEMORY := true
TARGET_CPU_SMP := true
Expand Down
16 changes: 2 additions & 14 deletions device_w7.mk
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,6 @@ PRODUCT_PACKAGES += \
FM2 \
FMRecord

# GPS
PRODUCT_PACKAGES += \
gps.msm8226

# HAL
PRODUCT_PACKAGES += \
copybit.msm8226\
Expand Down Expand Up @@ -355,17 +351,9 @@ NFCEE_ACCESS_PATH := device/lge/w7/prebuilt/etc/nfcee_access.xml
PRODUCT_PROPERTY_OVERRIDES += \
persist.timed.enable=true

# Enable KSM by default
PRODUCT_PROPERTY_OVERRIDES += \
ro.ksm.default=1

# CmUpdater
PRODUCT_PROPERTY_OVERRIDES += \
cm.updater.uri=http://api.quarx.cm-for.us/api

# Screen density
PRODUCT_AAPT_CONFIG := normal hdpi xhdpi
PRODUCT_AAPT_PREF_CONFIG := xhdpi
PRODUCT_AAPT_CONFIG := normal
PRODUCT_AAPT_PREF_CONFIG := hdpi

$(call inherit-product, vendor/lge/w7/w7-vendor.mk)

48 changes: 44 additions & 4 deletions rootdir/init.w7.rc
Original file line number Diff line number Diff line change
Expand Up @@ -525,12 +525,15 @@ service config_bluetooth /system/bin/sh /system/etc/init.zetaw.bt.sh "onboot"
oneshot

on property:sys.boot_completed=1
write /sys/block/mmcblk0/queue/scheduler row
write /sys/module/lpm_levels/enable_low_power/l2 4
write /sys/module/msm_pm/modes/cpu0/power_collapse/suspend_enabled 1
write /sys/module/msm_pm/modes/cpu1/power_collapse/suspend_enabled 1
write /sys/module/msm_pm/modes/cpu2/power_collapse/suspend_enabled 1
write /sys/module/msm_pm/modes/cpu3/power_collapse/suspend_enabled 1
write /sys/module/msm_pm/modes/cpu0/power_collapse/idle_enabled 1
write /sys/module/msm_pm/modes/cpu1/power_collapse/idle_enabled 1
write /sys/module/msm_pm/modes/cpu2/power_collapse/idle_enabled 1
write /sys/module/msm_pm/modes/cpu3/power_collapse/idle_enabled 1
write /sys/module/msm_pm/modes/cpu0/standalone_power_collapse/suspend_enabled 1
write /sys/module/msm_pm/modes/cpu1/standalone_power_collapse/suspend_enabled 1
write /sys/module/msm_pm/modes/cpu2/standalone_power_collapse/suspend_enabled 1
Expand All @@ -539,11 +542,25 @@ on property:sys.boot_completed=1
write /sys/module/msm_pm/modes/cpu1/standalone_power_collapse/idle_enabled 1
write /sys/module/msm_pm/modes/cpu2/standalone_power_collapse/idle_enabled 1
write /sys/module/msm_pm/modes/cpu3/standalone_power_collapse/idle_enabled 1
write /sys/module/msm_pm/modes/cpu0/power_collapse/idle_enabled 1
write /sys/module/msm_pm/modes/cpu0/retention/idle_enabled 1
write /sys/module/msm_pm/modes/cpu1/retention/idle_enabled 1
write /sys/module/msm_pm/modes/cpu2/retention/idle_enabled 1
write /sys/module/msm_pm/modes/cpu3/retention/idle_enabled 1
write /sys/module/msm_show_resume_irq/parameters/debug_mask 1
write /sys/devices/system/cpu/cpu1/online 1
write /sys/devices/system/cpu/cpu2/online 1
write /sys/devices/system/cpu/cpu3/online 1
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor "interactive"
write /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor "interactive"
write /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor "interactive"
write /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor "interactive"
write /sys/devices/system/cpu/cpufreq/interactive/above_hispeed_delay 20000
write /sys/devices/system/cpu/cpufreq/interactive/go_hispeed_load 75
write /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq 1094400
write /sys/devices/system/cpu/cpufreq/interactive/io_is_busy 1
write /sys/devices/system/cpu/cpufreq/interactive/target_loads 90
write /sys/devices/system/cpu/cpufreq/interactive/min_sample_time 40000
write /sys/devices/system/cpu/cpufreq/interactive/sampling_down_factor 100000
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq 300000
write /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq 300000
write /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq 300000
Expand All @@ -556,10 +573,32 @@ on property:sys.boot_completed=1
chmod 0664 /sys/devices/system/cpu/cpu1/online
chmod 0664 /sys/devices/system/cpu/cpu2/online
chmod 0664 /sys/devices/system/cpu/cpu3/online
start mpdecision

# Set intelli_plug parameters and lowmemorykiller parameters
# Experimental settings by J-kun
write /sys/module/intelli_plug/parameters/intelli_plug_active 1
write /sys/module/intelli_plug/parameters/touch_boost_active 0
write /sys/module/lowmemorykiller/parameters/minfree 2048,4096,8192,16384,24576,32768
write /sys/devices/fdb00000.qcom,kgsl-3d0/kgsl/kgsl-3d0/devfreq/governor msm-adreno-tz
write /sys/module/simple_gpu_algorithm/parameters/simple_gpu_activate 1
write /sys/block/mmcblk1/queue/scheduler fiops
write /sys/block/mmcblk0/queue/scheduler fiops
stop mpdecision
swapoff /dev/block/zram0 > /dev/null 2>&1
write /sys/block/zram0/reset 1
write /sys/block/zram0/disksize 251658240
mkswap /dev/block/zram0 > /dev/null 2>&1
swapon /dev/block/zram0 > /dev/null 2>&1
write /sys/kernel/power_suspend/power_suspend_mode 1
write /sys/block/mmcblk0/queue/read_ahead_kb 512
write /sys/block/mmcblk1/queue/read_ahead_kb 512
write /sys/devices/system/cpu/cpufreq/interactive/boost 1

# Charger
on property:ro.bootmode=chargerlogo
wait /dev/block/platform/msm_sdcc.1/by-name/system
mount ext4 /dev/block/platform/msm_sdcc.1/by-name/system /system ro barrier=1

write /sys/module/lpm_levels/enable_low_power/l2 1
write /sys/module/msm_pm/modes/cpu0/power_collapse/suspend_enabled 1
write /sys/module/msm_pm/modes/cpu1/power_collapse/suspend_enabled 1
Expand All @@ -573,7 +612,7 @@ on property:ro.bootmode=chargerlogo
write /sys/devices/system/cpu/cpu1/online 0
write /sys/devices/system/cpu/cpu2/online 0
write /sys/devices/system/cpu/cpu3/online 0
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor "intellidemand"
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor "interactive"
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq 300000
chown system /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
chown system /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
Expand All @@ -583,6 +622,7 @@ on property:ro.bootmode=chargerlogo
chmod 664 /sys/devices/system/cpu/cpu1/online
chmod 664 /sys/devices/system/cpu/cpu2/online
chmod 664 /sys/devices/system/cpu/cpu3/online
write /sys/module/msm_pm/modes/cpu0/standalone_power_collapse/idle_enabled 1
write /sys/module/msm_pm/modes/cpu0/power_collapse/idle_enabled 1
write /sys/power/autosleep "mem"
write /sys/module/lpm_levels/enable_low_power/l2 3
Expand Down
178 changes: 130 additions & 48 deletions system.prop
Original file line number Diff line number Diff line change
@@ -1,42 +1,139 @@
#
# system.prop for w7
# system.prop for LG Optimus L90
#

# Use reference RIL for initial bringup
ro.vendor.extension_library=/vendor/lib/libqti-perfd-client.so
rild.libpath=/vendor/lib/libril-qc-qmi-1.so
rild.libargs=-d /dev/smd0

persist.rild.nitz_plmn=
persist.rild.nitz_long_ons_0=
persist.rild.nitz_long_ons_1=
persist.rild.nitz_long_ons_2=
persist.rild.nitz_long_ons_3=
persist.rild.nitz_short_ons_0=
persist.rild.nitz_short_ons_1=
persist.rild.nitz_short_ons_2=
persist.rild.nitz_short_ons_3=
persist.qcril.disable_retry=true
ril.subscription.types=NV,RUIM
DEVICE_PROVISIONED=1
persist.radio.msgtunnel.start=false
# Audio
PRODUCT_PROPERTY_OVERRIDES += \
audio.offload.24bit.enable=false \
audio.offload.buffer.size.kb=32 \
audio.offload.gapless.enabled=false \
audio.offload.multiple.enabled=false

PRODUCT_PROPERTY_OVERRIDES += \
av.offload.enable=false \
av.streaming.offload.enable=false

PRODUCT_PROPERTY_OVERRIDES += \
mm.enable.smoothstreaming=true

PRODUCT_PROPERTY_OVERRIDES += \
persist.audio.calfile0=/etc/Bluetooth_cal.acdb \
persist.audio.calfile1=/etc/General_cal.acdb \
persist.audio.calfile2=/etc/Global_cal.acdb \
persist.audio.calfile3=/etc/Handset_cal.acdb \
persist.audio.calfile4=/etc/Hdmi_cal.acdb \
persist.audio.calfile5=/etc/Headset_cal.acdb \
persist.audio.calfile6=/etc/Speaker_cal.acdb

PRODUCT_PROPERTY_OVERRIDES += \
persist.audio.fluence.voicecall=true \
persist.audio.fluence.voicerec=false \
persist.audio.fluence.speaker=true

PRODUCT_PROPERTY_OVERRIDES += \
ro.qc.sdk.audio.fluencetype=fluence \
ro.qc.sdk.audio.ssr=false

PRODUCT_PROPERTY_OVERRIDES += \
use.voice.path.for.pcm.voip=true

# Bluetooth
PRODUCT_PROPERTY_OVERRIDES += \
qcom.bt.le_dev_pwr_class=1 \
ro.bluetooth.dun=false \
ro.bluetooth.hfp.ver=1.6 \
ro.bluetooth.sap=false \
ro.qualcomm.bluetooth.ftp=true \
ro.qualcomm.bluetooth.hfp=true \
ro.qualcomm.bluetooth.hsp=true \
ro.qualcomm.bluetooth.map=true \
ro.qualcomm.bluetooth.nap=true \
ro.qualcomm.bluetooth.opp=true \
ro.qualcomm.bluetooth.pbap=true \
ro.qualcomm.bt.hci_transport=smd

# Camera
PRODUCT_PROPERTY_OVERRIDES += \
camera2.portability.force_api=1

# Display
PRODUCT_PROPERTY_OVERRIDES += \
debug.composition.type=dyn \
debug.enabletr=0 \
debug.mdpcomp.logs=0 \
debug.sf.hw=1 \
persist.hwc.mdpcomp.enable=true \
ro.opengles.version=196608 \
ro.sf.lcd_density=240

# GPS
PRODUCT_PROPERTY_OVERRIDES += \
ro.gps.agps_provider=1 \
ro.qc.sdk.izat.premium_enabled=1 \
ro.qc.sdk.izat.service_mask=0x5 \
persist.gps.qc_nlp_in_use=1 \
persist.loc.nlp_name=com.qualcomm.services.location

# NITZ
PRODUCT_PROPERTY_OVERRIDES += \
persist.rild.nitz_plmn="" \
persist.rild.nitz_long_ons_0="" \
persist.rild.nitz_long_ons_1="" \
persist.rild.nitz_long_ons_2="" \
persist.rild.nitz_long_ons_3="" \
persist.rild.nitz_short_ons_0="" \
persist.rild.nitz_short_ons_1="" \
persist.rild.nitz_short_ons_2="" \
persist.rild.nitz_short_ons_3=""

# Qualcomm
PRODUCT_PROPERTY_OVERRIDES += \
persist.timed.enable=true \
ro.qualcomm.cabl=0 \
ro.vendor.extension_library=/system/vendor/lib/libqc-opt.so

# Radio
PRODUCT_PROPERTY_OVERRIDES += \
persist.radio.apm_sim_not_pwdn=1 \
persist.radio.dfr_mode_set=1 \
persist.radio.msgtunnel.start=false \
persist.radio.no_wait_for_card=1 \
rild.libpath=/system/vendor/lib/libril-qc-qmi-1.so

#RIL
PRODUCT_PROPERTY_OVERRIDES += \
ro.telephony.ril_class=LgeW7RIL

PRODUCT_PROPERTY_OVERRIDES += \
ro.use_data_netmgrd=true

# Storage
PRODUCT_PROPERTY_OVERRIDES += \
persist.sys.isUsbOtgEnabled=true

# USB
PRODUCT_PROPERTY_OVERRIDES += \
ro.usb.mtp=0x2e82 \
ro.usb.mtp_adb=0x2e76 \
ro.usb.ptp=0x2e83 \
ro.usb.ptp_adb=0x2e84 \
ro.usb.bpt=0x2e28 \
ro.usb.bpt_adb=0x2e29 \
ro.usb.bpteth=0x2e2a \
ro.usb.bpteth_adb=0x2e2b

# Wifi
PRODUCT_PROPERTY_OVERRIDES += \
persist.sys.qc.sub.rdump.on=1 \
persist.sys.ssr.restart_level=3

# Other
telephony.lteOnCdmaDevice=0
ro.telephony.default_network=0
ro.ril.enable.amr.wideband=1
ro.lge.proximity.delay=25
ro.telephony.call_ring.delay=0
persist.radio.qcril_am_enabled=1
drm.service.enabled=true
persist.lg.data.autoprof.msim=true
persist.cne.feature=1
debug.sf.fb_always_on=1
persist.hwc.mdpcomp.enable=true
dev.pm.dyn_samplingrate=1
mmp.enable.3g2=true
media.aac_51_output_enabled=true
mm.enable.smoothstreaming=true
mm.enable.qcom_parser=37491
vidc.debug.level=0
ro.lge.irrc.type=sw

# Sensors
ro.qualcomm.sensors.qmd=false
ro.qc.sdk.sensors.gestures=true
ro.qualcomm.sensors.pedometer=false
Expand All @@ -50,21 +147,6 @@ ro.qualcomm.sensors.georv=true
ro.qc.sensors.smgr_mag_cal_en=false
ro.qc.sensors.max_grav_no_gyro=50
ro.qc.sensors.max_geomag_rotvec=50
debug.qualcomm.sns.hal=1
debug.qualcomm.sns.daemon=e
debug.qualcomm.sns.libsensor1=e
persist.sys.ssr.restart_level=3
persist.sys.strictmode.disable=true
ro.lge.irrc.type=sw
persist.debug.wfd.enable=1
tunnel.audio.encode = true
persist.gsm.sms.forcegsm7=1
ro.sf.lcd_density=240
persist.service.crash.enable=0
ro.config.vc_call_vol_steps=6
persist.data.sbp.update=0
persist.radio.rat_on=legacy
ro.lge.proximity.delay=25

# Hardware info
ro.device.chipset=Qualcomm Snapdragon 400 MSM8226 (28 nm)
Expand Down

0 comments on commit ae2a14f

Please sign in to comment.