gts3llte: Separate from the common device tree

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
This commit is contained in:
Deokgyu Yang 2021-06-25 00:23:02 +09:00
commit 73224d11cd
18 changed files with 932 additions and 0 deletions

26
Android.mk Normal file
View file

@ -0,0 +1,26 @@
#
# Copyright (C) 2020-2021 The LineageOS Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# WARNING: Everything listed here will be built on ALL platforms,
# including x86, the emulator, and the SDK. Modules must be uniquely
# named (liblights.tuna), and must build everywhere, or limit themselves
# to only building on ARM if they include assembly. Individual makefiles
# are responsible for having their own logic, for fine-grained control.
LOCAL_PATH := $(call my-dir)
ifeq ($(TARGET_DEVICE),gts3llte)
include $(call all-makefiles-under,$(LOCAL_PATH))
endif

20
AndroidProducts.mk Normal file
View file

@ -0,0 +1,20 @@
#
# Copyright (C) 2020 The LineageOS Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
PRODUCT_MAKEFILES := \
$(LOCAL_DIR)/lineage_gts3llte.mk
COMMON_LUNCH_CHOICES := \
lineage_gts3llte-userdebug

40
BoardConfig.mk Normal file
View file

@ -0,0 +1,40 @@
#
# Copyright (C) 2020-2021 The LineageOS Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# inherit from common gts3l-common
-include device/samsung/gts3l-common/BoardConfigCommon.mk
DEVICE_PATH := device/samsung/gts3llte
# Assert
TARGET_OTA_ASSERT_DEVICE := gts3llte
# HIDL
DEVICE_FRAMEWORK_MANIFEST_FILE := $(DEVICE_PATH)/framework_manifest.xml
DEVICE_MANIFEST_FILE += $(DEVICE_PATH)/manifest.xml
# Kernel
TARGET_KERNEL_CONFIG := lineage_gts3llte_defconfig
# Properties
TARGET_VENDOR_PROP += $(DEVICE_PATH)/vendor.prop
# RIL
BOARD_PROVIDES_LIBRIL := true
ENABLE_VENDOR_RIL_SERVICE := true
# inherit from the proprietary version
include vendor/samsung/gts3llte/BoardConfigVendor.mk

52
README.md Normal file
View file

