From b6e7dc0e61cf19821240d2683ffbd900c7ca77b8 Mon Sep 17 00:00:00 2001 From: Talmid of Levi Date: Tue, 12 Dec 2023 10:03:16 -0500 Subject: [PATCH] trying out to add these to Lineage build --- Android.mk | 9 +++++++++ Lineage.mk | 18 ++++++++++++++++++ device.mk | 40 ++++++++++++++++++++++++++++++++++++++++ system.prop | 18 ++++++++++++++++++ 4 files changed, 85 insertions(+) create mode 100644 Android.mk create mode 100644 Lineage.mk create mode 100644 device.mk create mode 100644 system.prop diff --git a/Android.mk b/Android.mk new file mode 100644 index 0000000..5799523 --- /dev/null +++ b/Android.mk @@ -0,0 +1,9 @@ +# Here we define a variable called "LOCAL_PATH" that just contain the path to the device tree (ex: /device/samsung/a3xeltexx) +LOCAL_PATH := $(call my-dir) + +# Here we call other makefiles in the device-tree +include $(call all-subdir-makefiles,$(LOCAL_PATH)) + +# Here we clean variables +include $(CLEAR_VARS) + diff --git a/Lineage.mk b/Lineage.mk new file mode 100644 index 0000000..6823bdd --- /dev/null +++ b/Lineage.mk @@ -0,0 +1,18 @@ +# Note: the lineage.mk can also be called slim.mk, pa.mk, aoscp.mk, etc... +# Depending on the ROM to build. LineageOS based roms will use lineage.mk + +# Inherit device configuration +#$(call inherit-product, device/isamsung/a3xeltexx/device.mk) + +# Inherit from the common Open Source product configuration +$(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_base_telephony.mk) + +# Inherit common CM phone. +$(call inherit-product, vendor/cm/config/common_full_phone.mk) + +PRODUCT_NAME := cats22flip_jnsw +PRODUCT_DEVICE := tdgsi_a64_ab +PRODUCT_BRAND := wePhone +PRODUCT_SYSTEM_BRAND := wePhone +PRODUCT_MODEL := weOs | v14.1 | jnsw + diff --git a/device.mk b/device.mk new file mode 100644 index 0000000..af5cbb8 --- /dev/null +++ b/device.mk @@ -0,0 +1,40 @@ +SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS += device/phh/cats22flip/sepolicy + +PRODUCT_SYSTEM_PROPERTIES += \ + ro.system.ota.json_url=https://ota.mezimmah.net/ota.json \ + persist.sys.phh.mainkeys=0 \ + ro.sf.lcd_density=200 \ + ro.telephony.default_network=9 \ + persist.dbg.vt_avail_ovr=1 \ + persist.dbg.volte_avail_ovr=1 \ + persist.dbg.wfc_avail_ovr=1 \ + persist.dbg.allow_ims_off=1 + +PRODUCT_PACKAGE_OVERLAYS += device/phh/cats22flip/overlay + +PRODUCT_COPY_FILES += \ + device/phh/cats22flip/files/qpnp_pon.kl:$(TARGET_COPY_OUT_SYSTEM)/usr/keylayout/qpnp_pon.kl \ + device/phh/cats22flip/files/soc_matrix_keypad.kl:$(TARGET_COPY_OUT_SYSTEM)/usr/keylayout/soc_matrix_keypad.kl \ + device/phh/cats22flip/files/soc_matrix_keypad.kcm:$(TARGET_COPY_OUT_SYSTEM)/usr/keychars/soc_matrix_keypad.kcm + +PRODUCT_PACKAGES += \ + BromiteSystemWebView \ + DeskClock \ + Etar \ + ExactCalculator \ + Gallery2 \ + Davx5 \ + OpenDocumentReader \ + Wireguard \ + WKT9 \ + Linphone \ + Nextcloud \ + NextcloudNotes \ + Conversations \ + CatFlipScreen \ + ImsMtkR + +PRODUCT_COPY_FILES += \ + device/phh/cats22flip/wephone.rc:system/etc/init/wephone.rc \ + device/phh/cats22flip/wephone.sh:system/bin/wephone.sh \ + device/phh/cats22flip/catscreen.sh:system/bin/catscreen.sh diff --git a/system.prop b/system.prop new file mode 100644 index 0000000..60409fa --- /dev/null +++ b/system.prop @@ -0,0 +1,18 @@ +# url for the updates +ro.system.ota.json_url=https://ota.mezimmah.net/ota.json + +# ? +persist.sys.phh.mainkeys=0 + +# Screen density +ro.sf.lcd_density=200 + +# Connect to LTE +ro.telephony.default_network=9 + +# Used for the IME +persist.dbg.vt_avail_ovr=1 +persist.dbg.volte_avail_ovr=1 +persist.dbg.wfc_avail_ovr=1 +persist.dbg.allow_ims_off=1 +