Commit Graph

181 Commits

Author SHA1 Message Date
TTTT555
fb130898dc rosemary: Fix BT echo without breaking call recording
Change-Id: Ifd597c365b21279c0f2bb1a26267a44aefae30d9
2022-11-12 10:48:38 +03:00
dlwlrma123
bcaaebe8fd rosemary: Switch to SkiaGL as HWUI renderer
* It seems like Google is improving Skia based from RenderEngineThreaded's history [1], lets switch to SkiaGL and test stability and perf.
[1]: https://github.com/LineageOS/android_frameworks_native/commits/lineage-19.1/libs/renderengine/threaded/RenderEngineThreaded.h
2022-11-12 10:48:38 +03:00
bengris32
0b75d820d1 rosemary: Inherit required properties for SIM configuration
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2022-11-12 10:48:38 +03: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
Martin Liu
9806947711 rosemary: Adjust zram write back policy
The first default zram write back time is 3 hours which
is for go device to quickly save more ram. For Pixel
devices, we have more working set and could bring launch
time impact if we write back too fast. Thus, adjust the
first time write back time to 24 hours which is aligned
with periodic write back time.

Bug: 166739872
Test: boot
Signed-off-by: Martin Liu <liumartin@google.com>
Change-Id: I2388dd6d75ab0a938fe0edae0563fd26e48c9908
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
Randall Huang
ecd0b35267 rosemary: Enable ZRAM-writeback job
This patch enables zram-writeback job. It will run idle marking
at 60m since the device is boot. After that, it will do first
writeback after 3hour to sweep initiallized cold pages out.
After that, it periodically write out every 24hour.

Bug: 117682284
Bug: 127185055
Test: confirm with manual testing

Signed-off-by: Randall Huang <huangrandall@google.com>
Change-Id: I6857c79ca3ce6a3619f4b7e200d7f17a8decd659
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
David Sehr
24c4108bfb rosemary: Use dex2oat64 for better dexopt time
Enable dex2oat64 usage on rosemary.

Bug: 153380900
Test: boot and install an application.
Change-Id: I3e7a6e6e9385ff6564d1a2e6dda004ebb061f095
2022-11-12 10:48:38 +03:00
Vaisakh Murali
2c51e3f718 rosemary: Include c2 media codecs
Enables c2 codec detection

Signed-off-by: Vaisakh Murali <mvaisakh@statixos.com>
Reviewed-on: https://review.statixos.com/c/android_device_xiaomi_cannon/+/6412
Reviewed-by: Vaisakh Murali <vaisakhmurali@gmail.com>
Tested-by: Vaisakh Murali <vaisakhmurali@gmail.com>
2022-11-12 10:48:38 +03:00
Ash Blake
993d1613c5 rosemary: usb: unify Usb and UsbGadget services
Change-Id: Iba27b07cc62aa646b1550aa7ced6eb4ffaab4e69
2022-11-12 10:48:38 +03:00
Ash Blake
aa51222c2a rosemary: usb: make sure rndis.gs4 exists when linking it 2022-11-12 10:48:38 +03:00
Ash Blake
68edd8118c rosemary: usb: fix usb preferences by spoofing roles
Our device has broken roles: they appear to be permanently set to
NONE and don't respond to configfs writes. This causes Android to
not see the USB port as connected, breaking the USB settings.

To repair USB preferences, we spoof roles in the following fashion:
  - data role: DEVICE (if NONE)
  - port mode: UFP (if NONE)
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
Ash Blake
9d9d5dcd81 mt6768-common: usb: adapt implementation to rosemary 2022-11-12 10:48:38 +03:00
Ash Blake
1e9c5160b3 rosemary: build USB HAL from wahoo
Change-Id: I273b3ce64c21f4f3609219e20f6b3ece5f05079f
2022-11-12 10:48:38 +03:00
bengris32
81be129175 rosemary: Kang Graphics {allocator, mapper} impls from MIUI 13
* Fixes screen recording.

Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: I066150ead5c723465b1d79a163c03b8301e3d61e
2022-11-12 10:48:38 +03:00
SamarV-121
932a37a2e6 rosemary: Address UPDATE_DEVICE_STATS permission to IMS
* E System  : java.lang.IllegalStateException: Signature|privileged permissions not in privapp-permissions whitelist: {com.mediatek.ims (/system/priv-app/ImsService): android.permission.UPDATE_DEVICE_STATS}
2022-11-12 10:48:38 +03:00
TheMalachite
e3f56525b7 rosemary: Add Mediatek IMS permissions
Change-Id: Icbdc3c1df70fb23adcff41006e9ef99798ae8348
2022-11-12 10:48:38 +03:00
Chirayu Desai
5c84813dd2 mt6768-common: Exclude ImsService from location indicators
* ffb94e69c3
* This grants location permissions, however we're excluding these apps from
  location indicators - they already have location permissions!
* https://cs.android.com/search?q=config_locationExtraPackageNames&sq=
* It isn't used for much else, so it's fine to re-use it for this

Test: No more ImsService in location indicators

Change-Id: If6c71769b87eb59deadaaa933e1c8449b949af26
2022-11-12 10:48:38 +03:00
bengris32
72ac17c4d6 rosemary: Define device hardware keys configuration
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2022-11-12 10:48:38 +03:00
Danny Baumann
4b6dea3164 rosemary: Enable call recording
Change-Id: I1b4478b330b13cf5d0fe1ed0d40f43e4b3825f33
2022-11-12 10:48:38 +03:00
Matsvei Niaverau
ae3a95cacf rosemary: Import stock CarrierConfig overlay
Change-Id: Id62c30bd4dca69fb6d9bb9265f93d031e683748b
2022-11-12 10:48:38 +03:00
LuK1337
01fa8eac53 rosemary: Add debug IMS props to workaround CarrierConfig restrictions
We support IMS features on carriers not listed in the CarrierConfig, so let's use the props to enable it everywhere.

