Compare commits
17 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
acc33dcb30 | ||
|
|
a3a1100f45 | ||
|
|
3d19651ab0 | ||
|
|
697f25c148 | ||
|
|
1058fd6d6d | ||
|
|
13d0de3075 | ||
|
|
2a504c84fd | ||
|
|
f635fa3b45 | ||
|
|
68577f4f6f | ||
|
|
92a36a186f | ||
|
|
d857cec02e | ||
|
|
1e310fd7eb | ||
|
|
370d404643 | ||
|
|
56536aec6e | ||
|
|
2793bd7a0c | ||
|
|
7cda64f6d5 | ||
|
|
9c493f994d |
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// SPDX-FileCopyrightText: 2022-2024 The LineageOS Project
|
||||
// SPDX-FileCopyrightText: The LineageOS Project
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# SPDX-FileCopyrightText: 2022 The LineageOS Project
|
||||
# SPDX-FileCopyrightText: The LineageOS Project
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# SPDX-FileCopyrightText: 2022-2024 The LineageOS Project
|
||||
# SPDX-FileCopyrightText: The LineageOS Project
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
@@ -34,9 +34,12 @@ BOARD_VENDOR_RAMDISK_KERNEL_MODULES_LOAD := $(strip $(shell cat $(DEVICE_PATH)/v
|
||||
BOOT_KERNEL_MODULES := $(BOARD_VENDOR_RAMDISK_KERNEL_MODULES_LOAD)
|
||||
|
||||
# Partitions
|
||||
BOARD_SUPER_PARTITION_SIZE := 7583301632
|
||||
BOARD_MOTO_DYNAMIC_PARTITIONS_SIZE := 3787456512 # ( BOARD_SUPER_PARTITION_SIZE / 2 ) - 4MB
|
||||
BOARD_VENDOR_BOOTIMAGE_PARTITION_SIZE := 100663296
|
||||
|
||||
# Properties
|
||||
TARGET_PRODUCT_PROP += $(DEVICE_PATH)/product.prop
|
||||
TARGET_SYSTEM_EXT_PROP += $(DEVICE_PATH)/system_ext.prop
|
||||
TARGET_VENDOR_PROP += $(DEVICE_PATH)/vendor.prop
|
||||
|
||||
@@ -46,15 +49,15 @@ TARGET_RECOVERY_FSTAB := $(DEVICE_PATH)/init/fstab.qcom
|
||||
TARGET_RECOVERY_UI_MARGIN_HEIGHT := 105
|
||||
|
||||
# Security patch level
|
||||
BOOT_SECURITY_PATCH := 2025-06-01
|
||||
BOOT_SECURITY_PATCH := 2025-08-01
|
||||
VENDOR_SECURITY_PATCH := $(BOOT_SECURITY_PATCH)
|
||||
|
||||
# Verified Boot
|
||||
BOARD_AVB_ROLLBACK_INDEX := 27
|
||||
BOARD_AVB_ROLLBACK_INDEX := 29
|
||||
BOARD_AVB_VBMETA_SYSTEM := system system_ext product
|
||||
BOARD_AVB_VBMETA_SYSTEM_KEY_PATH := external/avb/test/data/testkey_rsa2048.pem
|
||||
BOARD_AVB_VBMETA_SYSTEM_ALGORITHM := SHA256_RSA2048
|
||||
BOARD_AVB_VBMETA_SYSTEM_ROLLBACK_INDEX := 27
|
||||
BOARD_AVB_VBMETA_SYSTEM_ROLLBACK_INDEX := 29
|
||||
BOARD_AVB_VBMETA_SYSTEM_ROLLBACK_INDEX_LOCATION := 2
|
||||
|
||||
# Inherit from the proprietary version
|
||||
|
||||
@@ -3,7 +3,7 @@ Device tree configuration for Motorola Moto G32
|
||||
|
||||
```
|
||||
|
||||
SPDX-FileCopyrightText: 2022-2024 The LineageOS Project
|
||||
SPDX-FileCopyrightText: The LineageOS Project
|
||||
|
||||
SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
|
||||
23
device.mk
23
device.mk
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# SPDX-FileCopyrightText: 2022-2024 The LineageOS Project
|
||||
# SPDX-FileCopyrightText: The LineageOS Project
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
@@ -27,16 +27,29 @@ TARGET_SCREEN_WIDTH := 1080
|
||||
# Init
|
||||
PRODUCT_PACKAGES += \
|
||||
fstab.qcom \
|
||||
init.mmi.overlay.rc \
|
||||
init.oem.fingerprint2.sh \
|
||||
init.mmi.overlay.rc
|
||||
init.vendor.st21nfc.rc
|
||||
|
||||
# LiveDisplay
|
||||
$(call soong_config_set,livedisplay_sysfs,enable_ab,true)
|
||||
|
||||
# Moto Camera 4
|
||||
TARGET_MOTCAMERA4 := devon
|
||||
TARGET_USES_MOTCAMERA4 := true
|
||||
|
||||
$(call inherit-product, vendor/motorola/MotCamera4-bengal/motcamera4.mk)
|
||||
|
||||
# NFC
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.nfc@1.2-service.st
|
||||
android.hardware.nfc-service.st
|
||||
|
||||
# Overlay
|
||||
DEVICE_PACKAGE_OVERLAYS += \
|
||||
$(LOCAL_PATH)/overlay
|
||||
PRODUCT_PACKAGES += \
|
||||
FrameworksResDevice \
|
||||
SettingsResDevice \
|
||||
SystemUIResDevice \
|
||||
WifiResDevice
|
||||
|
||||
# Permissions
|
||||
PRODUCT_COPY_FILES += \
|
||||
|
||||
13
evolution.dependencies
Normal file
13
evolution.dependencies
Normal file
@@ -0,0 +1,13 @@
|
||||
[
|
||||
{
|
||||
"repository": "device_motorola_sm6225-common",
|
||||
"target_path": "device/motorola/sm6225-common",
|
||||
"remote": "evo-devices"
|
||||
},
|
||||
{
|
||||
"repository": "Deivid-21s-Sources/proprietary_vendor_motorola_devon",
|
||||
"target_path": "vendor/motorola/devon",
|
||||
"remote": "github-non-los",
|
||||
"branch": "lineage-22.2"
|
||||
}
|
||||
]
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env -S PYTHONPATH=../../../tools/extract-utils python3
|
||||
#
|
||||
# SPDX-FileCopyrightText: 2024 The LineageOS Project
|
||||
# SPDX-FileCopyrightText: The LineageOS Project
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
@@ -31,9 +31,6 @@ lib_fixups: lib_fixups_user_type = {
|
||||
}
|
||||
|
||||
blob_fixups: blob_fixups_user_type = {
|
||||
'vendor/etc/init/android.hardware.nfc@1.2-service.st-moto.rc': blob_fixup()
|
||||
.regex_replace('on property:init.svc.vendor.stflashtool=stopped &&', 'on boot &&')
|
||||
.regex_replace('class hal', 'override\n class hal'),
|
||||
('vendor/lib64/camera/components/com.qti.node.gpu.so', 'vendor/lib64/hw/camera.qcom.so'): blob_fixup()
|
||||
.binary_regex_replace(b'camera.mot.is.coming.cts', b'vendor.camera.coming.cts'),
|
||||
'vendor/lib64/libBSTSWAD.so': blob_fixup()
|
||||
@@ -43,6 +40,11 @@ blob_fixups: blob_fixups_user_type = {
|
||||
.clear_symbol_version('AHardwareBuffer_lockPlanes')
|
||||
.clear_symbol_version('AHardwareBuffer_release')
|
||||
.clear_symbol_version('AHardwareBuffer_unlock'),
|
||||
(
|
||||
'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 = {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// SPDX-FileCopyrightText: 2024 The LineageOS Project
|
||||
// SPDX-FileCopyrightText: The LineageOS Project
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
|
||||
|
||||
@@ -6,9 +6,13 @@
|
||||
# Currently we dont have e2fsck compiled. So fs check would failed.
|
||||
|
||||
#<src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags>
|
||||
system /system erofs ro wait,slotselect,avb=vbmeta_system,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_system,avb_keys=/avb/q-gsi.avbpubkey:/avb/r-gsi.avbpubkey:/avb/s-gsi.avbpubkey,logical,first_stage_mount
|
||||
system_ext /system_ext ext4 ro wait,slotselect,avb,logical,nofail,first_stage_mount
|
||||
product /product ext4 ro wait,slotselect,avb,logical,nofail,first_stage_mount
|
||||
system_ext /system_ext erofs ro wait,slotselect,avb=vbmeta_system,logical,first_stage_mount
|
||||
system_ext /system_ext ext4 ro wait,slotselect,avb=vbmeta_system,logical,nofail,first_stage_mount
|
||||
product /product erofs ro wait,slotselect,avb=vbmeta_system,logical,first_stage_mount
|
||||
product /product ext4 ro wait,slotselect,avb=vbmeta_system,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+inlinecrypt_optimized+wrappedkey_v0,metadata_encryption=aes-256-xts:wrappedkey_v0,keydirectory=/metadata/vold/metadata_encryption,quota,reservedsize=128M,sysfs_path=/sys/devices/platform/soc/4804000.ufshc,checkpoint=fs
|
||||
|
||||
@@ -52,11 +52,6 @@ on charger
|
||||
insmod /vendor/lib/modules/mmi_discrete_turbo_charger.ko
|
||||
insmod /vendor/lib/modules/tcpc_sgm7220.ko
|
||||
|
||||
on boot
|
||||
# Change ownership and permission of st nfc device
|
||||
chown nfc nfc /dev/st21nfc
|
||||
chmod 0660 /dev/st21nfc
|
||||
|
||||
service capsense_reset /system/vendor/bin/capsense_reset
|
||||
class core
|
||||
user system
|
||||
|
||||
14
init/init.vendor.st21nfc.rc
Normal file
14
init/init.vendor.st21nfc.rc
Normal file
@@ -0,0 +1,14 @@
|
||||
on boot
|
||||
# Change ownership and permission of st nfc device
|
||||
chown nfc nfc /dev/st21nfc
|
||||
chmod 0660 /dev/st21nfc
|
||||
|
||||
on boot && property:ro.vendor.hw.nfc=st
|
||||
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
|
||||
@@ -1,6 +0,0 @@
|
||||
[
|
||||
{
|
||||
"repository": "android_device_motorola_sm6225-common",
|
||||
"target_path": "device/motorola/sm6225-common"
|
||||
}
|
||||
]
|
||||
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# SPDX-FileCopyrightText: 2022-2024 The LineageOS Project
|
||||
# SPDX-FileCopyrightText: The LineageOS Project
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
@@ -23,6 +23,6 @@ PRODUCT_MANUFACTURER := motorola
|
||||
PRODUCT_GMS_CLIENTID_BASE := android-motorola
|
||||
|
||||
PRODUCT_BUILD_PROP_OVERRIDES += \
|
||||
BuildDesc="devon_g-user 13 T2SNS33.73-22-3-15 f9ee6-5bd7d release-keys" \
|
||||
BuildFingerprint=motorola/devon_g/devon:13/T2SNS33.73-22-3-15/f9ee6-5bd7d:user/release-keys \
|
||||
BuildDesc="devon_g-user 13 T2SNS33.73-22-3-19 565799-307aa release-keys" \
|
||||
BuildFingerprint=motorola/devon_g/devon:13/T2SNS33.73-22-3-19/565799-307aa:user/release-keys \
|
||||
DeviceProduct=devon_g
|
||||
|
||||
@@ -1,50 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/**
|
||||
* Copyright (c) 2009, 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.
|
||||
*/
|
||||
-->
|
||||
|
||||
<!-- 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>
|
||||
|
||||
<!-- A path similar to frameworks/base/core/res/res/values/config.xml
|
||||
config_mainBuiltInDisplayCutout that describes a path larger than the exact path of a display
|
||||
cutout. If present as well as config_enableDisplayCutoutProtection is set to true, then
|
||||
SystemUI will draw this "protection path" instead of the display cutout path that is normally
|
||||
used for anti-aliasing.
|
||||
|
||||
This path will only be drawn when the front-facing camera turns on, otherwise the main
|
||||
DisplayCutout path will be rendered
|
||||
-->
|
||||
<string translatable="false" name="config_frontBuiltInDisplayCutoutProtection">
|
||||
M 498.5,65
|
||||
a 41.5,41.5 0 1 0 83,0
|
||||
a 41.5,41.5 0 1 0 -83,0
|
||||
Z
|
||||
</string>
|
||||
|
||||
<!-- ID for the camera that needs extra protection -->
|
||||
<string translatable="false" name="config_protectedCameraId">1</string>
|
||||
|
||||
<!-- Flag to turn on the rendering of the above path or not -->
|
||||
<bool name="config_enableDisplayCutoutProtection">true</bool>
|
||||
|
||||
</resources>
|
||||
@@ -1,30 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/**
|
||||
* Copyright (c) 2009, The Android Open Source Project
|
||||
* Copyright (C) 2023, 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.
|
||||
*/
|
||||
-->
|
||||
|
||||
<resources>
|
||||
<!-- Height of the status bar header bar when on Keyguard -->
|
||||
<dimen name="status_bar_header_height_keyguard">@*android:dimen/status_bar_height</dimen>
|
||||
|
||||
<!-- Margin on the left side of the carrier text on Keyguard -->
|
||||
<dimen name="keyguard_carrier_text_margin">4dp</dimen>
|
||||
|
||||
<!-- Total minimum padding to enforce to ensure that the dot can always show -->
|
||||
<dimen name="ongoing_appops_dot_min_padding">14dp</dimen>
|
||||
</resources>
|
||||
2
product.prop
Normal file
2
product.prop
Normal file
@@ -0,0 +1,2 @@
|
||||
# NFC
|
||||
persist.nfc_cfg.config_file_name=libnfc-nci-st.conf
|
||||
@@ -1,4 +1,4 @@
|
||||
# All unpinned blobs below are extracted from devon_g T2SNS33.73-22-3-15
|
||||
# All unpinned blobs below are extracted from devon_g T2SNS33.73-22-3-19
|
||||
|
||||
# ACDB
|
||||
vendor/etc/acdbdata/Bluetooth_cal.acdb
|
||||
@@ -110,6 +110,8 @@ vendor/lib64/com.qti.feature2.stub.so
|
||||
vendor/lib64/com.qti.feature2.swmf.so
|
||||
vendor/lib64/hw/camera.qcom.so
|
||||
vendor/lib64/hw/com.qti.chi.override.so
|
||||
vendor/lib64/libAncFaceDetect.so
|
||||
vendor/lib64/libancbase_fd.so
|
||||
vendor/lib64/libBSTSWAD.so
|
||||
vendor/lib64/libBSTbase_share.so
|
||||
vendor/lib64/libarcsoft_chi_utils.so
|
||||
@@ -163,6 +165,8 @@ vendor/etc/camera/SwadAIMod.bin
|
||||
vendor/etc/camera/SwadCalib.bin
|
||||
vendor/etc/camera/SwadParamList.txt
|
||||
vendor/etc/camera/aec_golden_wide.bin
|
||||
vendor/etc/camera/anc_detect_model
|
||||
vendor/etc/camera/anc_track_model
|
||||
vendor/etc/camera/dual_golden_wide.bin
|
||||
vendor/etc/camera/vidhance_calibration
|
||||
|
||||
@@ -178,6 +182,7 @@ vendor/etc/qdcm_calib_data_mipi_mot_vid_txd_ili7807s_fhdp_649.xml
|
||||
# Fingerprint
|
||||
vendor/bin/hw/android.hardware.biometrics.fingerprint@2.1-service-ets
|
||||
vendor/bin/hw/android.hardware.biometrics.fingerprint@2.1-service-fpc
|
||||
vendor/bin/hw/fpc_ident
|
||||
vendor/etc/init/android.hardware.biometrics.fingerprint@2.1-service-ets2.rc
|
||||
vendor/etc/init/android.hardware.biometrics.fingerprint@2.1-service-fpc2.rc
|
||||
vendor/etc/init/init.ets.rc
|
||||
@@ -195,7 +200,6 @@ vendor/usr/keylayout/uinput-fpc.kl
|
||||
vendor/firmware/a630_sqe.fw
|
||||
|
||||
# NFC (ST)
|
||||
vendor/etc/init/android.hardware.nfc@1.2-service.st.rc:vendor/etc/init/android.hardware.nfc@1.2-service.st-moto.rc
|
||||
vendor/etc/libnfc-hal-st.conf
|
||||
vendor/etc/libnfc-nci-st.conf
|
||||
vendor/etc/st21nfc_conf_ds.txt
|
||||
@@ -272,13 +276,13 @@ vendor/lib64/libthermalclient.so
|
||||
# Touchscreen firmware
|
||||
vendor/firmware/ILITEK_FW
|
||||
vendor/firmware/NT36xxx_MP_Setting_Criteria_6056.csv
|
||||
vendor/firmware/focaltech-txd-ft8726-02-0000-devon.bin
|
||||
vendor/firmware/focaltech-txd-ft8726-02-0000-devon.bin:vendor/firmware/focaltech_ts_fw_txd.bin
|
||||
vendor/firmware/tm_novatek_ts_fw.bin
|
||||
vendor/firmware/tm_novatek_ts_mp.bin
|
||||
|
||||
# Touchscreen firmware (recovery)
|
||||
vendor/firmware/ILITEK_FW:recovery/root/vendor/firmware/ILITEK_FW
|
||||
vendor/firmware/focaltech-txd-ft8726-02-0000-devon.bin:recovery/root/vendor/firmware/focaltech-txd-ft8726-02-0000-devon.bin
|
||||
vendor/firmware/focaltech-txd-ft8726-02-0000-devon.bin:recovery/root/vendor/firmware/focaltech_ts_fw_txd.bin
|
||||
vendor/firmware/tm_novatek_ts_fw.bin:recovery/root/vendor/firmware/tm_novatek_ts_fw.bin
|
||||
vendor/firmware/tm_novatek_ts_mp.bin:recovery/root/vendor/firmware/tm_novatek_ts_mp.bin
|
||||
|
||||
|
||||
9
resource-overlay/device/Frameworks/Android.bp
Normal file
9
resource-overlay/device/Frameworks/Android.bp
Normal file
@@ -0,0 +1,9 @@
|
||||
//
|
||||
// SPDX-FileCopyrightText: The LineageOS Project
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
|
||||
runtime_resource_overlay {
|
||||
name: "FrameworksResDevice",
|
||||
vendor: true,
|
||||
}
|
||||
11
resource-overlay/device/Frameworks/AndroidManifest.xml
Normal file
11
resource-overlay/device/Frameworks/AndroidManifest.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
SPDX-FileCopyrightText: The LineageOS Project
|
||||
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" />
|
||||
</manifest>
|
||||
@@ -1,26 +1,37 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/**
|
||||
* Copyright (c) 2009, 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: 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>60</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>50</item>
|
||||
</integer-array>
|
||||
|
||||
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
|
||||
<!-- Minimum screen brightness setting allowed by power manager.
|
||||
-2 is invalid so setting will resort to int value specified above.
|
||||
Set this to 0.0 to allow screen to go to minimal brightness.
|
||||
The user is forbidden from setting the brightness below this level. -->
|
||||
<item name="config_screenBrightnessSettingMinimumFloat" format="float" type="dimen">0.003937008</item>
|
||||
|
||||
<!-- Default screen brightness setting set.
|
||||
-2 is invalid so setting will resort to int value specified above.
|
||||
Must be in the range specified by minimum and maximum. -->
|
||||
<item name="config_screenBrightnessSettingDefaultFloat" format="float" type="dimen">0.39763778</item>
|
||||
|
||||
<!-- 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">2</integer>
|
||||
<item name="config_screenBrightnessDimFloat" format="float" type="dimen">0.003937008</item>
|
||||
|
||||
<!-- Minimum allowable screen brightness to use in a very dark room.
|
||||
This value sets the floor for the darkest possible auto-brightness
|
||||
@@ -31,68 +42,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">2</integer>
|
||||
<item name="config_screenBrightnessDimFloat" format="float" type="dimen">0.003937008</item>
|
||||
|
||||
<!-- Default screen brightness setting set.
|
||||
-2 is invalid so setting will resort to int value specified above.
|
||||
Must be in the range specified by minimum and maximum. -->
|
||||
<item name="config_screenBrightnessSettingDefaultFloat" format="float" type="dimen">0.39763778</item>
|
||||
|
||||
<!-- Minimum screen brightness setting allowed by power manager.
|
||||
-2 is invalid so setting will resort to int value specified above.
|
||||
Set this to 0.0 to allow screen to go to minimal brightness.
|
||||
The user is forbidden from setting the brightness below this level. -->
|
||||
<item name="config_screenBrightnessSettingMinimumFloat" format="float" type="dimen">0.003937008</item>
|
||||
|
||||
<!-- 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">90</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>3</item>
|
||||
<item>10</item>
|
||||
<item>20</item>
|
||||
<item>50</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>350</item>
|
||||
<item>380</item>
|
||||
<item>420</item>
|
||||
<item>450</item>
|
||||
<item>450</item>
|
||||
<item>450</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)
|
||||
@@ -139,6 +88,45 @@
|
||||
<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>3</item>
|
||||
<item>10</item>
|
||||
<item>20</item>
|
||||
<item>50</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>350</item>
|
||||
<item>380</item>
|
||||
<item>420</item>
|
||||
<item>450</item>
|
||||
<item>450</item>
|
||||
<item>450</item>
|
||||
</array>
|
||||
|
||||
<!-- An array describing the screen's backlight values corresponding to the brightness
|
||||
values in the config_screenBrightnessNits array.
|
||||
|
||||
@@ -173,7 +161,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>3</item>
|
||||
<item>10</item>
|
||||
@@ -194,7 +182,13 @@
|
||||
<item>380</item>
|
||||
<item>420</item>
|
||||
<item>450</item>
|
||||
</integer-array>
|
||||
</array>
|
||||
|
||||
<!-- MMS user agent string -->
|
||||
<string name="config_mms_user_agent" translatable="false">motog32</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>
|
||||
|
||||
<!-- 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
|
||||
@@ -247,8 +241,15 @@
|
||||
-->
|
||||
<bool name="config_fillMainBuiltInDisplayCutout">true</bool>
|
||||
|
||||
<!-- Indicates whether device has a power button fingerprint sensor. -->
|
||||
<bool name="config_is_powerbutton_fps" translatable="false">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">90</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>
|
||||
|
||||
<!-- An array of arrays of side fingerprint sensor properties relative to each display.
|
||||
Note: this value is temporary and is expected to be queried directly
|
||||
@@ -264,15 +265,6 @@
|
||||
<item>200</item> <!--item>sensorRadius</item-->
|
||||
</array>
|
||||
|
||||
<!-- Vibrator pattern for feedback about a long screen/key press -->
|
||||
<integer-array name="config_longPressVibePattern">
|
||||
<item>0</item>
|
||||
<item>60</item>
|
||||
</integer-array>
|
||||
|
||||
<!-- Vibrator pattern for feedback about touching a virtual key -->
|
||||
<integer-array name="config_virtualKeyVibePattern">
|
||||
<item>0</item>
|
||||
<item>50</item>
|
||||
</integer-array>
|
||||
<!-- Indicates whether device has a power button fingerprint sensor. -->
|
||||
<bool name="config_is_powerbutton_fps" translatable="false">true</bool>
|
||||
</resources>
|
||||
@@ -1,33 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/**
|
||||
* Copyright (c) 2009, 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: 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">95.0px</dimen>
|
||||
|
||||
<!-- Default paddings for content around the corners. -->
|
||||
<dimen name="rounded_corner_content_padding">14dp</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>
|
||||
@@ -41,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">95.0px</dimen>
|
||||
|
||||
<!-- Default paddings for content around the corners. -->
|
||||
<dimen name="rounded_corner_content_padding">14dp</dimen>
|
||||
</resources>
|
||||
@@ -1,8 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
SPDX-FileCopyrightText: The LineageOS Project
|
||||
SPDX-License-Identifier: Apache-2.0
|
||||
-->
|
||||
<device name="Android">
|
||||
<item name="none">0</item>
|
||||
<item name="screen.on">130.97</item>
|
||||
<item name="screen.full">455.02</item>
|
||||
<item name="screen.on.display0">130.97</item>
|
||||
<item name="screen.full.display0">455.02</item>
|
||||
<item name="wifi.on">3.01</item>
|
||||
<item name="wifi.active">78.83</item>
|
||||
<item name="wifi.scan">78.45</item>
|
||||
9
resource-overlay/device/Settings/Android.bp
Normal file
9
resource-overlay/device/Settings/Android.bp
Normal file
@@ -0,0 +1,9 @@
|
||||
//
|
||||
// SPDX-FileCopyrightText: The LineageOS Project
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
|
||||
runtime_resource_overlay {
|
||||
name: "SettingsResDevice",
|
||||
vendor: true,
|
||||
}
|
||||
13
resource-overlay/device/Settings/AndroidManifest.xml
Normal file
13
resource-overlay/device/Settings/AndroidManifest.xml
Normal file
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
SPDX-FileCopyrightText: The LineageOS Project
|
||||
SPDX-License-Identifier: Apache-2.0
|
||||
-->
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.android.settings.overlay.device">
|
||||
|
||||
<overlay
|
||||
android:isStatic="true"
|
||||
android:priority="500"
|
||||
android:targetPackage="com.android.settings" />
|
||||
</manifest>
|
||||
12
resource-overlay/device/Settings/res/values/config.xml
Normal file
12
resource-overlay/device/Settings/res/values/config.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
SPDX-FileCopyrightText: The LineageOS Project
|
||||
SPDX-License-Identifier: Apache-2.0
|
||||
-->
|
||||
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
|
||||
<!-- Whether to show min refresh rate in display settings -->
|
||||
<bool name="config_show_min_refresh_rate_switch">true</bool>
|
||||
|
||||
<!-- Whether to show peak refresh rate in display settings -->
|
||||
<bool name="config_show_peak_refresh_rate_switch">true</bool>
|
||||
</resources>
|
||||
9
resource-overlay/device/SystemUI/Android.bp
Normal file
9
resource-overlay/device/SystemUI/Android.bp
Normal file
@@ -0,0 +1,9 @@
|
||||
//
|
||||
// SPDX-FileCopyrightText: The LineageOS Project
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
|
||||
runtime_resource_overlay {
|
||||
name: "SystemUIResDevice",
|
||||
vendor: true,
|
||||
}
|
||||
10
resource-overlay/device/SystemUI/AndroidManifest.xml
Normal file
10
resource-overlay/device/SystemUI/AndroidManifest.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
SPDX-FileCopyrightText: The LineageOS Project
|
||||
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" />
|
||||
</manifest>
|
||||
31
resource-overlay/device/SystemUI/res/values/config.xml
Normal file
31
resource-overlay/device/SystemUI/res/values/config.xml
Normal file
@@ -0,0 +1,31 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
SPDX-FileCopyrightText: The LineageOS Project
|
||||
SPDX-License-Identifier: Apache-2.0
|
||||
-->
|
||||
<resources>
|
||||
<!-- Doze: does this device support STATE_DOZE? -->
|
||||
<bool name="doze_display_state_supported">true</bool>
|
||||
|
||||
<!-- A path similar to frameworks/base/core/res/res/values/config.xml
|
||||
config_mainBuiltInDisplayCutout that describes a path larger than the exact path of a outer
|
||||
display cutout. If present as well as config_enableDisplayCutoutProtection is set to true,
|
||||
then SystemUI will draw this "protection path" instead of the display cutout path that is
|
||||
normally used for anti-aliasing.
|
||||
|
||||
This path will only be drawn when the front-facing camera turns on, otherwise the main
|
||||
DisplayCutout path will be rendered
|
||||
-->
|
||||
<string translatable="false" name="config_frontBuiltInDisplayCutoutProtection">
|
||||
M 498.5,65
|
||||
a 41.5,41.5 0 1 0 83,0
|
||||
a 41.5,41.5 0 1 0 -83,0
|
||||
Z
|
||||
</string>
|
||||
|
||||
<!-- ID for the camera of outer display that needs extra protection -->
|
||||
<string translatable="false" name="config_protectedCameraId">1</string>
|
||||
|
||||
<!-- Flag to turn on the rendering of the above path or not -->
|
||||
<bool name="config_enableDisplayCutoutProtection">true</bool>
|
||||
</resources>
|
||||
15
resource-overlay/device/SystemUI/res/values/dimens.xml
Normal file
15
resource-overlay/device/SystemUI/res/values/dimens.xml
Normal file
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
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>
|
||||
|
||||
<!-- Margin on the left side of the carrier text on Keyguard -->
|
||||
<dimen name="keyguard_carrier_text_margin">4dp</dimen>
|
||||
|
||||
<!-- Total minimum padding to enforce to ensure that the dot can always show -->
|
||||
<dimen name="ongoing_appops_dot_min_padding">14dp</dimen>
|
||||
</resources>
|
||||
9
resource-overlay/device/Wifi/Android.bp
Normal file
9
resource-overlay/device/Wifi/Android.bp
Normal file
@@ -0,0 +1,9 @@
|
||||
//
|
||||
// SPDX-FileCopyrightText: The LineageOS Project
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
|
||||
runtime_resource_overlay {
|
||||
name: "WifiResDevice",
|
||||
vendor: true,
|
||||
}
|
||||
11
resource-overlay/device/Wifi/AndroidManifest.xml
Normal file
11
resource-overlay/device/Wifi/AndroidManifest.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
SPDX-FileCopyrightText: 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.device">
|
||||
<overlay android:targetPackage="com.android.wifi.resources"
|
||||
android:isStatic="true"
|
||||
android:priority="800" />
|
||||
</manifest>
|
||||
9
resource-overlay/device/Wifi/res/values/config.xml
Normal file
9
resource-overlay/device/Wifi/res/values/config.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
SPDX-FileCopyrightText: The LineageOS Project
|
||||
SPDX-License-Identifier: Apache-2.0
|
||||
-->
|
||||
<resources>
|
||||
<!-- Do not translate. Default access point SSID used for tethering -->
|
||||
<string name="wifi_tether_configure_ssid_default" translatable="false">moto g32</string>
|
||||
</resources>
|
||||
@@ -1 +1,5 @@
|
||||
#!./extract-files.py --regenerate_makefiles
|
||||
#
|
||||
# SPDX-FileCopyrightText: The LineageOS Project
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user