Commit Graph

399 Commits

Author SHA1 Message Date
Sebastiano Barezzi
6a82833129 sm7250-common: Remove TARGET_ENABLE_MEDIADRM_64
* It's only used when building drm@1.0 HIDL

Change-Id: I06412e2dd2bb48d798be4ef6e9a26a17b65277a7
2022-06-05 14:29:58 +02:00
Sebastiano Barezzi
898e641b18 sm7250-common: Drop atrace HIDL
Change-Id: Iaaaf62e9dda26dd15d51f5975d9f21fe1037d2eb
2022-06-05 14:29:58 +02:00
Sebastiano Barezzi
35c9ecbc6e sm7250-common: Stop explicitely building netutils-wrapper-1.0
* Built by default

Change-Id: Id6666535bb8d0b84d2d0a8d19411fafa49df3d68
2022-06-05 14:29:58 +02:00
xSylla
4c5e023961 sm7250-common: Commonize graphics (Adreno firmware)
Change-Id: I979b0728dda3cc24da51ff00e24ee5a4bbb5c1db
2022-06-05 14:29:36 +02:00
xSylla
aaaf91f031 sm7250-common: We already have USB audio policy configuration so don't pick AOSP one
Change-Id: I92056d03df54abcfec42fcc6781ba1ae3651a4e5
2022-06-05 14:29:25 +02:00
Sebastiano Barezzi
f52759c8e1 sm7250-common: Implement UDFPS handler
Change-Id: I7afff305140639d38ebb8bc51fbe790a1636db9e
2022-06-05 14:29:13 +02:00
SebaUbuntu
a6624039b5 sm7250-common: Move to common Xiaomi fingerprint HIDL
Change-Id: I6c29a831e985ee440c92a98aad8d33f25b9e5b2d
2022-06-05 14:29:13 +02:00
TheScarastic
6f9358f8c9 sm7250-common: parts: Fix thermal profile build for android-12
bfc9e59361

Change-Id: Idb137239c916f94d0bbef2166bb688f381e4ad28
2022-06-05 14:29:13 +02:00
TheScarastic
d2eae4ed29 sm7250-common: parts: Add dynamic thermal profile implementation
Change-Id: I4667b24a8a29a418796dc51b245ede0aca51eea6

sm7250-common: parts: Make thermal profiles naming completely generic

Drop the reference to YouTube because that's product-specific.
Moreover, the purpose of such thermal profile should be video streaming,
so name it in that generic way.

Change-Id: Ifa8c97a2d231a24fda016a876c06b59825a068a6

sm7250-common: Switch back to default thermal profile when screen off

Change-Id: I72aae3c1fbb13f44ff7a637ba9ad70cf451d71a2

sm7250-common: Set dynamic thermal interval to 5 sec

Change-Id: I96a67297645ad9074045e94fce84e664723aa64c

sm7250-common: parts: Switch to TaskStackListener

Change-Id: I18cb22decddb38420e8137aafdc56810e81d4603

sm7250-common: parts: Refactor whole code

Change-Id: I14303556c66ea6bd3d111b5ce7e176711a676824

sm7250-common: parts: Check if kernel support Thermal Profiles

Change-Id: Ief3911b0c1238ed6e209f7b66dde68d67a69ea88

sm7250-common: parts: Add ACTION_SCREEN_ON intent filter

 * this should fix thermal/touchscreen profiles not
   getting restored after turning screen back on

Change-Id: Idb485fc7f1942f1a2d117025fe5c4237afc3ec81

sm7250-common: parts: Use correct gaming thermal

* thermal-pubg.conf is missing which is selected with 13, instead we have thermal-tgame.conf which is 9.
* thanks amack766 for informing

