redwood: Adapt for crDroid
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
[
|
||||
{
|
||||
"repository": "android_kernel_xiaomi_redwood",
|
||||
"target_path": "kernel/xiaomi/redwood"
|
||||
},
|
||||
{
|
||||
"repository": "android_hardware_xiaomi",
|
||||
"target_path": "hardware/xiaomi"
|
||||
}
|
||||
]
|
||||
@@ -11,7 +11,7 @@ $(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk)
|
||||
# Inherit from redwood device
|
||||
$(call inherit-product, device/xiaomi/redwood/device.mk)
|
||||
|
||||
# Inherit some common Lineage stuff.
|
||||
# Inherit some common crDroid stuff.
|
||||
$(call inherit-product, vendor/lineage/config/common_full_phone.mk)
|
||||
|
||||
PRODUCT_BRAND := POCO
|
||||
@@ -32,3 +32,7 @@ PRODUCT_BUILD_PROP_OVERRIDES += \
|
||||
|
||||
# Set BUILD_FINGERPRINT variable to be picked up by both system and vendor build.prop
|
||||
BUILD_FINGERPRINT := POCO/redwood_global/redwood:14/UKQ1.240624.001/OS2.0.7.0.UMSMIXM:user/release-keys
|
||||
|
||||
# Exclude apps
|
||||
TARGET_DISABLE_MATLOG := true
|
||||
TARGET_EXCLUDES_AUDIOFX := true
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
<!-- Defines the actions shown in advanced reboot submenu -->
|
||||
<string-array name="config_restartActionsList">
|
||||
<item>restart</item>
|
||||
<item>restart_systemui</item>
|
||||
<item>restart_recovery</item>
|
||||
<item>restart_bootloader</item>
|
||||
<item>restart_fastboot</item>
|
||||
|
||||
@@ -568,7 +568,7 @@
|
||||
<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>"/system_ext/priv-app/SystemUI/SystemUI.apk"</item>
|
||||
<item>"/system_ext/priv-app/SystemUIGoogle/SystemUIGoogle.apk"</item>
|
||||
<item>"/system/bin/surfaceflinger"</item>
|
||||
</string-array>
|
||||
|
||||
@@ -658,4 +658,7 @@
|
||||
|
||||
<!-- Whether the new Auto Selection Network UI should be shown -->
|
||||
<bool name="config_enableNewAutoSelectNetworkUI">true</bool>
|
||||
|
||||
<!-- Whether the device supports Smart Pixels -->
|
||||
<bool name="config_supportSmartPixels">true</bool>
|
||||
</resources>
|
||||
|
||||
@@ -60,4 +60,7 @@
|
||||
|
||||
<!-- If not zero, limits the internal screen recorder's framerate to the set value. -->
|
||||
<integer name="config_screenRecorderMaxFramerate">120</integer>
|
||||
|
||||
<!-- Whether show refresh rate QS tile -->
|
||||
<bool name="config_showRefreshRateQsTile">true</bool>
|
||||
</resources>
|
||||
|
||||
@@ -15,8 +15,11 @@
|
||||
-->
|
||||
|
||||
<resources>
|
||||
<!-- Whether to show Smooth Display feature in Settings Options -->
|
||||
<bool name="config_show_smooth_display">true</bool>
|
||||
<!-- Whether to show peak refresh rate in display settings -->
|
||||
<bool name="config_show_peak_refresh_rate_switch">true</bool>
|
||||
|
||||
<!-- Whether to show min refresh rate in display settings -->
|
||||
<bool name="config_show_min_refresh_rate_switch">true</bool>
|
||||
|
||||
<!-- The number of vibration intensity levels supported by the device.
|
||||
|
||||
@@ -42,4 +45,13 @@
|
||||
|
||||
<!-- Max network scan search time in seconds -->
|
||||
<integer name="config_network_scan_helper_max_search_time_sec">254</integer>
|
||||
|
||||
<!-- Show battery cycle count -->
|
||||
<bool name="config_show_battery_cycle_count" translatable="false">true</bool>
|
||||
|
||||
<!-- Battery Health -->
|
||||
<string name="config_batteryCalculatedCapacity">/sys/class/power_supply/battery/charge_full</string>
|
||||
<string name="config_batteryDesignCapacity">/sys/class/power_supply/battery/charge_full_design</string>
|
||||
<string name="config_batteryChargeCycles">/sys/class/power_supply/battery/cycle_count</string>
|
||||
<bool name="config_supportBatteryHealth">true</bool>
|
||||
</resources>
|
||||
|
||||
5
sepolicy/vendor/system_app.te
vendored
Normal file
5
sepolicy/vendor/system_app.te
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
allow system_app vendor_sysfs_battery_supply:dir { search };
|
||||
allow system_app vendor_sysfs_battery_supply:file { getattr open read };
|
||||
|
||||
# allow system apps to read battery status
|
||||
r_dir_file(system_app, vendor_sysfs_battery_supply)
|
||||
Reference in New Issue
Block a user