universal7885: Add other 7885 devices

* A10, A30, A40

Change-Id: I92829c4d3b11e2759f08ef04fe4d4d60ff352a0b
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
This commit is contained in:
roynatech2544 2021-12-01 22:34:21 +09:00
commit eaab77ceff
No known key found for this signature in database
GPG key ID: 9675C32163D88D30
30 changed files with 680 additions and 34 deletions

17
a10/BoardConfig.mk Normal file
View file

@ -0,0 +1,17 @@
DEVICE_PATH := device/samsung/a10
# Asserts
TARGET_OTA_ASSERT_DEVICE := a10,a10dd
# Kernel
TARGET_KERNEL_CONFIG := exynos7885-a10_enforcing_defconfig
# Display
TARGET_SCREEN_DENSITY := 320
# Partitions
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 55574528 # 55MB
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 4320133120 #4.02GB
# Inherit common board flags
include device/samsung/universal7885-common/BoardConfigCommon.mk

9
a10/device.mk Normal file
View file

@ -0,0 +1,9 @@
DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
# Inherit common device configuration
$(call inherit-product, device/samsung/universal7885-common/universal7885-common.mk)
$(call inherit-product, vendor/samsung/a10/a10-vendor.mk)
PRODUCT_PACKAGES += \
CameraLightSensor

19
a10/full_a10.mk Normal file
View file

@ -0,0 +1,19 @@
# Copyright (C) 2018 The LineageOS Project
# SPDX-License-Identifier: Apache-2.0
# Inherit from those products. Most specific first.
$(call inherit-product, $(SRC_TARGET_DIR)/product/product_launched_with_p.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk)
# Inherit device configuration
$(call inherit-product, device/samsung/a10/device.mk)
# Device identifier. This must come after all inclusions
PRODUCT_DEVICE := a10
PRODUCT_NAME := full_a10
PRODUCT_MODEL := SM-A105F
PRODUCT_BRAND := samsung
PRODUCT_MANUFACTURER := samsung

View file

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<bool name="config_dozeAlwaysOnDisplayAvailable">false</bool>
<bool name="config_displayBlanksAfterDoze">true</bool>
<bool name="config_dozePulsePickup">false</bool>
<string name="config_mainBuiltInDisplayCutout">M62,0l-3.8,0l-3.9,0.2l-3.9,0.4l-4,0.8l-3.9,1.2l-3.8,1.6l-3.7,2l-3.4,2.4l-3.1,2.8l-2.9,3l-2.7,3.1l-2.6,3.1 l-2.7,2.8C12.5,28,6.2,30.3,0,30.3c-6.3,0-12.5-2.3-17.5-6.8l-2.7-2.8l-2.6-3.1l-2.7-3.1l-2.9-3l-3.2-2.8 L-35,6.2l-3.7-2l-3.8-1.6l-3.9-1.2l-4-0.8L-54.3,0.2L-58.2,0L-62,0Z @dp</string>
<bool name="config_supportDoubleTapWake">false</bool>
<bool name="config_enableBurnInProtection">false</bool>
<bool name="config_allowAutoBrightnessWhileDozing">true</bool>
</resources>

View file

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_height_landscape">24.0dip</dimen>
<dimen name="status_bar_height_portrait">31.0dip</dimen>
<dimen name="rounded_corner_radius">40px</dimen>
</resources>

View file

