Commit Graph

50 Commits

Author SHA1 Message Date
bengris32
9708fd333b rosemary: Support AOSP charger animation
Change-Id: I93628ae9bb730c233ed93c796d640d9854c447f3
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2024-02-19 12:01:04 +01:00
Matsvei Niaverau
e9cf96da92 rosemary: Update blobs from V14.0.7.0.TKLMIXM
This reverts commit c478a2e and cb797b3.

Change-Id: I8a2372df789877f45a94dfaf76fecae717e860ab
2024-02-19 12:01:04 +01:00
bengris32
967d552a2f rosemary: Switch to AOSP audio service
Change-Id: I933b66e3821562022eb837af91ad4039e22fb578
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2024-02-19 11:42:22 +01:00
Matsvei Niaverau
843dbbd7e0 rosemary: rootdir: Update from V13.0.6.0
Change-Id: Id244a2ae3e7f1cad4ac668af6590959035f16426
2024-02-19 11:39:42 +01:00
Matsvei Niaverau
dd395cf5f7 Revert "rosemary: Build Lineage Health HAL"
This reverts commit c4a4c66c1a.

Change-Id: Id124dec21f2e3443d15e4d905f2fdb761252b0cd
2023-06-22 14:41:58 +02:00
Michael Bestas
c4a4c66c1a rosemary: Build Lineage Health HAL
Change-Id: I70cc903a03ac9fa3303bb8fa039c9de4806449bf
2023-06-21 09:52:20 +02:00
danascape
ac25c069f9 rosemary: Ship separate system_ext image
Change-Id: I729450c33dc089528b5e0e0dc639f8af9bd53740
2023-04-25 17:59:38 +02:00
Matsvei Niaverau
c586df0ab0 rosemary: rootdir: Drop cache partition
* Useless on Virtual A/B

Change-Id: I5b5b2c669bc0847d100c0a38db5748efe3c8038a
2023-04-25 17:59:38 +02:00
Ash Blake
5ee2fea9de rosemary: rootdir: Fix /dev/fm ownership
* On AOSP, the FMRadio app process runs as system

Change-Id: I1316d78e02f5087f0d561840f68a6aaa0746c658
2023-04-25 17:59:38 +02:00
Matsvei Niaverau
880f476d30 rosemary: rootdir: Set correct permissions for FM Radio node
Change-Id: I6b2c7991fb4067b73cb4ffbf4d80c2ee75dfe635
2023-04-25 17:59:38 +02:00
Jesse Chan
f41efd8883 rosemary: initialize powerHAL when boot is completed 2023-04-25 17:59:38 +02:00
Matsvei Niaverau
d9772fa399 rosemary: rootdir: Bring up fingerprint chowns
Change-Id: Ifa7259b2cb6411ff486226ac492ff1b98376df9e
2023-04-25 17:59:38 +02:00
Vaisakh Murali
e41b2e465d rosemary: Enable EAS instead of hybrid sched
The node accepts 3 values
0: HMP
1: EAS
2: MTK Hybrid Sched (EAS+HMP)

[bengris32] Despite hybrid scheduler having better "raw" performance,
EAS yields significant UX performance improvements over the hybrid scheduler.

Change-Id: Ia170b5454920cff747e1886c5f2f2dedcefbf537
2023-04-25 17:59:38 +02:00
Matsvei Niaverau
9ae4e34f25 rosemary: rootdir: Pull missing project init
Change-Id: If3405bc52fb1d09aa314f30000ea3ddf45df4b8c
2023-04-25 17:59:38 +02:00
Matsvei Niaverau
39e50d4214 rosemary: rootdir: Drop charge_logger remnants
Change-Id: Id96b5849deb51a876d0467407af9c9d858b2b855
2023-04-25 17:59:38 +02:00
Matsvei Niaverau
712985a299 rosemary: Drop displayfeature HAL
Change-Id: I509f2a537ee2c0f35f32a82d03ca696e1d62b99b
2023-04-25 17:59:38 +02:00
Matsvei Niaverau
da28f94423 rosemary: rootdir: Bump vendor.boot-hal version
Change-Id: I0e5a992e1108846cb27cf40d53a630b7f9d1a689
2023-04-25 17:59:37 +02:00
Matsvei Niaverau
f0b02514a1 rosemary: Set up SKU-based ST NFC stack
* Based on miatoll implementation (7c21e60b93)

