Commit Graph

197 Commits

Author SHA1 Message Date
Bruno Martins
a15bb44fd9 sdm845-common: sepolicy: Fix typo in pocketmode_app rules
Change-Id: I3806e0381eab678ac14f8869819e938b62cbe59d
2019-07-06 15:40:30 +01:00
LuK1337
77847d96e0 sdm845-common: pocketmode: Kill off Lineage SDK dependency
Change-Id: I05f35124be4547b7fbc3ff3aa145bf27600454e4
2019-07-04 12:17:32 +01:00
LuK1337
eb33fe1abe sdm845-common: sepolicy: Transition pocketmode app to its own domain
Change-Id: Id87176c2430e49851a6c65ab3490ad59ea1764a2
2019-07-04 12:17:05 +01:00
LuK1337
58a0b8bbd7 sdm845-common: Don't advertise vorbis offloading support
* Doesn't work at all.

Change-Id: I8cd6341b240c3820dbbdef497e23e785b6ed99dc
2019-07-04 12:02:19 +01:00
Artem Borisov
5841c59ee7 sdm845-common: Restart audio HIDL HAL after decryption
* 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
2019-05-23 22:24:50 +02:00
TheScarastic
f173238d30 sdm845-common: Stop proximity when device is unlocked
Change-Id: Ia6ddff80c77c4b75fb8dd3b9951d8dcbb0fccbb2
2019-05-21 16:07:03 +02:00
LuK1337
fb3ca78330 sdm845-common: Don't set custom file attributes for cnss-daemon
* 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
2019-05-18 14:55:07 +01:00
Vladimir Oltean
86356899cd sdm845-common: Sync extractors with templates
* This introduces fixup scripts and kang mode and fixes
   passing of arguments longer than one word,
   such as --section "Hello world".

Change-Id: I42dde659e9bea4f7e1c9a7a3fa8da3243774ca4e
2019-05-15 18:36:56 +05:30
Harikrishnan Hariharan
be0fd16758 sdm845-common: Start loc_launcher as gps user
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
2019-05-15 09:58:23 +02:00
notsyncing
487d51b02d sdm845-common: Add IIFAAService for Alipay fingerprint payment
* 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
2019-05-13 15:16:30 +02:00
XiNGRZ
aa005919e3 sdm845-common: releasetools: Add dtbo image to the output zip if present
Change-Id: I8bb4da99945eceae3beab77489e6b9e2a47ab972
2019-05-10 23:31:23 +01:00
TheScarastic
2871519bbe sdm845-common: Update blob listing for 9.4.26
Change-Id: I5514da997f31366671339a9ac731e74aaaf83c40
2019-05-05 12:30:23 +01:00
Rashed Abdel-Tawab
2ca9f63e56 sdm845-common: Set cache partition filesystem format
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
2019-05-02 22:41:47 +01:00
Bruno Martins
2c4d87c2df sdm845-common: Don't built custom LiveDisplay HAL for all targets
* 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
2019-04-02 01:14:08 +01:00
Tim Murray
3eb083f45d sdm845-common: Keep fpc in system-background
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
2019-03-25 22:19:38 +00:00
Bruno Martins
57e1d4ef12 sdm845-common: Add PocketMode app
* Based off android_device_xiaomi_msm8996-common

Change-Id: I48302769d6f1fcc5244614f672e562e0fb913d98
2019-03-25 21:54:29 +00:00
Bruno Martins
07797f9813 sdm845-common: Override stock fingerprint service init script
* This will be handy for further needed custom edits and also to avoid
   build warnings once vendor images are getting built.