@ -0,0 +1,52 @@
# Device Tree for Samsung Galaxy Tab S3 LTE (gts3llte)
## Disclaimer
```xxx
/*
* Your warranty will be VOID after installing a custom ROM.
*
* Get notified yourself that I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed.
* Please do some research if you have any concerns about features included in this ROM
* before flashing it!
* YOU are choosing to make these modifications,
* and if you point the finger at me for messing up your device,
* I will laugh at you.
*/
```
## Local manifest
```xml
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="awesometic/android_device_samsung_gts3l-common"
path="device/samsung/gts3l-common"
revision="lineage-18.1"
remote="github" />
<project name="awesometic/android_device_samsung_gts3llte"
path="device/samsung/gts3llte"
revision="lineage-18.1"
remote="github" />
<project name="awesometic/android_kernel_samsung_msm8996"
path="kernel/samsung/msm8996"
revision="lineage-18.1"
remote="github" />
<project name="LineageOS/android_device_samsung_qcom-common"
path="device/samsung/qcom-common"
revision="lineage-18.1"
remote="github" />
<project name="LineageOS/android_hardware_samsung"
path="hardware/samsung"
revision="lineage-18.1"
remote="github" />
</manifest>
```
## License
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
You may obtain a copy of the License at [https://www.apache.org/licenses/LICENSE-2.0.html]

56
device.mk Normal file
View file

@ -0,0 +1,56 @@
#
# Copyright (C) 2020-2021 The LineageOS Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# Get non-open-source specific aspects
$(call inherit-product, vendor/samsung/gts3llte/gts3llte-vendor.mk)
# Local overlays
DEVICE_PACKAGE_OVERLAYS += \
$(LOCAL_PATH)/overlay
# Device init scripts
PRODUCT_PACKAGES += \
init.carrier.rc \
init.rilchip.rc \
init.rilcommon.rc
# IPA
PRODUCT_PACKAGES += \
ipacm \
IPACM_cfg.xml
# Permissions
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.telephony.cdma.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.cdma.xml \
frameworks/native/data/etc/android.hardware.telephony.gsm.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.gsm.xml \
frameworks/native/data/etc/android.hardware.telephony.ims.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.ims.xml
# RIL
PRODUCT_PACKAGES += \
android.hardware.radio@1.4 \
android.hardware.radio.config@1.1 \
android.hardware.secure_element@1.0 \
librmnetctl \
libxml2 \
libprotobuf-cpp-full
# Vibrator
PRODUCT_PACKAGES += \
android.hardware.vibrator@1.0-impl \
android.hardware.vibrator@1.0-service
# Inherit from gts3l-common
$(call inherit-product, device/samsung/gts3l-common/gts3l.mk)

26
extract-files.sh Executable file
View file

@ -0,0 +1,26 @@
#!/bin/bash
#
# Copyright (C) 2016 The CyanogenMod Project
# Copyright (C) 2017-2020 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
function blob_fixup() {
case "${1}" in
esac
}
# If we're being sourced by the common script that we called,
# stop right here. No need to go down the rabbit hole.
if [ "${BASH_SOURCE[0]}" != "${0}" ]; then
return
fi
set -e
export DEVICE=gts3llte
export DEVICE_COMMON=gts3l-common
export VENDOR=samsung
"./../../${VENDOR}/${DEVICE_COMMON}/extract-files.sh" "$@"

39
framework_manifest.xml Normal file
View file

@ -0,0 +1,39 @@
<!-- Copyright (c) 2018, The Linux Foundation. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following
disclaimer in the documentation and/or other materials provided
with the distribution.
* Neither the name of The Linux Foundation nor the names of its
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-->
<manifest version="1.0" type="framework">
<!-- atfwd -->
<hal format="hidl">
<name>vendor.qti.hardware.radio.atcmdfwd</name>
<transport>hwbinder</transport>
<version>1.0</version>
<interface>
<name>IAtCmdFwd</name>
<instance>AtCmdFwdService</instance>
</interface>
</hal>
</manifest>

6
lineage.dependencies Normal file
View file

@ -0,0 +1,6 @@
[
{
"repository": "android_device_samsung_gts3l-common",
"target_path": "device/samsung/gts3l-common"
}
]

42
lineage_gts3llte.mk Normal file
View file

@ -0,0 +1,42 @@
#
# Copyright (C) 2020-2021 The LineageOS Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# Inherit from those products. Most specific first.
$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk)
# Inherit from gts3llte device
$(call inherit-product, device/samsung/gts3llte/device.mk)
# Inherit some common Lineage stuff.
$(call inherit-product, vendor/lineage/config/common_full_phone.mk)
# Device identifier. This must come after all inclusions
PRODUCT_DEVICE := gts3llte
PRODUCT_NAME := lineage_gts3llte
PRODUCT_BRAND := samsung
PRODUCT_MODEL := SM-T825
PRODUCT_MANUFACTURER := samsung
PRODUCT_GMS_CLIENTID_BASE := android-samsung
# Use the latest approved GMS identifiers
PRODUCT_BUILD_PROP_OVERRIDES += \
PRODUCT_NAME=gts3llte \
PRIVATE_BUILD_DESC="gts3lltekx-user 9 PPR1.180610.011 T825N0KOU3CTD1 release-keys"
# Set BUILD_FINGERPRINT variable to be picked up by both system and vendor build.prop
BUILD_FINGERPRINT := "samsung/gts3lltekx/gts3llte:9/PPR1.180610.011/T825N0KOU3CTD1:user/release-keys"

170
manifest.xml Normal file
View file

