From 2671a6a68003a6804d27361fcd8df5c39b7f452a Mon Sep 17 00:00:00 2001 From: nyyu Date: Sat, 28 Aug 2021 20:06:27 +0200 Subject: [PATCH] init mondrianlte --- Android.mk | 59 + AndroidProducts.mk | 17 + BoardConfig.mk | 30 + audio/audio_effects.xml | 54 + audio/audio_policy_configuration.xml | 208 +++ audio/mixer_paths.xml | 1348 +++++++++++++++++ device.mk | 36 + lineage_mondrianlte.mk | 40 + manifest.xml | 24 + .../base/core/res/res/values/config.xml | 29 + system.prop | 12 + 11 files changed, 1857 insertions(+) create mode 100644 Android.mk create mode 100644 AndroidProducts.mk create mode 100644 BoardConfig.mk create mode 100644 audio/audio_effects.xml create mode 100644 audio/audio_policy_configuration.xml create mode 100644 audio/mixer_paths.xml create mode 100644 device.mk create mode 100644 lineage_mondrianlte.mk create mode 100644 manifest.xml create mode 100644 overlay/frameworks/base/core/res/res/values/config.xml create mode 100644 system.prop diff --git a/Android.mk b/Android.mk new file mode 100644 index 0000000..52d3eac --- /dev/null +++ b/Android.mk @@ -0,0 +1,59 @@ +# +# Copyright (C) 2012 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. +# +# 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),mondrianlte) +include $(call all-subdir-makefiles,$(LOCAL_PATH)) + +include $(CLEAR_VARS) + +ISDBT_IMAGES := \ + isdbtmm.b00 isdbtmm.b01 isdbtmm.b02 isdbtmm.b03 isdbtmm.mdt + +ISDBT_SYMLINKS := $(addprefix $(TARGET_OUT_VENDOR)/firmware/,$(notdir $(ISDBT_IMAGES))) +$(ISDBT_SYMLINKS): $(LOCAL_INSTALLED_MODULE) + @echo "isdbt firmware link: $@" + @mkdir -p $(dir $@) + @rm -rf $@ + $(hide) ln -sf /firmware/image/$(notdir $@) $@ + +ALL_DEFAULT_INSTALLED_MODULES += $(ISDBT_SYMLINKS) + +WCNSS_IMAGES := \ + wcnss.b00 wcnss.b01 wcnss.b02 wcnss.b04 wcnss.b06 \ + wcnss.b07 wcnss.b08 wcnss.b09 wcnss.mdt + +WCNSS_SYMLINKS := $(addprefix $(TARGET_OUT_VENDOR)/firmware/,$(notdir $(WCNSS_IMAGES))) +$(WCNSS_SYMLINKS): $(LOCAL_INSTALLED_MODULE) + @echo "wcnss firmware link: $@" + @mkdir -p $(dir $@) + @rm -rf $@ + $(hide) ln -sf /firmware/image/$(notdir $@) $@ + +ALL_DEFAULT_INSTALLED_MODULES += $(WCNSS_SYMLINKS) + +# Create a link for the WCNSS config file, which ends up as a writable +# version in /data/misc/wifi +$(shell mkdir -p $(TARGET_OUT)/etc/firmware/wlan/prima; \ + ln -sf /data/misc/wifi/WCNSS_qcom_cfg.ini \ + $(TARGET_OUT)/etc/firmware/wlan/prima/WCNSS_qcom_cfg.ini) + +endif diff --git a/AndroidProducts.mk b/AndroidProducts.mk new file mode 100644 index 0000000..136ed48 --- /dev/null +++ b/AndroidProducts.mk @@ -0,0 +1,17 @@ +# +# Copyright (C) 2018 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_mondrianlte.mk diff --git a/BoardConfig.mk b/BoardConfig.mk new file mode 100644 index 0000000..63c9584 --- /dev/null +++ b/BoardConfig.mk @@ -0,0 +1,30 @@ +# Copyright (C) 2012 The CyanogenMod Project +# Copyright (C) 2017-2019,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 mondrianwifi +include device/samsung/mondrianwifi/BoardConfig.mk + +# HIDL +DEVICE_MANIFEST_FILE += device/samsung/mondrianlte/manifest.xml + +# Legacy BLOB Support +TARGET_PROCESS_SDK_VERSION_OVERRIDE += \ + /system/vendor/bin/hw/rild=27 + +# Properties +TARGET_SYSTEM_PROP += device/samsung/mondrianlte/system.prop + +# inherit from the proprietary version +include vendor/samsung/mondrianlte/BoardConfigVendor.mk diff --git a/audio/audio_effects.xml b/audio/audio_effects.xml new file mode 100644 index 0000000..755a09b --- /dev/null +++ b/audio/audio_effects.xml @@ -0,0 +1,54 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/audio/audio_policy_configuration.xml b/audio/audio_policy_configuration.xml new file mode 100644 index 0000000..e650568 --- /dev/null +++ b/audio/audio_policy_configuration.xml @@ -0,0 +1,208 @@ + + + + + + + + + + + + + + + + + Earpiece + Speaker + Telephony Tx + Built-In Mic + Telephony Rx + + Speaker + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/audio/mixer_paths.xml b/audio/mixer_paths.xml new file mode 100644 index 0000000..a83bc74 --- /dev/null +++ b/audio/mixer_paths.xml @@ -0,0 +1,1348 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/device.mk b/device.mk new file mode 100644 index 0000000..c3197d0 --- /dev/null +++ b/device.mk @@ -0,0 +1,36 @@ +# +# Copyright (C) 2014-2016 The CyanogenMod Project +# Copyright (C) 2017-2018,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. +# + +# Audio +PRODUCT_COPY_FILES += \ + $(LOCAL_PATH)/audio/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \ + $(LOCAL_PATH)/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \ + $(LOCAL_PATH)/audio/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml \ + +# Overlays +DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay + +# 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 + +# Get non-open-source specific aspects +$(call inherit-product, vendor/samsung/mondrianlte/mondrianlte-vendor.mk) + +# mondrianwifi +$(call inherit-product, device/samsung/mondrianwifi/device.mk) diff --git a/lineage_mondrianlte.mk b/lineage_mondrianlte.mk new file mode 100644 index 0000000..3e3e80b --- /dev/null +++ b/lineage_mondrianlte.mk @@ -0,0 +1,40 @@ +# Copyright (C) 2014 The CyanogenMod 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.mk) +$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk) + +# Inherit from mondrianlte device +$(call inherit-product, device/samsung/mondrianlte/device.mk) + +# Inherit some common Lineage stuff. +$(call inherit-product, vendor/lineage/config/common_full_phone.mk) + +# Set those variables here to overwrite the inherited values. +PRODUCT_NAME := lineage_mondrianlte +PRODUCT_DEVICE := mondrianlte +PRODUCT_BRAND := samsung +PRODUCT_MANUFACTURER := samsung +PRODUCT_MODEL := SM-T325 + +PRODUCT_GMS_CLIENTID_BASE := android-samsung + +PRODUCT_BUILD_PROP_OVERRIDES += \ + PRIVATE_BUILD_DESC="mondrianltexx-user 4.4.2 KOT49H T325XXU1BQB2 release-keys" + +# Set BUILD_FINGERPRINT variable to be picked up by both system and vendor build.prop +BUILD_FINGERPRINT := samsung/mondrianltexx/mondrianlte:4.4.2/KOT49H/T325XXU1BQB2:user/release-keys + +TARGET_VENDOR := Samsung diff --git a/manifest.xml b/manifest.xml new file mode 100644 index 0000000..cdb4820 --- /dev/null +++ b/manifest.xml @@ -0,0 +1,24 @@ + + + android.hardware.radio + hwbinder + 1.1 + + IRadio + slot1 + + + ISap + slot1 + + + + android.hardware.radio.deprecated + hwbinder + 1.0 + + IOemHook + slot1 + + + diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml new file mode 100644 index 0000000..15ff0bf --- /dev/null +++ b/overlay/frameworks/base/core/res/res/values/config.xml @@ -0,0 +1,29 @@ + + + + + + + GSM|WCDMA|LTE + diff --git a/system.prop b/system.prop new file mode 100644 index 0000000..d324c49 --- /dev/null +++ b/system.prop @@ -0,0 +1,12 @@ +# Radio +persist.data.netmgrd.qos.enable=true +persist.data.qmi.adb_logmask=0 +persist.qcril.disable_retry=true +rild.libpath=/system/vendor/lib/libril-qc-qmi-1.so +ro.use_data_netmgrd=true +persist.radio.apm_sim_not_pwdn=1 +persist.telephony.oosisdc=false +ril.subscription.types=NV,RUIM +ro.ril.telephony.mqanelements=5 +ro.telephony.default_network=9 +ro.radio.noril=no