Change-Id: If2e95fc04b26a1fa87e77f854ec0c325243cd097
2022-06-05 14:29:13 +02:00
SahilSonar
7ef5f67a7c sm7250-common: sepolicy: Allow power hal to write to f2fs nodes
Change-Id: I988b8b148d2b01523207d705e95c555db6d3c22d
2022-06-05 14:29:13 +02:00
althafvly
39eb7dbc12 sm7250-common: sepolicy: Label thermal_hbm_disabled
Change-Id: I51db20e8d30ba18c8b2e5bcbff09b97339b0fa80
2022-06-05 14:29:13 +02:00
Zhao Wei Liew
631499bb7a sm7250-common: Remove no-op TARGET_KERNEL_ARCH flag
TARGET_KERNEL_ARCH is a no-op unless it is different from TARGET_ARCH.

Change-Id: If36d5adc3296b76d5efb21da0e196f0b005ae784
2022-06-05 14:29:13 +02:00
Sebastiano Barezzi
a10f85a8f4 sm7250-common: Build mtdservice interface lib from source
Change-Id: Ie739f283c4be1b77d57aaee1941ed46957da1d1a
2022-06-05 14:29:13 +02:00
Bruno Martins
78150a3f1e sm7250-common: Switch to source-built mlipay interface
Change-Id: I7daaaffd9fe7a870e42c1d882b52dc93b3231120
2022-06-05 14:29:13 +02:00
SahilSonar
184613fdca sm7250-common: Update display stack from motorola_nio
* Required for new QSSI12 display HAL

Change-Id: I94705dc2ee0d33609834cda71d1e26d92641bef4
2022-06-05 14:29:13 +02:00
xSylla
76225f1e92 sm7250-common: Update blobs from MIUI V13.0.2.0.SJIMIXM
Change-Id: Ie65bb522086e1ee099423ca6d4d9cd9f2ebbefe7
2022-06-05 14:28:33 +02:00
xSylla
fece9129e0 sm7250-common: prop: Drop persist.vendor.radio.5g_mode_pref
Change-Id: I0772c4fbc483a74aa642ca1270d9a250e8db0147
2022-06-05 14:28:25 +02:00
xSylla
50b114ee5b sm7250-common: Remove duplicated symlinks
Change-Id: I97c9a575622b4e006c3c241a10cd76f6982f723b
2022-06-05 14:28:16 +02:00
xSylla
519c5395d1 Revert "sm7250-common: Switch MDM remote fs symlinks to MSM"
This reverts commit 0578114840.

Change-Id: Iad11d2800c3650f8c78c96b8d63436d8a1f574da
2022-06-05 14:28:08 +02:00
SahilSonar
f3495daf4e sm7250-common: sepolicy: Add vendor_* prefix
* Comply with sepolicy vendor namespace

Change-Id: I5259c450443dc4b107fb6175b6ee43a39cf66ec1
2022-06-05 14:27:56 +02:00
althafvly
bed9ce38fb sm7250-common: Set BUILD_BROKEN_VENDOR_PROPERTY_NAMESPACE
Change-Id: I108504e650895ed62dd54f30d6c53f9d16baa5a3
2022-06-05 14:27:56 +02:00
Roger Ellis
1abcc7c151 sm7250-common: Add exclusion for vendor ELF prebuilts
- ELF prebuilts were banned in PRODUCT_COPY_FILES starting May 11.
 - Adding BUILD_BROKEN_ELF_PREBUILT_PRODUCT_COPY_FILES := true to
BoardConfig.mk temoporarily.
 - See b/156534160 for long-term fix which should override this change.

Test: Build
Bug: 156534160
Change-Id: I7d80798d3b2d3818bc835fcede21de2e7ab04735
2022-06-05 14:27:56 +02:00
Sebastiano Barezzi
55c2763845 sm7250-common: Move to common IfaaService
Change-Id: I71bfdacc4626d75d56aa12ec384f0f116d6d6ff2
2022-06-05 14:27:56 +02:00
Timi Rautamäki
746e3abd5a sm7250-common: Drop Snap
It's not included in 19.1

Change-Id: Ie3f908234cf7a3d94d33ad0e9d170d3738bb9752
2022-06-05 14:27:26 +02:00
xSylla
a03878433c sm7250-common: remove unneeded fm sepolicy rules
Change-Id: I34871314733cad04f80c76d0c7310e9e553a67d6
2022-06-05 14:27:17 +02:00
LuK1337
c2c12192bd sm7250-common: Remove trust HAL from product packages
USB 1.3 HAL now provides the same functionality and even more.

