Commit Graph

455 Commits

Author SHA1 Message Date
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
Matsvei Niaverau
db590efb5c rosemary: Override fingerprint and build description from V12.5.14.0
Change-Id: Idc7db1353f5b8fa2cd29e2060ecd0953501aaca3
2023-04-23 19:15:57 +02:00
Matsvei Niaverau
8a4326b9f0 rosemary: proprietary-files: Pull missing arm.graphics-V1-ndk_platform.so
Change-Id: Iaa7719e3a8308ea4699e987aac498fe6bc2030f2
2023-04-23 19:15:57 +02:00
Matsvei Niaverau
46427aac3c rosemary: Build android.hardware.sensors@2.0-ScopedWakelock library
Change-Id: Iadf73cc3c1d07b97c19fd0db6ca8062ba72d4de9
2023-04-23 19:15:57 +02:00
Matsvei Niaverau
7f5e4b0082 rosemary: Declare EXT4&F2FS support for userimages
Change-Id: I2c2de00eac1e9bc171316f2a876e3e8bbbba2021
2023-04-15 14:36:56 +02:00
Matsvei Niaverau
c0851fb277 rosemary: proprietary-files: Drop nonexistent libs
* Also pin fixed libmtkcam_stdutils

Change-Id: Ibbbe06e48581601518fc7afb87d1b247f7c27352
2023-04-15 14:36:56 +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
Matsvei Niaverau
65fab603f3 rosemary: Define OTA asserts
Change-Id: I68ec069cb3bb8f1be3c9ea3dba4340b920c84c02
2023-04-15 14:36:56 +02:00
Bruno Martins
684937ce0a rosemary: Blacklist fingerprint HAL key events
Change-Id: I57db108f5250c120726b77dd32f4666917c9eb7c
2023-04-15 14:36:56 +02:00
Sebastiano Barezzi
f206a06d5a rosemary: Build common Xiaomi fingerprint HIDL
Change-Id: I6c29a831e985ee440c92a98aad8d33f25b9e5b2d
2023-04-15 14:36:56 +02:00
Sebastiano Barezzi
672987002a rosemary: Add hardware/xiaomi to Soong namespaces
Change-Id: I10767b34d19100f00f1aef2e3409d380dcaf5dc9
2023-04-15 14:36:56 +02:00
minz1
56b658c803 rosemary: rro_overlays: Enable burn-in protection
Change-Id: Id280be855f309f3852a4c01f61738207d91a5d9c
2023-04-15 14:36:56 +02:00
Lexip
3bda8e65c6 rosemary: rro_overlays: Support AOD
* Enable optional AlwaysOnDisplay

Change-Id: Idb624eb434e646ab1dedb825d58f00d2f6203961
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
Matsvei Niaverau
07e59fc35b rosemary: proprietary-files: Drop libpowerhal module
* Not required after nashc-dev/android_hardware_mediatek@517c799

Change-Id: I18e5ce3771eaf702c53c23c2d4f713434fdba56b
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
telepathine
e8ea3644fa rosemary: props: Set call volume steps to 9
Change-Id: I703ec972bc66c68718a32b499b210f83d20c6322
2023-04-15 14:36:56 +02:00
telepathine
61471b2338 rosemary: InCallService: Map AOSP gain step range to MTK one
MTK has 15 volume steps, we have whatever is set in vc_call_vol_steps.
Mapping our range to theirs allows reaching higher volume levels.

A log curve is used to make gain transitions less abrupt at higher volumes.

Change-Id: I5f0e6467ba9fd0779d7e4abbf9f258b0b42224e4
2023-04-15 14:36:56 +02:00
bengris32
ced33fe9d4 rosemary: InCallService: Bugfixes and refactor
* Refactor and cleanup code
* Use proper way of getting audioDevice with getPort().type()
* Stop mixing up values between AudioSystem and AudioManager,
  as values between AudioManager (java) and AudioSystem (native)
  could change and become different from eachother.

Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: I2311ed02b88148b71b374b19aaaf458f82f23824
2023-04-15 14:36:56 +02:00
LinkBoi00
510e3cda72 rosemary: app: MtkInCallService: Adjust gain values in all situations
Signed-off-by: LinkBoi00 <linkdevel@protonmail.com>
2023-04-15 14:36:56 +02:00