@ -0,0 +1,87 @@
<?xml version="1.0" encoding="utf-8"?>
<device name="Android">
<item name="none">0</item>
<item name="screen.on">93</item>
<item name="screen.full">313</item>
<item name="bluetooth.active">118</item>
<item name="bluetooth.on">0.98</item>
<item name="wifi.on">0.43</item>
<item name="wifi.active">488</item>
<item name="wifi.scan">502</item>
<item name="dsp.audio">45</item>
<item name="dsp.video">286</item>
<item name="camera.flashlight">124</item>
<item name="camera.avg">662</item>
<item name="gps.on">32</item>
<item name="radio.active">164</item>
<item name="radio.scanning">115</item>
<array name="radio.on">
<value>7.3</value>
<value>7.3</value>
</array>
<array name="cpu.clusters.cores">
<value>6</value>
<value>2</value>
</array>
<array name="cpu.speeds.cluster0">
<value>1586000</value>
<value>1482000</value>
<value>1352000</value>
<value>1248000</value>
<value>1144000</value>
<value>1014000</value>
<value>902000</value>
<value>839000</value>
<value>757000</value>
<value>676000</value>
<value>546000</value>
<value>449000</value>
</array>
<array name="cpu.active.cluster0">
<value>50</value>
<value>43</value>
<value>34</value>
<value>28</value>
<value>24</value>
<value>18</value>
<value>15</value>
<value>13</value>
<value>11</value>
<value>10</value>
<value>7</value>
<value>6</value>
</array>
<array name="cpu.speeds.cluster1">
<value>1768000</value>
<value>1664000</value>
<value>1560000</value>
<value>1352000</value>
<value>1144000</value>
<value>936000</value>
</array>
<array name="cpu.active.cluster1">
<value>162</value>
<value>142</value>
<value>120</value>
<value>87</value>
<value>61</value>
<value>41</value>
</array>
<item name="cpu.idle">3.79</item>
<item name="cpu.awake">23</item>
<item name="battery.capacity">2900</item>
<item name="wifi.controller.idle">1</item>
<item name="wifi.controller.rx">65</item>
<item name="wifi.controller.tx">265</item>
<array name="wifi.controller.tx_levels">
<value>0</value>
</array>
<item name="wifi.controller.voltage">3600</item>
<array name="wifi.batchedscan">
<value>.0002</value>
<value>.002</value>
<value>.02</value>
<value>.2</value>
<value>2</value>
</array>
</device>

22
a10/setup.sh Executable file
View file

@ -0,0 +1,22 @@
VENDOR=$(cat device/samsung/universal7885-common/vendor_name)
if [ ! $VENDOR ]; then
VENDOR=aosp;
fi
# Generate AndroidProducts.mk
echo "# Auto-Generated by device/samsung/a10/setup.sh" > device/samsung/a10/AndroidProducts.mk
echo "PRODUCT_MAKEFILES += \$(LOCAL_DIR)/"$VENDOR"_a10.mk" >> device/samsung/a10/AndroidProducts.mk
# Generate <vendor>_a10.mk
echo "# Auto-Generated by device/samsung/a10/setup.sh" > device/samsung/a10/"$VENDOR"_a10.mk
echo "\$(call inherit-product, device/samsung/a10/full_a10.mk)" >> device/samsung/a10/"$VENDOR"_a10.mk
if test -f vendor/"$VENDOR"/config/common_full_phone.mk && echo "common_full_phone"; then
echo "\$(call inherit-product, vendor/"$VENDOR"/config/common_full_phone.mk)" >> device/samsung/a10/"$VENDOR"_a10.mk
elif test -f vendor/"$VENDOR"/config/common.mk && echo "common"; then
echo "\$(call inherit-product, vendor/"$VENDOR"/config/common.mk)" >> device/samsung/a10/"$VENDOR"_a10.mk
fi
echo "PRODUCT_NAME := "$VENDOR"_a10" >> device/samsung/a10/"$VENDOR"_a10.mk
echo "" >> device/samsung/a10/"$VENDOR"_a10.mk
echo "# Additional Props" >> device/samsung/a10/"$VENDOR"_a10.mk
echo "TARGET_FACE_UNLOCK_SUPPORTED := true" >> device/samsung/a10/"$VENDOR"_a10.mk
echo "TARGET_BOOT_ANIMATION_RES := 720" >> device/samsung/a10/"$VENDOR"_a10.mk