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)
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
* 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}
* 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
We support IMS features on carriers not listed in the CarrierConfig, so let's use the props to enable it everywhere.
Change-Id: Id3ad71d522a22048f7ad86d89695ad262361632d
Configure the new MMTEL and RCS configurations in Telephony.
Also, configure the RcsService to be the default RCS service.
Bug: 111305845
Change-Id: I0d709b8248f1c40f0a5b50ec799396706eeadd65
* 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>
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
* Idealy we'll want to make these values as low as
possible as higher values will start to cause latency.
* However, higher values will generally give the GPU more
time to render the UI, resulting in less janks and lag.
Signed-off-by: bengris32 <bengris32@protonmail.ch>
Drop unneeded pinning of min frequency to maximum cluster frequency
Set max frequencies to cluster maximum
Set uclamp TA to 50%
This should improve UI responsiveness whilst not drain a lot of power.
Signed-off-by: Vaisakh Murali <mvaisakh@statixos.com>
Change-Id: Id8e8c8ca56a99b6c3bc5a24e5f446c9be7e97c9b
Drop unused GPU node and instead use input touch boost for boosting
whenever a touch input is detected upto 50% and for a duration of
1 millisecond, improving overall scrolling and responsiveness.
Signed-off-by: Vaisakh Murali <mvaisakh@statixos.com>
Change-Id: I9d545561f4afb004a08cc6b3b22f2a082268bce3
App launching is one of the tasks that can produce janks and CPU
spikes. Boosting foreground to max to open apps should improve UX.
Signed-off-by: Vaisakh Murali <mvaisakh@statixos.com>