Commit Graph

527 Commits

Author SHA1 Message Date
Pulkit077
cc483a0934 rosemary: sepolicy: label maxim_ds28e16 battery node
Change-Id: I314dbbc36773e3d2f526cf7ff8cb76f5a8d19d28
2023-04-25 17:59:38 +02:00
Kshitij Gupta
eb5043a68f rosemary: Add custom dtbo mk rules and append certs
- rosemary's LK appears to be checking for certs added to dtbo during
  signing. We unfortunately do not have the private keys needed to
  generate an image that the bootloader would accept.
- dd out the 2 der certs and append them appropriately with some padding
  to make the bootloader happy. (Extracted from MIUI 12 dtbo.img)

Change-Id: I26402236bcea3516fb98f5d48857106ae30b54c1
Signed-off-by: Kshitij Gupta <kshitijgm@gmail.com>
2023-04-25 17:59:38 +02:00
Matsvei Niaverau
a2f845c0c5 rosemary: Reorder A/B partitions list
Change-Id: I016d266ee1d7bf0be72f0950f67987975425bd8c
2023-04-25 17:59:38 +02:00
Matsvei Niaverau
99080c663e rosemary: Drop recovery dtbo including
* Unneeded on vAB

Change-Id: I846201bb2fb02d8762088805a9d9b63f665814bf
2023-04-25 17:59:38 +02:00
Matsvei Niaverau
4c47c7d47d rosemary: sepolicy: Label one more power_supply
Change-Id: I3e813017e80af7519603750a8b772695bc3b85dc
2023-04-25 17:59:38 +02:00
Vaisakh Murali
869df2b793 rosemary: sepolicy: Label renamed AOSP AIDL vibrator HAL
Change-Id: I913e27a656e01742ee4ed478659e99d8ce7fe287
2023-04-25 17:59:38 +02:00
Matsvei Niaverau
947b4da090 rosemary: sepolicy: Address sensor HAL denials
Change-Id: Ife8d49f5c8f5eda6c27febdd70e664f4a276c99f
2023-04-25 17:59:38 +02:00
Matsvei Niaverau
78b362da4c rosemary: sepolicy: Label Extcon node
Change-Id: I86aab63212cee0e7e410f2a9d9792fb6917a4b58
2023-04-25 17:59:38 +02:00
bengris32
615e1b9cfe rosemary: Patch FPC fingerprint HAL to ignore conflicting events
This will fix the long standing issue of the screenshot button
combination not working properly in AOSP. The patch will change the
first instruction of the report_input_event function with a ret so
that the touch events which conflict with AOSP do not get reported
to userspace.

Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: Ib36d784b28e0fd18d4bda11cdafaf9865f55e5c9
2023-04-25 17:59:38 +02:00
R0rt1z2
59e0aa7dec rosemary: Patch Goodix fingerprint HAL to ignore conflicting events
This will fix the long standing issue of the screenshot button
combination not working properly in AOSP for Goodix sensors.

The patch will replace the first instruction of the
'gf_hal_send_key_event' function with a ret so that the touch
events which conflict with AOSP do not get reported to userspace.

