S666LN: Add 1080p60 for Aperture

Signed-off-by: KimelaZX <mmikailrei@gmail.com>
This commit is contained in:
Shirayuki39
2025-12-17 21:41:03 +07:00
committed by KimelaZX
parent 29852124ff
commit b605d29b2b
11 changed files with 100 additions and 31 deletions

View File

@@ -333,6 +333,9 @@ PRODUCT_PACKAGES += \
TetheringConfigTarget \ TetheringConfigTarget \
WifiResTarget WifiResTarget
PRODUCT_PACKAGES += \
ApertureOverlay
# Permissions # Permissions
PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/permissions/privapp-permissions-mediatek.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/privapp-permissions-mediatek.xml \ $(LOCAL_PATH)/configs/permissions/privapp-permissions-mediatek.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/privapp-permissions-mediatek.xml \

View File

@@ -0,0 +1,10 @@
//
// Copyright (C) 2023 LineageOS
// SPDX-License-Identifier: Apache-2.0
//
runtime_resource_overlay {
name: "ApertureOverlay",
sdk_version: "current",
product_specific: true,
}

View File

@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2023 LineageOS
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.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.lineageos.aperture.overlay">
<application android:hasCode="false" />
<overlay
android:targetPackage="org.lineageos.aperture"
android:isStatic="true"
android:priority="1" />
</manifest>

View File

@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2023 LineageOS
SPDX-License-Identifier: Apache-2.0
-->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Enable auxiliary cameras selector -->
<bool name="config_enableAuxCameras">true</bool>
<!-- An array of triplets made of (camera ID, qualities, framerates).
These video modes will be added to the available
quality/framerate combinations of a camera device.
Make sure the device is able to handle those configurations
and maintain a stable framerate at any condition.
Note that you can't add video qualities that aren't
exposed by the camera, only new framerates.
Valid values of resolution are:
- "sd" (480p)
- "hd" (720p)
- "fhd" (1080p)
- "uhd" (2160p)
Valid values of framerate are:
- "24"
- "30"
- "60"
- "120"
Example:
<string-array name="config_additionalVideoConfigurations">
<item>0</item> <item>sd|hd|fhd</item> <item>60|120</item>
<item>1</item> <item>sd|hd|fhd</item> <item>60</item>
</string-array>
-->
<string-array name="config_additionalVideoConfigurations">
<item>0</item> <item>fhd</item> <item>60</item>
</string-array>
</resources>

View File

@@ -1,4 +1,4 @@
runtime_resource_overlay { runtime_resource_overlay {
name: "FrameworksResTarget", name: "FrameworksResTarget",
vendor: true vendor: true,
} }

View File

@@ -5,5 +5,5 @@
runtime_resource_overlay { runtime_resource_overlay {
name: "SettingsProviderResTarget", name: "SettingsProviderResTarget",
vendor: true vendor: true,
} }

View File

@@ -6,5 +6,5 @@
runtime_resource_overlay { runtime_resource_overlay {
name: "SettingsResTarget", name: "SettingsResTarget",
vendor: true vendor: true,
} }

View File

@@ -1,4 +1,4 @@
runtime_resource_overlay { runtime_resource_overlay {
name: "SystemUIResTarget", name: "SystemUIResTarget",
vendor: true vendor: true,
} }

View File

@@ -3,5 +3,5 @@ runtime_resource_overlay {
theme: "TetheringConfigOverlay", theme: "TetheringConfigOverlay",
certificate: "platform", certificate: "platform",
sdk_version: "current", sdk_version: "current",
product_specific: true product_specific: true,
} }

View File

@@ -3,5 +3,5 @@ runtime_resource_overlay {
theme: "WifiOverlay", theme: "WifiOverlay",
certificate: "platform", certificate: "platform",
sdk_version: "current", sdk_version: "current",
product_specific: true product_specific: true,
} }

View File

