14 Commits
vic ... bka

Author SHA1 Message Date
Deivid21
325716181d berlna: Drop unused vibrator firmware
Change-Id: I3db152097bf4aa13fd08c6919de7fe6fd402e7c3
2025-10-15 01:01:28 -03:00
Deivid21
36053b6bc9 berlna: overlay: Set defaultRefreshRateInZone config in 90 Hz
Change-Id: I937da053d94ca83826d4fb0ee8cd7fb05ae78151
2025-10-15 01:01:13 -03:00
Deivid21
d42dbf2fc6 berlna: Build MotCamera4 from prebuilt source
Change-Id: I2c44c0ea5c69aa63fa4e01effe4290b782c6d299
Signed-off-by: Deivid21 <david.parra.ignacio@gmail.com>
2025-10-15 01:00:15 -03:00
Deivid21
33e27253d9 berlna: Include a radio vendor device
Change-Id: Id2c1eea2e70abf40379316a8291f8c33281d8de9
2025-10-15 00:57:25 -03:00
Deivid21
31ec2053fb berlna: Track full firmware
Change-Id: I8ff8a180017c63cfe141d7011c98244d2a11e95a
2025-10-15 00:57:24 -03:00
Deivid21
4a6d212c67 berlna: Move fingerprint configs to vendor
Change-Id: I022d8d840febe3795382250984e35cadeb457ce6
2025-10-15 00:57:24 -03:00
Deivid21
623a491d4a berlna: Switch common name to sm8350
Change-Id: I8a02dfc326cc64f4855276a4a9c8091b194a28e4
Signed-off-by: Deivid21 <david.parra.ignacio@gmail.com>
2025-10-15 00:57:23 -03:00
Deivid21
7023ab8fd7 berlna: Adjustments for Evolution X
Change-Id: Ifac6ab7e5feff0f93f6f3d1aa2d6f504c8fdcc23
2025-10-15 00:56:38 -03:00
Deivid21
d8bf2d148b berlna: Drop Moto Stuff
Change-Id: Id5f9efce40c7b5da9cbe6968a206ea153242dff4
2025-10-15 00:54:31 -03:00
Marc Bourgoin
6418a83850 berlna: Add back a camera firmware file
cameraserver acts up without it

Change-Id: I17458769406da1a7042fe6dba1824363d148f21c
(cherry picked from commit 1ce9e2612b5578df0d550b243673ee2e6b9baa8b)
2025-10-15 03:02:00 +00:00
Deivid21
3b1f0b1bd0 berlna: Patch vidhance components with libui-v34
* EIS was broken, which caused hard crashes when switching
  to video mode in camera.

Change-Id: If7d3b4417208fbb51466992aece7ec9b82a1cd41
2025-10-14 22:58:21 -04:00
Cosmin Tanislav
4529616fe3 berlna: switch to AIDL NFC ST HAL
Equivalence between ro.vendor.hw.nfc and config names found by
reverse engineering CNfcConfig::GetInstance().

Change-Id: I9fbe7116420920d99c2ffbb8502178f70225b62c
2025-09-24 04:19:20 +00:00
Cosmin Tanislav
cf8eb21cb7 berlna: let init.oem.hw.sh set ro.vendor.hw.nfc
Change-Id: Id8b9c31b6a1b18d83dfc4813573f3669f458d38b
2025-09-24 04:18:42 +00:00
LuK1337
924463f0c1 berlna: Migrate to AIDL LiveDisplay HAL
Change-Id: I4e8be836e94d442b40c63a1ac7dade3c9d9c784c
(cherry picked from commit fbcd261afa98fcc59f7522ae3935ea86d325519b)
2025-08-28 17:24:38 +00:00
7 changed files with 45 additions and 9 deletions

View File

@@ -49,6 +49,7 @@ PRODUCT_PACKAGES += \
init.ets.rc \
init.mmi.overlay.rc \
init.recovery.berlna.rc \
init.vendor.st21nfc.rc \
init.oem.fingerprint2.sh \
load_touch.sh.recovery
@@ -64,7 +65,7 @@ $(call inherit-product, vendor/motorola/MotCamera4-lahaina/motcamera4.mk)
# NFC
PRODUCT_PACKAGES += \
android.hardware.nfc@1.2-service.st \
android.hardware.nfc-service.st \
com.android.nfc_extras \
Tag

