Skip to content

Commit f99940d

Browse files
committed
Initial a52sxq tree
Change-Id: I20c6a3347feaf7ddb89e733320d796e83e275114
0 parents  commit f99940d

File tree

16 files changed

+5230
-0
lines changed

16 files changed

+5230
-0
lines changed

Android.mk

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#
2+
# Copyright (C) 2023 The LineageOS Project
3+
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
6+
7+
LOCAL_PATH := $(call my-dir)
8+
9+
ifeq ($(TARGET_DEVICE),a52sxq)
10+
11+
subdir_makefiles=$(call first-makefiles-under,$(LOCAL_PATH))
12+
13+
$(foreach mk,$(subdir_makefiles),$(info including $(mk) ...)$(eval include $(mk)))
14+
15+
endif

AndroidProducts.mk

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#
2+
# Copyright (C) 2023 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)/lineage_a52sxq.mk
18+
19+
COMMON_LUNCH_CHOICES := \
20+
lineage_a52sxq-userdebug \
21+
lineage_a52sxq-user \
22+
lineage_a52sxq-eng

BoardConfig.mk

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#
2+
# Copyright (C) 2023 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_PATH := device/samsung/a52sxq
18+
19+
include device/samsung/sm7325-common/BoardConfigCommon.mk
20+
21+
# Kernel
22+
TARGET_KERNEL_CONFIG := vendor/lineage-a52sxq_defconfig
23+
BOARD_NAME := SRPUE26A002
24+
25+
# Display
26+
TARGET_SCREEN_DENSITY := 450
27+
28+
# OTA assert
29+
TARGET_OTA_ASSERT_DEVICE := a52sxq
30+
31+
# Properties
32+
TARGET_VENDOR_PROP += $(DEVICE_PATH)/vendor.prop

configs/audio/mixer_paths.xml

Lines changed: 4400 additions & 0 deletions
Large diffs are not rendered by default.

device.mk

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#
2+
# Copyright (C) 2023 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_PATH := device/samsung/a52sxq
18+
19+
DEVICE_PACKAGE_OVERLAYS += $(DEVICE_PATH)/overlay
20+
21+
# call the common setup
22+
$(call inherit-product, device/samsung/sm7325-common/common.mk)
23+
24+
# call the proprietary setup
25+
$(call inherit-product, vendor/samsung/a52sxq/a52sxq-vendor.mk)
26+
27+
# Init files
28+
PRODUCT_PACKAGES += \
29+
init.a52sxq.rc
30+
31+
# Audio
32+
PRODUCT_COPY_FILES += \
33+
$(DEVICE_PATH)/configs/audio/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml

extract-files.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/bash
2+
#
3+
# Copyright (C) 2016 The CyanogenMod Project
4+
# Copyright (C) 2017-2023 The LineageOS Project
5+
#
6+
# SPDX-License-Identifier: Apache-2.0
7+
#
8+
9+
# If we're being sourced by the common script that we called,
10+
# stop right here. No need to go down the rabbit hole.
11+
if [ "${BASH_SOURCE[0]}" != "${0}" ]; then
12+
return
13+
fi
14+
15+
set -e
16+
17+
export DEVICE=a52sxq
18+
export DEVICE_COMMON=sm7325-common
19+
export VENDOR=samsung
20+
21+
"./../../${VENDOR}/${DEVICE_COMMON}/extract-files.sh" "$@"

lineage.dependencies

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[
2+
{
3+
"repository": "android_device_samsung_sm7325-common",
4+
"target_path": "device/samsung/sm7325-common"
5+
}
6+
]