@ -0,0 +1,170 @@
<manifest version="1.0" type="device" target-level="4">
<hal format="hidl">
<name>android.hardware.broadcastradio</name>
<transport>hwbinder</transport>
<version>1.0</version>
<interface>
<name>IBroadcastRadioFactory</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl" override="true">
<name>android.hardware.radio</name>
<transport>hwbinder</transport>
<version>1.2</version>
<interface>
<name>IRadio</name>
<instance>slot1</instance>
</interface>
<interface>
<name>ISap</name>
<instance>slot1</instance>
</interface>
<fqname>@1.2::IRadio/slot1</fqname>
<fqname>@1.2::ISap/slot1</fqname>
</hal>
<hal format="hidl">
<name>android.hardware.radio.config</name>
<transport>hwbinder</transport>
<version>1.1</version>
<interface>
<name>IRadioConfig</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl">
<name>android.hardware.tetheroffload.config</name>
<transport>hwbinder</transport>
<version>1.0</version>
<interface>
<name>IOffloadConfig</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl">
<name>android.hardware.tetheroffload.control</name>
<transport>hwbinder</transport>
<version>1.0</version>
<interface>
<name>IOffloadControl</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl">
<name>android.hardware.vibrator</name>
<transport>hwbinder</transport>
<version>1.0</version>
<interface>
<name>IVibrator</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl" override="true">
<name>com.qualcomm.qti.imscmservice</name>
<transport>hwbinder</transport>
</hal>
<hal format="hidl" override="true">
<name>com.qualcomm.qti.uceservice</name>
<transport>hwbinder</transport>
</hal>
<hal format="hidl" override="true">
<name>vendor.qti.hardware.data.connection</name>
<transport>hwbinder</transport>
</hal>
<hal format="hidl" override="true">
<name>vendor.qti.hardware.data.latency</name>
<transport>hwbinder</transport>
</hal>
<hal format="hidl" override="true">
<name>vendor.qti.hardware.radio.am</name>
<transport>hwbinder</transport>
</hal>
<hal format="hidl" override="true">
<name>vendor.qti.hardware.radio.ims</name>
<transport>hwbinder</transport>
</hal>
<hal format="hidl" override="true">
<name>vendor.qti.hardware.radio.lpa</name>
<transport>hwbinder</transport>
</hal>
<hal format="hidl" override="true">
<name>vendor.qti.hardware.radio.qcrilhook</name>
<transport>hwbinder</transport>
</hal>
<hal format="hidl" override="true">
<name>vendor.qti.hardware.radio.qtiradio</name>
<transport>hwbinder</transport>
</hal>
<hal format="hidl" override="true">
<name>vendor.qti.hardware.radio.uim</name>
<transport>hwbinder</transport>
</hal>
<hal format="hidl" override="true">
<name>vendor.qti.hardware.radio.uim_remote_client</name>
<transport>hwbinder</transport>
</hal>
<hal format="hidl" override="true">
<name>vendor.qti.hardware.radio.uim_remote_server</name>
<transport>hwbinder</transport>
</hal>
<hal format="hidl" override="true">
<name>vendor.qti.ims.callinfo</name>
<transport>hwbinder</transport>
</hal>
<hal format="hidl" override="true">
<name>vendor.qti.imsrtpservice</name>
<transport>hwbinder</transport>
</hal>
<hal format="hidl">
<name>vendor.samsung.hardware.radio</name>
<transport>hwbinder</transport>
<version>1.2</version>
<interface>
<name>IRadio</name>
<instance>slot1</instance>
</interface>
<fqname>@1.2::IRadio/slot1</fqname>
</hal>
<hal format="hidl">
<name>vendor.samsung.hardware.radio.channel</name>
<transport>hwbinder</transport>
<version>1.0</version>
<interface>
<name>ISecChannel</name>
<instance>epdgd</instance>
<instance>imsd</instance>
</interface>
<fqname>@1.0::ISecChannel/epdgd</fqname>
<fqname>@1.0::ISecChannel/imsd</fqname>
</hal>
<hal format="hidl">
<name>vendor.samsung.hardware.radio.configsvc</name>
<transport>hwbinder</transport>
<version>1.0</version>
<interface>
<name>IConfigSvc</name>
<instance>default</instance>
</interface>
<fqname>@1.0::IConfigSvc/default</fqname>
</hal>
<hal format="hidl">
<name>vendor.samsung.hardware.radio.secbridge</name>
<transport>hwbinder</transport>
<version>1.0</version>
<interface>
<name>ISecBridge</name>
<instance>slot1</instance>
</interface>
<fqname>@1.0::ISecBridge/slot1</fqname>
</hal>
<hal format="hidl">
<name>vendor.samsung.hardware.radio.sechook</name>
<transport>hwbinder</transport>
<version>1.0</version>
<interface>
<name>IOemHook</name>
<instance>slot1</instance>
</interface>
<fqname>@1.0::IOemHook/slot1</fqname>
</hal>
</manifest>

