13 Commits
bka ... vic

Author SHA1 Message Date
Deivid21
639d006eaa bathena: Update modules load in recovery
Change-Id: I810f0645adf1745e2c350bee2a11685da1ae4f5f
2025-09-18 01:42:15 -03:00
Deivid21
e2f86cc76a bathena: Add missing vibrator firmware
Change-Id: I2d697d9572afcdc057a050525c98ef53a715b38f
2025-09-18 01:37:39 -03:00
Deivid21
f3e18c3b74 bathena: Add missing fingerprint binary
Change-Id: I9681f3000b4147c916a116ba0de4bd90149b1fb8
2025-09-13 17:18:41 -03:00
Michael Bestas
7baf755630 bathena: Enable LiveDisplay adaptive backlight
Change-Id: I3892e178b87b569805dd5e929e009d465bd63461
2025-09-13 13:10:45 -03:00
Deivid21
895db5e4ad bathena: init: Switch filesystem type to EroFS
Change-Id: Ie2c5045617b024cae9866ebae4b2df72178c841d
2025-08-19 23:33:41 -04:00
lahaina
4a3b96413e bathena: Don't build userdata image
Change-Id: I5fe9246104f70c80338ea4615eef352300ccd2cb
2025-08-19 23:33:41 -04:00
Deivid21
e822779d49 bathena: Build MotCamera2 from prebuilt source
Change-Id: I9f17963696d5c7476abe3da2990eba0c4c98e565
Signed-off-by: Deivid21 <david.parra.ignacio@gmail.com>
2025-08-19 23:33:41 -04:00
Deivid21
1bc7bd03aa bathena: Adjustments for Evolution X
Change-Id: I9a6ff9e785eccacf3f5664b5beb55b6a2fff6dcd
2025-08-19 23:33:40 -04:00
Deivid21
3fa5fc1d09 bathena: overlay: Add wifi overlay and MMS UA profile
Change-Id: Iefdfff8b9146c1cc4b4e339ce2bd43817cc60479
2025-08-19 23:33:17 -04:00
Michael Bestas
893c6570df bathena: Switch to SPDX copyright
* And drop copyright years.

Change-Id: Ie326d27d43be28f2c4696f79f7f63754793d4b1c
2025-08-19 21:48:08 -04:00
Michael Bestas
dd09cb549e bathena: overlay: Convert overlays to Android.bp
Change-Id: I4c5a802e5c332551f3f2ab847384495c796113e5
2025-08-19 21:45:11 -04:00
Michael Bestas
ca74d3d34b bathena: Add missing capsense_reset
Change-Id: Ic4106c53cb31f0ef50fbcba2c8102480e8c00761
2025-08-19 21:43:21 -04:00
Michael Bestas
e410623d11 bathena: Cleanup init.mmi.overlay.rc
Co-authored-by: Deivid21 <david.parra.ignacio@gmail.com>
Change-Id: I0d78b743e7e66553fb624b7402a6920ca881fd82
2025-08-19 21:43:02 -04:00
16 changed files with 150 additions and 118 deletions

View File

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

View File

@@ -42,11 +42,6 @@ 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,13 +7,9 @@
#<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,11 +20,12 @@ 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
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
chmod 0777 /proc/android_touch/debug
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,7 +1,13 @@
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
exfat.ko
mmi_annotate.ko
mmi_info.ko
mmi_sys_temp.ko
qpnp_adaptive_charge.ko
qpnp-power-on-mmi.ko
sensors_class.ko

View File

@@ -253,6 +253,8 @@ 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
@@ -264,5 +266,9 @@ 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,8 +4,10 @@
SPDX-License-Identifier: Apache-2.0
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="android.overlay.device">
<overlay android:targetPackage="android"
android:isStatic="true"
android:priority="300" />
package="android.overlay.device">
<overlay
android:isStatic="true"
android:priority="300"
android:targetPackage="android" />
</manifest>

View File

@@ -1,28 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
SPDX-FileCopyrightText: The LineageOS Project
SPDX-License-Identifier: Apache-2.0
SPDX-FileCopyrightText: 2009 The Android Open Source Project
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>
<!-- Vibrator pattern for feedback about touching a virtual key -->
<integer-array name="config_virtualKeyVibePattern">
<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. -->
<!-- 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>
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Minimum allowable screen brightness to use in a very dark room.
This value sets the floor for the darkest possible auto-brightness
@@ -33,6 +19,52 @@
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)
@@ -75,41 +107,6 @@
<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.
@@ -139,7 +136,7 @@
brightness modes but only the maximum brightness value obtainable in a sustainable manner.
This array should be equal in size to config_screenBrightnessBacklight -->
<array name="config_screenBrightnessNits">
<integer-array name="config_screenBrightnessNits">
<item>0</item>
<item>2</item>
<item>40</item>
@@ -155,16 +152,7 @@
<item>315</item>
<item>330</item>
<item>400</item>
</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>
</integer-array>
<!-- 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
@@ -198,12 +186,27 @@
Z
</string>
<!-- True if the device supports system navigation keys. -->
<!-- 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. -->
<bool name="config_supportSystemNavigationKeys">true</bool>
<!-- 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>
<!-- MMS user agent string -->
<string name="config_mms_user_agent" translatable="false">motoroladefy</string>
</resources>

View File

@@ -1,9 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
SPDX-FileCopyrightText: The LineageOS Project
SPDX-License-Identifier: Apache-2.0
SPDX-FileCopyrightText: 2009 The Android Open Source Project
SPDX-FileCopyrightText: The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<resources>
<!-- 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>
<!-- 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>
@@ -17,10 +29,4 @@
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.display0">88.97</item>
<item name="screen.full.display0">325.02</item>
<item name="screen.on">88.97</item>
<item name="screen.full">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,8 +4,10 @@
SPDX-License-Identifier: Apache-2.0
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="lineageos.platform.overlay.device">
<overlay android:targetPackage="lineageos.platform"
android:isStatic="true"
android:priority="800" />
package="lineageos.platform.overlay.device">
<overlay
android:isStatic="true"
android:priority="800"
android:targetPackage="lineageos.platform" />
</manifest>

View File

@@ -1,7 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
SPDX-FileCopyrightText: The LineageOS Project
SPDX-License-Identifier: Apache-2.0
SPDX-FileCopyrightText: 2015-2016 The CyanogenMod Project
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,7 +4,9 @@
SPDX-License-Identifier: Apache-2.0
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.android.systemui.overlay.device">
<overlay android:targetPackage="com.android.systemui"
android:isStatic="true" />
package="com.android.systemui.overlay.device">
<overlay
android:isStatic="true"
android:targetPackage="com.android.systemui" />
</manifest>

View File

@@ -1,9 +1,16 @@
<?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>
<!-- 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">
<!-- Doze: does this device support STATE_DOZE? -->
<bool name="doze_display_state_supported">true</bool>
</resources>

View File

@@ -1,8 +1,10 @@
<?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,8 +4,11 @@
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:targetPackage="com.android.wifi.resources"
android:isStatic="true"
android:priority="800" />
package="com.android.wifi.resources.overlay.device">
<overlay
android:isStatic="true"
android:priority="800"
android:targetName="WifiCustomization"
android:targetPackage="com.android.wifi.resources" />
</manifest>