Change-Id: I9e15a46b519fd7f75e39af4690c271aa63af4790
2023-04-25 17:59:38 +02:00
Sebastiano Barezzi
19b6978f54 rosemary: Reboot to recovery if init fails
Change-Id: I1d8f38620caa7b003911ff30f69ed7973c100e6d
2023-04-25 17:59:38 +02:00
Matsvei Niaverau
18c32fac8d rosemary: sepolicy: Allow sensors HAL to write nvcfg_file
Change-Id: I6fbff45ce252a7a5300a98c4bcc871d443798d05
2023-04-25 17:59:38 +02:00
Matsvei Niaverau
47ad830f75 rosemary: manifest: Drop boot HAL entry
Change-Id: Ia1ef3ab4115ffb6acdfaca4a5394f7bed21b024b
2023-04-25 17:59:38 +02:00
Daniel Rosenberg
044c888f9d rosemary: Setup checkpoint_gc for /vendor
Test: start checkpointing, observe that checkpointing happens
Bug: 111020314
Change-Id: Ic090ac2d0ca9a7dd5485f5ab2a967977cd3ab6b8
2023-04-25 17:59:38 +02:00
Matsvei Niaverau
88e7f4ce80 rosemary: sepolicy: Label elliptic sensors node
Change-Id: Id9ed31d1922da0480ad4f14711ab0cbdc563378a
2023-04-25 17:59:38 +02:00
LuK1337
9d4a0eed47 rosemary: sepolicy: Label wakeup nodes
for i in $(realpath /sys/class/wakeup/*); do if ! echo "$(ls -dZ $i)" | grep -q sysfs_wakeup; then echo genfscon sysfs $(echo $i | sed -e 's|/sys||g' -e 's|wakeup/wakeup.|wakeup|g' -e 's|wakeup[0-9]*|wakeup|g') u:object_r:sysfs_wakeup:s0; fi; done | sort -u

Change-Id: Id70f4e725f8925b31c0007fae5eb98756ddcd410
2023-04-25 17:59:38 +02:00
Matsvei Niaverau
60250c7f20 rosemary: sepolicy: Label IR property
Change-Id: I6637743f0dba526c786e122db54b3552cf4735e9
2023-04-25 17:59:38 +02:00
Isaac Chen
fddd904180 rosemary: sepolicy: Address IR denials
Signed-off-by: Isaac Chen <isaacchen@isaacchen.cn>
Change-Id: I8c7ae4594af864f36726b1e0956d2be3dfa4d2c5
2023-04-25 17:59:38 +02:00
Matsvei Niaverau
d55be393a7 rosemary: sepolicy: Label vibrator nodes
Change-Id: I49131bb01731584841ae276a488406f3e9dd0a5c
2023-04-25 17:59:38 +02:00
ghostrider-reborn
ab917bfa3c rosemary: rro_overlays: Advertise fingerprint on power button
Change-Id: Id0e1fb0fe31ac03251ac9e492816afb1ac737cc3
2023-04-25 17:59:38 +02:00
Matsvei Niaverau
79879ccf0a rosemary: libinit: Add maltose support
* hwname is required for detecting actual device, maltose having same region (Global) with rosemary

Change-Id: I6aa1f9d856db6e7e0195c511bbb35e987d51c1fc
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
bengris32
f4b5997bc1 rosemary: Switch back to OpenGL renderer
* This reverts commit e33bb97d67493405b7fbbe31fd7cd60c158ed036 as it causes boot animation lags on Android 13.

Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: I95d5051709803398d4d39fc767f5e8327efc2920
2023-04-25 17:59:38 +02:00
Vaisakh Murali
18a6e15b5a rosemary: Prefer hwcodecs for thumbnails
Change-Id: Ie226ec92b985bc2cc90d119b3a42962f2fea7d2e
2023-04-25 17:59:38 +02:00
bengris32
5316c65e5d rosemary: Increase SF durations even more
* The values set in commit 294f177 seem to still present quite
  a lot of jank in the UI. Increasing them further to these values
  have seemed to mitigate most of the jank.

Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: I344448a7f4d8cdd9b0d410e40b110c5402007274
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
6d6e326a1a rosemary: proprietary-files: Update from V12.5.16.0.RKLMIXM
Change-Id: Iba4cc4105f19a5e8330842b9db177dfd0c59f819
2023-04-25 17:59:38 +02:00
Kuba Wojciechowski
56b2c461d0 rosemary: sepolicy: initial rules for batterysecret
* Fixes:
07-25 15:31:45.325     0     0 I init    : starting service 'batterysecret'...
07-25 15:31:45.336     0     0 F init    : cannot setexeccon('u:r:batterysecret:s0') for batterysecret: Invalid argument
07-25 15:31:45.345     0     0 I init    : Service 'batterysecret' (pid 6483) exited with status 6
07-25 15:31:45.345     0     0 I init    : Sending signal 9 to service 'batterysecret' (pid 6483) process group...

Signed-off-by: Kuba Wojciechowski <nullbytepl@gmail.com>
Change-Id: I4c547a0162275a1fb99b1038f8bdd5b1f8632095
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
d67b71aaf5 rosemary: libinit: Drop overriding unused values
Change-Id: I8a10470409f7ede1cb632a3fb95015a51de41311
2023-04-25 17:59:38 +02:00
Matsvei Niaverau
63f4fe955e rosemary: vibrator: Use aw8622 vibrator node instead
Change-Id: I47afd990f50b44fe8e4c59ed8d126779243e4bcf
2023-04-25 17:59:38 +02:00
Sebastiano Barezzi
4637c21025 rosemary: libinit: Import changes from sm8250-common
Change-Id: I31f1083fba0bebe5c23fcb140225bf47bc1d1c6b
2023-04-25 17:59:38 +02:00
Matsvei Niaverau
a8855f132a rosemary: Pull missing APU prop
Change-Id: I8a8442351806d68231178d12c52a7d856439cf4c
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
d11f3ea5f0 rosemary: proprietary-files: Pull IR blaster libs
Change-Id: I211467913b160780ab7d6f2f73868ccf1a818b04
2023-04-25 17:59:38 +02:00
Matsvei Niaverau
8843642c78 rosemary: Build sensors multihal from source
Change-Id: Iebccb00d08d15bfb466cff9de4aec435b13109e5
2023-04-25 17:59:38 +02:00
Matsvei Niaverau
54aacc0e3e rosemary: Build neuralnetworks dependencies
Change-Id: Ife50351d3bcf8d581c4a6c7fe0633bcd3dacedf4
2023-04-25 17:59:38 +02:00
Matsvei Niaverau
e4e1221038 rosemary: proprietary-files: Pull system_ext apuware blobs
Change-Id: I6c246f61d7a7238d561255b0aab5271db66395e1
2023-04-25 17:59:38 +02:00
Matsvei Niaverau
91725c12cd rosemary: manifest: Drop sensors entry
Change-Id: Ib1191057a93da65edcb214057990c92fa8081c4d
2023-04-25 17:59:38 +02:00
danascape
56e35bf53e rosemary: Build soundtrigger 2.3
Change-Id: I0f8743ac5266329b79022e9ad6392c9e9afd73b9
2023-04-25 17:59:38 +02:00
Matsvei Niaverau
f1315d26a4 rosemary: configs: Import public libraries list from stock
Change-Id: I9e0087ce1d40f5eafda0426d1440980e1a93fae1
2023-04-25 17:59:37 +02:00
Matsvei Niaverau
da28f94423 rosemary: rootdir: Bump vendor.boot-hal version
Change-Id: I0e5a992e1108846cb27cf40d53a630b7f9d1a689
2023-04-25 17:59:37 +02:00
SamarV-121
a74536f65c rosemary: Patch libMtkOmxVdecEx to use libui-v32
* Fixes OMX crash https://gist.githubusercontent.com/SamarV-121/efbeed785308c09655c354362b0f007c/raw

Change-Id: Id7f221f109e27a4d5544aa81ec73c60db0c0dc33
2023-04-25 17:59:17 +02:00
Sal Savage
1bb5f8cadd rosemary: Use the ?= operator so BT properties can be overridden
System properties set with the "=" operator cannot be overriden. This
device is used elsewhere in the system and some of the properties need
to be overridden. The "?=" operator will use the assigned value if no
other values are assigned elsewhere, allowing for overrides.

Bug: 230638462
Test: adb shell getprop | grep bluetooth
Change-Id: Id6cd7901555edafef141bbc1bbd5e06dc3a54d0c
2023-04-23 19:15:57 +02:00
jabashque
3b35a31550 rosemary: Disallow aux cam usage for Zoom
Zoom seems to try using camera ID 2 for the back camera instead of
camera ID 0. Block access to aux camera for Zoom to force it to use
camera ID 0 for the back camera.

Change-Id: I99d79259a2a3adefb72a5ffed5fbbb37bd8b756d
2023-04-23 19:15:57 +02:00
LuK1337
e1fca67cdc rosemary: Migrate vendor.camera.aux.packageexcludelist to overlay
Change-Id: Iee884cc98b5fada492b27e8085de98ae08406cf4
2023-04-23 19:15:57 +02:00
Vaisakh Murali
770d23c67e rosemary: Build libpcap from source
Signed-off-by: Vaisakh Murali <mvaisakh@statixos.com>
Change-Id: I6de4b51b76c7fcdccb06036200f6992893da6b34
2023-04-23 19:15:57 +02:00
bengris32
a3a010b517 rosemary: Copy usb_audio_accessory_only_policy_configuration.xml from stock
Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: I4debc0b3a2b8d973b9b1a688072bb6beaab04769
2023-04-23 19:15:57 +02:00
bengris32
611afa5808 rosemary: Shim missing libutils symbol for Camera HAL
* cannot locate symbol "_ZN7android7String87toUpperEv" referenced by "/vendor/lib64/libcam.halsensor.so"....

[1] 9434f59c17

Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: I7ac4e2362a9cca76009785d994d2aa6d103182f1
2023-04-23 19:15:57 +02:00
Vaisakh Murali
861bebbfd2 rosemary: Build libbluetooth_audio_session from source
The older VNDK 30 blob when linked against the newer default bluetooth
HW module, had a missing symbol:
`_ZN7android9bluetooth5audio25BluetoothAudioSession_2_132invalidOffloadAudioConfigurationE`

Since we build default bluetooth HW module from source, build
libbluetooth_audio_session from source as well.

Fixes: Bluetooth Audio on Android 12
Signed-off-by: Vaisakh Murali <mvaisakh@statixos.com>
Change-Id: I13c09ecc37f709c575103d108acf5ca1b5aa2553
2023-04-23 19:15:57 +02:00