Commit Graph

409 Commits

Author SHA1 Message Date
Sebastiano Barezzi
e37967e388 sm7250-common: sepolicy: Label bq2597x-standalone in another I2C address
Change-Id: Ia6bc16624d7505b468c8a978536e4e77f9855a45
2021-12-01 16:43:28 +01:00
Sebastiano Barezzi
943e46aa39 sm7250-common: sepolicy: Redo indentation in property_contexts
Change-Id: Icd49f4a9203fd9764c7f784379fdd8ea06508144
2021-12-01 16:43:28 +01:00
Sebastiano Barezzi
79d856e00c sm7250-common: sepolicy: Remove comments from property.te
Change-Id: Iaf899224f9037d412f047e8302f15e0f9906ef19
2021-12-01 16:43:28 +01:00
Sebastiano Barezzi
5457b1b1cd sm7250-common: sepolicy: Remove duplicated allow
Change-Id: I384fead88397fad98b3446fa16900b9d371fd1da
2021-12-01 16:43:28 +01:00
Sebastiano Barezzi
dd29f9fc7e sm7250-common: sepolicy: Reorder file.te
Change-Id: I99e4fe688dacc0e02e4f7bfecfc843edad907e32
2021-12-01 16:43:28 +01:00
erfanoabdi
2d98c6494f sm7250-common: Add support for FMRadio
Signed-off-by: xSylla <syllamodder@gmail.com>
2021-12-01 16:43:28 +01:00
Midas Chien
09c1629d5e sm7250-common: enable idle timer with kernel support
Enable display kernel driver idle timer, which allows dropping to lower
refresh rate earlier and without additional overhead.

Bug: 160682800
Test: track idle timer through systrace
Test: zone test, scrolling
Change-Id: I6e82b58026d7b31cf0cabc0db7bb6277f6731d12
2021-12-01 16:43:28 +01:00
Sebastiano Barezzi
3e5f9e4a2e sm7250-common: releasetools: Use bootdevice symlink everywhere
Change-Id: I2d91792d365074f0ac92b5ba228a4a2480ea8bd6
2021-12-01 16:43:28 +01:00
Sebastiano Barezzi
42ad90bfed sm7250-common: Move WifiResCommon RRO overlay to vendor
* With GSIs and DSU images, product isn't mounted, and it's even worse with devices without a product partition, since it gets copied to system/product

Change-Id: If1e4d719f849abce53db2e2de01a6177bece8c57
2021-12-01 16:43:28 +01:00
Sebastiano Barezzi
c881e8265a sm7250-common: Drop MMS user agent overlays
* They should be dealt with in ROM overlays and current profile URL points to a 404 page

Change-Id: I92f3ded52dda04f6cec5709d51c84b32f39d8095
2021-12-01 16:43:28 +01:00
Dobsgw
9e300d19d3 sm7250-common: fix media codecs copy out directory
Change-Id: I574f705518c7ead35381970ba76c3a34e97818df
2021-12-01 16:43:28 +01:00
Nolen Johnson
5298a0cdac sm7250-common: bluetooth: Disable clean turn on
* This isn't needed anymore.

Change-Id: Ib77e5212099d82bbc07aea6044eb35109faff5cb
2021-12-01 16:43:28 +01:00
Erfan Abdi
35b50df64f sm7250-common: Commonize bluetooth header 2021-12-01 16:42:55 +01:00
xSylla
fffa6c8891 sm7250-common: Decommonize liboemcrypto and libwvkeybox blobs
*Vangogh and Picasso doesen't have them