Change-Id: Idda908a90d3b935e1065eb41abec4babeefc4fd0
2022-06-05 14:27:05 +02:00
Albert Wang
bfee3fe144 sm7250-common: Update USB HAL to V1.3 implementation
Supports to enable/disable USB data signaling

Bug: 161414036
Test: Pass USB V1.3 HIDL tests
Signed-off-by: Albert Wang <albertccwang@google.com>
Change-Id: Iffe00f8753206fb66cd3ab96cae5aa5ad9c410cd
2022-06-05 14:27:05 +02:00
Kevin Jeon
23394e5b4b sm7250-common: Update SurfaceFlinger pin
This change replaces the '/system/lib64/libsurfaceflinger.so' pin, as
the file was removed in ag/12524602. The updated pin relies on
go/aog/1552085, as system_service needs read access to SurfaceFlinger.

Bug: 176197656
Test: adb shell dumpsys pinner (coral)
      - shows that /system/bin/surfaceflinger is successfully pinned
      adb logcat | grep PinnerService (coral)
      - no longer shows a file-not-found error in PinnerService
Change-Id: Iae2a96c5fe4b1f5698d21de9970140321d11c460
2022-06-05 14:27:05 +02:00
Nicolas Geoffray
4f8c034a21 sm7250-common: Remove odex/oat files from pinner list
Change-Id: Ie42190ebb02dd898f2f4f6ae126db2b0375f5ebd
2022-06-05 14:27:05 +02:00
stic-server-open
9124117927 sm7250-common: rootdir: Delete the non-existing cnss_diag service
* cnss_diag doesn't exist in proprietary-files.txt,
  and it doesn't make sense to leave residual services in init.target.rc.

Co-authored-by: MB <mb150996@gmail.com>
Co-authored-by: Aquarius223 <2777968262@qq.com>
Change-Id: I0f9cef6beb8bd2c593a628a057b97cc4d82842d2
2022-06-05 14:26:39 +02:00
xSylla
aa3f49ebd5 sm7250-common: Move media configs to proprietary-files
Change-Id: If6c11d5a775e717e6bf5146a9a29880e02d0e48d
2022-06-05 14:26:20 +02:00
xSylla
e4aba27c5b Revert "sm7250-common: Add KeyHandler to handle an goodix FOD key"
This reverts commit 11b649960c.

Change-Id: Idc9f5b41f1223a0e681b378dbb674d179af84977
2022-06-05 14:26:05 +02:00
Sebastiano Barezzi
6ee34f4beb sm7250-common: Build libhidltransport
Change-Id: Ic764084c6225b9f5cfcbe511dd01c4d65c1794d3
2022-06-05 14:25:50 +02:00
Wilson Sung
a8a7a13b40 sm7250-common: Set SOC properties for SM7250
Bug: 158284209
Bug: 180589452
Change-Id: I31ec2aff20a4efb3c502ee5c8c6463e31c892bd5
Signed-off-by: Wilson Sung <wilsonsung@google.com>
2022-06-05 14:25:43 +02:00
xSylla
bf8a5a814f sm7250-common: Update product config variables
* These will be deprecated, so let's update them
* ref https://android.googlesource.com/platform/build/+/master/Changes.md

Change-Id: Id417a6f0a99c35b6f589cd59d7378f52e3a9b1ff
2022-06-05 14:25:31 +02:00
TheScarastic
b780b6793f sm7250-common: parts: Adapt to S style
* Use Theme.SubSettingsBase for theme
 * Replace PreferenceActivity with CollapsingToolbarBaseActivity
 * Add Titles to preference screen
 * Remove onOptionsItemSelected and where necessary move to activity

