Skip to content

Commit

Permalink
j3x3g: add RIL support
Browse files Browse the repository at this point in the history
  • Loading branch information
NotNoelChannel committed Nov 15, 2023
1 parent bb226f8 commit 2b0dfd4
Show file tree
Hide file tree
Showing 4 changed files with 107 additions and 55 deletions.
4 changes: 2 additions & 2 deletions BoardConfig.mk
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ BOARD_CANT_REALLOCATE_OMX_BUFFERS := true
TARGET_POWERHAL_VARIANT := scx35

# RIL
BOARD_PROVIDES_RILD := false
BOARD_PROVIDES_LIBRIL := false
BOARD_PROVIDES_RILD := true
BOARD_PROVIDES_LIBRIL := true

# Graphics
TARGET_RUNNING_WITHOUT_SYNC_FRAMEWORK := true
Expand Down
3 changes: 2 additions & 1 deletion device.mk
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/rootdir/init.sc8830.usb.rc:root/init.sc8830.usb.rc \
$(LOCAL_PATH)/rootdir/fstab.sc8830:root/fstab.sc8830 \
$(LOCAL_PATH)/rootdir/ueventd.sc8830.rc:root/ueventd.sc8830.rc \
$(LOCAL_PATH)/rootdir/init.wifi.rc:root/init.wifi.rc
$(LOCAL_PATH)/rootdir/init.wifi.rc:root/init.wifi.rc \
$(LOCAL_PATH)/rootdir/init.rilcommon.rc:root/init.rilcommon.rc \

# Bluetooth
PRODUCT_COPY_FILES += \
Expand Down
39 changes: 39 additions & 0 deletions rootdir/init.rilcommon.rc
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Copyright (C) 2012 The Android Open Source Project
#
# IMPORTANT: Do not create world writable files or directories.
# This is a common source of Android security bugs.
#

# service can not be overwritten except SPRINT
# Thus, rilcarrier is imported before common rc, like init.rilchip.rc
import /init.rilcarrier.rc
import /init.rilchip.rc
import /init.rilepdg.rc

on boot

# AT Distributor for factory test
service at_distributor /system/bin/at_distributor
class late_start
user root
group radio misc log

service DR-daemon /system/bin/ddexe
class main
user root
group system radio inet net_raw

service BCS-daemon /system/bin/connfwexe
class main
user root
group system radio inet net_raw

# for ethernet
service dhcpcd_eth0 /system/bin/dhcpcd -ABKL
class main
disabled
oneshot

# for Wi-Fi only models
on property:ro.radio.noril=yes
stop ril-daemon
116 changes: 64 additions & 52 deletions system.prop
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
#
# system.prop
# from device/samsung/j3x3g/system.prop
#

ro.sf.lcd_density=320
ro.sf.lcd_width=54
ro.sf.lcd_height=96
ro.opengles.version=131072
ro.product.hardware=SCX35_J3_3G_V1.0.0

ro.radio.noril=yes
ro.carrier=wifi-only
debug.hwui.render_dirty_regions=false

ro.sf.lcd_density=213
ro.sf.hwrotation=180
ro.sf.xdpi=216.17
ro.sf.ydpi=216.746

ro.opengles.version=131072
# Bluetooth OPP low speed for save power
debug.bt.lowspeed=true

persist.ttydev=ttyVUART0

Expand All @@ -21,12 +20,14 @@ conn.connectivity_change_delay = 0

ro.product.partitionpath=/dev/block/platform/sdio_emmc/by-name/

ro.modem.w.count=1
# Default ecclist
ro.ril.ecclist=112,911,#911,*911

persist.modem.w.enable=1
persist.modem.w.nvp=w
ro.modem.w.dev=/proc/cpw/
ro.modem.w.tty=/dev/stty_w
ro.modem.w.eth=seth_w
ro.modem.w.eth=rmnet
ro.modem.w.snd=1
ro.modem.w.diag=/dev/sdiag_w
ro.modem.w.log=/dev/slog_w
Expand All @@ -40,100 +41,111 @@ ro.modem.w.runnv_size=0x60000

ro.modem.wcn.enable=1
ro.modem.wcn.diag=/dev/slog_wcn

camera.disable_zsl_mode=1
ro.digital.fm.support=1
ro.config.ksm.support=true
ro.bluetooth.request.master=true

# prevent GPU crash when turning off the device
ro.egl.destroy_after_detach=true

media.stagefright.less-secure=true
media.stagefright.legacyencoder=true
persist.sys.engpc.disable=0

debug.hwui.render_dirty_regions=false
drm.service.enabled=1
ro.config.ksm.support=true

#zram config
ro.config.zram.support=true
ro.board_ram_size=high