Signed-off-by: xSylla <syllamodder@gmail.com>
2021-12-01 13:02:03 +01:00
xSylla
a8a8b96a08 sm7250-common: Decommonize HotwordEnrollment
Signed-off-by: xSylla <syllamodder@gmail.com>
2021-12-01 13:02:03 +01:00
LuK1337
34c3a32809 sm7250-common: Include device FCM from vendor/lineage
Sadly we aren't able to include it globally without breaking other
devices ;((((

Change-Id: Ia29d6fb047a09a2b4767312cb2a3252c87095723
2021-12-01 13:02:03 +01:00
LuK1337
5f85ad6b2e sm7250-common: Remove all lineage HALs from FCM
No longer needed since we added device framework matrix in
vendor/lineage, see 78870c2.

Change-Id: I00233e7588dcfcd4bb66c42c52edb34cdff4376e
2021-12-01 13:02:03 +01:00
Adithya R
595f021689 sm7250-common: Address more battery secret denials
[   19.924855] type=1400 audit(1617105165.784:140): avc: denied { getattr } for comm="batterysecret" path="/dev/kmsg" dev="tmpfs" ino=12292 scontext=u:r:batterysecret:s0 tcontext=u:object_r:kmsg_device:s0 tclass=chr_file permissive=0

Signed-off-by: Kuba Wojciechowski <nullbytepl@gmail.com>
Change-Id: I9fdd78449973ac8f8f466402d82bc1e77de4d8f3
2021-12-01 13:02:03 +01:00
xSylla
369187b6df sm7250-common: sepolicy: Label few more wakeup nodes
Signed-off-by: xSylla <syllamodder@gmail.com>
2021-12-01 13:02:03 +01:00
Arian
11b649960c sm7250-common: Add KeyHandler to handle an goodix FOD key
* The goodix FOD HAL sends an key event (code 338) on touches
  at the FOD area. This event causes the recents to be stuck
  sometimes when swiping over it or closes the keyboard when
  using bubbles and tapping in the FOD area.

Change-Id: I2f2fa65ae4d6d3be12193c5d75fdf7daf33b175a
Signed-off-by: xSylla <syllamodder@gmail.com>
2021-12-01 13:02:03 +01:00
xSylla
f6043070f1 sm7250-common: Build FM2
Signed-off-by: xSylla <syllamodder@gmail.com>
2021-12-01 13:02:03 +01:00
xSylla
d744d29784 sm7250-common: Import FM blobs
Signed-off-by: xSylla <syllamodder@gmail.com>
2021-12-01 13:02:03 +01:00
xSylla
6943ddddd2 sm7250-common: sepolicy: Label more wakeup nodes
Signed-off-by: xSylla <syllamodder@gmail.com>
2021-12-01 13:02:03 +01:00
SebaUbuntu
fd28bafa34 sm7250-common: sepolicy: Remove generic sysfs references
* We labeled everything

+

* Remove RTC label as we have a duplicate of it

Signed-off-by: xSylla <syllamodder@gmail.com>
2021-12-01 13:02:03 +01:00
Bruno Martins
20b6233939 sm7250-common: Make IFAAManager compile again
Change-Id: Iae2d1004bd1b3c939b552f09ea994ae87d71d73e
2021-12-01 13:02:03 +01:00
dianlujitao
a95dcf39d1 sm7250-common: Add ifaa apis to unrestricted greylist
Change-Id: If33a18edaf6083281265ce94fd143d72b4bb4fb8
2021-12-01 13:02:03 +01:00
Volodymyr Zhdanov
e9b0071c90 sm7250-common: org.ifaa.android.manager: switch to blueprint
* otherwise rip boot jars

Change-Id: Iea769fb4d3e07202b5477d2a86e40dd04170a053
2021-12-01 13:02:03 +01:00
notsyncing
3bc322fb3f sm7250-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
2021-12-01 13:02:03 +01:00
dianlujitao
de973890b8 sm7250-common: Support Alipay and WeChat fingerprint payment
* IFAA manager is based on OnePlusOSS, but adapted for Xiaomi's mlipay
   interface.

Change-Id: Ied17d6456561bb399e4dd4a868d57a48d2d51db2
2021-12-01 13:02:03 +01:00
krasCGQ
be67063821 sm7250-common: Import Tencent SoterService from vangogh V12.1.7.0.RJVCNXM
This is necessary to perhaps make Mainland Chinese payment methods work there.

Signed-off-by: Albert I <kras@raphielgang.org>
Signed-off-by: xSylla <syllamodder@gmail.com>
2021-12-01 13:02:03 +01:00
Sebastiano Barezzi
a373000cef sm7250-common: Import configstore flags from alioth
* We dropped configstore

Change-Id: I1c129b14491c3519224b48e224f7e71d5a82aa20
2021-12-01 13:02:03 +01:00
Albert I
d48b9a316c sm7250-common: Ship full package of vendor.qti.hardware.dsp@1.0
Signed-off-by: Albert I <kras@raphielgang.org>
Change-Id: I3eac393fb297f31ed19e9b6db6f6632fe17a4e53
2021-12-01 13:02:03 +01:00
Albert I
040196370d sm7250-common: sepolicy: Allow neural networks HAL to read ADSP properties
Signed-off-by: Albert I <kras@raphielgang.org>
Change-Id: I3fa6f51b746703bab2faf3f5fd6334b221a8636c
2021-12-01 13:02:03 +01:00
Albert I
cd57ddd383 sm7250-common: sepolicy: Allow apps and camera HAL access to secure ADSP domain
Signed-off-by: Albert I <kras@raphielgang.org>
Change-Id: Ibb1071299632ab53726638dbcc134d4bca59fc52
2021-12-01 13:02:03 +01:00
Albert I
40add99394 sm7250-common: sepolicy: Label more hwservice properties
Signed-off-by: Albert I <kras@raphielgang.org>
Change-Id: I8a791255b46858544c9bedff0cbb764c4c87451e
2021-12-01 13:02:03 +01:00
xSylla
5851056517 sm7250-common: sepolicy: Address more denials
Signed-off-by: Albert I <kras@raphielgang.org>
Change-Id: I17da4904e7571229aef9e2a2b952a6b97b89d032
2021-12-01 13:02:03 +01:00
Albert I
dfb7c8454a sm7250-common: sepolicy: Address more sysfs_wakeup denials
* Also fix some rather botched policy and wrong labelling

Signed-off-by: Albert I <kras@raphielgang.org>
Change-Id: Ie0d80a7e4c0eadf37364a8cc2593c255b8f48e9a
2021-12-01 13:02:03 +01:00
Albert I
779828ff23 sm7250-common: Set Bluetooth MAC address using persist property
The idea is to allow us to not depend on stock QTI Bluetooth HAL, as MAC
addresses fetched from NVRAM by nv_mac script will be saved as hex-encoded
files. We can decode back saved files to then the Bluetooth one be set using
persist property so it can be read by Bluetooth HAL.

This is loosely based on similar techniques used on Mi 9 and ZenFone Max Pro M2.

Signed-off-by: Albert I <kras@raphielgang.org>
Change-Id: I74d07c3c3125a04962c37fe8bfcc8385d1fd3398
2021-12-01 13:02:03 +01:00
Arne Coucheron
ccc7a74e1b sm7250-common: Silence clang warnings during kernel compile
clang-11: warning: argument unused during compilation:
'-fuse-ld=lld' [-Wunused-command-line-argument]

Change-Id: I66a629f3573e3fad8aa085ea115475f02d60a7ea
2021-12-01 13:02:03 +01:00
Albert I
66ad0cf120 sm7250-common: Create Adreno symlinks
Match stock behavior.

Signed-off-by: Albert I <kras@raphielgang.org>
Change-Id: Ia9271f360dcca3ffda9387fe969e27fa7507bd2b
2021-12-01 13:02:03 +01:00
Albert I
cee1b8b199 sm7250-common: Create full vendor/rfs symlinks
Matching stock behavior.

Signed-off-by: Albert I <kras@raphielgang.org>
Change-Id: I6cdceb7f91424a824f0d845a8172a5f1a8e970ca
2021-12-01 13:02:03 +01:00
dianlujitao
09bb619041 sm7250-common: Make fastrpc_shell_3 publicly available
* Used by GCAM for DSP-accelerated HDR processing
 * Arguably we should label /vendor/dsp/cdsp/fastrpc_shell_3 to
   same_process_hal_file like Pixels, but the partition is prebuilt thus
   we're unable to relabel it.
 * Copy the file to writable tmpfs, setup attributes and bind mount back
   to workaround the limitation.

[ghostrider-reborn]:
Allow adsp/cdsprpcd and neuralnetworks HAL to access fastrpc_shell_3

[kras edit:
 1. rename some contexts as per qva/kona
 2. extend to allow camera HAL and VPP service to access it as well]

Co-authored-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Change-Id: Ide90e5c7307d413db5ece736e859559f06679545
2021-12-01 13:02:03 +01:00
Albert I
ee24b40ef9 sm7250-common: Decrease number of total call volume steps to 10
Signed-off-by: Albert I <kras@raphielgang.org>
Change-Id: Icf9f877415cd6242f27b248b6821bd3464790904
2021-12-01 13:02:03 +01:00
Albert I
19ce5fd425 sm7250-common: Use stock volume steps
Signed-off-by: Albert I <kras@raphielgang.org>
Change-Id: If23e9b93f8605ce72563554e4d0b0dfef71c24b2
2021-12-01 13:02:03 +01:00
Jesse Chan
98b4439255 sm7250-common: overlay: configure SQLite to operate in MEMORY mode
This change yields considerable SQLite performance gains. It
should be generally safe as this device has irremovable battery.

Some OEMs have been doing this for years.

Change-Id: I541709fc771d4b501b56b8555e5e8a04486d0293
2021-12-01 13:02:03 +01:00
Albert I
f7aec98ac7 sm7250-common: Remove MIUI packages from auxpackagelist
Signed-off-by: Albert I <kras@raphielgang.org>
Change-Id: Ic1a01044ce0f862e8d6e279b6f1a1f163e438931
2021-12-01 13:02:03 +01:00
Albert I
a909d7b427 sm7250-common: fstab: Handle avb= fs_mgr flags correctly
Specifying avb=<vbmeta-partition> is only necessary for first entry of
partition groups that use same vbmeta partition. The following entry can have
<vbmeta-parititon> part omitted.

Test: None
Link: https://source.android.com/devices/architecture/kernel/mounting-partitions-early#fstab-entries
Signed-off-by: Albert I <kras@raphielgang.org>
Change-Id: I5a42fd3de72c400acfae56d6a1e1b85c22a79537
2021-12-01 13:02:03 +01:00
Albert I
d7cdf4b75a sm7250-common: fstab: A-only userdata: nodiscard -> discard
Why it has to be different by itself?

Signed-off-by: Albert I <kras@raphielgang.org>
Change-Id: Iab39004489695da6bde7729f7eb0a65645067b0f
2021-12-01 13:02:03 +01:00
Nolen Johnson
124e049414 sm7250-common: Simplify AVB flag logic
* AVB's `--flags 3` argument builds a disabled VBMeta with
  disabled hashtree, so no need to set both flags individually.

Change-Id: Ibe9ee322a5af58f13e76d53e18dee49451fe8838
2021-12-01 13:02:03 +01:00
Albert I
7d020bc1a8 sm7250-common: Extend vbmeta_system to include product
* matches Qualcomm configuration

Signed-off-by: Albert I <kras@raphielgang.org>
Change-Id: I94604c130794c6b3f87a971be7057854d4920ddb
2021-12-01 13:02:03 +01:00