13 Commits
vic ... bka

Author SHA1 Message Date
Deivid21
ac7386ab7b bathena: Build MotCamera2 from prebuilt source
Change-Id: I8c999438ada1c89d7888136de78ced875a16e636
Signed-off-by: Deivid21 <david.parra.ignacio@gmail.com>
2025-10-15 00:49:14 -03:00
Deivid21
d91aa9e4f3 bathena: init: Add Erofs filesystem type mount point
Change-Id: I0bd2f193de4608b0d6899f1f2ad467bb5f33cc1c
2025-10-15 00:49:13 -03:00
lahaina
5dcb88600d bathena: Don't build userdata image
Change-Id: I397a3dc2c48a92f18bf9292fa45d193f4c2fc4e3
2025-10-15 00:49:13 -03:00
Deivid21
126d42158e bathena: Adjustments for Evolution X
Change-Id: Ifac6ab7e5feff0f93f6f3d1aa2d6f504c8fdcc23
2025-10-15 00:49:13 -03:00
Deivid21
5a7e61fd0b bathena: 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-15 00:49:07 -03:00
Deivid21
f193478821 bathena: Add missing fingerprint binary
Change-Id: I1dcba562ee6981292c41593c415d2010af4b4edb
2025-10-14 21:19:14 -03:00
Georg Veichtlbauer
2b201cd503 bathena: overlay: Update deprecated screen power items
* screen.on -> screen.on.display0
* screen.full -> screen.full.display0

AOSP frameworks/base: 8ac63071a4e6da7e0740f5eb6c6753218efcfd3a

Change-Id: Iad50e6cb63368e2d71e6fa1dbb6997c0f95d321e
2025-10-11 01:02:33 +03:00
Deivid21
245424c780 bathena: overlay: Add wifi overlay and MMS UA profile
Change-Id: Iefdfff8b9146c1cc4b4e339ce2bd43817cc60479
2025-10-11 01:02:33 +03:00
Michael Bestas
4080f69273 bathena: Add missing copyright headers
* And drop copyright years.

Change-Id: Ie326d27d43be28f2c4696f79f7f63754793d4b1c
2025-10-10 22:59:48 +03:00
Michael Bestas
413efcadc6 bathena: overlay: Convert overlays to Android.bp
Also run everything through beautify_rro.py

Change-Id: I4c5a802e5c332551f3f2ab847384495c796113e5
2025-10-10 22:56:40 +03:00
Michael Bestas
609b37f2f6 bathena: Add missing capsense_reset
Change-Id: Ic4106c53cb31f0ef50fbcba2c8102480e8c00761
2025-10-10 22:54:14 +03:00
Michael Bestas
914e467313 bathena: Cleanup init.mmi.overlay.rc
Co-authored-by: Deivid21 <david.parra.ignacio@gmail.com>
Change-Id: I0d78b743e7e66553fb624b7402a6920ca881fd82
2025-10-10 22:54:14 +03:00
Michael Bestas
79fc338246 bathena: Enable LiveDisplay adaptive backlight
Change-Id: I3892e178b87b569805dd5e929e009d465bd63461
2025-09-05 12:10:08 +03:00
16 changed files with 118 additions and 150 deletions

View File

@@ -37,7 +37,7 @@ PRODUCT_PACKAGES += \
$(call soong_config_set,livedisplay_sysfs,enable_ab,true)
# Moto Camera 2
TARGET_MOTCAMERA2 := nevis
TARGET_MOTCAMERA2 := whitney
TARGET_USES_MOTCAMERA2 := true
$(call inherit-product, vendor/motorola/MotCamera2/motcamera2.mk)

View File