# SPRD: add low cost low memory @{
ro.config.low_ram=false
# @}

persist.ini.connectivity.prodnv=0
#if our product not support drm,set as false
drm.service.enabled=true

# hotspot development
#ro.hotspot.enabled=1

# SPRD: add support hwrotation
ro.sf.hwrotation=0

# SAMP_SPCM
sys.config.samp_spcm_enable=true
sys.config.spcm_db_enable=true
sys.config.spcm_db_launcher=true
sys.config.spcm_preload_enable=true

persist.ini.connectivity.prodnv=0

ro.kernel.qemu=0

#
# ADDITIONAL_BUILD_PROPERTIES
#
ro.astcenc.astcsupport=0
ro.mct.compressiontype=ETC1
ro.telephony.default_network=9
ro.sf.lcd_density=320
dalvik.vm.heapstartsize=8m
dalvik.vm.heapgrowthlimit=96m
dalvik.vm.heapsize=256m
dalvik.vm.heaptargetutilization=0.75
dalvik.vm.heapminfree=2m
dalvik.vm.heapmaxfree=8m
persist.sys.thermal.enable=1
ro.com.android.dateformat=MM-dd-yyyy
drm.service.enabled=true
persist.sys.sprd.modemreset=1
ro.adb.secure=0
ro.secure=0
persist.sys.usb.config=mtp,adb
ro.adb.secure=1
persist.sys.sprd.wcnreset=1
persist.sys.engpc.disable=0
persist.service.agps.network=4g
persist.sys.bsservice.enable=1
persist.sys.apr.intervaltime=1
persist.sys.apr.testgroup=CSLAB
persist.sys.apr.testgroup=CSSLAB
persist.sys.apr.autoupload=1
persist.sys.engpc.disable=0
persist.service.agps.network=4g
persist.sprd.hperf=false
ro.storage.flash_type=2
persist.storage.type=2
sys.tempsd.enable=0
sys.internal.emulated=1
ro.storage.install2internal=0
keyguard.no_require_sim=true
ro.com.android.dataroaming=false
persist.msms.phone_default=0
persist.sys.modem.diag=,gser
sys.usb.gser.count=8
ro.modem.external.enable=0
persist.sys.support.vt=false
persist.support.oplpnn=true
persist.support.cphsfirst=false
sys.usb.gser.count=8
persist.radio.ssda.testmode=255
persist.radio.ssda.testmode1=10
ro.msms.phone_count=2
persist.msms.phone_count=2
ro.modem.w.count=2
lmk.autocalc=false
use_brcm_fm_chip=true
ro.build.scafe=latte
ro.build.scafe.size=tall
ro.build.scafe=capuccino
ro.build.scafe.size=short
ro.build.scafe.cream=white
ro.build.scafe.shot=quarter
ro.build.scafe.shot=single
ro.sec.fle.encryption=true
ro.error.receiver.default=com.samsung.receiver.error
ro.frp.pst=/dev/block/persistent
ro.security.vpnpp.ver=1.4
ro.security.vpnpp.release=5.3
ro.config.dha_cached_max=8
ro.config.dha_empty_max=24
ro.config.dha_empty_init=24
ro.config.mdha_ssr_enable=false
ro.config.dha_lmk_scale=1.0
ro.frp.pst=/dev/block/persistent
ro.com.android.dateformat=MM-dd-yyyy
ro.com.google.clientidbase=android-samsung
drm.service.enabled=true

ro.config.dha_lmk_scale=1.23
ro.config.ringtone=Over_the_Horizon.ogg
ro.config.notification_sound=Skyline.ogg
ro.config.alarm_alert=Morning_Flower.ogg
ro.config.media_sound=Media_preview_Touch_the_light.ogg
ro.config.ringtone_2=Basic_Bell.ogg
ro.config.notification_sound_2=S_Charming_Bell.ogg
ro.carrier=unknown
security.ASKS.policy_version=000000
ro.ril.hsxpa=1
ro.ril.gprsclass=10
ro.adb.qemud=1
ro.setupwizard.mode=DISABLED
ro.com.google.gmsversion=5.1_r2
ro.setupwizard.mode=OPTIONAL
ro.com.google.gmsversion=5.1_r7
ro.com.google.clientidbase=android-samsung
persist.sys.dalvik.vm.lib.2=libart.so
dalvik.vm.isa.arm.features=div
ro.build.selinux=1
net.bt.name=Android
dalvik.vm.stack-trace-file=/data/anr/traces.txt
ro.build.aapt.config.prefer=tvdpi
ro.build.version.sdl=2203

ro.sys.sdcardfs=true
ro.build.aapt.config.prefer=xhdpi
ro.build.version.sdl=2203

0 comments on commit 2b0dfd4

Please sign in to comment.