View file

@ -0,0 +1,94 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
** Copyright 2013, The Android Open Source Project
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and
** limitations under the License.
*/
-->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Is the device capable of hot swapping an ICC Card -->
<bool name="config_hotswapCapable">true</bool>
<!-- Configure mobile tcp buffer sizes in the form:
rat-name:rmem_min,rmem_def,rmem_max,wmem_min,wmem_def,wmem_max
If no value is found for the rat-name in use, the system default will be applied.
-->
<string-array name="config_mobile_tcp_buffers">
<item>lte:2097152,4194304,8388608,524288,1572864,2097152</item>
<item>lte_ca:2097152,4194304,8388608,4096,1048576,2097152</item>
<item>umts:4094,87380,1220608,4096,16384,1220608</item>
<item>hspa:4094,87380,1220608,4096,16384,1220608</item>
<item>hsupa:4094,87380,1220608,4096,16384,1220608</item>
<item>hsdpa:4094,87380,1220608,4096,16384,1220608</item>
<item>hspap:4094,87380,1220608,4096,16384,1220608</item>
<item>edge:4093,26280,35040,4096,16384,35040</item>
<item>gprs:4092,8760,11680,4096,8760,11680</item>
<item>evdo:4094,87380,524288,4096,16384,262144</item>
</string-array>
<!-- This string array should be overridden by the device to present a list of network
attributes. This is used by the connectivity manager to decide which networks can coexist
based on the hardware -->
<!-- An Array of "[Connection name],[ConnectivityManager.TYPE_xxxx],
[associated radio-type],[priority],[restoral-timer(ms)],[dependencyMet] -->
<!-- the 5th element "resore-time" indicates the number of milliseconds to delay
before automatically restore the default connection. Set -1 if the connection
does not require auto-restore. -->
<!-- the 6th element indicates boot-time dependency-met value. -->
<string-array translatable="false" name="networkAttributes">
<item>"wifi,1,1,1,-1,true"</item>
<item>"mobile,0,0,0,-1,true"</item>
<item>"mobile_mms,2,0,2,240000,true"</item>
<item>"mobile_supl,3,0,2,60000,true"</item>
<item>"mobile_dun,4,0,2,60000,true"</item>
<item>"mobile_hipri,5,0,3,60000,true"</item>
<item>"bluetooth,7,7,0,-1,true"</item>
<item>"ethernet,9,9,2,-1,true"</item>
<item>"mobile_fota,10,0,2,60000,true"</item>
<item>"mobile_ims,11,0,1,-1,true"</item>
<item>"mobile_cbs,12,0,2,60000,true"</item>
<item>"wifi_p2p,13,1,0,-1,true"</item>
<item>"mobile_ia,14,0,2,-1,true"</item>
<item>"mobile_emergency,15,0,2,-1,true"</item>
<item>"mobile_bip,23,0,2,60000,true"</item>
<item>"mobile_cas,24,0,3,60000,true"</item>
<item>"mobile_xcap,27,0,2,60000,true"</item>
<item>"mobile_ent1,28,0,2,-1,true"</item>
<item>"mobile_mcx,32,0,2,-1,true"</item>
<item>"mobile_foc,30,0,2,-1,true"</item>
</string-array>
<!-- This string array should be overridden by the device to present a list of radio
attributes. This is used by the connectivity manager to decide which networks can coexist
based on the hardware -->
<!-- An Array of "[ConnectivityManager connectionType],
[# simultaneous connection types]" -->
<string-array translatable="false" name="radioAttributes">
<item>"1,1"</item>
<item>"0,1"</item>
</string-array>
<!-- Vibrator pattern to be used as the default for notifications
that specify DEFAULT_VIBRATE.
-->
<integer-array name="config_defaultNotificationVibePattern">
<item>0</item>
<item>250</item>
<item>250</item>
<item>250</item>
</integer-array>
</resources>

45
proprietary-files.txt Normal file
View file

@ -0,0 +1,45 @@
# ACDB data
vendor/etc/General_cal.acdb
vendor/etc/Hdmi_cal.acdb
vendor/etc/Headset_cal.acdb
vendor/etc/Bluetooth_cal.acdb
vendor/etc/Speaker_cal.acdb
vendor/etc/Handset_cal.acdb
vendor/etc/Global_cal.acdb
vendor/etc/workspaceFile.qwsp
# RIL
etc/mtu-conf.xml
lib64/vendor.samsung.hardware.radio.secbridge@1.0.so
lib64/vendor.qti.hardware.radio.atcmdfwd@1.0.so
vendor/bin/hw/rild
vendor/bin/hw/vendor.samsung.hardware.radio.configsvc@1.0-service
vendor/bin/adpl
vendor/bin/ATFWD-daemon
vendor/bin/netmgrd
vendor/etc/data/netmgr_config.xml
vendor/etc/init/vendor.samsung.hardware.radio.configsvc@1.0-service.rc
vendor/etc/plmn_se13.bin
vendor/etc/sec_config_oem
-vendor/lib/libril.so
vendor/lib64/libconfigdb.so
vendor/lib64/liblqe.so
vendor/lib64/libnetmgr.so
vendor/lib64/libnetmgr_common.so
vendor/lib64/libnlnetmgr.so
vendor/lib64/libpdnotifier.so
vendor/lib64/libqrtr.so
-vendor/lib64/libril.so
vendor/lib64/libsec-ril.so
vendor/lib64/libsystem_health_mon.so
vendor/lib64/libvndsecril-client.so
vendor/lib64/libxml.so
vendor/lib64/vendor.samsung.hardware.radio.channel@1.0_vendor.so
vendor/lib64/vendor.samsung.hardware.radio.configsvc@1.0_vendor.so
vendor/lib64/vendor.samsung.hardware.radio.secbridge@1.0_vendor.so
vendor/lib64/vendor.samsung.hardware.radio.sechook@1.0_vendor.so
vendor/lib64/vendor.samsung.hardware.radio@1.2_vendor.so
# Sensors
vendor/lib/sensors.grip.so
vendor/lib64/sensors.grip.so

27
rootdir/Android.mk Normal file
View file

@ -0,0 +1,27 @@
LOCAL_PATH := $(call my-dir)
# Device init scripts
include $(CLEAR_VARS)
LOCAL_MODULE := init.carrier.rc
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := etc/init.carrier.rc
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC)/init/hw
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := init.rilchip.rc
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := etc/init.rilchip.rc
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC)/init
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := init.rilcommon.rc
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := etc/init.rilcommon.rc
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC)/init
include $(BUILD_PREBUILT)

