App launching is one of the tasks that can produce janks and CPU
spikes. Boosting foreground to max to open apps should improve UX.
Signed-off-by: Vaisakh Murali <mvaisakh@statixos.com>
Kernel supports boosting upto 6 different levels of sched boost.
Limiting it to only two seems like a waste of useful resources that
we already have in hand.
Signed-off-by: Vaisakh Murali <mvaisakh@statixos.com>
Preinstalled overlays needn't be signed with the same cert
as the package it overlays, simply being preinstalled is
enough. Sign with the default cert instead for now, which
provides fewer special privileges.
Bug: 162195999
Test: verify values still overlaid correctly
Change-Id: I017491fd383551c5aadf8648edb900e0c12a27b8
Google added a check for this prop in R, and if it's running
it will show a notification about it that it's impacting performance.
Why it's not disabled by default I don't know, so just force disable
it here.
[bengris32] Convert to standalone init script and install to system_ext
Change-Id: Ia06ef15388e7e701ed526664e7748f133ad01ee2
This change replaces the '/system/lib64/libsurfaceflinger.so' pin, as
the file was removed in ag/12524602. The updated pin relies on
go/aog/1552085, as system_service needs read access to SurfaceFlinger.
Bug: 176197656
Test: adb shell dumpsys pinner (coral)
- shows that /system/bin/surfaceflinger is successfully pinned
adb logcat | grep PinnerService (coral)
- no longer shows a file-not-found error in PinnerService
Change-Id: Iae2a96c5fe4b1f5698d21de9970140321d11c460
08-31 13:38:56.084 1014 1063 E PinnerService: Could not pin file /system/framework/oat/arm/services.odex
08-31 13:38:56.084 1014 1063 E PinnerService: android.system.ErrnoException: open failed: ENOENT (No such file or directory)
08-31 13:38:56.084 1014 1063 E PinnerService: at libcore.io.Linux.open(Native Method)
08-31 13:38:56.084 1014 1063 E PinnerService: at libcore.io.ForwardingOs.open(ForwardingOs.java:167)
08-31 13:38:56.084 1014 1063 E PinnerService: at libcore.io.BlockGuardOs.open(BlockGuardOs.java:252)
08-31 13:38:56.084 1014 1063 E PinnerService: at android.system.Os.open(Os.java:410)
08-31 13:38:56.084 1014 1063 E PinnerService: at com.android.server.PinnerService.pinFileRanges(PinnerService.java:787)
08-31 13:38:56.084 1014 1063 E PinnerService: at com.android.server.PinnerService.pinFile(PinnerService.java:667)
08-31 13:38:56.084 1014 1063 E PinnerService: at com.android.server.PinnerService.handlePinOnStart(PinnerService.java:252)
08-31 13:38:56.084 1014 1063 E PinnerService: at com.android.server.PinnerService.access$1400(PinnerService.java:87)
08-31 13:38:56.084 1014 1063 E PinnerService: at com.android.server.PinnerService$PinnerHandler.handleMessage(PinnerService.java:995)
08-31 13:38:56.084 1014 1063 E PinnerService: at android.os.Handler.dispatchMessage(Handler.java:107)
08-31 13:38:56.084 1014 1063 E PinnerService: at android.os.Looper.loop(Looper.java:214)
08-31 13:38:56.084 1014 1063 E PinnerService: at android.os.HandlerThread.run(HandlerThread.java:67)
08-31 13:38:56.084 1014 1063 E PinnerService: Failed to pin file = /system/framework/oat/arm/services.odex
08-31 13:38:56.084 1014 1063 D PinnerService: pinRangeStream: null
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
Change-Id: Iad0bbac8bdc731c02a7fb1938140c567b2c1caf9