Change-Id: Ibb852acd55e4c0bc6928236637493520af221db2
2023-04-15 14:36:56 +02:00
DarkJoker360
e06eaa6ff5 rosemary: Set dt2w node permissions on boot
Signed-off-by: DarkJoker360 <simoespo159@gmail.com>
Change-Id: Ic47bdd4f68c1f4a8cc29f6b8d1bf46c04fbc4871
2023-04-15 14:36:56 +02:00
TheMalachite
ff5ba11132 rosemary: rootdir: Drop useless services
Signed-off-by: TheMalachite <eliasgheeraert@gmail.com>
Change-Id: I7ad43ec34a70322cf30cfbfe684dec5a1577eae2
2023-04-15 14:36:56 +02:00
TheMalachite
f07c0837fb rosemary: rootdir: Remove sdcard symlink and iso mount
Signed-off-by: TheMalachite <eliasgheeraert@gmail.com>
Change-Id: Icff4c31d55be813d2284f0617072ce343e71db07
2023-04-15 14:36:56 +02:00
TheMalachite
a07c6392ed rosemary: rootdir: Drop on property:vold.decrypt
- We don't use FDE encryption

Signed-off-by: TheMalachite <eliasgheeraert@gmail.com>
Change-Id: Icd9c16a5f5b92992e8e41539971302a09cdde9be
2023-04-15 14:36:56 +02:00
Vaisakh Murali
0bed5f53a4 rosemary: rootdir: Elevate read permissions for mtk_cmdq and mdp_sync
Apparently on AOSP builds, these nodes when read by the hals
with O_RDONLY attribute, need an elevated read permission, which
is apparently unneeded on mtk builds/stock rom.

This fixes video playback/OMX

Signed-off-by: Vaisakh Murali <mvaisakh@statixos.com>
Change-Id: I7f358d0037de569a4eb038e5ac2a17b7651d307d
2023-04-15 14:36:56 +02:00
Matsvei Niaverau
a41a41530c rosemary: rootdir: Set fstab as a swapfile
Change-Id: I59e08b005fb396dd5473e1cd113f6b10eac40c3c
2023-04-15 14:36:56 +02:00
Kshitij Gupta
25e13e931a rosemary: rootdir: Correct mode for video0 and video1
- init services fail to setup encoders on boot and camera and
  screenrecord fails to open video1 when trying to encode a video.
- While we may wanna consider looking through services that make use of
  these devs and correct their groups for AOSP, this gets the job done
  for now.

Change-Id: I0278efe201a9cbaa20c650fdc32bed6f9ecfd017
2023-04-15 14:36:56 +02:00
bengris32
ecc0530118 rosemary: Add developer GSI keys to fstab
Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: I0473a681e2a207c21832edd86d40c6f792b05c90
2023-04-15 14:36:56 +02:00
bengris32
b081c2ffa3 rosemary: Remove GSI keys from the fstab
Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: I31b67403fd1ce9d554520b55e500c2f0c9ee29d1
2023-04-15 14:36:56 +02:00
SamarV-121
c3a22a6b0a rosemary: Build and rename audio service HAL
Signed-off-by: SamarV-121 <samarvispute121@pm.me>
2022-12-07 00:10:21 +01:00
Minchan Kim
5c0bd96c29 rosemary: Added zram parameter
* We also changed zram_loopback_size with zram_backingdev_size so correct it.

Bug: 145116439
Test: confirmed there is no warning and zram backing device was configured
Signed-off-by: Minchan Kim <minchan@google.com>
Change-Id: I51be34c59203813a2f493eee6ab442c9940b75d7
2022-11-12 10:48:38 +03:00
P.Adarsh Reddy
843bb81c3f rosemary: Enforce android-S new launch debugfs restrictions
This removes the default mounting of debugfs, as
it is no longer allowed from android-S new-launch.

Change-Id: I78878e1c4177c07d66b13e5659d4360252c5f87b
2022-11-12 10:48:38 +03:00
Wiley Lau
8871aad397 rosemary: dynamically allocate zram
* 50% of Total RAM

Signed-off-by: Wiley Lau <henloboii@protonmail.ch>
2022-11-12 10:48:38 +03:00
Wei Wang
badf7de3ee rosemary: tune zram performance
-Set max_comp_streams to num of cores since upstream also moves this to
percpu.

