* For some reason, booting with headphones plugged in results
in a broken speaker output if FDE secure boot is enabled.
* Restarting audio HAL after decryption seems to resolve the issue.
Change-Id: Ie14b89841bf811f0fb09edb0a04fd28aafecde87
* CAF only sets them for /system/bin/cnss-daemon which doesn't exist.
* Fixes: cannot execve('/vendor/bin/cnss-daemon'): Permission denied
Change-Id: I74dd2fc53f5e0c5f5658328aac21ca14c6fe0828
* This introduces fixup scripts and kang mode and fixes
passing of arguments longer than one word,
such as --section "Hello world".
Change-Id: I42dde659e9bea4f7e1c9a7a3fa8da3243774ca4e
Start loc_launcher as gps user and set uid/gid of loc_launcher
to gps and enable SETUID and SETGID caps for loc_launcher, so
that we can start loc_launcher as gps user instead of root and
still have capabilities for SETUID and SETGID. Also remove not
required permissions groups for loc_launcher.
Change-Id: Ie9f1506874b3c3148f9170c8d5db9afd1e70025c
CRs-Fixed: 2192881
* The org.ifaa.android.manager.IIFAAService has been moved
from the SoterService.apk to MIUI framework, at least
since MIUI 9.4.26. Adding this interface will fix the
SoterService crashing when launching Alipay.
Change-Id: Ic97467eb0a8fe92b49e0edbedd56f1866c5fa01e
Without this, the build system generates a symlink to /data/cache instead
of using the actual partition, which will break OTAs on encrypted devices
or devices using Lineage recovery
Change-Id: Ie72fd1a6b2535292e042b73bcdc1fec93dfe9ed9
* Due to some recent AOSP change, the service is now constantly
restarting on the targets where the interface is not supported.
Supported targets should build it if desired.
Change-Id: Ic612c3cf37d2b3b7316b064d319e954c2cb812bf
The fingerprint HAL is insensitive to increased CPU throughput, but it also
has a tendency to spin while waiting for FP hardware. Limit FPC to the
system-background cpuset in order to avoid increased power consumption
when accidentally touching the fingerprint sensor.
bug 76115243
Test: fingerprint in system-background cpuset on taimen
Change-Id: Iaffe6f63bd76b7a1c4acaf0cae980840af515961
* This will be handy for further needed custom edits and also to avoid
build warnings once vendor images are getting built.
Change-Id: Ie5ea81c4f1de28848dd081f5d2638d56fbd8dff3
On builds where A/B support is enabled the system image acts as the
rootfs. In this case we can no longer create the non-hlos image mount
points at run time as we used to. We now create them as part of the
build itself.
Change-Id: I30d98f7c50fca3ce7117b9b8d87150655bb5b440
The current use of the SCROLL_PREFILING hint hurts scroll performance
and results in a lot of dropped frames.
The hint ID corresponding to SCROLL_PREFILING only takes into effect for
a default timeout value of 80 ms (as found in perfboostsconfig.xml),
while the duration value in the process_interaction_hint function runs
for a much longer time, from 1500 ms up to 5000 ms (bounds of
kMinFlingDuration and kMaxInteractiveDuration). During the period
of time, when the timeout value has elapsed and current time is less
than duration, another interaction hint cannot be processed. Therefore,
if the user decides to scroll during this period, high frame drops can be
experienced as the CPU freq isn't raised by processing another hint to
account for this additional scrolling.
By only using SCROLL_VERTICAL, fluidity can be maintained, improving user
experience.
Change-Id: I2fbde8b2db6710d262e9a058e0bc9c02e524648c
Currently, the launch boost perflock is held for a fixed duration, either
specified in perfboostsconfig.xml for perf HAL platforms or hardcoded in the
powerHAL for non-perf HAL platforms.
Using a fixed duration for this perflock has two shortcomings:
* perflock can be held for too long, causing the CPU freq and other resources
to be boosted for too long even if the application has finished launching,
resulting in excessive battery drainage
* perflock can be held not long enough if it takes more than the timeout
time to finish launch
The framework sends out a powerhint for both when launch starts and when
launch ends. The launch finish hint can be used to signal when to release the
perflock.
Reference: Wahoo power-libperfmgr
Change-Id: I405cc453c5f58d9fb2583b9c6017f3964a0ce024
The service must be made part of the input group,
so that the power HAL can access the input nodes present
in the different targets.
Change-Id: I30a7bde8aebac4b76cbf59f5f795ea245aba1014
Signed-off-by: Giuseppe Barillari <joe2k01dev@gmail.com>
Removed unused code and added generic hint handling to power.c file,
does not need to be device specific anymore.
Change-Id: I0d4e2a73de0ce4d3735314d2e49ba58c23eb313c
* Sadly, out-of-the-box Miracast support was killed in P, so
we need this to keep Wi-Fi display feature working.
Change-Id: Ieff24313d55a60ca1898430113f0a8b00acfc6a0
Add pselect6 and eventfd2 syscalls
Includes following:
mediacodec: allow sendto and recvfrom syscalls
mediacodec: allow lseek syscall
mediaextractor: allow pread64 and readlinkat syscalls
mediacodec: allow getdents64, sysinfo and getcwd
Vendor extended policy files are separated from the aosp
and will now reside in /vendor
Change-Id: If59d04b36d744efb74209ae36e76dd16cb18f606
CRs-Fixed: 2027600
Add device compatibility matrix to common project and
targets can point the build variable DEVICE_MATRIX_FILE to
this file to build device compatibility matrix.
Change-Id: If8e75c5ee8de0ef50d6937ffbd6453fb3f5eb648
Instead of bind mounting /dev/null over the vendor binaries,
force the services to be stopped right whenever those are running.
This also reverts commit 1501593 and workarounds the neverallows,
because system init can't bind mount vendor exec files.
Change-Id: Ia5e723b837e547b9e2cebe47accdaa2356e1d694
* On TREBLE devices, most coredomains should not access vendor_files.
For this reason, vendor.display.color@1.0.so must be present in /system
so that libsdm-disp-apis.so can dlopen it.
Change-Id: I850b123ea23dd3e7cc74ee9708e781748561df06
* Fixes non-working pulse notifications from sensors until user toggles
the main switch and also sets the proper initial status of the
AoD preference for the devices that have the feature available.
Signed-off-by: Henrique Silva <jhenrique09.mcz@hotmail.com>
Change-Id: I8e554decca3734b165fdc722d904d90713666db9