Compare commits

...

10 Commits

Author SHA1 Message Date
59e810f7e4 berlin: initial Evolution-X 10.x
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2025-01-28 10:26:13 +08:00
Aaron Kling
bd23202e5d berlin: Set avb rollback indexes to match stock
Using values from the version used for extract

Change-Id: If91897f88bda061b2158fd92f9e02ef79929e232
2025-01-21 21:40:23 +00:00
Cosmin Tanislav
f817513ccf berlin: set BOOT_SECURITY_PATCH
Change-Id: I8ae16175a4f471098326e920bfdf42a7fa316bff
2025-01-21 21:21:20 +00:00
Glen Kuhne
5c2a561237 berlin: overlay: Set default hotspot SSID prefix
Added a device specific overlay that changes the default name
from "AndroidAp" to customized name

Test: Builds, manually verified name change
Bug: 36368950
Change-Id: I38a5f6fb950d6a45342080bae186a8ed276d94bf
2025-01-21 17:26:12 +00:00
Nolen Johnson
a794cf469e berlin: Adjust default names to match PRODUCT_MODEL
Change-Id: I71b28cc3b7f416835479d11d66f4c655198a8242
2025-01-21 12:15:37 -05:00
Nolen Johnson
a7051f59a5 berlin: Move rro to device folder
Change-Id: I54e0045c114fd507077ab51b074c13ff1c3dc771
2025-01-21 16:35:43 +00:00
Michael Bestas
9104d562fa berlin: overlay: Remove sdk_version from RRO packages
Change-Id: Ib9ea71678361e706b7cf481ab499a4d478ab1c1c
2025-01-21 16:17:29 +00:00
Michael Bestas
45f5cfcf6e berlin: Switch to SPDX copyright & update dates
Change-Id: I1adc8afc557a0d8a7379ec24589ea68b2391d147
2025-01-21 11:14:41 -05:00
Cosmin Tanislav
efad1eb438 berlin: do not manually build dependencies
Change-Id: I4046d8eeabfc70842898b7034f75cdd6bcfc441b
2025-01-21 11:03:28 -05:00
Nolen Johnson
04add34bf9 berlin: Debrand manifests & overlays
Change-Id: I46c10280090bf1df7bfc1eb0024d53536a8f9a52
2025-01-21 11:01:59 -05:00
38 changed files with 134 additions and 206 deletions

View File

@ -1,17 +1,6 @@
#
# Copyright (C) 2022 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.
# SPDX-FileCopyrightText: 2022 The LineageOS Project
# SPDX-License-Identifier: Apache-2.0
#
PRODUCT_MAKEFILES := \

View File

@ -1,17 +1,6 @@
#
# Copyright (C) 2022 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.
# SPDX-FileCopyrightText: 2022-2024 The LineageOS Project
# SPDX-License-Identifier: Apache-2.0
#
DEVICE_PATH := device/motorola/berlin
@ -23,7 +12,7 @@ include device/motorola/sm7325-common/BoardConfigCommon.mk
TARGET_BOOTLOADER_BOARD_NAME := berlin
# HIDL
DEVICE_MANIFEST_FILE += $(DEVICE_PATH)/manifest_berlin.xml
DEVICE_MANIFEST_FILE += $(DEVICE_PATH)/manifest.xml
# Kernel
BOARD_KERNEL_CMDLINE += androidboot.hab.product=berlin
@ -50,8 +39,13 @@ TARGET_VENDOR_PROP += $(DEVICE_PATH)/vendor.prop
# Recovery
TARGET_RECOVERY_UI_MARGIN_HEIGHT := 90
# Security
VENDOR_SECURITY_PATCH := 2024-09-01
# Security patch level
BOOT_SECURITY_PATCH := $(PLATFORM_SECURITY_PATCH)
VENDOR_SECURITY_PATCH := $(PLATFORM_SECURITY_PATCH)
# Verified Boot
BOARD_AVB_ROLLBACK_INDEX := 38
BOARD_AVB_VBMETA_SYSTEM_ROLLBACK_INDEX := 38
# inherit from the proprietary version
include vendor/motorola/berlin/BoardConfigVendor.mk

View File