@@ -7,102 +7,102 @@
prebuilt_etc { prebuilt_etc {
name: "init_connectivity.rc", name: "init_connectivity.rc",
src: "etc/init/hw/init_connectivity.rc", src: "etc/init/hw/init_connectivity.rc",
sub_dir: "init/hw", relative_install_path: "init/hw",
vendor: true vendor: true,,
} }
prebuilt_etc { prebuilt_etc {
name: "fstab.mt6789", name: "fstab.mt6789",
src: "etc/fstab.mt6789", src: "etc/fstab.mt6789",
vendor: true, vendor: true,,
vendor_ramdisk_available: true vendor_ramdisk_available: true
} }
prebuilt_etc { prebuilt_etc {
name: "init.mt6789.power.rc", name: "init.mt6789.power.rc",
src: "etc/init/hw/init.mt6789.power.rc", src: "etc/init/hw/init.mt6789.power.rc",
sub_dir: "init/hw", relative_install_path: "init/hw",
vendor: true vendor: true,
} }
prebuilt_etc { prebuilt_etc {
name: "init.connectivity.common.rc", name: "init.connectivity.common.rc",
src: "etc/init/hw/init.connectivity.common.rc", src: "etc/init/hw/init.connectivity.common.rc",
sub_dir: "init/hw", relative_install_path: "init/hw",
vendor: true vendor: true,
} }
prebuilt_etc { prebuilt_etc {
name: "init.connectivity.rc", name: "init.connectivity.rc",
src: "etc/init/hw/init.connectivity.rc", src: "etc/init/hw/init.connectivity.rc",
sub_dir: "init/hw", relative_install_path: "init/hw",
vendor: true vendor: true,
} }
prebuilt_etc { prebuilt_etc {
name: "init.insmod.mt6789.cfg", name: "init.insmod.mt6789.cfg",
src: "etc/init.insmod.mt6789.cfg", src: "etc/init.insmod.mt6789.cfg",
vendor: true vendor: true,
} }
prebuilt_etc { prebuilt_etc {
name: "init.modem.rc", name: "init.modem.rc",
src: "etc/init/hw/init.modem.rc", src: "etc/init/hw/init.modem.rc",
sub_dir: "init/hw", relative_install_path: "init/hw",
vendor: true vendor: true,
} }
prebuilt_etc { prebuilt_etc {
name: "init.mt6789.rc", name: "init.mt6789.rc",
src: "etc/init/hw/init.mt6789.rc", src: "etc/init/hw/init.mt6789.rc",
sub_dir: "init/hw", relative_install_path: "init/hw",
vendor: true vendor: true,
} }
prebuilt_etc { prebuilt_etc {
name: "init.mt6789.usb.rc", name: "init.mt6789.usb.rc",
src: "etc/init/hw/init.mt6789.usb.rc", src: "etc/init/hw/init.mt6789.usb.rc",
sub_dir: "init/hw", relative_install_path: "init/hw",
vendor: true vendor: true,
} }
prebuilt_etc { prebuilt_etc {
name: "init.mtkgki.rc", name: "init.mtkgki.rc",
src: "etc/init/hw/init.mtkgki.rc", src: "etc/init/hw/init.mtkgki.rc",
sub_dir: "init/hw", relative_install_path: "init/hw",
vendor: true vendor: true,
} }
prebuilt_etc { prebuilt_etc {
name: "init.project.rc", name: "init.project.rc",
src: "etc/init/hw/init.project.rc", src: "etc/init/hw/init.project.rc",
sub_dir: "init/hw", relative_install_path: "init/hw",
vendor: true vendor: true,
} }
prebuilt_etc { prebuilt_etc {
name: "init.recovery.usb.rc", name: "init.recovery.usb.rc",
src: "etc/init.recovery.usb.rc", src: "etc/init.recovery.usb.rc",
recovery: true, recovery: true,
sub_dir: "init" relative_install_path: "init",
} }
prebuilt_etc { prebuilt_etc {
name: "init.sensor_2_0.rc", name: "init.sensor_2_0.rc",
src: "etc/init/hw/init.sensor_2_0.rc", src: "etc/init/hw/init.sensor_2_0.rc",
sub_dir: "init/hw", relative_install_path: "init/hw",
vendor: true vendor: true,
} }
prebuilt_etc { prebuilt_etc {
name: "ueventd.mt6789.rc", name: "ueventd.mt6789.rc",
filename: "ueventd.rc", filename: "ueventd.rc",
src: "etc/ueventd.mt6789.rc", src: "etc/ueventd.mt6789.rc",
vendor: true vendor: true,
} }
sh_binary { sh_binary {
name: "init.insmod.sh", name: "init.insmod.sh",
src: "bin/init.insmod.sh", src: "bin/init.insmod.sh",
vendor: true vendor: true,
} }