Bug: 38249616
Test: boot and run zram-perf showing better performance
Change-Id: I0b92b246d773db85aa03d033b2cecee54347cbd1
2022-11-12 10:48:38 +03:00
Wei Wang
93459dd3c4 rosemary: Enable & adjust zram to 2G
Test: boot
Bug: 121282414
Change-Id: Iddb1a638201f356d8fea0981efee64238e79ccaf
2022-11-12 10:48:38 +03:00
Ash Blake
ecfab0dcb6 rosemary: usb: implement gadget
Implement a USB gadget HAL based on the default implementation from
AOSP and move key features from init.mt6768.usb.rc to it. Also remove
triggers for some proprietary USB features that aren't too useful on
custom ROMs and seem to exist mostly for engineering purposes.

Change-Id: Ie920fea8b3834d3bada2609df66ca68ddbb980b1
2022-11-12 10:48:38 +03:00
Vaisakh Murali
e62dbd3d48 rosemary: Enable stune boost for top-app
Reduce the top-app latencies by enabling top-app boosting.
2022-11-12 10:48:38 +03:00
Vaisakh Murali
93ec25bdf8 rosemary: Reduce number of CPUs for system-background apps
system-background isn't too heavy load to handle where cpuset
gives it 6 CPUs to rely on.
Reduce it to 4 CPUs, effectively reducing CPU power load.
2022-11-12 10:48:38 +03:00
TheMalachite
72fb69f423 rosemary: Fixup /data/vendor/audiohal directories creation 2022-11-12 10:48:38 +03:00
Vaisakh Murali
02e9dee8a6 rosemary: Create audio dump directory on post-fs-data
Silence the obscure logspam about not able to create a directory:
AudioParamParser-vnd: utilMkdir(), mkdir fail (/data/vendor/audiohal/audio_param/)
2022-11-12 10:48:38 +03:00
Ash Blake
3904145001 rosemary: fix ownership for /dev/video{0,1}
Mediacodec did not have access and video recording didn't work.
2022-11-12 10:48:38 +03:00
bengris32
ef6b9efaa4 rosemary: Set correct permissions for double_tap node
Signed-off-by: bengris32 <bengris32@protonmail.ch>
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
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
AgentFabulous
c80503eca7 rosemary: Remove remaining AEE imports from init scripts
Change-Id: I353b478baead81a593651f7c504d94f1a5dce4c1
2022-11-12 10:45:57 +03:00
bengris32
3f3ac99a10 rosemary: Remove fstab entry for recovery partition
Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: Ie0c7994a4ae07e95b098b5dd90baf3c42eb475b9
2022-11-12 10:45:57 +03:00
bengris32
cc10db6dbd rosemary: Ensure nonblocking ffs is disabled everywhere
* Move the persist.adb.nonblocking_ffs property into
  PRODUCT_DEFAULT_PROPERTY_OVERRIDES to ensure its set
  everywhere.

Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: I543194ffd3a87dc4ff3093cb6919c194e501ffa2
2022-11-12 10:44:26 +03:00
John Stultz
8fef010592 rosemary: Disable nonblocking_ffs to avoid recent crashes with
adbd

Recent changes to adbd have enabled nonblocking_ffs by default.

These have seeminly uncovered some bad memory corruption in the
kernel ffs gadget driver on every kernel I've tried so far.

Unfortunately I've not been able to diagnose what is going wrong,
so for now, lets disable the nonblocking_ffs.

We still need to root cause the issue as it's a problem even with
the mainline kernel on HiKey, so its likely a generic kernel issue.

Disable nonblocking_ffs in recovery, too.

Change-Id: I7a0797cc9e8e5f263e533beea23642f768c0f017
Signed-off-by: John Stultz <john.stultz@linaro.org>
2022-11-12 10:44:26 +03:00
Debayan
d509acb36c rosemary: Replace ro.vendor.rc with full path
Change-Id: I4209692af02f17ccebac82755faad13834ca88ad
2022-11-07 10:30:32 +03:00
bengris32
921589eaf0 rosemary: Include t-gsi AVB keys
Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: Ia992c4fc3cafee112bc1f542bc925362f99a3af6
2022-11-07 10:30:32 +03:00
bengris32
2128473f22 rosemary: Reorganise fstab
Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: I167c9b2c3d6c4a56436e227aed7b4dd4636bf72c
2022-11-07 10:30:32 +03:00
bengris32
16cda86839 rosemary: Initial minimised rootdir
* All AEE, Meta mode, Factory mode related scripts
  have been removed.

Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: I20ab2c44768ca3f83f8515c2c4455924aaa394d9
2022-11-07 10:30:32 +03:00