Commit Graph

736 Commits

Author SHA1 Message Date
Bruno Martins
6dbf23aa90 sdm845-common: Also compile system variant of vendor.display.config
* WFD service needs access to these shared libraries,
   which were only available in vendor partition so far.
   The access to the vendor variant is denied as per treble
   rules, so ship the system variant too. While at it,
   go with the latest version available.

Change-Id: I8959a5a39a45ccf306f2a809789d29b30f4019ce
2019-08-02 15:41:47 +02:00
dianlujitao
10c28ab1ed sdm845-common: sepolicy: Get Alipay fingerprint going
Change-Id: I58a64a1d4b551f24cfb5e589dacb56d72247db84
2019-08-02 15:05:10 +02:00
Ananth Raghavan Subramanian
ac82ace2a3 sdm845-common: power: Introducing PowerHAL binderized service
Moving from the default implementation to a binderized service with no
wrapping.
Now using 1.2 implementation of the IPower interface.

Change-Id: Ibefd916544f51545e6889684a051b2ecc5867fe2
2019-08-02 00:15:04 +02:00
Luca Stefani
e087a28124 sdm845-common: Import CAF bluetooth overlay
Change-Id: If2f8b03515bc5e3c4ed89ef2b1a1a7128bd50015
2019-08-02 00:11:50 +02:00
Ethan Chen
f42c83f3e0 sdm845-common: Use Soong namespace to avoid device build conflicts
Change-Id: Id04f464102264b6f2e8d49b39389c7e346613b39
2019-08-01 16:00:09 +02:00
Pranav Vashi
72b5c7f42c sdm845-common: Enable Wi-Fi MAC randomization
Change-Id: Ibcabf871f0e35a6f81905392f749478f96b3c47d
2019-08-01 15:59:49 +02:00
Anuj Singhal
a6b56b476d sdm845-common: Adding Iop version 1.0 as well in compatibility matrix.
Change-Id: I69f6c58f3ce904cdcb901e20be8533a00afc8a3e
2019-08-01 12:24:58 +01:00
Liangliang Lu
cccc481cdf sdm845-common: init.qcom.usb.rc: Move .sh execution back to 'on boot'
Commit I64f50950 ("init.qcom.usb.rc: Enable .sh execution on
boot.sys_completed") move the operation "enable qcom-usb-sh"
from "on boot" to "on property:sys.boot_completed=1", but
it is too late in the case boot is blocked for some reasons.
So commit Ic48f2c07 ("init.qcom.usb.rc: Trigger .sh on on
load_persist_props_action") move trigger condition to "
on load_persist_props_action". As commit Ie07dfa6f
("init.qcom.usb.sh: Check serialnumber value before writing
dummy value") will check serialnumber instead of read ro.serialno
due to sepolicy permission, but "on load_persist_props_action"
is triggered before "on boot", this may cause device id change
to 1234567 as serialnumber can be NULL.

On current code base, the issue commit I64f50950 mention do
not exist anymore, we can simple move "enable vendor.qcom-usb-sh"
operation back to "on boot".

Change-Id: I4f8784f2077a16f0022dbad5b5e9339aabe0998a
Signed-off-by: Liangliang Lu <luliang@codeaurora.org>
2019-08-01 12:24:58 +01:00
Bruno Martins
7c9b0a2e4f sdm845-common: Include missing hostapd init script
* The whole stack is blobbed out and this file is not copied
   from it's repo. WiFi tethering is back to working status.

Change-Id: If197a04cd26d950ad7bb0111af6b0fd96779726b
2019-08-01 12:24:58 +01:00
Bruno Martins
2aefff1da8 sdm845-common: Drop vendor image asserts
Change-Id: I5c4434cb1568ea34101e786e2ec680d4ea7f71eb
2019-08-01 00:35:48 +01:00
Bruno Martins
f608666ca5 sdm845-common: Compile IPACM from source
Change-Id: I65fba34550e4b2016524656a2d0b869e32256753
2019-08-01 00:35:48 +01:00
Bruno Martins
035cbc9f50 sdm845-common: Compile thermal and VR HALs from source
Change-Id: I4d15cbd56896a70c3ea6459f82d0e83d81cb5ca3
2019-08-01 00:35:48 +01:00
Bruno Martins
e1cce560af sdm845-common: Compile OMX from source
Change-Id: I0e55d49e96423a9473059cf9000b0114b903d277
2019-08-01 00:35:48 +01:00
Bruno Martins
ba4b96e9a1 sdm845-common: Compile open source sound FX modules
Change-Id: Iec50a263c8015dba798c574b4969d3d37b0004bc
2019-08-01 00:35:48 +01:00
Bruno Martins
3f875de3a1 sdm845-common: Set vendor SPL
Change-Id: I99c617bed05b4583eb603171b60b672e64cb9073
2019-08-01 00:35:48 +01:00
1nfrag
8e4d03efe7 sdm845-common: FCM: Remove misc extra MIUI services
Change-Id: Ic48a73b9bb719102d758c3a157888e42ffb9431e
2019-08-01 00:35:48 +01:00
Bruno Martins
b4bc87b028 sdm845-common: Define vendor image partition size and file system
Change-Id: I148549734c3379c20d41a27228f446efcb8cdab3
2019-08-01 01:35:14 +02:00
Bruno Martins
86caa0c12a sdm845-common: Bring up initial vendor sepolicy rules
Change-Id: Iaf298cb02696dbe8d83b9040011bd93889cf18ad
2019-08-01 00:28:53 +01:00
Bruno Martins
abd45018e6 sdm845-common: Opt-in for QC RIL service
Change-Id: I8f25446824efad6a14211cc77264524f908df7cd
2019-08-01 00:28:53 +01:00
Bruno Martins
66cf41247b sdm845-common: Set up Bluetooth
Change-Id: I2057e44919354d4cdf172dfbc85da432b32419f0
2019-08-01 00:28:53 +01:00
Bruno Martins
054036aea3 sdm845-common: Allow building QCOM HALs
* Opt-out for the compilation of audio and display HALs for now.

Change-Id: I18510ccfa877c1ecde1aed6eccd3bd701c95cd8a
2019-08-01 00:28:53 +01:00
Luca Stefani
fdd3a86441 sdm845-common: Add flags used by configstore
Change-Id: I67a228f129a4849c1de6440b400e48d2c0846997
2019-08-01 00:28:53 +01:00
1nfrag
8d02a0b912 sdm845-common: Set caps for Broadcom GNSS stack
Change-Id: Id166772ab3242d508c8bd214e4c9a3b92dc0fae5
2019-08-01 00:28:53 +01:00
Bruno Martins
c673031349 sdm845-common: Add whitelist to support exposing vendor libs
Change-Id: I57e97048e9d1bbf7e884770de53643fb186b6204
2019-08-01 00:28:53 +01:00
Bruno Martins
b3aaabbbe6 sdm845-common: Import media configs
* Configs from MIUI 9.3.7

Change-Id: Ie0066324fbc4a6fae48f42fda77370a26b0f4429
2019-08-01 00:28:53 +01:00
Bruno Martins
1ea080f18f sdm845-common: Import audio configs
* Configs from MIUI 9.3.7

Change-Id: If3c0b7f31e989b1c67241d1cab035b4470c81b89
2019-08-01 00:28:53 +01:00
Bruno Martins
438104a656 sdm845-common: Switch to vendor variants of the custom HALs
Change-Id: I599ef8b3d143641821b6e42ec41050aedd3f2b37
2019-08-01 00:28:53 +01:00
Bruno Martins
bcfa2f4d6d sdm845-common: Pick select OEM changes to init scripts
* Only relevant changes were picked from MIUI 9.2.15 based scripts

Change-Id: I1b72c111171b7fb226e7c34a779c139707b1b841
2019-08-01 00:28:51 +01:00
Bruno Martins
44db04e12a sdm845-common: Import QCOM init scripts
* Stripped down version of the scripts based on tag
   LA.UM.7.3.r1-06700-sdm845.0.

Change-Id: Idb2b998bdb09ccebacbc965e4c30ff5a5a9cb478
2019-08-01 00:25:02 +01:00
Bruno Martins
fdd7760678 sdm845-common: Create manifest file with the common interfaces
Change-Id: I1c4529f48c5b0c3f7a10a167afd033e070131bae
2019-07-31 23:04:33 +01:00
Bruno Martins
bccb4ef0a0 sdm845-common: Set common vendor properties
Change-Id: I9505e69b9ee2af8c5ba8bb7a97ca6140cddb5100
2019-07-31 23:03:41 +01:00
Bruno Martins
88f07d5230 sdm845-common: Populate initial list of common vendor blobs
* Common vendor repo will be created from perseus, which will
   eventually allow runtime linker namespace isolation to be enabled.

 * This goes along with the rest of basic shared libraries that can
   be built from source right away.

Change-Id: I944f210685d980c0603fd2c9bcd9defbfb0209c2
2019-07-31 10:53:48 +01:00
Bruno Martins
068ec797ca sdm845-common: Include common feature permissions
Change-Id: Idf607e629691b38c808a3bc9745ff41b760b9cdb
2019-07-30 17:41:50 +01:00
Bruno Martins
4b586cca2b sdm845-common: Inherit from QC sepolicy and adapt to it
Change-Id: I619038d1a1f5a2b58baf4019372ec4164cca2137
2019-07-30 17:41:49 +01:00
Bruno Martins
5547e73001 sdm845-common: Get rid of prebuilt vendor images' specific hacks
Change-Id: I52cde54e8d38f847f903004ea8d61437bf5efa0a
2019-07-30 17:41:49 +01:00
Bruno Martins
0bbe3e1181 sdm845-common: Create symlinks for WLAN
Change-Id: Ib2b3541cee80e178ceed0de6e71739ae885d0faf
2019-07-30 17:41:49 +01:00
Bruno Martins
016a659449 sdm845-common: Build default HIDL HALs
* Fingerprint HIDL HAL left out because it is highly customized
   in order to support the multiple flavors of sensors.

Change-Id: Ib00f85db6b11a5f2817bb6ee976d09dd9eb09442
2019-07-27 14:59:26 +01:00
Christian Oder
578fe06050 sdm845-common: Add basic permission file for HotwordEnrollment
Change-Id: I2986ba3599fe65a8da27649d98d70cd548257aa8
2019-07-25 23:11:03 +01:00
Bruno Martins
14835c7ddd sdm845-common: parts: Migrate to androidx
Change-Id: Ifaa67283a3437549a2304088a0ce377b399da19f
2019-07-14 10:58:25 +01:00
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