├── Android.mk ├── BoardConfigCommon.mk ├── README ├── lineage.dependencies ├── overlay ├── frameworks │ └── base │ │ └── core │ │ └── res │ │ └── res │ │ ├── values-mcc310-mnc120 │ │ ├── config.xml │ │ └── strings.xml │ │ ├── values-mcc310-mnc260 │ │ └── config.xml │ │ ├── values-mcc311-mnc220 │ │ └── config.xml │ │ ├── values-mcc311-mnc225 │ │ └── config.xml │ │ ├── values-mcc311-mnc490 │ │ └── integers.xml │ │ ├── values-mcc311-mnc580 │ │ └── config.xml │ │ ├── values-mcc311-mnc870 │ │ └── integers.xml │ │ ├── values-mcc440-mnc07 │ │ └── config.xml │ │ └── values │ │ ├── config.xml │ │ └── strings.xml ├── lineage-sdk │ └── lineage │ │ └── res │ │ └── res │ │ └── values │ │ └── config.xml └── packages │ ├── apps │ └── Contacts │ │ └── res │ │ ├── values-mcc310-mnc010 │ │ └── donottranslate_config.xml │ │ ├── values-mcc310-mnc120 │ │ └── donottranslate_config.xml │ │ ├── values-mcc311-mnc490 │ │ └── donottranslate_config.xml │ │ └── values-mcc311-mnc870 │ │ └── donottranslate_config.xml │ └── services │ └── Telephony │ └── res │ └── values-mcc310-mnc120 │ └── system_select.xml ├── qcom-common.mk └── recovery └── root └── system └── bin └── postrecoveryboot.sh /Android.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2012 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 | 17 | # WARNING: Everything listed here will be built on ALL platforms, 18 | # including x86, the emulator, and the SDK. Modules must be uniquely 19 | # named (liblights.tuna), and must build everywhere, or limit themselves 20 | # to only building on ARM if they include assembly. Individual makefiles 21 | # are responsible for having their own logic, for fine-grained control. 22 | 23 | LOCAL_PATH := $(call my-dir) 24 | 25 | ifeq ($(BOARD_VENDOR),samsung) 26 | ifeq ($(call is-board-platform-in-list,apq8084 msm8226 msm8660 msm8916 msm8960 msm8974),true) 27 | include $(call all-makefiles-under,$(LOCAL_PATH)) 28 | endif 29 | endif 30 | 31 | -------------------------------------------------------------------------------- /BoardConfigCommon.mk: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2012 The CyanogenMod Project 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | BOARD_VENDOR := samsung 16 | 17 | # Bootloader 18 | TARGET_NO_BOOTLOADER := true 19 | 20 | # Architecture 21 | TARGET_ARCH := arm 22 | TARGET_CPU_ABI := armeabi-v7a 23 | TARGET_CPU_ABI2 := armeabi 24 | TARGET_ARCH_VARIANT := armv7-a-neon 25 | 26 | # Graphics 27 | TARGET_USES_C2D_COMPOSITION := true 28 | TARGET_USES_ION := true 29 | # Qualcomm support 30 | BOARD_USES_QCOM_HARDWARE := true 31 | 32 | # Recovery 33 | TARGET_RECOVERY_DEVICE_DIRS += device/samsung/qcom-common 34 | TARGET_RECOVERY_PIXEL_FORMAT := "RGBX_8888" 35 | BOARD_HAS_DOWNLOAD_MODE := true 36 | -------------------------------------------------------------------------------- /README: -------------------------------------------------------------------------------- 1 | Copyright (C) 2012-2016, The CyanogenMod Project 2 | Copyright (C) 2017, The LineageOS Project 3 | 4 | Common configurations for Samsung devices on Qualcomm chipsets 5 | -------------------------------------------------------------------------------- /lineage.dependencies: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "repository": "android_hardware_samsung", 4 | "target_path": "hardware/samsung" 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-mcc310-mnc120/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | 24 | 26 | 27 | 28 | true 29 | 30 | 31 | true 32 | 33 | 35 | false 36 | 37 | 42 | true 43 | 44 | 49 | 6 50 | 51 | 52 | 4 53 | 54 | 55 | 51200 56 | 57 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-mcc310-mnc120/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 22 | 23 | 24 | 25 | Digital Roaming 26 | Sprint 27 | Digital Roaming 28 | 29 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-mcc310-mnc260/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | 24 | 28 | 29 | T-Mobile Tethering,pcweb.tmobile.com,,,,,,,,,310,260,,DUN 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-mcc311-mnc220/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | 24 | 26 | false 27 | 28 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-mcc311-mnc225/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | 24 | 26 | false 27 | 28 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-mcc311-mnc490/integers.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 1422 4 | 5 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-mcc311-mnc580/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | 24 | 26 | false 27 | 28 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-mcc311-mnc870/integers.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 1422 4 | 5 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-mcc440-mnc07/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | 24 | 7 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 21 | 22 | 24 | true 25 | 26 | 27 | true 28 | 29 | 30 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 21 | Network Extender 22 | 23 | -------------------------------------------------------------------------------- /overlay/lineage-sdk/lineage/res/res/values/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | restart 6 | restart_recovery 7 | restart_download 8 | 9 | 10 | -------------------------------------------------------------------------------- /overlay/packages/apps/Contacts/res/values-mcc310-mnc010/donottranslate_config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 21 | 25 | false 26 | 27 | -------------------------------------------------------------------------------- /overlay/packages/apps/Contacts/res/values-mcc310-mnc120/donottranslate_config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 21 | 25 | false 26 | 27 | -------------------------------------------------------------------------------- /overlay/packages/apps/Contacts/res/values-mcc311-mnc490/donottranslate_config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 21 | 25 | false 26 | 27 | -------------------------------------------------------------------------------- /overlay/packages/apps/Contacts/res/values-mcc311-mnc870/donottranslate_config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 21 | 25 | false 26 | 27 | -------------------------------------------------------------------------------- /overlay/packages/services/Telephony/res/values-mcc310-mnc120/system_select.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Home only 6 | 7 | 8 | 9 | 10 | Auto: Domestic Roaming 11 | Auto: International Roaming 12 | Auto: Domestic & International 13 | Auto: No Roaming 14 | 15 | 16 | 17 | "0" 18 | "5" 19 | "6" 20 | "7" 21 | "8" 22 | 23 | 24 | -------------------------------------------------------------------------------- /qcom-common.mk: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2012 The CyanogenMod Project 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | # Overlay 16 | DEVICE_PACKAGE_OVERLAYS += \ 17 | device/samsung/qcom-common/overlay 18 | 19 | PRODUCT_PROPERTY_OVERRIDES += \ 20 | debug.sf.hw=1 \ 21 | debug.mdpcomp.logs=0 \ 22 | persist.hwc.mdpcomp.enable=true 23 | 24 | PRODUCT_PROPERTY_OVERRIDES += \ 25 | ro.telephony.call_ring.multiple=0 26 | -------------------------------------------------------------------------------- /recovery/root/system/bin/postrecoveryboot.sh: -------------------------------------------------------------------------------- 1 | #!/sbin/sh 2 | 3 | # The partition to use is named "PARAM" and can be found by dumping the PIT. 4 | 5 | # 0: charge 6 | # 1: direct 7 | # 2: recovery_enter 8 | # 3: recovery_end 9 | # 4: download_end 10 | 11 | target=`getprop ro.board.platform` 12 | 13 | case "$target" in 14 | "msm8660") 15 | # hack because 8660 doesn't support partitions by-name 16 | echo -n -e '\x03\x00\x00\x00' > /dev/block/mmcblk0p12 17 | ;; 18 | "msm8916") 19 | echo -n -e '\x03\x00\x00\x00' > /dev/block/bootdevice/by-name/param 20 | ;; 21 | *) 22 | echo -n -e '\x03\x00\x00\x00' > /dev/block/platform/msm_sdcc.1/by-name/param 23 | ;; 24 | esac 25 | --------------------------------------------------------------------------------