Change-Id: Ie5ea81c4f1de28848dd081f5d2638d56fbd8dff3
2019-03-19 12:28:31 +00:00
Demon Singur
4b5a04b101 sdm845-common: Build separate system and vendor HIDL libs
Change-Id: If8e2211e643bdb0ff67fb248e7fe33b78077a06e
2019-03-14 21:55:25 +00:00
Bruno Martins
4d52648b13 sdm845-common: Create RFS symlinks
Change-Id: Ica1d4a9893f526ab98c5ef07e18d51dbf74c8e93
2019-03-14 10:58:22 +01:00
Ameya Thakur
935c350882 sdm845-common: Generate non-hlos image mount points for A/B builds
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
2019-03-13 19:45:17 +00:00
tomascus
5a704c4ac3 sdm845-common: power: Don't use SCROLL_PREFILING
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
2019-03-06 23:45:23 +00:00
tomascus
607158687a sdm845-common: power: Release launch boost perflock when launch is completed
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
2019-03-06 23:45:23 +00:00
Giuseppe Barillari
d5b042464f sdm845-common: Override stock power HAL service definition
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>
2019-03-06 11:14:23 +01:00
Giuseppe Barillari
8999a92ba0 sdm845-common: Decommonize tap to wake node path
Signed-off-by: Giuseppe Barillari <joe2k01dev@gmail.com>
Change-Id: I74beac5a38f9f9df31e83f7e81115c61109c28cb
2019-03-06 11:14:23 +01:00
Ananth Raghavan Subramanian
d1a289d2fb sdm845-common: power: Clean up code and add generic hint handling
Removed unused code and added generic hint handling to power.c file,
does not need to be device specific anymore.

Change-Id: I0d4e2a73de0ce4d3735314d2e49ba58c23eb313c
2019-02-26 19:33:51 +00:00
Rajashekar Adi
69bcde86de sdm845-common: power: Fix for VNDK compliance issue
VNDK flag enablement for P upgrade

Change-Id: I033c3d9c8a1ee1e7f52a6398ae989becd66d161e
2019-02-26 19:33:51 +00:00
Vinay Verma
9b946f5c95 sdm845-common: power: Fix VNDK compilation errors
VNDK restrictions doesn't includes standard headers by
default, add them explicitly.

Change-Id: I4c72a28ffa141ecadcfe47cc7c1f62f2a0c8576e
2019-02-26 19:33:51 +00:00
Artem Borisov
807d0b3b87 sdm845-common: Add QCOM's WFD implementation
* 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
2019-02-26 10:39:26 +01:00
Praveen Chavan
d2dcfe6fa4 sdm845-common: mediacodec: Allow syscalls needed by OMX component
perf daemon needs uname, ueventd, timer_create,
timer_settime, rt_sigtimedwait syscalls. Add them
to media.codec's whitelist.

CRs-Fixed: 2062950
Change-Id: Ib07d73140470d9def0d9411469ee1525e13f4bc7
2019-02-23 22:34:00 +00:00
Umesh Pandey
1a4cc984e7 sdm845-common: mediacodec: Allow syscall for VPP
Add inotify_intl, inotify_add_watch and inotify_rm_watch for VPP.

CRs-Fixed: 2058795
Change-Id: I294b03f4a46020a022cacf1267ebf68b0bdd6e19
2019-02-23 22:34:00 +00:00
Amit Shekhar
2450f26ee9 sdm845-common: Add system call to the SE whitelist
Add system call to the SE policy whitelist

Change-Id: I1793d20c49f838929aa0dc1720eb062535ae8f09
CRs-Fixed: 2050577
2019-02-23 22:34:00 +00:00
Amit Shekhar
8cccc37437 sdm845-common: mediacodec: Allow select and eventfd syscalls
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
2019-02-23 22:34:00 +00:00
padarshr
b6b2ed17aa sdm845-common: Add device compatibility matrix.
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
2019-02-22 22:11:03 +00:00
Shaikh Shadul
96d21d9097 sdm845-common: config.fs: Add mapping for sensors daemon
Set filesystem configuration for sensors daemon binary.