Change-Id: I87af15f5e165aa7bcd556eb2b716c0ce624ca4e7
2022-06-05 14:25:15 +02:00
xSylla
bbb496020a sm7250-common: Regen FCM
Change-Id: I0ad5299da03e65e93d2871c507cd71f26ea87b8e
2022-06-05 14:24:23 +02:00
Inseob Kim
d593816647 sm7250-common: sepolicy: Attach vendor_property_type to properties
We are going to enforce that each property has an explicit owner, such
as system, vendor, or product. This attaches vendor_property_type to
properties defined under vendor sepolicy directories.

Bug: 159097992
Test: m selinux_policy && boot device
Change-Id: I33c40ca345365d8f01f43d3ce7f1f3434b1edfd5
2022-06-05 14:24:13 +02:00
Sebastiano Barezzi
cedd2fecf6 sm7250-common: Move to AOSP NXP NFC HAL
* NXP added snxxx support in AOSP, \o/

Change-Id: Id1b9cdbe1f29d1ff61af8182ae2f8370e5210426
2022-06-05 14:24:12 +02:00
Sebastiano Barezzi
ddfe70d9ae sm7250-common: sepolicy: Reorder {hwservice|vndservice}_contexts
Change-Id: I9765603ba9e053f125f7dc056932569e3603db6b
2022-06-05 14:24:12 +02:00
Sebastiano Barezzi
ad39ce21ee sm7250-common: sepolicy: Bringup property_contexts for Android 12
* Except MIUI global props, they all appear unused/only used for debug/only used with MIUI

Change-Id: I60070ba7658ce262be66ee3bdd0cb6cdcf9b8c49
2022-06-05 14:24:12 +02:00
Sebastiano Barezzi
34db6ec7e6 sm7250-common: Unlabel ro.product.system.manufacturer
* host_init_verifier: Unable to serialize property contexts: Duplicate exact match detected for 'ro.product.system.manufacturer'

Change-Id: I21328a460568217a6b1f445c8a98cd9e4d623426
2022-06-05 14:24:12 +02:00
TheScarastic
e2acea18d7 sm7250-common: biometrics/fod: Uprev to 2.3
* [SebaUbuntu]: Move fingerprint HIDL to 2.3
 * Remove Lineage FOD HIDL
 * Rename fodextension to udfpsextension

Change-Id: I292bbb9509de89eb9031daebab3cb5b2e5411d21
2022-06-05 14:24:12 +02:00
Sebastiano Barezzi
945f0e2b6d sm7250-common: rootdir: Move remaining modules to Android.bp
Change-Id: Id2f440af5abaab38d01f2804822279c8c7e821b2
2022-06-05 14:23:39 +02:00
Sebastiano Barezzi
1bc432c444 sm7250-common: Uprev bluetooth audio HIDL impl to 2.1
* We get free LC3 support, isn't it poggers?

Change-Id: I0f1713ee542102374183ef8088bcad62d3859c2f
2022-06-05 14:23:25 +02:00
Sebastiano Barezzi
1786abe62a sm7250-common: Uprev clearkey DRM HIDL to 1.4
Change-Id: Id0895fee70495913f57bc8408ea433660467a7c7
2022-06-05 14:23:25 +02:00
Sebastiano Barezzi
6aa5b9e85e sm7250-common: Build vendor interfaces libraries
Change-Id: I0c8760ff6923c2d2a43ec058554d724ca6600f3c
2022-06-05 14:23:25 +02:00
Sebastiano Barezzi
168202c8e6 sm7250-common: Build all extra VNDK versions
* Basically make system a GSI, but this should avoid us the headache made by VNDK libs not being built based on proprietary interfaces

Change-Id: I1ca876b5d2a82d41af76f4c327b89a181bb3d6bd
2022-06-05 14:23:25 +02:00
xSylla
bb0029e64e sm7250-common:: sepolicy: Switch to SYSTEM_EXT_{PUBLIC,PRIVATE}_SEPOLICY_DIRS
Change-Id: I817c692a77b3c239f6890ef8ac93d6b1431e54c2
2022-06-05 14:22:53 +02:00
Sebastiano Barezzi
f66ab2f4ae sm7250-common: vibrator: Move to vibrator AIDL V1
Change-Id: Ic4755037cb75a56839c850bdd1bb295035e5226f
2022-06-05 14:22:43 +02:00