Commit Graph

120 Commits

Author SHA1 Message Date
Sarthak Roy
cd26217314 rosemary: perf: Add interaction powerhint boosts
Change-Id: Ie0ad0e2659af979a79c60e3ff387d2ac9638b12f
2022-11-12 10:48:38 +03:00
Vaisakh Murali
b3f25c665f rosemary: Boost foreground to maximum when launching an app
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>
2022-11-12 10:48:38 +03:00
Vaisakh Murali
730447a8db rosemary: Allow raising sched_boost to 6 levels
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>
2022-11-12 10:48:38 +03:00
Vaisakh Murali
bb6f83ce78 rosemary: Boost stune on app launch
This should improve app opening speeds

Signed-off-by: Vaisakh Murali <mvaisakh@statixos.com>
2022-11-12 10:48:38 +03:00
Andrew Hexen
a1ecec2410 rosemary: rro_overlays: Move rro overlays to vendor
* For GSI compatibility.

Change-Id: I21180e80de1109483f8ce0ab67fba021d4a74b08
2022-11-12 10:48:38 +03:00
David Su
24589e0ecc rosemary: Don't sign Wifi RROs with platform cert
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
2022-11-12 10:48:38 +03:00
Roshan Pius
a7ffc96aa1 rosemary: rro_overlays: Add WifiOverlay
Bug: 148617260
Test: Device boots up and connects to wifi networks.
Change-Id: Iec27a6d947a232a42451ef095dc73d1a52327db5
2022-11-12 10:48:38 +03:00
Weilun Du
2614b5a558 rosemary: rro_overlays: Add TetheringOverlay
BUG: 163800715
Signed-off-by: Weilun Du <wdu@google.com>
Change-Id: Ia0834f5215ff8c3b13effa591bd2f84d93419a06
2022-11-12 10:48:38 +03:00
Arne Coucheron
3f45a4f3de rosemary: Disable serial console notification
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
2022-11-12 10:48:38 +03:00
bengris32
f9a29b388c rosemary: Enable metadata partition
* Set BOARD_USES_METADATA_PARTITION := true

Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: I4939c526b7cd79277e6fd21e08143b0e69101104
2022-11-12 10:48:38 +03:00
SamarV-121
f5f10bc632 rosemary: Rename libwifi-hal.so
* To prevent conflict with aosp's

Change-Id: I922f26c45957f4bc5d2ad85e14ecfcb382abf811
2022-11-12 10:48:31 +03:00
bengris32
1f7119eeec [DNM] rosemary: Set required build broken flags
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2022-11-12 10:48:11 +03:00
bengris32
71e6270f33 rosemary: Add missing libwebrtc_audio_preprocessing.so
Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: I5fe81ab917bb819613a8735088f0c12fbd0a19d7
2022-11-12 10:48:11 +03:00
kubersharma001
89eb22028b rosemary: libinit: Migrate system/core/base to system/libbase. 2022-11-12 10:48:11 +03:00
Lucchetto
37a1f01aeb rosemary: Adapt libinit to Android 11 2022-11-12 10:48:11 +03:00
Demon000
4bd9ec8009 rosemary: init: cleanup includes 2022-11-12 10:48:11 +03:00
Demon000
f78c9685dd rosemary: init: group dalvik property initialization together 2022-11-12 10:48:11 +03:00
Demon000
984575d584 rosemary: init: override dalvik heap config based on total RAM
Change-Id: I5ff7bdc9ab610415093ff6535c34f0013154b8cf
2022-11-12 10:48:11 +03:00
Akash
0c1f0ef04a rosemary: remove seclabel from mi_thermald
Fixes: init: cannot setexeccon('u:r:mi_thermald:s0') for mi_thermald: Invalid argument

Change-Id: I62f55edc8d7c6d52f0c9f2cb64fce4aa51704f00
2022-11-12 10:48:11 +03:00
bengris32
719dced30b rosemary: Import stock power configs
Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: Idaf780975e2cba5aaba5c0808b833f8f8e547197
2022-11-12 10:48:11 +03:00
bengris32
577854c24c rosemary: Build default ConsumerIR HIDL service
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2022-11-12 10:48:11 +03:00
bengris32
7ee936b142 rosemary: Build android.hidl.allocator@1.0
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2022-11-12 10:48:11 +03:00
bengris32
4c9f22bf75 rosemary: Build Thermal 2.0 interface
Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: Ib25eca2ef8f800e79c751c608cb0f307a60314bc
2022-11-12 10:48:11 +03:00
bengris32
b04dbbbef3 rosemary: Generate framework compatibility matrix
* See https://gist.github.com/SebaUbuntu/ec053a00a9988eaea091fb1cc1f19324

Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: I168debe2316d172ac81d5fe7320662a274ea76a0
2022-11-12 10:47:50 +03:00
bengris32
1d6ae629e1 rosemary: Build default WiFi service from source
Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: I3a0964738ff196350f4d634f51c80ddad30009db
2022-11-12 10:46:47 +03:00
Hridya Valsaraju
3eb2015fdb rosemary: Define BOARD_SUPER_PARTITION_ERROR_LIMIT
Set BOARD_SUPER_PARTITION_ERROR_LIMIT to 9122611200.