@ -1,17 +1,6 @@
#
# Copyright (C) 2022 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.
# SPDX-FileCopyrightText: 2022-2025 The LineageOS Project
# SPDX-License-Identifier: Apache-2.0
#
# Boot animation
@ -36,7 +25,8 @@ PRODUCT_PACKAGES += \
FrameworksResBerlin \
LineageSystemUIBerlin \
SettingsProviderResBerlin \
SystemUIResBerlin
SystemUIResBerlin \
WifiResBerlin
# Audio
PRODUCT_COPY_FILES += \
@ -48,14 +38,9 @@ PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \
$(LOCAL_PATH)/audio/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml
# Camera
PRODUCT_PACKAGES += \
libgui_shim_vendor
# Fingerprint
PRODUCT_PACKAGES += \
android.hardware.biometrics.fingerprint@2.1-service.berlin \
com.motorola.hardware.biometric.fingerprint@1.0.vendor
android.hardware.biometrics.fingerprint@2.1-service.berlin
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/idc/uinput_nav.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/uinput_nav.idc \
@ -75,13 +60,9 @@ PRODUCT_PACKAGES += \
# NFC
PRODUCT_PACKAGES += \
android.hardware.nfc@1.2.vendor \
android.hardware.nfc@1.2-service.st \
android.hardware.secure_element@1.2.vendor \
com.android.nfc_extras \
libchrome.vendor \
Tag \
nfc_nci.st21nfc.default
Tag
# Permissions
PRODUCT_COPY_FILES += \

View File