View file

@ -0,0 +1,82 @@
# 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.
#
on boot
# permission for MUIC(waterproof)
chown system radio /sys/class/sec/switch/uart_en
# permission for touchkey grip
chown system radio /sys/class/sec/sec_touchkey/sar_enable
chown system radio /sys/class/sec/sec_touchkey/sw_reset
# op mode for charger
chmod 0664 /sys/class/power_supply/sm5705-charger/charger_op_mode
chown system radio /sys/class/power_supply/sm5705-charger/charger_op_mode
# Permissions for Charging
chown sdcard_rw sdcard_rw /sys/class/power_supply/battery/store_mode
# bluetooth
chown bluetooth bluetooth /dev/ttyHS0
chmod 0660 /dev/ttyHS0
# Permissions for System LSI NFC
# NFC : Permissions for NFC
chmod 0660 /dev/sec-nfc
# NFC : change owner
chown nfc nfc /dev/sec-nfc
# Permissions for S.LSI ESE
chmod 0660 /dev/p3
chown system system /dev/p3
# Permissions for NXP NFC
# NFC : Permissions for NFC
chmod 0660 /dev/pn547
# NFC : change owner
chown nfc nfc /dev/pn547
# Permissions for NXP ESE
chmod 0660 /dev/p61
chown system system /dev/p61
# Fingerprint
mkdir /dev/validity 0770 system system
# Fingerprint_sensor
chmod 0660 /dev/vfsspi
chmod 0660 /dev/esfp0
chown system system /dev/vfsspi
chown system system /dev/esfp0
chown system radio /sys/class/fingerprint/fingerprint/type_check
chown system radio /sys/class/fingerprint/fingerprint/name
chown system radio /sys/class/fingerprint/fingerprint/vendor
chown system radio /sys/class/fingerprint/fingerprint/adm
on post-fs-data
# permissions for audio
chown system radio /sys/class/rt5508_cal/trigger
chown system radio /sys/class/rt5508_cal/status
chown system radio /sys/class/rt5508_cal/rt5508.0/gsense_otp
chown system radio /sys/class/rt5508_cal/rt5508.0/n20db
chown system radio /sys/class/rt5508_cal/rt5508.0/n15db
chown system radio /sys/class/rt5508_cal/rt5508.0/n10db
chown system radio /sys/class/rt5508_cal/rt5508.0/rspk
chown system radio /sys/class/rt5508_cal/rt5508.0/dcr_offset
mkdir /efs/richtek/rt5508_cal 0771 radio system
# permissions for bluetooth.
setprop ro.bt.bdaddr_path "/efs/bluetooth/bt_addr"
chown bluetooth bluetooth ro.bt.bdaddr_path
chown radio bluetooth /efs/bluetooth/bt_addr
chmod 0640 /efs/bluetooth/bt_addr
chmod 0660 /sys/class/rfkill/rfkill0/state
chmod 0660 /sys/class/rfkill/rfkill0/device/extldo
chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state
chown bluetooth bluetooth /sys/class/rfkill/rfkill0/type
chown bluetooth bluetooth /sys/class/rfkill/rfkill0/device/extldo

