├── superior.dependencies ├── AndroidProducts.mk ├── device.mk ├── BoardConfig.mk ├── Android.mk ├── setup-makefiles.sh ├── superior_greatlte.mk ├── extract-files.sh ├── overlay └── frameworks │ └── base │ └── core │ └── res │ └── res │ └── xml │ └── power_profile.xml └── proprietary-files.txt /superior.dependencies: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "repository": "android_device_samsung_universal8895-common", 4 | "target_path": "device/samsung/universal8895-common" 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /AndroidProducts.mk: -------------------------------------------------------------------------------- 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 | PRODUCT_MAKEFILES := \ 17 | $(LOCAL_DIR)/superior_greatlte.mk 18 | COMMON_LUNCH_CHOICES := \ 19 | superior_greatlte-userdebug 20 | -------------------------------------------------------------------------------- /device.mk: -------------------------------------------------------------------------------- 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 | DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay 18 | 19 | # Inherit from common 20 | $(call inherit-product, device/samsung/universal8895-common/device-common.mk) 21 | 22 | $(call inherit-product-if-exists, vendor/samsung/greatlte/greatlte-vendor.mk) 23 | 24 | # Bootanimation Resolution 25 | TARGET_SCREEN_HEIGHT := 2960 26 | TARGET_SCREEN_WIDTH := 1440 27 | -------------------------------------------------------------------------------- /BoardConfig.mk: -------------------------------------------------------------------------------- 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 | # inherit from common 17 | -include device/samsung/universal8895-common/BoardConfigCommon.mk 18 | 19 | DEVICE_PATH := device/samsung/greatlte 20 | 21 | # Assert 22 | TARGET_OTA_ASSERT_DEVICE := greatlte 23 | 24 | # Kernel 25 | TARGET_KERNEL_CONFIG := exynos8895-greatlte_defconfig 26 | 27 | # inherit from the proprietary version 28 | -include vendor/samsung/greatlte/BoardConfigVendor.mk 29 | -------------------------------------------------------------------------------- /Android.mk: -------------------------------------------------------------------------------- 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 | # WARNING: Everything listed here will be built on ALL platforms, 17 | # including x86, the emulator, and the SDK. Modules must be uniquely 18 | # named (liblights.tuna), and must build everywhere, or limit themselves 19 | # to only building on ARM if they include assembly. Individual makefiles 20 | # are responsible for having their own logic, for fine-grained control. 21 | 22 | LOCAL_PATH := $(call my-dir) 23 | 24 | ifeq ($(TARGET_DEVICE),greatlte) 25 | 26 | include $(call all-makefiles-under,$(LOCAL_PATH)) 27 | 28 | endif 29 | -------------------------------------------------------------------------------- /setup-makefiles.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # Copyright (C) 2017-2019 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 | set -e 19 | 20 | VENDOR=samsung 21 | DEVICE=greatlte 22 | 23 | export INITIAL_COPYRIGHT_YEAR=2017 24 | 25 | # Load extract_utils and do some sanity checks 26 | MY_DIR="${BASH_SOURCE%/*}" 27 | if [[ ! -d "${MY_DIR}" ]]; then MY_DIR="${PWD}"; fi 28 | 29 | LINEAGE_ROOT="${MY_DIR}/../../.." 30 | 31 | HELPER="${LINEAGE_ROOT}/vendor/lineage/build/tools/extract_utils.sh" 32 | if [ ! -f "${HELPER}" ]; then 33 | echo "Unable to find helper script at ${HELPER}" 34 | exit 1 35 | fi 36 | source "${HELPER}" 37 | 38 | # Initialize the helper 39 | setup_vendor "${DEVICE}" "${VENDOR}" "${LINEAGE_ROOT}" 40 | 41 | # Copyright headers and guards 42 | write_headers "greatlte" 43 | 44 | # The standard blobs 45 | write_makefiles "${MY_DIR}/proprietary-files.txt" true 46 | 47 | # Finish 48 | write_footers 49 | -------------------------------------------------------------------------------- /superior_greatlte.mk: -------------------------------------------------------------------------------- 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 | # Inherit from those products. Most specific first. 18 | $(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk) 19 | $(call inherit-product, $(SRC_TARGET_DIR)/product/full_base.mk) 20 | 21 | # Inherit from greatlte device 22 | $(call inherit-product, device/samsung/greatlte/device.mk) 23 | $(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk) 24 | 25 | # Inherit some common SuperiorOS stuff. 26 | $(call inherit-product, vendor/superior/config/common.mk) 27 | 28 | export SUPERIOR_OFFICIAL = true 29 | 30 | #Maintainer 31 | PRODUCT_PROPERTY_OVERRIDES += \ 32 | ro.superior.maintainer=HaSSaN 33 | 34 | export ALLOW_MISSING_DEPENDENCIES = true 35 | 36 | # Bootanimation Resolution 37 | TARGET_BOOT_ANIMATION_RES := 1440 38 | 39 | # Device identifier. This must come after all inclusions 40 | PRODUCT_DEVICE := greatlte 41 | PRODUCT_NAME := superior_greatlte 42 | PRODUCT_BRAND := samsung 43 | PRODUCT_MODEL := SM-N950F 44 | PRODUCT_MANUFACTURER := samsung 45 | 46 | PRODUCT_GMS_CLIENTID_BASE := android-samsung 47 | 48 | # Use the latest approved GMS identifiers 49 | PRODUCT_BUILD_PROP_OVERRIDES += \ 50 | PRODUCT_NAME=greatltexx \ 51 | PRIVATE_BUILD_DESC="greatltexx-user 8.0.0 R16NW N950FXXU3CRC1 release-keys" 52 | 53 | BUILD_FINGERPRINT := samsung/greatltexx/dreamlte:8.0.0/R16NW/N950FXXU3CRC1:user/release-keys 54 | 55 | # Launcher 56 | TARGET_LAUNCHER := oplauncher 57 | -------------------------------------------------------------------------------- /extract-files.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # Copyright (C) 2018-2019 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 | set -e 19 | 20 | VENDOR=samsung 21 | DEVICE=greatlte 22 | 23 | # Load extract_utils and do some sanity checks 24 | MY_DIR="${BASH_SOURCE%/*}" 25 | if [[ ! -d "${MY_DIR}" ]]; then MY_DIR="${PWD}"; fi 26 | 27 | LINEAGE_ROOT="${MY_DIR}"/../../.. 28 | 29 | HELPER="${LINEAGE_ROOT}/vendor/lineage/build/tools/extract_utils.sh" 30 | if [ ! -f "${HELPER}" ]; then 31 | echo "Unable to find helper script at ${HELPER}" 32 | exit 1 33 | fi 34 | source "${HELPER}" 35 | 36 | SECTION= 37 | KANG= 38 | 39 | while [ "${#}" -gt 0 ]; do 40 | case "${1}" in 41 | -n | --no-cleanup ) 42 | CLEAN_VENDOR=false 43 | ;; 44 | -k | --kang ) 45 | KANG="--kang" 46 | ;; 47 | -s | --section ) 48 | SECTION="${2}"; shift 49 | CLEAN_VENDOR=false 50 | ;; 51 | * ) 52 | SRC="${1}" 53 | ;; 54 | esac 55 | shift 56 | done 57 | 58 | if [ -z "${SRC}" ]; then 59 | SRC="adb" 60 | fi 61 | 62 | # Initialize the helper 63 | setup_vendor "${DEVICE}" "${VENDOR}" "${LINEAGE_ROOT}" true "${CLEAN_VENDOR}" 64 | 65 | extract "${MY_DIR}/proprietary-files.txt" "${SRC}" \ 66 | "${KANG}" --section "${SECTION}" 67 | 68 | # Fix proprietary blobs 69 | BLOB_ROOT="$LINEAGE_ROOT"/vendor/"$VENDOR"/"$DEVICE"/proprietary 70 | function patch_firmware() { 71 | hexdump -ve '1/1 "%.2X"' $1 | \ 72 | sed "s/40000054DEC0AD/02000014000000/g" | \ 73 | xxd -r -p > $1.patched 74 | 75 | mv $1.patched $1 76 | } 77 | 78 | # remove RKP crap 79 | patch_firmware $BLOB_ROOT/vendor/firmware/fimc_is_lib.bin 80 | patch_firmware $BLOB_ROOT/vendor/firmware/fimc_is_rta_2l2_3h1.bin 81 | patch_firmware $BLOB_ROOT/vendor/firmware/fimc_is_rta_2l2_imx320.bin 82 | patch_firmware $BLOB_ROOT/vendor/firmware/fimc_is_rta_imx333_3h1.bin 83 | patch_firmware $BLOB_ROOT/vendor/firmware/fimc_is_rta_imx333_imx320.bin 84 | 85 | "${MY_DIR}/setup-makefiles.sh" 86 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/xml/power_profile.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 0 4 | 52 5 | 270 6 | 122 7 | 0.5 8 | 0.29 9 | 699 10 | 292 11 | 40 12 | 196 13 | 66.21 14 | 616 15 | 177 16 | 132 17 | 61.4 18 | 19 | 6.82 20 | 6.82 21 | 22 | 23 | 4 24 | 4 25 | 26 | 27 | 98 28 | 92 29 | 85 30 | 75 31 | 67 32 | 57 33 | 53 34 | 50 35 | 47 36 | 43 37 | 39 38 | 34 39 | 40 | 41 | 1586000 42 | 1482000 43 | 1378000 44 | 1274000 45 | 1170000 46 | 1066000 47 | 962000 48 | 858000 49 | 754000 50 | 650000 51 | 546000 52 | 442000 53 | 54 | 55 | 832 56 | 745 57 | 681 58 | 628 59 | 556 60 | 508 61 | 459 62 | 404 63 | 370 64 | 334 65 | 303 66 | 278 67 | 249 68 | 225 69 | 215 70 | 197 71 | 182 72 | 168 73 | 164 74 | 160 75 | 155 76 | 77 | 78 | 2600000 79 | 2496000 80 | 2392000 81 | 2288000 82 | 2184000 83 | 2080000 84 | 1976000 85 | 1872000 86 | 1768000 87 | 1664000 88 | 1560000 89 | 1456000 90 | 1352000 91 | 1248000 92 | 1144000 93 | 1040000 94 | 936000 95 | 832000 96 | 728000 97 | 624000 98 | 520000 99 | 100 | 4.4 101 | 22 102 | 3300 103 | 104 | .0002 105 | .002 106 | .02 107 | .2 108 | 2 109 | 110 | 111 | -------------------------------------------------------------------------------- /proprietary-files.txt: -------------------------------------------------------------------------------- 1 | # Camera 2 | lib/hw/camera.universal8895.so 3 | lib/libFacePreProcessing.camera.samsung.so 4 | lib/libFacePreProcessing_jni.camera.samsung.so 5 | lib/libFacialBasedSelfieCorrection.camera.samsung.so 6 | lib/libIDDQD_core.so 7 | lib/libIDDQD_interface.so 8 | lib/libblurdetection.so 9 | lib/libblurdetection_interface.so 10 | lib/libexynoscamera.so 11 | lib/libexynoscamera3.so 12 | lib/libfocuspeaking.so 13 | lib/libfocuspeaking_interface.so 14 | lib/libhifills_interface.so 15 | lib/libhwjpeg.so 16 | lib/libsensorlistener.so 17 | lib/libsmartfocus_interface.so 18 | lib/libsmartfocusengine.so 19 | lib/libuniapi.so 20 | lib/libuniplugin.so 21 | lib64/hw/camera.universal8895.so 22 | lib64/libIDDQD_core.so 23 | lib64/libIDDQD_interface.so 24 | lib64/libblurdetection.so 25 | lib64/libblurdetection_interface.so 26 | lib64/libexynoscamera.so 27 | lib64/libexynoscamera3.so 28 | lib64/libfocuspeaking.so 29 | lib64/libfocuspeaking_interface.so 30 | lib64/libhifills_interface.so 31 | lib64/libhwjpeg.so 32 | lib64/libsensorlistener.so 33 | lib64/libsmartfocus_interface.so 34 | lib64/libsmartfocusengine.so 35 | lib64/libuniapi.so 36 | lib64/libuniplugin.so 37 | vendor/etc/snap_gpu_kernel_32.bin 38 | vendor/etc/snap_gpu_kernel_64.bin 39 | vendor/lib/libDLInterface.camera.samsung.so 40 | vendor/lib/libOpenCv.camera.samsung.so 41 | vendor/lib/libhifistill.so 42 | vendor/lib/libhifistill_tuning.so 43 | vendor/lib/libhumantracking_util.camera.samsung.so 44 | vendor/lib/libiva_android_hal.so 45 | vendor/lib/libopenvx.so 46 | vendor/lib/libsmart_cropping.camera.samsung.so 47 | vendor/lib/libsnap_caffe.so 48 | vendor/lib/libsnap_caffe_wrapper.so 49 | vendor/lib/libsnap_compute.so 50 | vendor/lib/libsnap_compute_wrapper.so 51 | vendor/lib/libsnap_vndk.so 52 | vendor/lib/libsomp.camera.samsung.so 53 | vendor/lib/libvxu.so 54 | vendor/lib/libxcv.camera.samsung.so 55 | vendor/lib64/libDLInterface.camera.samsung.so 56 | vendor/lib64/libOpenCv.camera.samsung.so 57 | vendor/lib64/libhifistill.so 58 | vendor/lib64/libhifistill_tuning.so 59 | vendor/lib64/libhumantracking_util.camera.samsung.so 60 | vendor/lib64/libiva_android_hal.so 61 | vendor/lib64/libopenvx.so 62 | vendor/lib64/libsmart_cropping.camera.samsung.so 63 | vendor/lib64/libsnap_caffe.so 64 | vendor/lib64/libsnap_caffe_wrapper.so 65 | vendor/lib64/libsnap_compute.so 66 | vendor/lib64/libsnap_compute_wrapper.so 67 | vendor/lib64/libsnap_vndk.so 68 | vendor/lib64/libsomp.camera.samsung.so 69 | vendor/lib64/libvxu.so 70 | vendor/lib64/libxcv.camera.samsung.so 71 | 72 | # RIL 73 | lib/libsecril-client.so 74 | lib64/libsecril-client.so 75 | 76 | # Firmware 77 | vendor/etc/plmn_delta.bin 78 | vendor/etc/plmn_delta_attaio.bin 79 | vendor/etc/plmn_delta_usacdma.bin 80 | vendor/etc/plmn_delta_usagsm.bin 81 | vendor/etc/plmn_se13.bin 82 | vendor/firmware/APBargeIn_AUDIO_SLSI.bin 83 | vendor/firmware/APBiBF_AUDIO_SLSI.bin 84 | vendor/firmware/AP_AUDIO_SLSI.bin 85 | vendor/firmware/SoundBoosterParam.bin 86 | vendor/firmware/bcm4361B0_murata.hcd 87 | vendor/firmware/bcm4361B0_semco.hcd 88 | vendor/firmware/calliope_dram.bin 89 | vendor/firmware/calliope_iva.bin 90 | vendor/firmware/calliope_sram.bin 91 | vendor/firmware/companion_2l2_master_setfile.bin 92 | vendor/firmware/companion_2l2_mode_setfile.bin 93 | vendor/firmware/companion_fw_2l2_3h1.bin 94 | vendor/firmware/companion_fw_2l2_imx320.bin 95 | vendor/firmware/companion_fw_imx333_3h1.bin 96 | vendor/firmware/companion_fw_imx333_imx320.bin 97 | vendor/firmware/companion_imx333_master_setfile.bin 98 | vendor/firmware/companion_imx333_mode_setfile.bin 99 | vendor/firmware/dsm.bin 100 | vendor/firmware/dsm_tune.bin 101 | vendor/firmware/fimc_is_lib.bin 102 | vendor/firmware/fimc_is_rta_2l2_3h1.bin 103 | vendor/firmware/fimc_is_rta_2l2_imx320.bin 104 | vendor/firmware/fimc_is_rta_imx333_3h1.bin 105 | vendor/firmware/fimc_is_rta_imx333_imx320.bin 106 | vendor/firmware/iva10_rt-kangchen.bin 107 | vendor/firmware/mfc_fw.bin 108 | vendor/firmware/nfc/sec_s3nrn82_firmware.bin 109 | vendor/firmware/ois_fw_dom.bin 110 | vendor/firmware/ois_fw_sec.bin 111 | vendor/firmware/score_fw_dmb0.bin 112 | vendor/firmware/score_fw_dmb1.bin 113 | vendor/firmware/score_fw_pmw0.bin 114 | vendor/firmware/score_fw_pmw1.bin 115 | vendor/firmware/setfile_2l2.bin 116 | vendor/firmware/setfile_3h1.bin 117 | vendor/firmware/setfile_3m3.bin 118 | vendor/firmware/setfile_imx320.bin 119 | vendor/firmware/setfile_imx333.bin 120 | vendor/firmware/vts.bin 121 | --------------------------------------------------------------------------------