60 Commits

Author SHA1 Message Date
bengris32
38c0cbd8a8 rosemary: Build create_pl_dev
* create_pl_dev is an OSS replacement for mtk_plpath_utils.

Change-Id: I0c484acaf582d2e802116c4927d98e98e2e7a179
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2024-03-01 15:44:06 +01:00
bengris32
2d366f4316 rosemary: rootdir: Set permissions for USB service
Change-Id: I046e5b7f062171862eba1532efd128e057940042
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2024-02-19 16:19:56 +00:00
Sriharsha Allenki
8dddc352fa rosemary: rootdir: Set the sys.mtp.device_type property
VtsTrebleSysProp test cases fail if the
sys.mtp.device_type is unset. Set the property to
value 3 so that the device appears as a phone on the
host PC.

Change-Id: I1123ca808cf027d6d787c58f58133b6ce67af4de
2024-02-19 16:19:56 +00:00
bengris32
1830492e21 rosemary: rootdir: Copy rndis function setup from gs101
Change-Id: I23ded1acdde9417e3d8a0f2ba69b88d41b6cba07
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2024-02-19 16:19:56 +00:00
bengris32
999dfed2fb rosemary: rootdir: Add support for NCM function
Change-Id: Ic6708956d3068a9cd5cb8a6681ac5fac75e3be7e
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2024-02-19 16:19:53 +00:00
Ray Chi
019fe6c82b rosemary: rootdir: move the permission change to usb rc
Since permission change in hal rc may be late, gadget
hal would enable USB function failed. The solution will
change the permission before USB gadget hal starts.

Bug: 206902205
Test: build pass and verified pass
Change-Id: I45c1318f647220480fa03ba3b813a81b21393d71
2024-02-19 16:12:30 +00:00
bengris32
c1369dcf85 rosemary: Move gadget handling out of init and remove unneeded functions
Change-Id: Icd390609918f767962df47dfe839a75082796ee7
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2024-02-19 16:10:43 +00:00
bengris32
691416d63f rosemary: init: charger -> vendor.charger
Change-Id: I6ae98b350c3bbdba1ae67914c389ca84ede5c16f
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2024-02-19 12:01:04 +01:00
Kshitij Gupta
0750d98980 rosemary: init: Fix backlight on charger
Change-Id: I10115623f79dcf9ebe6904c9f736885eab0b3233
2024-02-19 12:01:04 +01:00
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
Matsvei Niaverau
9775d2f5c3 rosemary: rootdir: Rework fstab ramdisk including
Change-Id: Ia3a9d873776c88079b70ba70294632a8d0c92ab4
2023-04-25 17:59:38 +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