├── system.prop ├── README ├── device-proprietary-files.txt ├── superior.dependencies ├── Android.mk ├── AndroidProducts.mk ├── extract-files.sh ├── setup-makefiles.sh ├── init ├── Android.bp └── init_hltekor.cpp ├── superior_hltekor.mk ├── overlay ├── packages │ └── apps │ │ └── CarrierConfig │ │ └── res │ │ └── xml │ │ └── vendor.xml └── frameworks │ └── base │ └── core │ └── res │ └── res │ └── values │ └── config.xml ├── full_hlte.mk ├── BoardConfig.mk └── device.mk /system.prop: -------------------------------------------------------------------------------- 1 | # Radio 2 | ro.telephony.default_network=9 3 | telephony.lteOnGsmDevice=1 4 | -------------------------------------------------------------------------------- /README: -------------------------------------------------------------------------------- 1 | Copyright 2014 - The CyanogenMod Project 2 | 3 | Device configuration for Samsung Galaxy Note 3 (GSM). 4 | -------------------------------------------------------------------------------- /device-proprietary-files.txt: -------------------------------------------------------------------------------- 1 | # Radio - pinned to N900TUVUFQD2_N900TTMBFQD2_TMB 2 | lib/libsec-ril.so:vendor/lib/libsec-ril.so|3008534fba31ebe71f9690afe4bf8786a28cf8c8 3 | -------------------------------------------------------------------------------- /superior.dependencies: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "remote": "github", 4 | "repository": "SuperiorOS-Devices/device_samsung_hlte-common", 5 | "target_path": "device/samsung/hlte-common", 6 | "branch": "ten" 7 | } 8 | ] 9 | -------------------------------------------------------------------------------- /Android.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2014 The Android Open-Source Project 3 | # Copyright (C) 2018 The LineageOS Project 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | 18 | LOCAL_PATH := $(call my-dir) 19 | 20 | ifeq ($(TARGET_DEVICE),hltekor) 21 | include $(call all-subdir-makefiles,$(LOCAL_PATH)) 22 | endif 23 | -------------------------------------------------------------------------------- /AndroidProducts.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2018-2019 The LineageOS Project 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | 16 | PRODUCT_MAKEFILES := \ 17 | $(LOCAL_DIR)/superior_hltekor.mk 18 | 19 | COMMON_LUNCH_CHOICES := \ 20 | superior_hltekor-user \ 21 | superior_hltekor-userdebug \ 22 | superior_hltekor-eng 23 | -------------------------------------------------------------------------------- /extract-files.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # Copyright (C) 2016 The CyanogenMod Project 4 | # Copyright (C) 2017-2018 The LineageOS Project 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | 19 | set -e 20 | 21 | export DEVICE=hltekor 22 | export DEVICE_COMMON=hlte-common 23 | export VARIANT_COPYRIGHT_YEAR=2018 24 | export VENDOR=samsung 25 | 26 | ./../$DEVICE_COMMON/extract-files.sh $@ 27 | -------------------------------------------------------------------------------- /setup-makefiles.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # Copyright (C) 2016 The CyanogenMod Project 4 | # Copyright (C) 2017-2018 The LineageOS Project 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | 19 | set -e 20 | 21 | export DEVICE=hltekor 22 | export DEVICE_COMMON=hlte-common 23 | export VARIANT_COPYRIGHT_YEAR=2018 24 | export VENDOR=samsung 25 | 26 | ./../$DEVICE_COMMON/setup-makefiles.sh $@ 27 | -------------------------------------------------------------------------------- /init/Android.bp: -------------------------------------------------------------------------------- 1 | // 2 | // Copyright (C) 2019 The LineageOS Project 3 | // 4 | // Licensed under the Apache License, Version 2.0 (the "License"); 5 | // you may not use this file except in compliance with the License. 6 | // You may obtain a copy of the License at 7 | // 8 | // http://www.apache.org/licenses/LICENSE-2.0 9 | // 10 | // Unless required by applicable law or agreed to in writing, software 11 | // distributed under the License is distributed on an "AS IS" BASIS, 12 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | // See the License for the specific language governing permissions and 14 | // limitations under the License. 15 | // 16 | 17 | cc_library_static { 18 | name: "libinit_hltekor", 19 | recovery_available: true, 20 | srcs: ["init_hltekor.cpp"], 21 | whole_static_libs: ["libbase"], 22 | include_dirs: [ 23 | "system/core/base/include", 24 | "system/core/init" 25 | ] 26 | } 27 | -------------------------------------------------------------------------------- /superior_hltekor.mk: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2013-2016 The CyanogenMod Project 2 | # Copyright (C) 2017-2018 The LineageOS Project 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | 16 | # Inherit some common LineageOS stuff. 17 | $(call inherit-product, vendor/superior/config/common.mk) 18 | 19 | $(call inherit-product, device/samsung/hltekor/full_hlte.mk) 20 | 21 | PRODUCT_DEVICE := hltekor 22 | PRODUCT_NAME := superior_hltekor 23 | -------------------------------------------------------------------------------- /overlay/packages/apps/CarrierConfig/res/xml/vendor.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /full_hlte.mk: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2014 The CyanogenMod Project 2 | # Copyright (C) 2018 The CyanogenMod Project 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | 16 | # Inherit from those products. Most specific first. 17 | $(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk) 18 | 19 | # Inherit from hltekor device 20 | $(call inherit-product, device/samsung/hltekor/device.mk) 21 | 22 | # Set those variables here to overwrite the inherited values. 23 | PRODUCT_NAME := full_hltekor 24 | PRODUCT_DEVICE := hltekor 25 | PRODUCT_BRAND := samsung 26 | PRODUCT_MANUFACTURER := samsung 27 | PRODUCT_MODEL := hltekor 28 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 23 | 24 | 28 | GSM|WCDMA|LTE 29 | 30 | -------------------------------------------------------------------------------- /BoardConfig.mk: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2014-2016 The CyanogenMod Project 2 | # Copyright (C) 2017-2018 The LineageOS Project 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | 16 | # inherit from common hlte 17 | include device/samsung/hlte-common/BoardConfigCommon.mk 18 | 19 | TARGET_OTA_ASSERT_DEVICE := hlte,hltekor,hltektt,hltelgt,hlteskt 20 | 21 | # Init 22 | TARGET_INIT_VENDOR_LIB := libinit_hltekor 23 | TARGET_RECOVERY_DEVICE_MODULES := libinit_hltekor 24 | 25 | # Kernel 26 | TARGET_KERNEL_CONFIG := lineage_hltekor_defconfig 27 | 28 | # NFC 29 | include $(COMMON_PATH)/nfc/bcm2079x/board.mk 30 | 31 | # Properties 32 | TARGET_SYSTEM_PROP += device/samsung/hltekor/system.prop 33 | 34 | # Radio/RIL 35 | include $(COMMON_PATH)/radio/single/board.mk 36 | 37 | # inherit from the proprietary version 38 | -include vendor/samsung/hltekor/BoardConfigVendor.mk 39 | -------------------------------------------------------------------------------- /device.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2014-2016 The CyanogenMod Project 3 | # Copyright (C) 2018 The LineageOS Project 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | 18 | $(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk) 19 | 20 | # Get non-open-source specific aspects 21 | $(call inherit-product-if-exists, vendor/samsung/hltekor/hltekor-vendor.mk) 22 | 23 | # Permissions 24 | PRODUCT_COPY_FILES += \ 25 | frameworks/native/data/etc/android.hardware.nfc.xml:system/etc/permissions/android.hardware.nfc.xml \ 26 | frameworks/native/data/etc/android.hardware.nfc.hce.xml:system/etc/permissions/android.hardware.nfc.hce.xml 27 | # frameworks/native/data/etc/com.android.nfc_extras.xml:system/etc/permissions/com.android.nfc_extras.xml 28 | 29 | # Overlays 30 | DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay 31 | 32 | # NFC 33 | $(call inherit-product, device/samsung/hlte-common/nfc/bcm2079x/product.mk) 34 | 35 | # Common hlte 36 | $(call inherit-product, device/samsung/hlte-common/hlte.mk) 37 | -------------------------------------------------------------------------------- /init/init_hltekor.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2013, The Linux Foundation. All rights reserved. 3 | Copyright (c) 2017-2019, The LineageOS Project. All rights reserved. 4 | 5 | Redistribution and use in source and binary forms, with or without 6 | modification, are permitted provided that the following conditions are 7 | met: 8 | * Redistributions of source code must retain the above copyright 9 | notice, this list of conditions and the following disclaimer. 10 | * Redistributions in binary form must reproduce the above 11 | copyright notice, this list of conditions and the following 12 | disclaimer in the documentation and/or other materials provided 13 | with the distribution. 14 | * Neither the name of The Linux Foundation nor the names of its 15 | contributors may be used to endorse or promote products derived 16 | from this software without specific prior written permission. 17 | 18 | THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED 19 | WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 20 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT 21 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS 22 | BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 23 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 24 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 25 | BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 26 | WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE 27 | OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN 28 | IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | */ 30 | 31 | 32 | #include 33 | #include 34 | #include 35 | #include 36 | #include 37 | #include 38 | 39 | #include 40 | #include 41 | #include 42 | #include 43 | 44 | #define _REALLY_INCLUDE_SYS__SYSTEM_PROPERTIES_H_ 45 | #include 46 | 47 | #include "property_service.h" 48 | #include "vendor_init.h" 49 | 50 | using android::base::GetProperty; 51 | using android::init::property_set; 52 | 53 | // copied from build/tools/releasetools/ota_from_target_files.py 54 | // but with "." at the end and empty entry 55 | std::vector ro_product_props_default_source_order = { 56 | ".", 57 | "product.", 58 | "product_services.", 59 | "odm.", 60 | "vendor.", 61 | "system.", 62 | }; 63 | 64 | void property_override(char const prop[], char const value[], bool add = true) 65 | { 66 | auto pi = (prop_info *) __system_property_find(prop); 67 | 68 | if (pi != nullptr) { 69 | __system_property_update(pi, value, strlen(value)); 70 | } else if (add) { 71 | __system_property_add(prop, strlen(prop), value, strlen(value)); 72 | } 73 | } 74 | 75 | void vendor_load_properties() { 76 | 77 | std::string bootloader = GetProperty("ro.bootloader", ""); 78 | 79 | const auto set_ro_product_prop = [](const std::string &source, 80 | const std::string &prop, const std::string &value) { 81 | auto prop_name = "ro.product." + source + prop; 82 | property_override(prop_name.c_str(), value.c_str(), false); 83 | }; 84 | 85 | if (bootloader.find("N900K") == 0) { 86 | /* hltektt - KT Corp (formerly Korea Telecom) */ 87 | for (const auto &source : ro_product_props_default_source_order) { 88 | set_ro_product_prop(source, "fingerprint", "samsung/hltektt/hltektt:5.0/LRX21V/N900KKKU0GOC4:user/release-keys"); 89 | set_ro_product_prop(source, "device", "hltektt"); 90 | set_ro_product_prop(source, "model", "SM-N900K"); 91 | } 92 | property_override("ro.build.description", "hltektt-user 5.0 LRX21V N900KKKU0GOC4 release-keys"); 93 | } else if (bootloader.find("N900L") == 0) { 94 | /* hltelgt - LG Uplus */ 95 | for (const auto &source : ro_product_props_default_source_order) { 96 | set_ro_product_prop(source, "fingerprint", "samsung/hltelgt/hltelgt:5.0/LRX21V/N900LKLU0GPI1:user/release-keys"); 97 | set_ro_product_prop(source, "device", "hltelgt"); 98 | set_ro_product_prop(source, "model", "SM-N900L"); 99 | } 100 | property_override("ro.build.description", "hltelgt-user 5.0 LRX21V N900LKLU0GPI1 release-keys"); 101 | } else if (bootloader.find("N900S") == 0) { 102 | /* hlteskt - SK Telecom */ 103 | for (const auto &source : ro_product_props_default_source_order) { 104 | set_ro_product_prop(source, "fingerprint", "samsung/hlteskt/hlteskt:5.0/LRX21V/N900SKSU0GPI1:user/release-keys"); 105 | set_ro_product_prop(source, "device", "hlteskt"); 106 | set_ro_product_prop(source, "model", "SM-N900S"); 107 | } 108 | property_override("ro.build.description", "hlteskt-user 5.0 LRX21V N900SKSU0GPI1 release-keys"); 109 | } 110 | 111 | std::string device = GetProperty("ro.product.device", ""); 112 | LOG(ERROR) << "Found bootloader id " << bootloader << " setting build properties for " 113 | << device << " device" << std::endl; 114 | } 115 | --------------------------------------------------------------------------------