diff --git a/aosp_lynx.mk b/aosp_lynx.mk
index 1850584..10bcfe8 100644
--- a/aosp_lynx.mk
+++ b/aosp_lynx.mk
@@ -28,6 +28,3 @@ PRODUCT_DEVICE := lynx
PRODUCT_MODEL := AOSP on Lynx
PRODUCT_BRAND := Android
PRODUCT_MANUFACTURER := Google
-
-DEVICE_MANIFEST_FILE := \
- device/google/lynx/manifest.xml
diff --git a/conf/init.lynx.rc b/conf/init.lynx.rc
index ee6e30f..dfc95e1 100644
--- a/conf/init.lynx.rc
+++ b/conf/init.lynx.rc
@@ -107,6 +107,7 @@ on property:vendor.all.modules.ready=1
chown system system /sys/bus/i2c/devices/8-0043/default/braking_time_ms
chown system system /sys/bus/i2c/devices/8-0043/default/f0_offset
chown system system /sys/bus/i2c/devices/8-0043/default/owt_free_space
+ chown system system /sys/bus/i2c/devices/8-0043/default/owt_lib_compat
chown system system /sys/bus/i2c/devices/8-0043/default/f0_comp_enable
chown system system /sys/bus/i2c/devices/8-0043/default/redc_comp_enable
chown system system /sys/bus/i2c/devices/8-0043/default/delay_before_stop_playback_us
diff --git a/lynx/BoardConfig.mk b/lynx/BoardConfig.mk
index 6f58c41..5893b90 100644
--- a/lynx/BoardConfig.mk
+++ b/lynx/BoardConfig.mk
@@ -30,6 +30,7 @@ endif
BOARD_USES_GENERIC_AUDIO := true
USES_DEVICE_GOOGLE_LYNX := true
+$(call soong_config_set_bool,prebuilts_wlan,USES_DEVICE_GOOGLE_LYNX,$(USES_DEVICE_GOOGLE_LYNX))
# Enable load module in parallel
BOARD_BOOTCONFIG += androidboot.load_modules_parallel=true
diff --git a/manifest.xml b/manifest.xml
deleted file mode 100644
index 3fe5807..0000000
--- a/manifest.xml
+++ /dev/null
@@ -1,107 +0,0 @@
-
-
- android.hardware.audio
- hwbinder
- 7.0
-
- IDevicesFactory
- default
-
-
-
- android.hardware.audio.effect
- hwbinder
- 7.0
-
- IEffectsFactory
- default
-
-
-
- android.hardware.soundtrigger
- hwbinder
- 2.3
-
- ISoundTriggerHw
- default
-
-
-
- android.hardware.media.omx
- hwbinder
- 1.0
-
- IOmx
- default
-
-
- IOmxStore
- default
-
-
-
- android.hardware.graphics.allocator
- hwbinder
- 4.0
-
- IAllocator
- default
-
-
-
- android.hardware.graphics.composer
- hwbinder
- 2.4
-
- IComposer
- default
-
-
-
- android.hardware.renderscript
- passthrough
- 1.0
-
- IDevice
- default
-
-
-
- android.hardware.dumpstate
- hwbinder
- 1.1
-
- IDumpstateDevice
- default
-
-
-
- android.hardware.boot
- hwbinder
- @1.2::IBootControl/default
-
-
- android.hardware.neuralnetworks
- hwbinder
- @1.3::IDevice/google-edgetpu
-
-
- android.hardware.health
- hwbinder
- 2.1
-
- IHealth
- default
-
-
-
- vendor.google.whitechapel.audio.audioext
- hwbinder
- 4.0
-
- IAudioExt
- default
-
-
-
-
diff --git a/powerhint.json b/powerhint.json
index 022c6f1..0ee3211 100644
--- a/powerhint.json
+++ b/powerhint.json
@@ -335,14 +335,6 @@
],
"ResetOnInit": true
},
- {
- "Name": "NewlyIdleBalancer",
- "Path": "/proc/vendor_sched/idle_balancer",
- "Values": [
- "0",
- "1"
- ]
- },
{
"Name": "DisplayWakeup",
"Path": "/sys/devices/platform/1c240000.drmdecon/early_wakeup",
@@ -662,6 +654,26 @@
],
"DefaultIndex": 0,
"ResetOnInit": true
+ },
+ {
+ "Name": "AAModeProperty",
+ "Path": "vendor.powerhal.mode.aa",
+ "Values": [
+ "1",
+ "0"
+ ],
+ "ResetOnInit": true,
+ "Type": "Property"
+ },
+ {
+ "Name": "SYSTEM_UI_ADPF_PROFILES",
+ "Path": ":SYSTEM_UI",
+ "Values": [
+ "SYSTEM_UI_PROFILE"
+ ],
+ "DefaultIndex": 0,
+ "ResetOnInit": true,
+ "Type": "Event"
}
],
"Actions": [
@@ -1216,12 +1228,6 @@
"Duration": 0,
"Value": "0"
},
- {
- "PowerHint": "CAMERA_STREAMING_EXTREME",
- "Node": "NewlyIdleBalancer",
- "Duration": 0,
- "Value": "0"
- },
{
"PowerHint": "CAMERA_STREAMING_HIGH",
"Node": "PMU_POLL",
@@ -1330,12 +1336,6 @@
"Duration": 0,
"Value": "0"
},
- {
- "PowerHint": "CAMERA_STREAMING_HIGH",
- "Node": "NewlyIdleBalancer",
- "Duration": 0,
- "Value": "0"
- },
{
"PowerHint": "CAMERA_STREAMING_STANDARD",
"Node": "PowerHALCameraRunning",
@@ -1390,12 +1390,6 @@
"Duration": 0,
"Value": "0"
},
- {
- "PowerHint": "CAMERA_STREAMING_STANDARD",
- "Node": "NewlyIdleBalancer",
- "Duration": 0,
- "Value": "0"
- },
{
"PowerHint": "CAMERA_STREAMING_LOW",
"Node": "PowerHALCameraRunning",
@@ -1456,12 +1450,6 @@
"Duration": 0,
"Value": "0"
},
- {
- "PowerHint": "CAMERA_STREAMING_LOW",
- "Node": "NewlyIdleBalancer",
- "Duration": 0,
- "Value": "0"
- },
{
"PowerHint": "CAMERA_VIDEO_RECORDING",
"Type": "MaskHint",
@@ -1710,6 +1698,12 @@
"Duration": 0,
"Value": "1"
},
+ {
+ "PowerHint": "AUTOMOTIVE_PROJECTION",
+ "Node": "AAModeProperty",
+ "Duration": 0,
+ "Value": "1"
+ },
{
"PowerHint": "DISPLAY_IDLE",
"Node": "FGPreferIdle",
@@ -1727,6 +1721,18 @@
"Type": "EndHint",
"Value": "DISPLAY_UPDATE_IMMINENT"
},
+ {
+ "PowerHint": "DISPLAY_IDLE",
+ "Type": "MaskHint",
+ "Value":"DISPLAY_UPDATE_IMMINENT",
+ "EnableProperty": "vendor.powerhal.mode.aa"
+ },
+ {
+ "PowerHint": "DISPLAY_IDLE",
+ "Type": "MaskHint",
+ "Value":"CPU_LOAD_RESET",
+ "EnableProperty": "vendor.powerhal.mode.aa"
+ },
{
"PowerHint": "DISPLAY_UPDATE_IMMINENT",
"Node": "DisplayWakeup",
@@ -2072,76 +2078,40 @@
"MaxRecordsNum": 300
},
{
- "Name": "UiHighBoostWithoutPid",
- "PID_On": false,
- "PID_Po": 0,
- "PID_Pu": 0,
- "PID_I": 0,
- "PID_I_Init": 0,
- "PID_I_High": 0,
- "PID_I_Low": 0,
- "PID_Do": 0,
- "PID_Du": 0,
- "SamplingWindow_P": 1,
- "SamplingWindow_I": 1,
- "SamplingWindow_D": 1,
+ "Name": "SYSTEM_UI_PROFILE",
+ "PID_On": true,
+ "PID_Po": 2.0,
+ "PID_Pu": 1.0,
+ "PID_I": 0.0,
+ "PID_I_Init": 200,
+ "PID_I_High": 512,
+ "PID_I_Low": -30,
+ "PID_Do": 500.0,
+ "PID_Du": 0.0,
"UclampMin_On": true,
- "UclampMin_Init": 250,
- "UclampMin_High": 197,
- "UclampMin_Low": 197,
+ "UclampMin_Init": 232,
+ "UclampMin_LoadUp": 730,
+ "UclampMin_LoadReset": 730,
+ "UclampMin_High": 480,
+ "UclampMin_Low": 2,
"UclampMax_EfficientBase": 500,
"UclampMax_EfficientOffset": 200,
- "ReportingRateLimitNs": 1,
- "TargetTimeFactor": 1.0,
- "StaleTimeFactor": 5.0
- },
- {
- "Name": "UiLowBoostWithoutPid",
- "PID_On": false,
- "PID_Po": 0,
- "PID_Pu": 0,
- "PID_I": 0,
- "PID_I_Init": 0,
- "PID_I_High": 0,
- "PID_I_Low": 0,
- "PID_Do": 0,
- "PID_Du": 0,
"SamplingWindow_P": 1,
- "SamplingWindow_I": 1,
+ "SamplingWindow_I": 0,
"SamplingWindow_D": 1,
- "UclampMin_On": true,
- "UclampMin_Init": 250,
- "UclampMin_High": 53,
- "UclampMin_Low": 53,
- "UclampMax_EfficientBase": 500,
- "UclampMax_EfficientOffset": 200,
- "ReportingRateLimitNs": 1,
+ "ReportingRateLimitNs": 166666660,
"TargetTimeFactor": 1.0,
- "StaleTimeFactor": 5.0
- },
- {
- "Name": "UiLowNoneBoost",
- "PID_On": false,
- "PID_Po": 0,
- "PID_Pu": 0,
- "PID_I": 0,
- "PID_I_Init": 0,
- "PID_I_High": 0,
- "PID_I_Low": 0,
- "PID_Do": 0,
- "PID_Du": 0,
- "SamplingWindow_P": 1,
- "SamplingWindow_I": 1,
- "SamplingWindow_D": 1,
- "UclampMin_On": true,
- "UclampMin_Init": 250,
- "UclampMin_High": 0,
- "UclampMin_Low": 0,
- "UclampMax_EfficientBase": 500,
- "UclampMax_EfficientOffset": 200,
- "ReportingRateLimitNs": 1,
- "TargetTimeFactor": 1.0,
- "StaleTimeFactor": 5.0
+ "StaleTimeFactor": 15.0,
+ "HeuristicBoost_On": true,
+ "HBoostModerateJankThreshold": 2,
+ "HBoostOffMaxAvgDurRatio": 4.0,
+ "HBoostSevereJankPidPu": 0.5,
+ "HBoostSevereJankThreshold": 8,
+ "HBoostUclampMinCeilingRange": [480, 722],
+ "HBoostUclampMinFloorRange": [230, 410],
+ "JankCheckTimeFactor": 1.2,
+ "LowFrameRateThreshold": 25,
+ "MaxRecordsNum": 300
}
]
}