@ -1,17 +1,7 @@
//
// Copyright (C) 2017-2018 The LineageOS Project
// SPDX-FileCopyrightText: 2022-2024 The LineageOS Project
// SPDX-License-Identifier: Apache-2.0
//
// 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.
cc_binary {
name: "android.hardware.biometrics.fingerprint@2.1-service.berlin",
vintf_fragments: ["android.hardware.biometrics.fingerprint@2.1-service.berlin.xml"],

View File

@ -1,18 +1,7 @@
/*
* Copyright (C) 2017 The Android Open Source Project
* Copyright (C) 2018-2020 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.
* SPDX-FileCopyrightText: 2018-2020 The Android Open Source Project
* SPDX-FileCopyrightText: 2020-2024 The LineageOS Project
* SPDX-License-Identifier: Apache-2.0
*/
#define LOG_TAG "android.hardware.biometrics.fingerprint@2.1-service.berlin"

View File

@ -1,18 +1,8 @@
/*
* Copyright (C) 2017 The Android Open Source 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.
* SPDX-FileCopyrightText: 2022-2024 The LineageOS Project
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ANDROID_HARDWARE_BIOMETRICS_FINGERPRINT_V2_1_BIOMETRICSFINGERPRINT_H
#define ANDROID_HARDWARE_BIOMETRICS_FINGERPRINT_V2_1_BIOMETRICSFINGERPRINT_H

View File

@ -1,17 +1,6 @@
/*
* Copyright (C) 2017 The Android Open Source 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.
* SPDX-FileCopyrightText: 2018 The Android Open Source Project
* SPDX-License-Identifier: Apache-2.0
*/
#define LOG_TAG "android.hardware.biometrics.fingerprint@2.1-service.berlin"

View File

@ -1,6 +0,0 @@
[
{
"repository": "android_device_motorola_sm7325-common",
"target_path": "device/motorola/sm7325-common"
}
]

View File

@ -1,17 +1,6 @@
#
# Copyright (C) 2022 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.
# SPDX-FileCopyrightText: 2022-2024 The LineageOS Project
# SPDX-License-Identifier: Apache-2.0
#
# Inherit from those products. Most specific first.
@ -19,20 +8,31 @@ $(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
TARGET_SUPPORTS_OMX_SERVICE := false
$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk)
# Inherit from berlin device
# Inherit from berlin device.
$(call inherit-product, device/motorola/berlin/device.mk)
# Inherit some common Lineage stuff.
# Inherit some common LineageOS / Evolution-X stuff.
$(call inherit-product, vendor/lineage/config/common_full_phone.mk)
EVO_BUILD_TYPE := MINKAN
# Targets
TARGET_SUPPORT_BOOT_ANIMATIONS := true
TARGET_SUPPORTS_64_BIT_APPS := true
TARGET_BUILD_DEVICE_AS_WEBCAM := true
TARGET_USES_BLUR_RECENT := true
# Device identifier.
PRODUCT_NAME := lineage_berlin
PRODUCT_DEVICE := berlin
PRODUCT_MANUFACTURER := motorola
PRODUCT_BRAND := motorola
PRODUCT_MODEL := motorola edge 20
# GMS
WITH_GMS := true
PRODUCT_GMS_CLIENTID_BASE := android-motorola
# Properties
PRODUCT_BUILD_PROP_OVERRIDES += \
BuildDesc="berlin_global-user 13 T1RGS33.135-109-9-29 695e0-d4b251 release-keys" \
BuildFingerprint=motorola/berlin_global/berlin:13/T1RGS33.135-109-9-29/695e0-d4b251:user/release-keys \

View File

@ -1,5 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
SPDX-FileCopyrightText: 2022 The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<manifest version="2.0" type="device">
<hal format="hidl">
<hal format="hidl">
<name>vendor.lineage.livedisplay</name>
<transport>hwbinder</transport>
<version>2.1</version>
@ -15,5 +20,5 @@
<name>IAntiFlicker</name>
<instance>default</instance>
</interface>
</hal>
</hal>
</manifest>

View File

@ -1,5 +0,0 @@
runtime_resource_overlay {
name: "FrameworksResBerlin",
sdk_version: "current",
vendor: true
}

View File

@ -1,5 +0,0 @@
runtime_resource_overlay {
name: "SettingsProviderResBerlin",
sdk_version: "current",
vendor: true
}

View File

@ -1,5 +0,0 @@
runtime_resource_overlay {
name: "SystemUIResBerlin",
sdk_version: "current",
vendor: true
}

View File

@ -0,0 +1,9 @@
//
// SPDX-FileCopyrightText: 2022 The LineageOS Project
// SPDX-License-Identifier: Apache-2.0
//
runtime_resource_overlay {
name: "FrameworksResBerlin",
vendor: true
}

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2022 The LineageOS Project
SPDX-FileCopyrightText: 2022 The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2022 The LineageOS Project
SPDX-FileCopyrightText: 2022-2024 The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<resources>

View File

@ -1,4 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
SPDX-FileCopyrightText: 2022 The Linux Foundation
SPDX-License-Identifier: BSD-3-Clause
-->
<device name="Android">
<item name="none">0</item>
<item name="screen.on">139.28</item>

View File

@ -1,5 +1,5 @@
//
// Copyright (C) 2022 The LineageOS Project
// SPDX-FileCopyrightText: 2022 The LineageOS Project
// SPDX-License-Identifier: Apache-2.0
//

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2022 The LineageOS Project
SPDX-FileCopyrightText: 2022 The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2022 The LineageOS Project
SPDX-FileCopyrightText: 2022 The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<resources>

View File

@ -0,0 +1,9 @@
//
// SPDX-FileCopyrightText: 2022 The LineageOS Project
// SPDX-License-Identifier: Apache-2.0
//
runtime_resource_overlay {
name: "SettingsProviderResBerlin",
vendor: true
}

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2022 The LineageOS Project
SPDX-FileCopyrightText: 2022 The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"

View File

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2022 The LineageOS Project
SPDX-FileCopyrightText: 2022 The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<resources>
<!-- Default for Settings.Global.DEVICE_NAME $1=MODEL-->
<string name="def_device_name_simple">Motorola Edge 20</string>
<string name="def_device_name_simple">moto edge 20</string>
</resources>

View File

@ -0,0 +1,9 @@
//
// SPDX-FileCopyrightText: 2022 The LineageOS Project
// SPDX-License-Identifier: Apache-2.0
//
runtime_resource_overlay {
name: "SystemUIResBerlin",
vendor: true
}

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2022 The LineageOS Project
SPDX-FileCopyrightText: 2022 The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2022 The LineageOS Project
SPDX-FileCopyrightText: 2022 The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<resources>

View File

@ -0,0 +1,9 @@
//
// SPDX-FileCopyrightText: 2021-2025 The LineageOS Project
// SPDX-License-Identifier: Apache-2.0
//
runtime_resource_overlay {
name: "WifiResBerlin",
vendor: true,
}

View File

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
SPDX-FileCopyrightText: 2021-2025 The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.android.wifi.resources.overlay.berlin">
<overlay
android:isStatic="true"
android:priority="750"
android:targetName="WifiCustomization"
android:targetPackage="com.android.wifi.resources" />
</manifest>

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
SPDX-FileCopyrightText: 2021-2025 The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<resources>
<!-- Default access point SSID used for tethering -->
<string name="wifi_tether_configure_ssid_default" translatable="false">moto edge 20</string>
</resources>

View File

@ -1,17 +1,7 @@
//
// Copyright (C) 2020 The LineageOS Project
// SPDX-FileCopyrightText: 2022 The LineageOS Project
// SPDX-License-Identifier: Apache-2.0
//
// 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.
cc_binary {
name: "vendor.lineage.touch@1.0-service.berlin",

View File

@ -1,17 +1,6 @@
/*
* Copyright (C) 2020 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.
* SPDX-FileCopyrightText: 2022-2024 The LineageOS Project
* SPDX-License-Identifier: Apache-2.0
*/
#define LOG_TAG "HighTouchPollingRateService"

View File

@ -1,17 +1,6 @@
/*
* Copyright (C) 2020 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.
* SPDX-FileCopyrightText: 2022-2024 The LineageOS Project
* SPDX-License-Identifier: Apache-2.0
*/
#pragma once

View File

@ -1,17 +1,6 @@
/*
* Copyright (C) 2020 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.
* SPDX-FileCopyrightText: 2022-2024 The LineageOS Project
* SPDX-License-Identifier: Apache-2.0
*/
#define LOG_TAG "lineage.touch@1.0-service.berlin"

View File

@ -7,7 +7,7 @@ persist.vendor.audio_fx.waves.processing_nx=true
persist.vendor.audio_fx.waves.systrace=true
# Bluetooth
bluetooth.device.default_name=Motorola Edge 20
bluetooth.device.default_name=moto edge 20
# Camera
persist.vendor.camera.physical.num=4