Change-Id: I499ad9b987a43e79b8037da5761e14e97b2ef9c9
2019-02-22 22:11:03 +00:00
Baili Feng
581f14a21f sdm845-common: Allow xtwifi-client to access wake alarm
Add WAKE_ALARM for xtwifi-client
CRs-Fixed: 2109587

Change-Id: If42eb7f0890d32511e5082498f8edb9c11b72d52
2019-02-22 22:11:03 +00:00
Bruno Martins
01e0667bd3 sdm845-common: Remove unused jars and not required libs
Change-Id: I6de33d6782cca86ba59ab76cb901b635de8446e0
2019-02-21 23:18:06 +00:00
Bruno Martins
da01ce8c5f sdm845-common: Add dependencies required by MIUI 9.2.15 vendor images
Change-Id: If42872a196df57e94afe1aecd816098bb7a80d8c
2019-02-21 22:58:04 +00:00
Bruno Martins
8b2d4986c2 sdm845-common: Sync framework compatibility matrix with MIUI 9.2.15
Change-Id: Ifc3a832a2f84cbe36a6f785ce4b72d83f9a7986c
2019-02-21 22:56:28 +00:00
Luca Stefani
0c11507a79 sdm845-common: sepolicy: Address all neverallows
Change-Id: I7320018af86e0fe689aa94a1dc4f174bc814a2cd
2019-02-10 13:36:18 +00:00
TheScarastic
86c208962d sdm845-common: Disable diag services in a better way
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
2019-02-10 13:25:02 +00:00
Bruno Martins
edc5c7c71b sdm845-common: Replace SunlightEnhancement class with LiveDisplay HAL
* Manifest entries must now be set per device.

Change-Id: I17b0215ad78d86989c146291552c5e6e7b6a689d
2019-02-07 10:03:17 +01:00
Bruno Martins
439a75cfd4 sdm845-common: Satisfy LiveDisplay with neverallows addressed
* 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
2019-02-04 22:43:58 +00:00
Joey
fc0d900644 sdm845-common: Build Trust HAL (system variant)
Change-Id: I2a426b2c2dda70f41e3c3ea6f85905b0daf65f0d
Signed-off-by: Joey <joey@lineageos.org>
2019-02-04 20:50:33 +01:00
Bruno Martins
83fbc69376 sdm845-common: Migrate to livedisplay 2.0
Change-Id: I513c284c534ce3abc27bf374513280171454f4d1
2019-02-04 19:38:18 +00:00
Bruno Martins
7131c7c8bd sdm845-common: sepolicy: Adapt for global LiveDisplay HAL rules
Change-Id: Ia2f70d3f73d96d70f1b4ea6f31f0e8572ddc1957
2019-02-01 19:57:58 +00:00
Giuseppe Barillari
ad8dd84182 sdm845-common: sepolicy: Move hal_power_default back to hal_power
Change-Id: Ibf1e11111466377ecd6090c2956d638f9500bfc3
Signed-off-by: Giuseppe Barillari <joe2k01dev@gmail.com>
2019-01-31 21:28:18 +01:00
TheScarastic
cdd2d459d5 sdm845-common: Switch to more generic dt2w node
Change-Id: I08c874f3ca50fad1db820ddd85ef0f5d7ccf0ed2
2019-01-31 00:38:14 +01:00
dianlujitao
d7af84b53b sdm845-common: sepolicy: Label vendor.camera.aux.packageblacklist
Change-Id: I07b82e0ba4a8e16faf67c64e0ffe73a690b38064
2019-01-21 19:49:16 +00:00
Henrique Silva
6d6984b261 sdm845-common: parts: doze: Fix AoD default pref
* 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
2019-01-19 02:00:52 +01:00
dianlujitao
ed8e3f6165 sdm845-common: sepolicy: Allow system_server to read vendor camera props
Change-Id: I43a2404d9399a931b03e1d2c8589d0d4adb10fc3
2019-01-19 00:37:40 +00:00