View File

@@ -39,7 +39,14 @@ lib_fixups: lib_fixups_user_type = {
blob_fixups: blob_fixups_user_type = {
('vendor/lib/libmot_chi_desktop_helper.so', 'vendor/lib64/libmot_chi_desktop_helper.so'): blob_fixup()
.add_needed('libgui_shim_vendor.so'),
('vendor/bin/STFlashTool', 'vendor/lib64/sensors.moto.so'): blob_fixup()
(
'vendor/lib64/camera/components/com.mot.node.c2d.so',
'vendor/lib64/camera/components/com.qti.node.dewarp.so',
'vendor/lib64/camera/components/com.vidhance.node.ica.so',
'vendor/lib64/camera/components/com.vidhance.node.processing.so'
): blob_fixup()
.replace_needed('libui.so', 'libui-v34.so'),
'vendor/lib64/sensors.moto.so': blob_fixup()
.add_needed('libbase_shim.so'),
} # fmt: skip

View File

@@ -2,7 +2,6 @@
// SPDX-FileCopyrightText: The LineageOS Project
// SPDX-License-Identifier: Apache-2.0
//
prebuilt_etc {
name: "android.hardware.biometrics.fingerprint@2.1-service-ets2.rc",
src: "android.hardware.biometrics.fingerprint@2.1-service-ets2.rc",
@@ -10,6 +9,7 @@ prebuilt_etc {
vendor: true,
}
prebuilt_etc {
name: "init.ets.rc",
src: "init.ets.rc",
@@ -31,6 +31,13 @@ prebuilt_etc {
recovery: true,
}
prebuilt_etc {
name: "init.vendor.st21nfc.rc",
src: "init.vendor.st21nfc.rc",
sub_dir: "init/hw",
vendor: true,
}
sh_binary {
name: "init.oem.fingerprint2.sh",
src: "init.oem.fingerprint2.sh",

View File

@@ -0,0 +1,22 @@
# This file needs to be executed by vendor_init at boot of the device,
# both in normal and factory mode.
on early-boot
# Change ownership and permision of st nfc device
chown nfc nfc /dev/st21nfc
chmod 0660 /dev/st21nfc
on property:ro.vendor.hw.nfc=true
start vendor.st_nfc_hal_service
on property:ro.vendor.hw.nfc=st
setprop persist.vendor.nfc.config_file_name libnfc-hal-st.conf
start vendor.st_nfc_hal_service
service vendor.st_nfc_hal_service /vendor/bin/hw/android.hardware.nfc-service.st
override
class hal
user nfc
group nfc
disabled

View File

@@ -212,8 +212,8 @@ vendor/lib64/com.qti.feature2.stub.so
vendor/lib64/com.qti.feature2.swmf.so
# Camera - ICP
vendor/firmware/CAMERA_ICP_170.elf
vendor/firmware/CAMERA_ICP.elf
vendor/firmware/CAMERA_ICP_170.elf
# Camera - Motorola
vendor/bin/hw/motorola.hardware.camera.desktop@2.0-service
@@ -271,11 +271,7 @@ product/priv-app/HotwordEnrollmentXGoogleHEXAGON_WIDEBAND/HotwordEnrollmentXGoog
system_ext/etc/permissions/com.android.hotwordenrollment.common.util.xml
system_ext/framework/com.android.hotwordenrollment.common.util.jar
# NFC
vendor/bin/STFlashTool
# NFC - configs
vendor/etc/init/hw/init.vendor.st21nfc.rc
vendor/etc/libnfc-hal-st.conf
vendor/etc/libnfc-nci-st.conf
vendor/etc/st21nfc_conf_ds.txt

View File

@@ -1,5 +1,8 @@
# Display
sys.brightness.disable_gamma_conversion=true
# NFC
persist.nfc_cfg.config_file_name=libnfc-nci-st.conf
# Telephony
ril.subscription.types=RUIM

View File

@@ -13,7 +13,7 @@ vendor.mm.en.sec.smoothstreaming=false
persist.vendor.camera.physical.num=4
# NFC
ro.vendor.hw.nfc=st
persist.vendor.nfc.st.multisim_fw_config=true
# Radio
ro.telephony.default_network=27,27