View file

@ -0,0 +1,47 @@
# 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 sec_diag_uart_log /system/bin/sec_diag_uart_log
class main
user root
group radio oem_2901 system
service SMD-daemon /system/bin/smdexe
class main
user root
group system radio inet net_raw
service vendor.atfwd /vendor/bin/ATFWD-daemon
class late_start
user system
group system radio
service start_netmgrd /vendor/bin/sh /system/etc/control_netmgrd.sh start
class main
user root
group radio
disabled
oneshot
service stop_netmgrd /vendor/bin/sh /system/etc/control_netmgrd.sh stop
class main
user root
group radio
disabled
oneshot
on property:ril.restart.netmgrd=true
start stop_netmgrd
on property:init.svc.netmgrd=stopped
start start_netmgrd
on property:sys.control.netmgr=started
setprop ril.restart.netmgrd false
setprop sys.control.netmgr done
on property:init.svc.netmgrd=restarting
setprop sys.control.netmgr restarted

View file

@ -0,0 +1,133 @@
# 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.rilmptcp.rc
import /init.rilmcpsd.rc
# AT Distributor for factory test
service at_distributor /system/bin/at_distributor
class late_start
user root
group radio misc log system
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 shell radio inet net_raw
# for ethernet
service dhcpcd_eth0 /system/bin/dhcpcd -ABKL
class main
disabled
oneshot
# for SmartSwitch
service dhcpcd_usb0 /system/bin/dhcpcd -ABKL
class main
disabled
oneshot
# for Wi-Fi only models
on property:ro.radio.noril=yes
stop ril-daemon
# for recovering at restarting netd
service recover_radio /vendor/bin/sh /system/etc/restart_radio_process.sh
class main
user root
group radio
disabled
oneshot
on post-fs-data
# For Samsung members
mkdir /data/log/err 0775 radio log
chown radio log /data/log/err
# For KOR Model SKU
chown radio system /efs/imei/replace_code.dat
chmod 0664 /efs/imei/replace_code.dat
on property:init.svc.netd=restarting
start recover_radio
on post-fs-data
mkdir /efs/imei 0775 root radio
restorecon -R /efs/imei
on property:ro.telephony.default_network=*
setprop ro.ril.def_network_after_check_tdscdma ${ro.telephony.default_network}
on property:ro.ril.def_network_after_check_tdscdma=*
setprop ro.telephony.default_network ${ro.ril.def_network_after_check_tdscdma}
on property:ro.boot.sales.param.offset=*
setprop ro.vendor.boot.sales.param.offset ${ro.boot.sales.param.offset}
on property:ro.boot.carrierid.param.offset=*
setprop ro.vendor.boot.carrierid.param.offset ${ro.boot.carrierid.param.offset}
on property:ro.boot.im.param.offset=*
setprop ro.vendor.boot.im.param.offset ${ro.boot.im.param.offset}
on property:ro.boot.me.param.offset=*
setprop ro.vendor.boot.me.param.offset ${ro.boot.me.param.offset}
on property:ro.boot.omcnw.param.offset=*
setprop ro.vendor.boot.omcnw.param.offset ${ro.boot.omcnw.param.offset}
on property:ro.boot.debug_level=*
setprop ro.vendor.boot.debug_level ${ro.boot.debug_level}
on property:ro.boot.sn.param.offset=*
setprop ro.vendor.boot.sn.param.offset ${ro.boot.sn.param.offset}
on property:ro.build.characteristics=*
setprop ro.vendor.build.characteristics ${ro.build.characteristics}
on property:ro.product_ship=*
setprop ro.vendor.product_ship ${ro.product_ship}
on property:ro.boot.warranty_bit=*
setprop ro.vendor.boot.warranty_bit ${ro.boot.warranty_bit}
on property:ro.boot.force_upload=*
setprop ro.vendor.boot.force_upload ${ro.boot.force_upload}
on property:ro.multisim.simslotcount=*
setprop ro.vendor.multisim.simslotcount ${ro.multisim.simslotcount}
on property:ro.ril.cdma.home.operator.alpha=*
setprop ro.cdma.home.operator.alpha ${ro.ril.cdma.home.operator.alpha}
on property:ro.ril.cdma.home.operator.numeric=*
setprop ro.cdma.home.operator.numeric ${ro.ril.cdma.home.operator.numeric}
on property:ro.ril.home.operator.carrierid=*
setprop ro.home.operator.carrierid ${ro.ril.home.operator.carrierid}
on property:ro.ril.home.operator.rrenabled=*
setprop ro.home.operator.rrenabled ${ro.ril.home.operator.rrenabled}
on property:ril.product_code=*
setprop vendor.ril.product_code ${ril.product_code}
on property:gsm.current.vsid=*
setprop vendor.gsm.current.vsid ${gsm.current.vsid}
on property:gsm.current.vsid2=*
setprop vendor.gsm.current.vsid2 ${gsm.current.vsid2}
on property:ro.factory.factory_binary=*
setprop ro.vendor.factory_binary ${ro.factory.factory_binary}

15
setup-makefiles.sh Normal file
View file

@ -0,0 +1,15 @@
#!/bin/bash
#
# Copyright (C) 2016 The CyanogenMod Project
# Copyright (C) 2017-2020 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
set -e
export DEVICE=gts3llte
export DEVICE_COMMON=gts3l-common
export VENDOR=samsung
"./../../${VENDOR}/${DEVICE_COMMON}/setup-makefiles.sh" "$@"

12
vendor.prop Normal file
View file

@ -0,0 +1,12 @@
# Radio
ro.telephony.default_network=9
ro.config.dha_pwhitelist_enable=1
persist.radio.multisim.config=ss
persist.vendor.radio.atfwd.start=true
persist.vendor.radio.apm_sim_not_pwdn=1
persist.vendor.radio.sib16_support=1
persist.vendor.radio.custom_ecc=1
persist.vendor.radio.rat_on=combine
rild.libargs=-d /dev/umts_ipc0
telephony.lteOnCdmaDevice=0
vendor.sec.rild.libpath=/vendor/lib64/libsec-ril.so