@@ -42,6 +42,11 @@ blob_fixups: blob_fixups_user_type = {
.binary_regex_replace(b'camera.mot.is.coming.cts', b'vendor.camera.coming.cts'),
'vendor/lib64/libvidhance.so': blob_fixup()
.add_needed('libcomparetf2_shim.so'),
(
'vendor/lib64/camera/components/com.qti.node.dewarp.so',
'vendor/lib64/camera/components/com.vidhance.node.processing.so',
): blob_fixup()
.replace_needed('libui.so', 'libui-v34.so'),
} # fmt: skip
extract_fns: extract_fns_user_type = {

View File

@@ -7,9 +7,13 @@
#<src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags>
system /system erofs ro wait,slotselect,avb=vbmeta,avb_keys=/avb/q-gsi.avbpubkey:/avb/r-gsi.avbpubkey:/avb/s-gsi.avbpubkey,logical,first_stage_mount
system /system ext4 ro wait,slotselect,avb=vbmeta,avb_keys=/avb/q-gsi.avbpubkey:/avb/r-gsi.avbpubkey:/avb/s-gsi.avbpubkey,logical,first_stage_mount
system_ext /system_ext erofs ro wait,slotselect,avb=vbmeta,logical,first_stage_mount
system_ext /system_ext ext4 ro wait,slotselect,avb=vbmeta,logical,nofail,first_stage_mount
product /product erofs ro wait,slotselect,avb=vbmeta,logical,first_stage_mount
product /product ext4 ro wait,slotselect,avb=vbmeta,logical,nofail,first_stage_mount
vendor /vendor erofs ro wait,slotselect,avb=vbmeta,logical,first_stage_mount
vendor /vendor ext4 ro wait,slotselect,avb=vbmeta,logical,first_stage_mount
/dev/block/by-name/metadata /metadata ext4 noatime,nosuid,nodev,discard wait,formattable,first_stage_mount,check
/dev/block/bootdevice/by-name/userdata /data f2fs noatime,nosuid,nodev,discard,reserve_root=32768,resgid=1065,fsync_mode=nobarrier,inlinecrypt latemount,wait,check,formattable,fileencryption=aes-256-xts:aes-256-cts:v2+emmc_optimized+wrappedkey_v0,metadata_encryption=aes-256-xts:wrappedkey_v0,keydirectory=/metadata/vold/metadata_encryption,quota,reservedsize=128M,sysfs_path=/sys/devices/platform/soc/4744000.sdhci,checkpoint=fs
/devices/platform/soc/4784000.sdhci/mmc_host* auto auto defaults wait,voldmanaged=sdcard1:auto

View File

@@ -20,12 +20,11 @@ on fs
exec u:r:vendor_modprobe:s0 -- /vendor/bin/modprobe -a -d /vendor/lib/modules sensors_class abov_sar_mmi_overlay audio_snd_soc_aw882xx
on early-boot
# Goodix fingerprint
chown system system /dev/goodix_fp
chmod 0664 /dev/goodix_fp
chmod 0777 /proc/android_touch/debug
mkdir /data/vendor/gf_data 0770 system system
mkdir /mnt/vendor/persist/goodix 0770 system system
# Goodix fingerprint
chown system system /dev/goodix_fp
chmod 0664 /dev/goodix_fp
mkdir /data/vendor/gf_data 0770 system system
mkdir /mnt/vendor/persist/goodix 0770 system system
service capsense_reset /system/vendor/bin/capsense_reset
class core

View File

@@ -1,13 +1,7 @@
chipone_tddi_mmi.ko
exfat.ko
focaltech_touch_spi_mmi.ko
himax_v3_mmi_hx83102d.ko
himax_v3_mmi.ko
ili9882_mmi.ko
chipone_tddi_mmi.ko
nova_0flash_mmi.ko
mmi_annotate.ko
mmi_info.ko
mmi_sys_temp.ko
qpnp_adaptive_charge.ko
qpnp-power-on-mmi.ko
sensors_class.ko
exfat.ko

View File

@@ -253,8 +253,6 @@ vendor/firmware/novatek_ts_fw.bin
vendor/firmware/novatek_ts_mp.bin
# Touchscreen firmware (recovery)
vendor/firmware/aw869x_haptic.bin:recovery/root/vendor/firmware/aw869x_haptic.bin
vendor/firmware/aw869x_rtp.bin:recovery/root/vendor/firmware/aw869x_rtp.bin
vendor/firmware/FOCAL_FW_HLT_FT8006S.bin:recovery/root/vendor/firmware/FOCAL_FW_HLT_FT8006S.bin
vendor/firmware/ICNL9911.bin:recovery/root/vendor/firmware/ICNL9911.bin
vendor/firmware/ILITEK_FW_HLT.hex:recovery/root/vendor/firmware/ILITEK_FW_HLT.hex
@@ -266,9 +264,5 @@ vendor/firmware/hlt_hx_criteria.csv:recovery/root/vendor/firmware/hlt_hx_criteri
vendor/firmware/novatek_ts_fw.bin:recovery/root/vendor/firmware/novatek_ts_fw.bin
vendor/firmware/novatek_ts_mp.bin:recovery/root/vendor/firmware/novatek_ts_mp.bin
# Vibrator firmware
vendor/firmware/aw869x_haptic.bin
vendor/firmware/aw869x_rtp.bin
# WiFi
vendor/bin/cnss-daemon

View File

@@ -4,10 +4,8 @@
SPDX-License-Identifier: Apache-2.0
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="android.overlay.device">
<overlay
android:isStatic="true"
android:priority="300"
android:targetPackage="android" />
package="android.overlay.device">
<overlay android:targetPackage="android"
android:isStatic="true"
android:priority="300" />
</manifest>

View File

@@ -1,14 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
SPDX-FileCopyrightText: 2009 The Android Open Source Project
SPDX-FileCopyrightText: The LineageOS Project
SPDX-License-Identifier: Apache-2.0
SPDX-FileCopyrightText: The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<resources>
<!-- Vibrator pattern for feedback about a long screen/key press -->
<integer-array name="config_longPressVibePattern">
<item>0</item>
<item>43</item>
</integer-array>
<!-- These resources are around just to allow their values to be customized
for different hardware and product builds. Do not translate. -->
<!-- Vibrator pattern for feedback about touching a virtual key -->
<integer-array name="config_virtualKeyVibePattern">
<item>0</item>
<item>43</item>
</integer-array>
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Is the notification LED intrusive? Used to decide if there should be a disable option -->
<bool name="config_intrusiveNotificationLed">true</bool>
<!-- Screen brightness used to dim the screen when the user activity
timeout expires. May be less than the minimum allowed brightness setting
that can be set by the user. -->
<integer name="config_screenBrightnessDim">4</integer>
<!-- Minimum allowable screen brightness to use in a very dark room.
This value sets the floor for the darkest possible auto-brightness
@@ -19,52 +33,6 @@
in darkness (although they may not be visible in a bright room). -->
<integer name="config_screenBrightnessDark">2</integer>
<!-- Screen brightness used to dim the screen when the user activity
timeout expires. May be less than the minimum allowed brightness setting
that can be set by the user. -->
<integer name="config_screenBrightnessDim">4</integer>
<!-- The default peak refresh rate for a given device. Change this value if you want to prevent
the framework from using higher refresh rates, even if display modes with higher refresh
rates are available from hardware composer. Only has an effect if the value is
non-zero. -->
<integer name="config_defaultPeakRefreshRate">60</integer>
<!-- Array of desired screen brightness in nits corresponding to the lux values
in the config_autoBrightnessLevels array. The display brightness is defined as the measured
brightness of an all-white image.
If this is defined then:
- config_autoBrightnessLcdBacklightValues should not be defined
- config_screenBrightnessNits must be defined
- config_screenBrightnessBacklight must be defined
This array should have size one greater than the size of the config_autoBrightnessLevels
array. The brightness values must be non-negative and non-decreasing. This must be
overridden in platform specific overlays -->
<integer-array name="config_autoBrightnessDisplayValuesNits">
<item>2</item>
<item>40</item>
<item>70</item>
<item>85</item>
<item>110</item>
<item>130</item>
<item>150</item>
<item>180</item>
<item>180</item>
<item>180</item>
<item>180</item>
<item>225</item>
<item>270</item>
<item>300</item>
<item>315</item>
<item>330</item>
<item>400</item>
<item>400</item>
<item>400</item>
<item>400</item>
</integer-array>
<!-- Array of light sensor lux values to define our levels for auto backlight brightness support.
The N entries of this array define N + 1 control points as follows:
(1-based arrays)
@@ -107,6 +75,41 @@
<item>8000</item>
</integer-array>
<!-- Array of desired screen brightness in nits corresponding to the lux values
in the config_autoBrightnessLevels array. The display brightness is defined as the measured
brightness of an all-white image.
If this is defined then:
- config_autoBrightnessLcdBacklightValues should not be defined
- config_screenBrightnessNits must be defined
- config_screenBrightnessBacklight must be defined
This array should have size one greater than the size of the config_autoBrightnessLevels
array. The brightness values must be non-negative and non-decreasing. This must be
overridden in platform specific overlays -->
<array name="config_autoBrightnessDisplayValuesNits">
<item>2</item>
<item>40</item>
<item>70</item>
<item>85</item>
<item>110</item>
<item>130</item>
<item>150</item>
<item>180</item>
<item>180</item>
<item>180</item>
<item>180</item>
<item>225</item>
<item>270</item>
<item>300</item>
<item>315</item>
<item>330</item>
<item>400</item>
<item>400</item>
<item>400</item>
<item>400</item>
</array>
<!-- An array describing the screen's backlight values corresponding to the brightness
values in the config_screenBrightnessNits array.
@@ -136,7 +139,7 @@
brightness modes but only the maximum brightness value obtainable in a sustainable manner.
This array should be equal in size to config_screenBrightnessBacklight -->
<integer-array name="config_screenBrightnessNits">
<array name="config_screenBrightnessNits">
<item>0</item>
<item>2</item>
<item>40</item>
@@ -152,7 +155,16 @@
<item>315</item>
<item>330</item>
<item>400</item>
</integer-array>
</array>
<!-- MMS user agent string -->
<string name="config_mms_user_agent" translatable="false">motoroladefy</string>
<!-- MMS user agent prolfile url -->
<string name="config_mms_user_agent_profile_url" translatable="false">http://uaprof.motorola.com/phoneconfig/motov1/Profile/motov1.rdf</string>
<!-- Specify if the fingerprint hardware support gestures-->
<bool name="config_fingerprintSupportsGestures">true</bool>
<!-- The bounding path of the cutout region of the main built-in display.
Must either be empty if there is no cutout region, or a string that is parsable by
@@ -186,27 +198,12 @@
Z
</string>
<!-- Vibrator pattern for feedback about a long screen/key press -->
<integer-array name="config_longPressVibePattern">
<item>0</item>
<item>43</item>
</integer-array>
<!-- Vibrator pattern for feedback about touching a virtual key -->
<integer-array name="config_virtualKeyVibePattern">
<item>0</item>
<item>43</item>
</integer-array>
<!-- Is the notification LED intrusive? Used to decide if there should be a disable option -->
<bool name="config_intrusiveNotificationLed">true</bool>
<!-- Specify if the fingerprint hardware support gestures-->
<bool name="config_fingerprintSupportsGestures">true</bool>
<!-- Enable system navigation keys. -->
<!-- True if the device supports system navigation keys. -->
<bool name="config_supportSystemNavigationKeys">true</bool>
<!-- MMS user agent string -->
<string name="config_mms_user_agent" translatable="false">motoroladefy</string>
<!-- The default peak refresh rate for a given device. Change this value if you want to prevent
the framework from using higher refresh rates, even if display modes with higher refresh
rates are available from hardware composer. Only has an effect if the value is
non-zero. -->
<integer name="config_defaultPeakRefreshRate">60</integer>
</resources>

View File

@@ -1,21 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
SPDX-FileCopyrightText: 2009 The Android Open Source Project
SPDX-FileCopyrightText: The LineageOS Project
SPDX-License-Identifier: Apache-2.0
SPDX-FileCopyrightText: The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<!-- These resources are around just to allow their values to be customized
for different hardware and product builds. Do not translate. -->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Default radius of the software rounded corners. -->
<dimen name="rounded_corner_radius">68.0px</dimen>
<!-- Default paddings for content around the corners. -->
<dimen name="rounded_corner_content_padding">20dp</dimen>
<resources>
<!-- The default height of the status bar used in {@link SystemBarUtils#getStatusBarHeight} to
calculate the status bar height. -->
<dimen name="status_bar_height_default">28dp</dimen>
@@ -29,4 +17,10 @@
Do not read this dimen directly. Use {@link SystemBarUtils#getStatusBarHeight} instead.
-->
<dimen name="status_bar_height_landscape">28dp</dimen>
<!-- Default radius of the software rounded corners. -->
<dimen name="rounded_corner_radius">68.0px</dimen>
<!-- Default paddings for content around the corners. -->
<dimen name="rounded_corner_content_padding">20dp</dimen>
</resources>

View File

@@ -5,8 +5,8 @@
-->
<device name="Android">
<item name="none">0</item>
<item name="screen.on">88.97</item>
<item name="screen.full">325.02</item>
<item name="screen.on.display0">88.97</item>
<item name="screen.full.display0">325.02</item>
<item name="wifi.on">3.01</item>
<item name="wifi.active">78.83</item>
<item name="wifi.scan">78.45</item>

View File

@@ -4,10 +4,8 @@
SPDX-License-Identifier: Apache-2.0
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="lineageos.platform.overlay.device">
<overlay
android:isStatic="true"
android:priority="800"
android:targetPackage="lineageos.platform" />
package="lineageos.platform.overlay.device">
<overlay android:targetPackage="lineageos.platform"
android:isStatic="true"
android:priority="800" />
</manifest>

View File

@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
SPDX-FileCopyrightText: 2015-2016 The CyanogenMod Project
SPDX-FileCopyrightText: The LineageOS Project
SPDX-License-Identifier: Apache-2.0
SPDX-FileCopyrightText: The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<resources>
<!-- All the capabilities of the LEDs on this device, stored as a bit field.

View File

@@ -4,9 +4,7 @@
SPDX-License-Identifier: Apache-2.0
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.android.systemui.overlay.device">
<overlay
android:isStatic="true"
android:targetPackage="com.android.systemui" />
package="com.android.systemui.overlay.device">
<overlay android:targetPackage="com.android.systemui"
android:isStatic="true" />
</manifest>

View File

@@ -1,16 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
SPDX-FileCopyrightText: 2009 The Android Open Source Project
SPDX-FileCopyrightText: The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<!-- These resources are around just to allow their values to be customized
for different hardware and product builds. Do not translate. -->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<resources>
<!-- Doze: does this device support STATE_DOZE? -->
<bool name="doze_display_state_supported">true</bool>
</resources>

View File

@@ -1,10 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
SPDX-FileCopyrightText: 2009 The Android Open Source Project
SPDX-FileCopyrightText: The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<resources>
<!-- Height of the status bar header bar when on Keyguard -->
<dimen name="status_bar_header_height_keyguard">@*android:dimen/status_bar_height</dimen>

View File

@@ -4,11 +4,8 @@
SPDX-License-Identifier: Apache-2.0
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.android.wifi.resources.overlay.device">
<overlay
android:isStatic="true"
android:priority="800"
android:targetName="WifiCustomization"
android:targetPackage="com.android.wifi.resources" />
package="com.android.wifi.resources.overlay.device">
<overlay android:targetPackage="com.android.wifi.resources"
android:isStatic="true"
android:priority="800" />
</manifest>