meh
authorJan Altensen <info@stricted.net>
Sun, 14 Jul 2019 18:22:41 +0000 (20:22 +0200)
committerJan Altensen <info@stricted.net>
Mon, 26 Aug 2019 20:53:43 +0000 (22:53 +0200)
Change-Id: Iaec2dad881e97e3ac3f959b2297dcce1c56f5720

Android.mk [new file with mode: 0644]
AndroidProducts.mk [new file with mode: 0644]
BoardConfig.mk [new file with mode: 0644]
device.mk [new file with mode: 0644]
lineage.dependencies [new file with mode: 0644]
lineage_dreamlte.mk [new file with mode: 0644]
overlay/frameworks/base/core/res/res/xml/power_profile.xml [new file with mode: 0644]

diff --git a/Android.mk b/Android.mk
new file mode 100644 (file)
index 0000000..31d7f4f
--- /dev/null
@@ -0,0 +1,28 @@
+#
+# Copyright (C) 2019 The LineageOS 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),dreamlte)
+
+include $(call all-makefiles-under,$(LOCAL_PATH))
+
+endif
diff --git a/AndroidProducts.mk b/AndroidProducts.mk
new file mode 100644 (file)
index 0000000..e583cd3
--- /dev/null
@@ -0,0 +1,17 @@
+#
+# Copyright (C) 2019 The LineageOS 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)/lineage_dreamlte.mk
diff --git a/BoardConfig.mk b/BoardConfig.mk
new file mode 100644 (file)
index 0000000..c3a6ee1
--- /dev/null
@@ -0,0 +1,28 @@
+#
+# Copyright (C) 2019 The LineageOS 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
+-include device/samsung/universal8895-common/BoardConfigCommon.mk
+
+DEVICE_PATH := device/samsung/dreamlte
+
+# Assert
+TARGET_OTA_ASSERT_DEVICE := dreamlte
+
+# Kernel
+TARGET_KERNEL_CONFIG := exynos8895-dreamlte_defconfig
+
+# inherit from the proprietary version
+-include vendor/samsung/dreamlte/BoardConfigVendor.mk
diff --git a/device.mk b/device.mk
new file mode 100644 (file)
index 0000000..ad5f3eb
--- /dev/null
+++ b/device.mk
@@ -0,0 +1,20 @@
+#
+# Copyright (C) 2019 The LineageOS 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.
+#
+
+DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
+
+# Inherit from common
+$(call inherit-product, device/samsung/universal8895-common/device-common.mk)
diff --git a/lineage.dependencies b/lineage.dependencies
new file mode 100644 (file)
index 0000000..586c242
--- /dev/null
@@ -0,0 +1,6 @@
+[
+    {
+        "repository": "android_device_samsung_universal8895-common",
+        "target_path": "device/samsung/universal8895-common"
+    }
+]
diff --git a/lineage_dreamlte.mk b/lineage_dreamlte.mk
new file mode 100644 (file)
index 0000000..5c7a412
--- /dev/null
@@ -0,0 +1,41 @@
+#
+# Copyright (C) 2019 The LineageOS 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 dreamlte device
+$(call inherit-product, device/samsung/dreamlte/device.mk)
+
+# Inherit some common Lineage stuff.
+$(call inherit-product, vendor/lineage/config/common_full_phone.mk)
+
+# Device identifier. This must come after all inclusions
+PRODUCT_DEVICE := dreamlte
+PRODUCT_NAME := lineage_dreamlte
+PRODUCT_BRAND := samsung
+PRODUCT_MODEL := SM-G950F
+PRODUCT_MANUFACTURER := samsung
+
+PRODUCT_GMS_CLIENTID_BASE := android-samsung
+
+# Use the latest approved GMS identifiers
+PRODUCT_BUILD_PROP_OVERRIDES += \
+    PRODUCT_NAME=dreamltexx \
+    PRIVATE_BUILD_DESC="dreamltexx-user 8.0.0 R16NW G950FXXU1CRC7 release-keys"
+
+BUILD_FINGERPRINT := samsung/dreamltexx/dreamlte:9/PPR1.180610.011/G950FXXS4DSC2:user/release-keys
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 (file)
index 0000000..3e4de64
--- /dev/null
@@ -0,0 +1,110 @@
+<?xml version="1.0" encoding="utf-8"?>
+<device name="Android">
+    <item name="none">0</item>
+    <item name="screen.on">52</item>
+    <item name="screen.full">270</item>
+    <item name="bluetooth.active">122</item>
+    <item name="bluetooth.on">0.5</item>
+    <item name="wifi.on">0.29</item>
+    <item name="wifi.active">699</item>
+    <item name="wifi.scan">292</item>
+    <item name="dsp.audio">40</item>
+    <item name="dsp.video">196</item>
+    <item name="camera.flashlight">66.21</item>
+    <item name="camera.avg">616</item>
+    <item name="radio.active">177</item>
+    <item name="radio.scanning">132</item>
+    <item name="gps.on">61.4</item>
+    <array name="radio.on">
+        <value>6.82</value>
+        <value>6.82</value>
+    </array>
+    <array name="cpu.clusters.cores">
+        <value>4</value>
+        <value>4</value>
+    </array>
+    <array name="cpu.active.cluster0">
+        <value>98</value>
+        <value>92</value>
+        <value>85</value>
+        <value>75</value>
+        <value>67</value>
+        <value>57</value>
+        <value>53</value>
+        <value>50</value>
+        <value>47</value>
+        <value>43</value>
+        <value>39</value>
+        <value>34</value>
+    </array>
+    <array name="cpu.speeds.cluster0">
+        <value>1586000</value>
+        <value>1482000</value>
+        <value>1378000</value>
+        <value>1274000</value>
+        <value>1170000</value>
+        <value>1066000</value>
+        <value>962000</value>
+        <value>858000</value>
+        <value>754000</value>
+        <value>650000</value>
+        <value>546000</value>
+        <value>442000</value>
+    </array>
+    <array name="cpu.active.cluster1">
+        <value>832</value>
+        <value>745</value>
+        <value>681</value>
+        <value>628</value>
+        <value>556</value>
+        <value>508</value>
+        <value>459</value>
+        <value>404</value>
+        <value>370</value>
+        <value>334</value>
+        <value>303</value>
+        <value>278</value>
+        <value>249</value>
+        <value>225</value>
+        <value>215</value>
+        <value>197</value>
+        <value>182</value>
+        <value>168</value>
+        <value>164</value>
+        <value>160</value>
+        <value>155</value>
+    </array>
+    <array name="cpu.speeds.cluster1">
+        <value>2600000</value>
+        <value>2496000</value>
+        <value>2392000</value>
+        <value>2288000</value>
+        <value>2184000</value>
+        <value>2080000</value>
+        <value>1976000</value>
+        <value>1872000</value>
+        <value>1768000</value>
+        <value>1664000</value>
+        <value>1560000</value>
+        <value>1456000</value>
+        <value>1352000</value>
+        <value>1248000</value>
+        <value>1144000</value>
+        <value>1040000</value>
+        <value>936000</value>
+        <value>832000</value>
+        <value>728000</value>
+        <value>624000</value>
+        <value>520000</value>
+    </array>
+    <item name="cpu.idle">4.4</item>
+    <item name="cpu.awake">22</item>
+    <item name="battery.capacity">3000</item>
+    <array name="wifi.batchedscan">
+        <value>.0002</value>
+        <value>.002</value>
+        <value>.02</value>
+        <value>.2</value>
+        <value>2</value>
+    </array>
+</device>