Test: make
Bug: 136174903
Change-Id: Ia899e569cd534603ca014eb38629437da7680009
2022-11-12 10:45:57 +03:00
bengris32
ec6d1ca575 rosemary: Import seccomp policy from stock
Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: I6da59a29080180f7dbf8789363028cefe45dedaa
2022-11-12 10:45:57 +03:00
bengris32
5ee1e425f4 rosemary: Import WiFi configs from stock
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2022-11-12 10:45:57 +03:00
Akshay Kakatkar
b0b7d6c53e rosemary: overlay: Set config_screenBrightnessSettingMaximum to 255 2022-11-12 10:45:57 +03:00
LuK1337
2106c30536 rosemary: overlay: Set config_screenBrightnessSettingMinimum to 3
Change-Id: I77122cbdc5377ebb21ce91401e856311edc7addf
2022-11-12 10:45:57 +03:00
Subhajeet Muhuri
56d7f45350 rosemary: overlay: Update pinner list for new SystemUI location
Change-Id: I93c1a4b73ca1f03ca0fcf9cbe4ce1b057a739ca6
2022-11-12 10:45:57 +03:00
chaptsand
23ef6cf08a rosemary: overlay: Enable DT2W 2022-11-12 10:45:57 +03:00
Kevin Jeon
82fa1a0cb4 rosemary: overlay: Update SurfaceFlinger pin
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
2022-11-12 10:45:57 +03:00
Nicolas Geoffray
5432051e41 rosemary: overlay: Remove odex/oat files from pinner list.
The pinner now asks the runtime for these files.

Test: adb shell dumpsys pinner
Bug: 144773394
Change-Id: Ibd947491961e4e78f1996c04dcec62d5b16c2d1d
2022-11-12 10:45:57 +03:00
Nicolas Geoffray
4bb7dcd892 rosemary: Adjust locations of oat files.
Bug: 158517130
Test: m
Change-Id: I2b65c9b4740eff4934fb0c1686a3d99d56310e8c
2022-11-12 10:45:57 +03:00
Aayush Gupta
abe8b91ba6 rosemary: overlay: Drop non-existing services.odex from pinner
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
2022-11-12 10:45:57 +03:00
Jorim Jaggi
b5d6563072 rosemary: overlay: Pin HOME application
Test: adb shell dumpsys pinner after boot
Bug: 111132016
Bug: 78585335
Change-Id: I4ed0587ae5348bbe03ad9ac5f1c5b1726dbb8246
2022-11-12 10:45:57 +03:00
Nicolas Geoffray
a0f6bf972b rosemary: Adjust pinned files following runtime module work.
Test: adb shell dumpsys pinner
Bug: 119868597
Change-Id: I83c709accb32d0f2c341179dbc5dcd6d7ec75d8a
2022-11-12 10:45:57 +03:00
bengris32
6a97f6bb51 rosemary: Initial device overlays
Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: I1a84c0b11500b221072f3b51706780b74279a319
2022-11-12 10:45:57 +03:00
bengris32
d75c6728af rosemary: Import Media configs from stock
* Track configs from AOSP whenever possible

Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: Ib0add0f726e2ac16e9706d369edfea0a523378e3
2022-11-12 10:45:57 +03:00
bengris32
10f07f4511 rosemary: Import audio configs from stock
* Track configs from AOSP whenever possible

Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: I20c8c4fc3016b992d90a09d32263ede379e62e9c
2022-11-12 10:45:57 +03:00
bengris32
e922f4b142 rosemary: Build required WiFi interfaces
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2022-11-12 10:45:57 +03:00
bengris32
66e6f82b4d rosemary: Build default Memtrack HIDL service
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2022-11-12 10:45:57 +03:00
bengris32
4a1061a587 rosemary: Build required Graphics interfaces/libs
Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: I07a0c53c282f8a8b6dea6d21fa219b66045d121b
2022-11-12 10:45:57 +03:00
bengris32
c1b624df95 rosemary: Build default Composer HIDL service
Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: I220069ddd0a8e01b646d9f8f71710102c674e30a
2022-11-12 10:45:57 +03:00
Volodymyr Zhdanov
f5a4b2b57a rosemary: Disable SF configstore
* ship disable_configstore because we have API level 29

Change-Id: If8533333745aea8f19983949571729cb53904eb1
2022-11-12 10:45:57 +03:00
Bruno Martins
f7dae507fd rosemary: Include common feature permissions
Change-Id: Idf607e629691b38c808a3bc9745ff41b760b9cdb
2022-11-12 10:45:57 +03:00
bengris32
fa09788c1e rosemary: Checkout SurfaceFlinger properties from MIUI 13
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2022-11-12 10:45:57 +03:00
bengris32
2da8316026 rosemary: Build required radio interfaces
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2022-11-12 10:45:57 +03:00
bengris32
d57a195151 rosemary: Build required sensors interfaces
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2022-11-12 10:45:57 +03:00