summaryrefslogtreecommitdiff
path: root/libs/androidfw/ObbFile.cpp
diff options
context:
space:
mode:
author Tomislav Novak <tnovak@meta.com> 2023-05-03 14:06:07 -0700
committer Tomislav Novak <tnovak@meta.com> 2023-05-26 07:52:19 -0700
commitae169e9358489c4f36cc20663571965cd5636e65 (patch)
treebd22ac399f31d5b396adb11166c478c8ad4ca9a1 /libs/androidfw/ObbFile.cpp
parentf315172a7e7225b3d2b7fe09fba0f8fbb453042b (diff)
Fix setAttachingSchedGroupLSP() to support use_fifo_ui
The method added in aosp/1249555 ("Start process of next activity with top priority in advance") to set the priority of the newly-launched top app's UI thread doesn't handle the use_fifo_ui=1 case. By setting mSetSchedGroup it also prevents subsequent applyOomAdjLSP() calls from fixing the priority, so on devices with the sys.use_fifo_us sysprop set, main thread may not actually use SCHED_FIFO. This is an issue mainly for the initial launch of an app -- once it's moved to another sched group and then back, the priority is adjusted correctly. Test: set sys.use_fifo_ui, start a new app, and check thread priorities with `ps -lT <pid>` Signed-off-by: Tomislav Novak <tnovak@meta.com> Merged-In: Ic8afc2eb054717018d227263a93d9fcc25bfa180 Change-Id: Ic8afc2eb054717018d227263a93d9fcc25bfa180
Diffstat (limited to 'libs/androidfw/ObbFile.cpp')
0 files changed, 0 insertions, 0 deletions