Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Razziell committed Dec 8, 2018
1 parent 5275602 commit 6f9ec5c
Show file tree
Hide file tree
Showing 10 changed files with 202 additions and 92 deletions.
10 changes: 5 additions & 5 deletions BoardConfig.mk
Original file line number Diff line number Diff line change
Expand Up @@ -79,20 +79,20 @@ USE_XML_AUDIO_POLICY_CONF := 1
TARGET_BOOTLOADER_BOARD_NAME := MSM8953
TARGET_NO_BOOTLOADER := true

# Bootanimation
TARGET_BOOTANIMATION_PRELOAD := true
TARGET_BOOTANIMATION_TEXTURE_CACHE := true

# Bluetooth
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(DEVICE_PATH)/bluetooth
BOARD_HAVE_BLUETOOTH_QCOM := true
QCOM_BT_USE_SMD_TTY := true

# Camera
USE_DEVICE_SPECIFIC_CAMERA := true
BOARD_QTI_CAMERA_32BIT_ONLY := true
TARGET_TS_MAKEUP := true
TARGET_USES_QTI_CAMERA_DEVICE := true

# use caf 5.3 camera driver
# BOARD_GLOBAL_CFLAGS += -DCONFIG_MSMB_WITHOUT_IR

# Charger
BOARD_CHARGER_ENABLE_SUSPEND := true
BOARD_CHARGER_DISABLE_INIT_BLANK := true
Expand All @@ -111,7 +111,7 @@ ifeq ($(HOST_OS),linux)
endif
endif
endif
WITH_DEXPREOPT_BOOT_IMG_ONLY ?= true
WITH_DEXPREOPT_BOOT_IMG_AND_SYSTEM_SERVER_ONLY ?= true

# Display
MAX_VIRTUAL_DISPLAY_DIMENSION := 4096
Expand Down
6 changes: 6 additions & 0 deletions config.fs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ user: AID_BLUETOOTH
group: AID_BLUETOOTH
caps: BLOCK_SUSPEND NET_ADMIN

[vendor/bin/cnss-daemon]
mode: 0755
user: AID_BLUETOOTH
group: AID_BLUETOOTH
caps: NET_BIND_SERVICE

[vendor/bin/pm-service]
mode: 0755
user: AID_SYSTEM
Expand Down
2 changes: 1 addition & 1 deletion device.mk
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ PRODUCT_PACKAGES += \
qcom.fmradio

PRODUCT_BOOT_JARS += \
qcom.fmradio
qcom.fmradio

# Gatekeeper HAL
PRODUCT_PACKAGES += \
Expand Down
9 changes: 2 additions & 7 deletions manifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -219,10 +219,6 @@
<name>android.hardware.renderscript</name>
<transport arch="32+64">passthrough</transport>
<version>1.0</version>
<interface>
<name>IDevice</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl">
<name>android.hardware.sensors</name>
Expand Down Expand Up @@ -308,7 +304,7 @@
<hal format="hidl">
<name>com.qualcomm.qti.imscmservice</name>
<transport>hwbinder</transport>
<version>1.0</version>
<version>1.1</version>
<interface>
<name>IImsCmService</name>
<instance>qti.ims.connectionmanagerservice</instance>
Expand Down Expand Up @@ -514,5 +510,4 @@
<sepolicy>
<version>0.0</version>
</sepolicy>
</manifest>

</manifest>
8 changes: 0 additions & 8 deletions rootdir/init.qcom.rc
Original file line number Diff line number Diff line change
Expand Up @@ -90,15 +90,13 @@ on boot
chown bluetooth bluetooth /sys/module/hci_uart/parameters/ath_btwrite
chown system system /sys/module/sco/parameters/disable_esco
chown bluetooth bluetooth /sys/module/hci_smd/parameters/hcismd_set
chown system system /sys/module/radio_iris_transport/parameters/fmsmd_set
chown system system /sys/module/msm_core/parameters/polling_interval
chown system system /sys/module/msm_core/parameters/disabled
chown system system /sys/kernel/debug/msm_core/enable
chown system system /sys/kernel/debug/msm_core/ptable
chown system system /sys/kernel/boot_slpi/ssr
chmod 0660 /sys/module/bluetooth_power/parameters/power
chmod 0660 /sys/module/hci_smd/parameters/hcismd_set
chmod 0660 /sys/module/radio_iris_transport/parameters/fmsmd_set
chmod 0660 /sys/class/rfkill/rfkill0/state
chmod 0660 /proc/bluetooth/sleep/proto
chown bluetooth net_bt /dev/ttyHS0
Expand Down Expand Up @@ -406,12 +404,6 @@ service iop /vendor/bin/iop
disabled
socket iop seqpacket 0666 root system

#bug156417 zhaoqf_sh add Allow usb charging to be disabled peristently
on property:persist.sys.chgdisabled=1
write /sys/class/power_supply/battery/charging_enabled 0
on property:persist.sys.chgdisabled=0
write /sys/class/power_supply/battery/charging_enabled 1

on property:sys.boot_completed=1
write /dev/kmsg "Boot completed "
#Reset read ahead for dm-0 and dm-1 to 512kb
Expand Down
2 changes: 1 addition & 1 deletion rootdir/init.qcom.usb.rc
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ on boot

write /sys/class/android_usb/f_mass_storage/lun/nofua 1
write /sys/class/android_usb/android0/f_rndis_qc/rndis_transports BAM2BAM_IPA
write /sys/module/g_android/parameters/mtp_tx_req_len 131072
write /sys/module/g_android/parameters/mtp_tx_req_len 131072
write /sys/module/g_android/parameters/mtp_rx_req_len 131072

# Following are the parameters required for usb functionality. They provide configurable options like
Expand Down
5 changes: 2 additions & 3 deletions rootdir/init.target.rc
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ on fs

on init
write /sys/module/qpnp_rtc/parameters/poweron_alarm 1
chmod 0664 sys/kernel/debug/camera/logsync

on post-fs-data
mkdir /data/tombstones 0771 system system
Expand Down Expand Up @@ -151,15 +150,15 @@ service ims_rtp_daemon /vendor/bin/ims_rtp_daemon
group radio diag inet log
disabled

service imsrcsservice /vendor/bin/imsrcsd
service vendor.imsrcsservice /vendor/bin/imsrcsd
class main
user system
group radio diag inet log
disabled

on property:vendor.ims.DATA_DAEMON_STATUS=1
start ims_rtp_daemon
start imsrcsservice
start vendor.imsrcsservice

on property:init.svc.surfaceflinger=stopped
stop ppd
Expand Down
Loading

0 comments on commit 6f9ec5c

Please sign in to comment.