From 53018cebe78d0fc43b3248a886360ed431df2476 Mon Sep 17 00:00:00 2001 From: bonuzzz Date: Mon, 25 Dec 2017 20:12:40 +0300 Subject: [PATCH] public init --- Android.mk | 26 + AndroidProducts.mk | 17 + BoardConfig.mk | 31 + audio/mixer_paths.xml | 2219 +++++++++++++++++ device.mk | 32 + extract-files.sh | 25 + full_gts3lwifi.mk | 29 + lineage.dependencies | 2 + lineage.mk | 18 + .../base/core/res/res/values/config.xml | 29 + .../base/core/res/res/xml/power_profile.xml | 94 + proprietary-files.txt | 0 setup-makefiles.sh | 25 + system.prop | 13 + 14 files changed, 2560 insertions(+) create mode 100644 Android.mk create mode 100644 AndroidProducts.mk create mode 100644 BoardConfig.mk create mode 100644 audio/mixer_paths.xml create mode 100644 device.mk create mode 100755 extract-files.sh create mode 100644 full_gts3lwifi.mk create mode 100644 lineage.dependencies create mode 100644 lineage.mk create mode 100644 overlay/frameworks/base/core/res/res/values/config.xml create mode 100644 overlay/frameworks/base/core/res/res/xml/power_profile.xml create mode 100644 proprietary-files.txt create mode 100755 setup-makefiles.sh create mode 100644 system.prop diff --git a/Android.mk b/Android.mk new file mode 100644 index 0000000..c0f7dae --- /dev/null +++ b/Android.mk @@ -0,0 +1,26 @@ +# +# Copyright (C) 2016 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. + +# 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),gts3lwifi) +include $(call all-makefiles-under,$(LOCAL_PATH)) +endif diff --git a/AndroidProducts.mk b/AndroidProducts.mk new file mode 100644 index 0000000..5169d37 --- /dev/null +++ b/AndroidProducts.mk @@ -0,0 +1,17 @@ +# +# Copyright (C) 2016 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. + +PRODUCT_MAKEFILES := \ + $(LOCAL_DIR)/full_gts3lwifi.mk diff --git a/BoardConfig.mk b/BoardConfig.mk new file mode 100644 index 0000000..26ed257 --- /dev/null +++ b/BoardConfig.mk @@ -0,0 +1,31 @@ +# +# Copyright (C) 2016 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 common msm8996-common +-include device/samsung/msm8996-common/BoardConfigCommon.mk + +DEVICE_PATH := device/samsung/gts3lwifi + +# Assert +TARGET_OTA_ASSERT_DEVICE := gts3lwifi + +# Kernel +TARGET_KERNEL_CONFIG := lineage_gts3lwifi_defconfig + +# Properties +TARGET_SYSTEM_PROP += $(DEVICE_PATH)/system.prop + +# inherit from the proprietary version +-include vendor/samsung/gts3lwifi/BoardConfigVendor.mk diff --git a/audio/mixer_paths.xml b/audio/mixer_paths.xml new file mode 100644 index 0000000..799226e --- /dev/null +++ b/audio/mixer_paths.xml @@ -0,0 +1,2219 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/device.mk b/device.mk new file mode 100644 index 0000000..92e4d2a --- /dev/null +++ b/device.mk @@ -0,0 +1,32 @@ +# +# Copyright (C) 2016 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. +# + +# call the proprietary setup +$(call inherit-product-if-exists, vendor/samsung/gts3lwifi/gts3lwifi-vendor.mk) + +# Overlay +DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay + +# Audio configuration +PRODUCT_COPY_FILES += \ + $(LOCAL_PATH)/audio/mixer_paths.xml:system/etc/mixer_paths.xml + +# Root +PRODUCT_PACKAGES += \ + su + +# Inherit from msm8996-common +$(call inherit-product, device/samsung/msm8996-common/msm8996.mk) diff --git a/extract-files.sh b/extract-files.sh new file mode 100755 index 0000000..2fff22a --- /dev/null +++ b/extract-files.sh @@ -0,0 +1,25 @@ +#!/bin/bash +# +# Copyright (C) 2016 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. +# + +set -e + +# Required! +export DEVICE=gts3lwifi +export DEVICE_COMMON=msm8976-common +export VENDOR=samsung + +./../../$VENDOR/$DEVICE_COMMON/extract-files.sh $@ diff --git a/full_gts3lwifi.mk b/full_gts3lwifi.mk new file mode 100644 index 0000000..8cf7b90 --- /dev/null +++ b/full_gts3lwifi.mk @@ -0,0 +1,29 @@ +# +# Copyright (C) 2016 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_64_bit.mk) +$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base.mk) + +# Inherit from gts3lwifi device +$(call inherit-product, device/samsung/gts3lwifi/device.mk) + +# Device identifier. This must come after all inclusions +PRODUCT_DEVICE := gts3lwifi +PRODUCT_NAME := full_gts3lwifi +PRODUCT_BRAND := samsung +PRODUCT_MODEL := gts3lwifi +PRODUCT_MANUFACTURER := samsung diff --git a/lineage.dependencies b/lineage.dependencies new file mode 100644 index 0000000..0d4f101 --- /dev/null +++ b/lineage.dependencies @@ -0,0 +1,2 @@ +[ +] diff --git a/lineage.mk b/lineage.mk new file mode 100644 index 0000000..30efea6 --- /dev/null +++ b/lineage.mk @@ -0,0 +1,18 @@ +$(call inherit-product, device/samsung/gts3lwifi/full_gts3lwifi.mk) + +# Inherit some common Lineage stuff. +$(call inherit-product, vendor/cm/config/common_full_tablet_wifionly.mk) + +PRODUCT_NAME := lineage_gts3lwifi +PRODUCT_BRAND := samsung +PRODUCT_MANUFACTURER := samsung +PRODUCT_DEVICE := gts3lwifi +PRODUCT_MODEL := SM-T820 +TARGET_VENDOR := Samsung +PRODUCT_GMS_CLIENTID_BASE := android-samsung + +# Use the latest approved GMS identifiers +PRODUCT_BUILD_PROP_OVERRIDES += \ + PRODUCT_NAME=gts3lwifixx \ + BUILD_FINGERPRINT=samsung/gts3lwifixx/gts3lwifi:7.0/NRD90M/T820XXU1AQI2:user/release-keys \ + PRIVATE_BUILD_DESC="gts3lwifixx-user 7.0 NRD90M T820XXU1AQI2 release-keys" 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..eff95a2 --- /dev/null +++ b/overlay/frameworks/base/core/res/res/values/config.xml @@ -0,0 +1,29 @@ + + + + + + false + + + false + + + true + diff --git a/overlay/frameworks/base/core/res/res/xml/power_profile.xml b/overlay/frameworks/base/core/res/res/xml/power_profile.xml new file mode 100644 index 0000000..66e52d7 --- /dev/null +++ b/overlay/frameworks/base/core/res/res/xml/power_profile.xml @@ -0,0 +1,94 @@ + + + 0 + 295.3 + 813.9 + 50 + 1.4 + 2.17 + 407.9 + 408.9 + 41.9 + 195 + 55 + + + + 307200 + 403200 + 422400 + 480000 + 556800 + 652800 + 729600 + 806400 + 844800 + 883200 + 940800 + 960000 + 1036800 + 1113600 + 1190400 + 1228800 + 1248000 + 1324800 + 1401600 + 1478400 + 1555200 + 1593600 + 1632000 + 1708800 + 1785600 + 1824000 + 1920000 + 1996800 + 2073600 + 2150400 + + + 8 + 25 + + + 78 + 90 + 85 + 95 + 103 + 110 + 118 + 130 + 131 + 140 + 145 + 148 + 163 + 178 + 194 + 208 + 209 + 230 + 250 + 270 + 290 + 330 + 315 + 345 + 378 + 398 + 442 + 492 + 530 + 610 + + + 6000 + + .0002 + .002 + .02 + .2 + 2 + + \ No newline at end of file diff --git a/proprietary-files.txt b/proprietary-files.txt new file mode 100644 index 0000000..e69de29 diff --git a/setup-makefiles.sh b/setup-makefiles.sh new file mode 100755 index 0000000..79fa563 --- /dev/null +++ b/setup-makefiles.sh @@ -0,0 +1,25 @@ +#!/bin/bash +# +# Copyright (C) 2016 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. +# + +set -e + +# Required! +export DEVICE=gts3lwifi +export DEVICE_COMMON=msm8996-common +export VENDOR=samsung + +./../../$VENDOR/$DEVICE_COMMON/setup-makefiles.sh $@ diff --git a/system.prop b/system.prop new file mode 100644 index 0000000..4061523 --- /dev/null +++ b/system.prop @@ -0,0 +1,13 @@ +# Bluetooth +ro.bluetooth.dun=false +ro.bluetooth.sap=false +ro.qualcomm.bluetooth.ftp=true +ro.qualcomm.bluetooth.hfp=false +ro.qualcomm.bluetooth.hsp=false +ro.qualcomm.bluetooth.map=true +ro.qualcomm.bluetooth.nap=false +ro.qualcomm.bluetooth.opp=true +ro.qualcomm.bluetooth.pbap=true + +# Radio +ro.radio.noril=yes