lineage_a52sxq.mk

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
#
2+
# Copyright (C) 2023 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 device configuration
18+
$(call inherit-product, device/samsung/a52sxq/device.mk)
19+
20+
# Inherit from the 64 bit configuration
21+
$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
22+
23+
# Inherit from the common Open Source product configuration
24+
$(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_base_telephony.mk)
25+
26+
# Inherit some common Lineage stuff
27+
$(call inherit-product, vendor/lineage/config/common_full_phone.mk)
28+
29+
# Enable updating of APEXes
30+
$(call inherit-product, $(SRC_TARGET_DIR)/product/updatable_apex.mk)
31+
32+
# Boot animation
33+
TARGET_SCREEN_HEIGHT := 2400
34+
TARGET_SCREEN_WIDTH := 1080
35+
36+
## Device identifier. This must come after all inclusions
37+
PRODUCT_NAME := lineage_a52sxq
38+
PRODUCT_DEVICE := a52sxq
39+
PRODUCT_BRAND := samsung
40+
PRODUCT_MODEL := SM-A528B
41+
PRODUCT_MANUFACTURER := samsung
42+
PRODUCT_GMS_CLIENTID_BASE := android-samsung
43+
44+
PRODUCT_SHIPPING_API_LEVEL := 30
45+
46+
# Vendor fingerprint
47+
BUILD_FINGERPRINT := "samsung/a52sxqxx/a52sxq:11/RP1A.200720.012/A528BXXU2EWC1:user/release-keys"
48+
PRIVATE_BUILD_DESC := "a52sxqxx-user 11 RP1A.200720.012 A528BXXU2EWC1 release-keys"
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
/*
4+
** Copyright 2021, The Android Open Source 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+
20+
<resources>
21+
<!-- The bounding path of the cutout region of the main built-in display.
22+
Must either be empty if there is no cutout region, or a string that is parsable by
23+
{@link android.util.PathParser}.
24+
25+
The path is assumed to be specified in display coordinates with pixel units and in
26+
the display's native orientation, with the origin of the coordinate system at the
27+
center top of the display. Optionally, you can append either `@left` or `@right` to the
28+
end of the path string, in order to change the path origin to either the top left,
29+
or top right of the display.
30+
31+
To facilitate writing device-independent emulation overlays, the marker `@dp` can be
32+
appended after the path string to interpret coordinates in dp instead of px units.
33+
Note that a physical cutout should be configured in pixels for the best results.
34+
35+
Example for a 10px x 10px square top-center cutout:
36+
<string ...>M -5,0 L -5,10 L 5,10 L 5,0 Z</string>
37+
Example for a 10dp x 10dp square top-center cutout:
38+
<string ...>M -5,0 L -5,10 L 5,10 L 5,0 Z @dp</string>
39+
40+
@see https://www.w3.org/TR/SVG/paths.html#PathData
41+
-->
42+
<string name="config_mainBuiltInDisplayCutout">M 0,0 M 0,11.43427858034597 a 9.899054752987353,9.899054752987353 0 1,0 0,19.79810950597471 a 9.899054752987353,9.899054752987353 0 1,0 0,-19.79810950597471 Z @dp</string>
43+
44+
<!-- The properties of a UDFPS sensor in pixels, in the order listed below: -->
45+
<integer-array name="config_udfps_sensor_props">
46+
<item>540</item>
47+
<item>2137</item>
48+
<item>119</item>
49+
</integer-array>
50+
</resources>
Lines changed: 138 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<device name="Android">
3+
<item name="ambient.on">26</item>
4+
<item name="screen.on">100</item>
5+
<item name="screen.full">208</item>
6+
<item name="bluetooth.active">0</item>
7+
<item name="bluetooth.on">0</item>
8+
<item name="wifi.on">0</item>
9+
<item name="wifi.active">0</item>
10+
<item name="wifi.scan">0</item>
11+
<item name="audio">18</item>
12+
<item name="video">25</item>
13+
<item name="camera.flashlight">61</item>
14+
<item name="camera.avg">185</item>
15+
<item name="gps.on">47</item>
16+
<item name="radio.active">152</item>
17+
<item name="radio.scanning">77</item>
18+
<array name="radio.on">
19+
<value>1.3</value>
20+
<value>1.3</value>
21+
</array>
22+
<array name="cpu.clusters.cores">
23+
<value>4</value>
24+
<value>3</value>
25+
<value>1</value>
26+
</array>
27+
<array name="cpu.core_speeds.cluster0">
28+
<value>300000</value>
29+
<value>691200</value>
30+
<value>806400</value>
31+
<value>940800</value>
32+
<value>1152000</value>
33+
<value>1324800</value>
34+
<value>1516800</value>
35+
<value>1651200</value>
36+
<value>1804800</value>
37+
</array>
38+
<array name="cpu.core_speeds.cluster1">
39+
<value>691200</value>
40+
<value>940800</value>
41+
<value>1228800</value>
42+
<value>1344000</value>
43+
<value>1516800</value>
44+
<value>1651200</value>
45+
<value>1900800</value>
46+
<value>2054400</value>
47+
<value>2131200</value>
48+
<value>2400000</value>
49+
</array>
50+
<array name="cpu.core_speeds.cluster2">
51+
<value>806400</value>
52+
<value>1056000</value>
53+
<value>1324800</value>
54+
<value>1516800</value>
55+
<value>1766400</value>
56+
<value>1862400</value>
57+
<value>2035200</value>
58+
<value>2208000</value>
59+
<value>2380800</value>
60+
<value>2400000</value>
61+
</array>
62+
<array name="cpu.core_power.cluster0">
63+
<value>28</value>
64+
<value>30</value>
65+
<value>34</value>
66+
<value>36</value>
67+
<value>39</value>
68+
<value>41</value>
69+
<value>45</value>
70+
<value>52</value>
71+
<value>56</value>
72+
</array>
73+
<array name="cpu.core_power.cluster1">
74+
<value>54</value>
75+
<value>70</value>
76+
<value>93</value>
77+
<value>108</value>
78+
<value>126</value>
79+
<value>148</value>
80+
<value>188</value>
81+
<value>234</value>
82+
<value>240</value>
83+
<value>248</value>
84+
</array>
85+
<array name="cpu.core_power.cluster2">
86+
<value>97</value>
87+
<value>113</value>
88+
<value>137</value>
89+
<value>171</value>
90+
<value>196</value>
91+
<value>211</value>
92+
<value>231</value>
93+
<value>283</value>
94+
<value>299</value>
95+
<value>337</value>
96+
</array>
97+
<item name="cpu.idle">13</item>
98+
<item name="cpu.suspend">6</item>
99+
<array name="memory.bandwidths">
100+
<value>22.7</value>
101+
</array>
102+
<item name="battery.capacity">4370</item>
103+
<item name="battery.typical.capacity">4500</item>
104+
<item name="bluetooth.controller.idle">6</item>
105+
<item name="bluetooth.controller.rx">19</item>
106+
<item name="bluetooth.controller.tx">47</item>
107+
<item name="bluetooth.controller.voltage">4000</item>
108+
<item name="wifi.controller.idle">1</item>
109+
<item name="wifi.controller.rx">100</item>
110+
<item name="wifi.controller.tx">190</item>
111+
<array name="wifi.controller.tx_levels">
112+
<value>190</value>
113+
</array>
114+
<item name="wifi.controller.voltage">3700</item>
115+
<array name="wifi.batchedscan">
116+
<value>.0002</value>
117+
<value>.002</value>
118+
<value>.02</value>
119+
<value>.2</value>
120+
<value>2</value>
121+
</array>
122+
<item name="modem.controller.sleep">0</item>
123+
<item name="modem.controller.idle">0</item>
124+
<item name="modem.controller.rx">0</item>
125+
<array name="modem.controller.tx">
126+
<value>0</value>
127+
<value>0</value>
128+
<value>0</value>
129+
<value>0</value>
130+
<value>0</value>
131+
</array>
132+
<item name="modem.controller.voltage">0</item>
133+
<array name="gps.signalqualitybased">
134+
<value>0</value>
135+
<value>0</value>
136+
</array>
137+
<item name="gps.voltage">0</item>
138+
</device>

0 commit comments

Comments
 (0)