dre: overlay: Import relevant custom changes made prior to RROs
Change-Id: Id3e5c5548088209a2459217dcdfe78fb59ff7221
This commit is contained in:
parent
7919db86e7
commit
22fa99ecf3
7 changed files with 160 additions and 0 deletions
|
@ -45,6 +45,8 @@ PRODUCT_ENFORCE_RRO_TARGETS := *
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
CarrierConfigResCommon \
|
CarrierConfigResCommon \
|
||||||
FrameworksResTarget \
|
FrameworksResTarget \
|
||||||
|
OPlusFrameworksResCommon \
|
||||||
|
OPlusSettingsResCommon \
|
||||||
WifiResTarget
|
WifiResTarget
|
||||||
|
|
||||||
# AAPT
|
# AAPT
|
||||||
|
|
10
overlay/OPlusFrameworksResCommon/Android.bp
Normal file
10
overlay/OPlusFrameworksResCommon/Android.bp
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
//
|
||||||
|
// Copyright (C) 2022 The LineageOS Project
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
//
|
||||||
|
|
||||||
|
runtime_resource_overlay {
|
||||||
|
name: "OPlusFrameworksResCommon",
|
||||||
|
sdk_version: "current",
|
||||||
|
device_specific: true,
|
||||||
|
}
|
13
overlay/OPlusFrameworksResCommon/AndroidManifest.xml
Normal file
13
overlay/OPlusFrameworksResCommon/AndroidManifest.xml
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
Copyright (C) 2022 The LineageOS Project
|
||||||
|
SPDX-License-Identifier: Apache-2.0
|
||||||
|
-->
|
||||||
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
package="android.overlay.oplus">
|
||||||
|
|
||||||
|
<overlay
|
||||||
|
android:isStatic="true"
|
||||||
|
android:priority="300"
|
||||||
|
android:targetPackage="android" />
|
||||||
|
</manifest>
|
101
overlay/OPlusFrameworksResCommon/res/values/config.xml
Normal file
101
overlay/OPlusFrameworksResCommon/res/values/config.xml
Normal file
|
@ -0,0 +1,101 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
Copyright (C) 2022 The LineageOS Project
|
||||||
|
SPDX-License-Identifier: Apache-2.0
|
||||||
|
-->
|
||||||
|
<resources>
|
||||||
|
|
||||||
|
<!-- Indicate whether closing the lid causes the device to go to sleep and opening
|
||||||
|
it causes the device to wake up.
|
||||||
|
The default is false. -->
|
||||||
|
<bool name="config_lidControlsSleep">true</bool>
|
||||||
|
|
||||||
|
<!-- True if camera app should be pinned via Pinner Service -->
|
||||||
|
<bool name="config_pinnerCameraApp">true</bool>
|
||||||
|
|
||||||
|
<!-- True if home app should be pinned via Pinner Service -->
|
||||||
|
<bool name="config_pinnerHomeApp">true</bool>
|
||||||
|
|
||||||
|
<!-- Indicate whether to allow the device to suspend when the screen is off
|
||||||
|
due to the proximity sensor. This resource should only be set to true
|
||||||
|
if the sensor HAL correctly handles the proximity sensor as a wake-up source.
|
||||||
|
Otherwise, the device may fail to wake out of suspend reliably.
|
||||||
|
The default is false. -->
|
||||||
|
<bool name="config_suspendWhenScreenOffDueToProximity">true</bool>
|
||||||
|
|
||||||
|
<!-- Whether device supports double tap to wake -->
|
||||||
|
<bool name="config_supportDoubleTapWake">true</bool>
|
||||||
|
|
||||||
|
<!-- True if the device supports Sustained Performance Mode-->
|
||||||
|
<bool name="config_sustainedPerformanceModeSupported">true</bool>
|
||||||
|
|
||||||
|
<!-- The default refresh rate for a given device. Change this value to set a higher default
|
||||||
|
refresh rate. If the hardware composer on the device supports display modes with a higher
|
||||||
|
refresh rate than the default value specified here, the framework may use those higher
|
||||||
|
refresh rate modes if an app chooses one by setting preferredDisplayModeId or calling
|
||||||
|
setFrameRate().
|
||||||
|
If a non-zero value is set for config_defaultPeakRefreshRate, then
|
||||||
|
config_defaultRefreshRate may be set to 0, in which case the value set for
|
||||||
|
config_defaultPeakRefreshRate will act as the default frame rate. -->
|
||||||
|
<integer name="config_defaultRefreshRate">0</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">90</integer>
|
||||||
|
|
||||||
|
<!-- Vibrator pattern for feedback about a long screen/key press -->
|
||||||
|
<integer-array name="config_longPressVibePattern">
|
||||||
|
<item>0</item>
|
||||||
|
<item>80</item>
|
||||||
|
</integer-array>
|
||||||
|
|
||||||
|
<!-- Vibrator pattern for feedback about touching a virtual key -->
|
||||||
|
<integer-array name="config_virtualKeyVibePattern">
|
||||||
|
<item>0</item>
|
||||||
|
<item>80</item>
|
||||||
|
</integer-array>
|
||||||
|
|
||||||
|
<!-- Vibrator pattern for a very short but reliable vibration for soft keyboard tap -->
|
||||||
|
<integer-array name="config_keyboardTapVibePattern">
|
||||||
|
<item>80</item>
|
||||||
|
</integer-array>
|
||||||
|
|
||||||
|
<!-- List of biometric sensors on the device, in decreasing strength. Consumed by AuthService
|
||||||
|
when registering authenticators with BiometricService. Format must be ID:Modality:Strength,
|
||||||
|
where: IDs are unique per device, Modality as defined in BiometricAuthenticator.java,
|
||||||
|
and Strength as defined in Authenticators.java -->
|
||||||
|
<string-array name="config_biometric_sensors" translatable="false" >
|
||||||
|
<item>0:2:15</item> <!-- ID0:Fingerprint:Strong -->
|
||||||
|
</string-array>
|
||||||
|
|
||||||
|
<!-- Indicates whether device has a power button fingerprint sensor. -->
|
||||||
|
<bool name="config_is_powerbutton_fps" translatable="false">true</bool>
|
||||||
|
|
||||||
|
<!-- 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
|
||||||
|
from the HAL in the future. -->
|
||||||
|
<array name="config_sfps_sensor_props" translatable="false">
|
||||||
|
<item>@array/config_sfps_sensor_props_0</item>
|
||||||
|
</array>
|
||||||
|
|
||||||
|
<array name="config_sfps_sensor_props_0" translatable="false">
|
||||||
|
<item>local:4630946945666696833</item>
|
||||||
|
<item>1080</item>
|
||||||
|
<item>815</item>
|
||||||
|
<item>115</item>
|
||||||
|
</array>
|
||||||
|
|
||||||
|
<!-- Default list of files pinned by the Pinner Service -->
|
||||||
|
<string-array translatable="false" name="config_defaultPinnerServiceFiles">
|
||||||
|
<item>"/system/framework/framework.jar"</item>
|
||||||
|
<item>"/system/framework/services.jar"</item>
|
||||||
|
<item>"/apex/com.android.art/javalib/core-oj.jar"</item>
|
||||||
|
<item>"/apex/com.android.art/javalib/core-libart.jar"</item>
|
||||||
|
<item>"/apex/com.android.media/javalib/updatable-media.jar"</item>
|
||||||
|
<item>"/system_ext/priv-app/SystemUI/SystemUI.apk"</item>
|
||||||
|
<item>"/system/bin/surfaceflinger"</item>
|
||||||
|
</string-array>
|
||||||
|
|
||||||
|
</resources>
|
10
overlay/OPlusSettingsResCommon/Android.bp
Normal file
10
overlay/OPlusSettingsResCommon/Android.bp
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
//
|
||||||
|
// Copyright (C) 2022 The LineageOS Project
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
//
|
||||||
|
|
||||||
|
runtime_resource_overlay {
|
||||||
|
name: "OPlusSettingsResCommon",
|
||||||
|
sdk_version: "current",
|
||||||
|
device_specific: true,
|
||||||
|
}
|
13
overlay/OPlusSettingsResCommon/AndroidManifest.xml
Normal file
13
overlay/OPlusSettingsResCommon/AndroidManifest.xml
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
Copyright (C) 2022 The LineageOS Project
|
||||||
|
SPDX-License-Identifier: Apache-2.0
|
||||||
|
-->
|
||||||
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
package="com.android.settings.overlay.oplus">
|
||||||
|
|
||||||
|
<overlay
|
||||||
|
android:isStatic="true"
|
||||||
|
android:priority="300"
|
||||||
|
android:targetPackage="com.android.settings" />
|
||||||
|
</manifest>
|
11
overlay/OPlusSettingsResCommon/res/values/config.xml
Normal file
11
overlay/OPlusSettingsResCommon/res/values/config.xml
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
Copyright (C) 2022 The LineageOS Project
|
||||||
|
SPDX-License-Identifier: Apache-2.0
|
||||||
|
-->
|
||||||
|
<resources>
|
||||||
|
|
||||||
|
<!-- Whether to show Smooth Display feature in Settings Options -->
|
||||||
|
<bool name="config_show_smooth_display">true</bool>
|
||||||
|
|
||||||
|
</resources>
|
Loading…
Reference in a new issue