Change-Id: Id3ad71d522a22048f7ad86d89695ad262361632d
2022-11-12 10:48:38 +03:00
Brad Ebinger
14216e50cc rosemary: Use new config for MMTEL/RCS
Configure the new MMTEL and RCS configurations in Telephony.
Also, configure the RcsService to be the default RCS service.

Bug: 111305845
Change-Id: I0d709b8248f1c40f0a5b50ec799396706eeadd65
2022-11-12 10:48:38 +03:00
bengris32
37de0a9144 rosemary: Force enable VoLTE TTY and WFC support
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2022-11-12 10:48:38 +03:00
bengris32
5ee76ae127 rosemary: libshim_vtservice: Shim for legacy MediaMuxer ctor
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2022-11-12 10:48:38 +03:00
bengris32
c0bb8db4fe rosemary: libshim_vtservice: Use AttributionSourceState properly
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2022-11-12 10:48:38 +03:00
bengris32
2e85cebfc9 rosemary: libshim_vtservice: Call AudioTrack constructor directly
* Also compile shim only for 32bit since the constructors symbol changes
  between 32bit and 64bit and our IMS stack is 32bit only anyway.

Signed-off-by: bengris32 <bengris32@protonmail.ch>
2022-11-12 10:48:38 +03:00
R0rt1z2
c66158fbdd rosemary: Shim another missing libsink symbol
[1] LineageOS/android_frameworks_native@992496b
2022-11-12 10:48:38 +03:00
SamarV-121
313ab44fc7 rosemary: libshim_vtservice: Update to S
[1] LineageOS/android_frameworks_av@bda4575#diff-0e7ff81a94e7f5ce90bdb128b6ceea84c201a721055b05afccfa2ec814036907
[2] LineageOS/android_frameworks_av@3376113#diff-0e7ff81a94e7f5ce90bdb128b6ceea84c201a721055b05afccfa2ec814036907
2022-11-12 10:48:38 +03:00
Arian
577563da43 rosemary: Provide a shim for libsink
added opPackageName as a parameter to the constructor
  of AudioTrack which breaks our libsink which was compiled
  for an older libaudioclient.

* fixes the following error:
CANNOT LINK EXECUTABLE "/system/bin/vtservice": cannot locate symbol "_ZN7android10AudioTrackC1E19audio_stream_type_tj14audio_format_tjj20audio_output_flags_tPFviPvS4_ES4_i15audio_session_tNS0_13transfer_typeEPK20audio_offload_info_tjiPK18audio_attributes_tbfi" referenced by "/system/lib/libsink.so"

https: //github.com/LineageOS/android_frameworks_av/commit/fd90fdfe2a611ae824a32e236da288b1fdfd445d
Change-Id: I290e1beca02d46c4393d17356fa22741d771f847
2022-11-12 10:48:38 +03:00
Kshitij Gupta
ea833c5f6c rosemary: Add IMS blobs
Change-Id: I93db50affa3ebf4453f978f75da5fb88944594c9
2022-11-12 10:48:38 +03:00
bengris32
8cdcb98a4c rosemary: Remove displayfeature entry from manifest
Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: I83b3d9cf28c3441045ce1b51b3b61e37a475c69f
2022-11-12 10:48:38 +03:00
bengris32
157bf2b080 rosemary: Reserve space on system and product partitions
Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: I25e561c9090949726740dbe0a4d276100c25801a
2022-11-12 10:48:38 +03:00
bengris32
82483ad939 rosemary: Build system variants of libhidltransport/libhwbinder
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2022-11-12 10:48:38 +03:00
bengris32
56d4ffeb69 rosemary: Build Health 2.0 interface
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2022-11-12 10:48:38 +03:00
Arne Coucheron
3dc3773a12 rosemary: Add 0x2000 to additional gralloc usage bits
Fixes warning.

| gralloc4: Buffer descriptor with invalid usage bits 0x2000

Change-Id: I8e67bec9ade6e80e2e362f7a3c287f74b7d81242
2022-11-12 10:48:38 +03:00
R0rt1z2
84b9836f32 rosemary: Shim another missing showlogo symbol 2022-11-12 10:48:38 +03:00
Joel Stein
cb797b3eb4 rosemary: Shim missing libshowlogo symbols
Change-Id: I72dbe1012455a410ad01ceeb0cb9db53ac8f69f5
2022-11-12 10:48:38 +03:00
Alex Damaratski
6ea74b4999 rosemary: Build libsuspend
* Required by kpoc_charger

Change-Id: Ie850456d9ab666ba68dbd5cefebc58675f93b6b7
2022-11-12 10:48:38 +03:00
SamarV-121
d452b3f718 rosemary: Import kpoc_charger blobs
Change-Id: Ibc79247f2e790ed4da97e3df0e71f77ca258a32d
2022-11-12 10:48:38 +03:00
bengris32
a238d0a8bb rosemary: Set correct channel mask for "BT SCO Headset Mic"
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2022-11-12 10:48:38 +03:00
Sebastiano Barezzi
2b39fecfee rosemary: Uprev bluetooth audio HIDL impl to 2.1
* We get free LC3 support, isn't it poggers?

Change-Id: Ia8cef3905c133441cbe741c83d6d5ecdf4be2338
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