Compare commits
14 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
325716181d | ||
|
|
36053b6bc9 | ||
|
|
d42dbf2fc6 | ||
|
|
33e27253d9 | ||
|
|
31ec2053fb | ||
|
|
4a6d212c67 | ||
|
|
623a491d4a | ||
|
|
7023ab8fd7 | ||
|
|
d8bf2d148b | ||
|
|
6418a83850 | ||
|
|
3b1f0b1bd0 | ||
|
|
4529616fe3 | ||
|
|
cf8eb21cb7 | ||
|
|
924463f0c1 |
@@ -5,15 +5,12 @@
|
||||
|
||||
DEVICE_PATH := device/motorola/berlna
|
||||
|
||||
# Inherit from motorola sm7325-common
|
||||
include device/motorola/sm7325-common/BoardConfigCommon.mk
|
||||
# Inherit from motorola sm8350-common
|
||||
include device/motorola/sm8350-common/BoardConfigCommon.mk
|
||||
|
||||
# Bootloader
|
||||
TARGET_BOOTLOADER_BOARD_NAME := berlna
|
||||
|
||||
# HIDL
|
||||
DEVICE_MANIFEST_FILE += $(DEVICE_PATH)/manifest.xml
|
||||
|
||||
# Kernel
|
||||
BOARD_KERNEL_CMDLINE += androidboot.hab.product=berlna
|
||||
TARGET_KERNEL_CONFIG += vendor/lineage_berlna.config
|
||||
@@ -50,3 +47,4 @@ BOARD_AVB_VBMETA_SYSTEM_ROLLBACK_INDEX := 37
|
||||
|
||||
# inherit from the proprietary version
|
||||
include vendor/motorola/berlna/BoardConfigVendor.mk
|
||||
include vendor/motorola/berlna-radio/BoardConfigVendor.mk
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
#
|
||||
# Egis Touch sensor driver
|
||||
#
|
||||
#
|
||||
|
||||
device.internal = 1
|
||||
keyboard.layout = uinput-egis
|
||||
keyboard.builtIn = 1
|
||||
keyboard.orientationAware = 1
|
||||
@@ -1,5 +0,0 @@
|
||||
# Goodix side-type fingerprint sensor
|
||||
device.internal = 1
|
||||
keyboard.layout = uinput_nav
|
||||
keyboard.builtIn = 1
|
||||
keyboard.orientationAware = 1
|
||||
@@ -1,9 +0,0 @@
|
||||
#
|
||||
# ETS320 Touch sensor driver
|
||||
#
|
||||
|
||||
|
||||
# ets320 "finger present"
|
||||
key 618 SYSTEM_NAVIGATION_UP
|
||||
key 619 SYSTEM_NAVIGATION_DOWN
|
||||
key 622 SYSTEM_NAVIGATION_LEFT
|
||||
@@ -1,7 +0,0 @@
|
||||
# Goodix side-type fingerprint sensor
|
||||
|
||||
key 103 SYSTEM_NAVIGATION_UP
|
||||
key 108 SYSTEM_NAVIGATION_DOWN
|
||||
|
||||
# use SYSTEM_NAVIGATION_LEFT for double-tap gesture
|
||||
key 115 SYSTEM_NAVIGATION_LEFT
|
||||
19
device.mk
19
device.mk
@@ -17,8 +17,8 @@ PRODUCT_AAPT_PREBUILT_DPI := xxxhdpi xxhdpi xhdpi hdpi
|
||||
|
||||
PRODUCT_SHIPPING_API_LEVEL := 30
|
||||
|
||||
# Inherit from motorola sm7325-common
|
||||
$(call inherit-product, device/motorola/sm7325-common/common.mk)
|
||||
# Inherit from motorola sm8350-common
|
||||
$(call inherit-product, device/motorola/sm8350-common/common.mk)
|
||||
|
||||
# Overlays
|
||||
PRODUCT_PACKAGES += \
|
||||
@@ -41,12 +41,7 @@ PRODUCT_COPY_FILES += \
|
||||
|
||||
# Fingerprint
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.biometrics.fingerprint@2.1-service.berlna \
|
||||
|
||||
$(foreach f,$(wildcard $(LOCAL_PATH)/configs/idc/*.idc),\
|
||||
$(eval PRODUCT_COPY_FILES += $(f):$(TARGET_COPY_OUT_VENDOR)/usr/idc/$(notdir $f)))
|
||||
$(foreach f,$(wildcard $(LOCAL_PATH)/configs/keylayout/*.kl),\
|
||||
$(eval PRODUCT_COPY_FILES += $(f):$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/$(notdir $f)))
|
||||
android.hardware.biometrics.fingerprint@2.1-service.berlna
|
||||
|
||||
# Init
|
||||
PRODUCT_PACKAGES += \
|
||||
@@ -62,9 +57,15 @@ PRODUCT_PACKAGES += \
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.light-service.lineage
|
||||
|
||||
# Moto Camera 4
|
||||
TARGET_MOTCAMERA4 := berlna
|
||||
TARGET_USES_MOTCAMERA4 := true
|
||||
|
||||
$(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
|
||||
|
||||
|
||||
19
evolution.dependencies
Normal file
19
evolution.dependencies
Normal file
@@ -0,0 +1,19 @@
|
||||
[
|
||||
{
|
||||
"repository": "device_motorola_sm8350-common",
|
||||
"target_path": "device/motorola/sm8350-common",
|
||||
"remote": "evo-devices"
|
||||
},
|
||||
{
|
||||
"repository": "Deivid-21s-Sources/proprietary_vendor_motorola_berlna",
|
||||
"target_path": "vendor/motorola/berlna",
|
||||
"remote": "github-non-los",
|
||||
"branch": "lineage-22.2"
|
||||
},
|
||||
{
|
||||
"repository": "Deivid-21s-Sources/proprietary_vendor_motorola_berlna-radio",
|
||||
"target_path": "vendor/motorola/berlna-radio",
|
||||
"remote": "gitlab",
|
||||
"branch": "lineage-22.2"
|
||||
}
|
||||
]
|
||||
@@ -22,7 +22,7 @@ from extract_utils.main import (
|
||||
)
|
||||
|
||||
namespace_imports = [
|
||||
'vendor/motorola/sm7325-common',
|
||||
'vendor/motorola/sm8350-common',
|
||||
'hardware/motorola',
|
||||
'hardware/qcom-caf/sm8350',
|
||||
'hardware/qcom-caf/wlan',
|
||||
@@ -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
|
||||
|
||||
@@ -60,6 +67,6 @@ module = ExtractUtilsModule(
|
||||
|
||||
if __name__ == '__main__':
|
||||
utils = ExtractUtils.device_with_common(
|
||||
module, 'sm7325-common', module.vendor
|
||||
module, 'sm8350-common', module.vendor
|
||||
)
|
||||
utils.run()
|
||||
|
||||
@@ -2,22 +2,21 @@
|
||||
# This file needs to be executed by vendor_init at boot of the device,
|
||||
# both in normal and factory mode.
|
||||
|
||||
on post-fs
|
||||
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 && property:persist.vendor.radio.multisim.config=*
|
||||
start vendor.stflashtool
|
||||
on property:ro.vendor.hw.nfc=true
|
||||
start vendor.st_nfc_hal_service
|
||||
|
||||
on property:ro.vendor.hw.nfc=st && property:persist.vendor.radio.multisim.config=*
|
||||
start vendor.stflashtool
|
||||
on property:ro.vendor.hw.nfc=st
|
||||
setprop persist.vendor.nfc.config_file_name libnfc-hal-st.conf
|
||||
start vendor.st_nfc_hal_service
|
||||
|
||||
on property:ro.vendor.hw.nfc=ese_st && property:persist.vendor.radio.multisim.config=*
|
||||
start vendor.stflashtool
|
||||
|
||||
service vendor.stflashtool /vendor/bin/STFlashTool -c /vendor/etc/st21nfc_conf.txt -P vendor.nfc.fw_status
|
||||
group nfc
|
||||
service vendor.st_nfc_hal_service /vendor/bin/hw/android.hardware.nfc-service.st
|
||||
override
|
||||
class hal
|
||||
user nfc
|
||||
oneshot
|
||||
group nfc
|
||||
disabled
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
[
|
||||
{
|
||||
"repository": "android_device_motorola_sm7325-common",
|
||||
"target_path": "device/motorola/sm7325-common"
|
||||
}
|
||||
]
|
||||
20
manifest.xml
20
manifest.xml
@@ -1,20 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
SPDX-FileCopyrightText: The LineageOS Project
|
||||
SPDX-License-Identifier: Apache-2.0
|
||||
-->
|
||||
<manifest version="2.0" type="device">
|
||||
<hal format="hidl">
|
||||
<name>vendor.lineage.livedisplay</name>
|
||||
<transport>hwbinder</transport>
|
||||
<version>2.1</version>
|
||||
<interface>
|
||||
<name>IPictureAdjustment</name>
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
<interface>
|
||||
<name>ISunlightEnhancement</name>
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
</manifest>
|
||||
@@ -16,7 +16,6 @@ ro.opa.device_model_id=motorola-berlna
|
||||
# Moto
|
||||
persist.mot_bt.aptx_cert=true
|
||||
ro.lenovo.single_hand=1
|
||||
ro.mot.build.customerid=global
|
||||
ro.support_one_handed_mode=true
|
||||
ro.vendor.paramfile.device=berlna
|
||||
ro.vendor.paramfile.special_device=berlna_global
|
||||
|
||||
@@ -212,6 +212,7 @@ vendor/lib64/com.qti.feature2.stub.so
|
||||
vendor/lib64/com.qti.feature2.swmf.so
|
||||
|
||||
# Camera - ICP
|
||||
vendor/firmware/CAMERA_ICP.elf
|
||||
vendor/firmware/CAMERA_ICP_170.elf
|
||||
|
||||
# Camera - Motorola
|
||||
@@ -245,6 +246,12 @@ vendor/etc/qdcm_calib_data_nt36672e_60_Hz_fhd_plus_video_mode_panel_without_DSC.
|
||||
vendor/etc/qdcm_calib_data_nt36672e_fhd_plus_120Hz_Video_panel.xml
|
||||
vendor/etc/qdcm_calib_data_nt36672e_fhd_plus_144Hz_video_panel.xml
|
||||
|
||||
# Fingerprint - configs
|
||||
vendor/usr/idc/uinput-egis.idc
|
||||
vendor/usr/idc/uinput_nav.idc
|
||||
vendor/usr/keylayout/uinput-egis.kl
|
||||
vendor/usr/keylayout/uinput_nav.kl
|
||||
|
||||
# Fingerprint (goodix)
|
||||
vendor/lib64/hw/fingerprint.goodix.default.so
|
||||
vendor/lib64/libgf_ca.so
|
||||
@@ -264,42 +271,6 @@ 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
|
||||
|
||||
# MotCamera3
|
||||
product/app/MotCamera3AI/MotCamera3AI.apk;PRESIGNED
|
||||
product/etc/init/init.motcamera3.lens.rc
|
||||
product/etc/permissions/com.motorola.camera3.content.ai.xml
|
||||
product/etc/permissions/com.motorola.camera3.lens.xml
|
||||
product/etc/permissions/com.motorola.camera3.xml
|
||||
product/etc/permissions/deviceowner-configuration-com.motorola.camera3.xml
|
||||
product/etc/permissions/privapp-permissions-com.motorola.camera3.xml
|
||||
product/etc/sysconfig/hiddenapi-whitelist-com.motorola.camera3.xml
|
||||
product/priv-app/MotCamera4/MotCamera4.apk|09bfcf8cc5e7f42ad781e38b71dc4e2077b60388
|
||||
system/app/MotoSignatureApp/MotoSignatureApp.apk;PRESIGNED
|
||||
system/etc/permissions/com.motorola.frameworks.core.addon.xml
|
||||
system/etc/permissions/com.motorola.motosignature.xml
|
||||
system/etc/permissions/moto-checkin.xml
|
||||
system/etc/permissions/moto-core_services.xml
|
||||
system/etc/permissions/moto-settings.xml
|
||||
system/framework/com.motorola.frameworks.core.addon.jar
|
||||
system/framework/com.motorola.motosignature.jar
|
||||
system/framework/moto-checkin.jar
|
||||
system/framework/moto-core_services.jar
|
||||
system/framework/moto-settings.jar
|
||||
system_ext/bin/motsettings
|
||||
system_ext/priv-app/MotorolaSettingsProvider/MotorolaSettingsProvider.apk
|
||||
|
||||
# Moto Permissions
|
||||
product/etc/permissions/com.motorola.camera3.berlna.xml:vendor/etc/permissions/com.motorola.camera3.berlna.xml
|
||||
product/etc/permissions/com.motorola.camera3.content.ai.xml:vendor/etc/permissions/com.motorola.camera3.content.ai.xml
|
||||
product/etc/permissions/com.motorola.camera3.lens.xml:vendor/etc/permissions/com.motorola.camera3.lens.xml
|
||||
product/etc/permissions/com.motorola.camera3.xml:vendor/etc/permissions/com.motorola.camera3.xml
|
||||
product/etc/permissions/com.motorola.moto-uirefresh.xml
|
||||
product/etc/permissions/com.motorola.motodisplay.xml
|
||||
product/etc/permissions/privapp-permissions-com.motorola.motodisplay.xml
|
||||
|
||||
# NFC
|
||||
vendor/bin/STFlashTool
|
||||
|
||||
# NFC - configs
|
||||
vendor/etc/libnfc-hal-st.conf
|
||||
vendor/etc/libnfc-nci-st.conf
|
||||
@@ -390,52 +361,3 @@ vendor/firmware/novatek_ts-NT36675-21061805-603a-berlna.bin:recovery/root/vendor
|
||||
# Vibrator firmware
|
||||
vendor/firmware/aw8695_haptic.bin
|
||||
vendor/firmware/aw8695_rtp.bin
|
||||
vendor/firmware/aw8695_rtp_Argo_Navis.bin
|
||||
vendor/firmware/aw8695_rtp_Attentive.bin
|
||||
vendor/firmware/aw8695_rtp_Awake.bin
|
||||
vendor/firmware/aw8695_rtp_Bird_Loop.bin
|
||||
vendor/firmware/aw8695_rtp_Brilliant_Times.bin
|
||||
vendor/firmware/aw8695_rtp_Chimey_Phone.bin
|
||||
vendor/firmware/aw8695_rtp_City_Lights.bin
|
||||
vendor/firmware/aw8695_rtp_Complex.bin
|
||||
vendor/firmware/aw8695_rtp_Crazy_Dream.bin
|
||||
vendor/firmware/aw8695_rtp_Curve_Ball_Blend.bin
|
||||
vendor/firmware/aw8695_rtp_Digital_Phone.bin
|
||||
vendor/firmware/aw8695_rtp_Electrovision.bin
|
||||
vendor/firmware/aw8695_rtp_Ether_Shake.bin
|
||||
vendor/firmware/aw8695_rtp_Fateful_Words.bin
|
||||
vendor/firmware/aw8695_rtp_Firefly.bin
|
||||
vendor/firmware/aw8695_rtp_Flutey_Phone.bin
|
||||
vendor/firmware/aw8695_rtp_Future_Funk.bin
|
||||
vendor/firmware/aw8695_rtp_Future_Hi_Tech.bin
|
||||
vendor/firmware/aw8695_rtp_Girtab.bin
|
||||
vendor/firmware/aw8695_rtp_Hello.bin
|
||||
vendor/firmware/aw8695_rtp_Hexagon.bin
|
||||
vendor/firmware/aw8695_rtp_Hydra.bin
|
||||
vendor/firmware/aw8695_rtp_Insert_Coin.bin
|
||||
vendor/firmware/aw8695_rtp_Jumping_Dots.bin
|
||||
vendor/firmware/aw8695_rtp_Keys.bin
|
||||
vendor/firmware/aw8695_rtp_Loopy.bin
|
||||
vendor/firmware/aw8695_rtp_Loopy_Lounge.bin
|
||||
vendor/firmware/aw8695_rtp_Modular.bin
|
||||
vendor/firmware/aw8695_rtp_Momentum.bin
|
||||
vendor/firmware/aw8695_rtp_Morning.bin
|
||||
vendor/firmware/aw8695_rtp_Moto.bin
|
||||
vendor/firmware/aw8695_rtp_Natural.bin
|
||||
vendor/firmware/aw8695_rtp_New_Player.bin
|
||||
vendor/firmware/aw8695_rtp_Now_or_Never.bin
|
||||
vendor/firmware/aw8695_rtp_Onward.bin
|
||||
vendor/firmware/aw8695_rtp_Organ_Dub.bin
|
||||
vendor/firmware/aw8695_rtp_Overclocked.bin
|
||||
vendor/firmware/aw8695_rtp_Pegasus.bin
|
||||
vendor/firmware/aw8695_rtp_Play.bin
|
||||
vendor/firmware/aw8695_rtp_Pyxis.bin
|
||||
vendor/firmware/aw8695_rtp_Regrade.bin
|
||||
vendor/firmware/aw8695_rtp_Scarabaeus.bin
|
||||
vendor/firmware/aw8695_rtp_Sceptrum.bin
|
||||
vendor/firmware/aw8695_rtp_Simple.bin
|
||||
vendor/firmware/aw8695_rtp_Solarium.bin
|
||||
vendor/firmware/aw8695_rtp_Sparse.bin
|
||||
vendor/firmware/aw8695_rtp_Terrabytes.bin
|
||||
vendor/firmware/aw8695_rtp_Verizon_Airwaves.bin
|
||||
vendor/firmware/aw8695_rtp_Zero_Hour.bin
|
||||
|
||||
@@ -1,4 +1,21 @@
|
||||
# Firmware - from berlna_global-user 13 T1RMS33.1-110-17-12 f7bcd-35c05 release-keys - RETUS variant - (factory image).
|
||||
|
||||
BTFM.bin:bluetooth.img;AB|f03693c9c493e89587f564a22d374ca8caf20559
|
||||
abl.elf:abl.img;AB
|
||||
aop.mbn:aop.img;AB
|
||||
BTFM.bin:bluetooth.img;AB
|
||||
cpucp.elf:cpucp.img;AB
|
||||
devcfg.mbn:devcfg.img;AB
|
||||
dspso.bin:dsp.img;AB
|
||||
fsg.mbn:fsg.img;AB
|
||||
hyp.mbn:hyp.img;AB
|
||||
keymaster.mbn:keymaster.img;AB
|
||||
logo.bin:logo.img;AB
|
||||
NON-HLOS.bin:modem.img;AB
|
||||
prov64.mbn:prov.img;AB
|
||||
qupfw.elf:qupfw.img;AB
|
||||
shrm.elf:shrm.img;AB
|
||||
storsec.mbn:storsec.img;AB
|
||||
tz.mbn:tz.img;AB
|
||||
uefi_sec.mbn:uefisecapp.img;AB
|
||||
xbl.elf:xbl.img;AB
|
||||
xbl_config.elf:xbl_config.img;AB
|
||||
|
||||
@@ -272,6 +272,10 @@
|
||||
non-zero. -->
|
||||
<integer name="config_defaultPeakRefreshRate">120</integer>
|
||||
|
||||
<!-- Default refresh rate in the zone defined by brightness and ambient thresholds.
|
||||
If non-positive, then the refresh rate is unchanged even if thresholds are configured. -->
|
||||
<integer name="config_defaultRefreshRateInZone">90</integer>
|
||||
|
||||
<!-- Default component for QR code scanner -->
|
||||
<string name="config_defaultQrCodeComponent" translatable="false">com.motorola.camera3/com.motorola.camera.Camera</string>
|
||||
</resources>
|
||||
|
||||
@@ -6,4 +6,8 @@
|
||||
<resources>
|
||||
<!-- Whether to show a preference item for regulatory information in About phone -->
|
||||
<bool name="config_show_regulatory_info">true</bool>
|
||||
|
||||
<!-- Custom Maintainer -->
|
||||
<string name="build_maintainer_summary" translatable="false">Deivid Ignacio Parra (Deivid21)</string>
|
||||
<string name="build_maintainer_donate_url" translatable="false">https://www.paypal.com/paypalme/Deivid21</string>
|
||||
</resources>
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user