Commit Graph

518 Commits

Author SHA1 Message Date
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
Sebastiano Barezzi
ede9a7fff1 sm7250-common: Move to common Xiaomi light AIDL
Change-Id: I1edcfafce4ea7a76327f8466f8535e63cfc8ed39
2022-06-05 14:22:33 +02:00
Nolen Johnson
67c80b7613 sm7250-common: Kill deprecated TARGET_USES_MKE2FS
* This has been useless since some time in Pie.

Change-Id: Ic02238aa0f1c25cfad20a2b827c3c2fe128f3543
2022-06-05 14:21:48 +02:00
xSylla
127e843873 sm7250-common: megvii: Initial stub libraries
This is not available on hardware/xiaomi 19.1 branch

This reverts commit a1c6683f96.

Change-Id: I8de43c460f46018bdd809d3fa402f52ddb95d8e3
2022-06-05 14:21:36 +02:00
xSylla
a1c6683f96 Revert "sm7250-common: megvii: Initial stub libraries"
* This is already present on our hardware/xiaomi on 18.1 branch

This reverts commit 1fafb29be6.

Change-Id: I0bcf3cc5480265fc39317b2b0d6dcaf5a7391823
2022-05-24 14:32:30 +02:00
Sebastiano Barezzi
1fafb29be6 sm7250-common: megvii: Initial stub libraries
* Our camera HALs just needs mg_facepp, which is a struct containing some functions

Change-Id: Id931f767e327cf69b5c7264a8ad0bd335488ec12
2022-05-23 14:03:02 +02:00
LuK1337
a3142c6513 sm7250-common: Drop SSR props & references and set SSR restart_level in init.qcom.rc
Change-Id: I32fc08c9ad36b9c8ebfc019fc87a19eece18f0b4
2021-12-21 01:29:41 +01:00
xSylla
6ccb206a0e sm7250-common: Unpin Soter service
* This was accidentally missing from the oldest miui

Change-Id: Iec297ffbbd0e1940715aa2b6da22928bb0829eef
2021-12-11 21:11:28 +01:00
Pranav Vashi
c9f7c7975a sm7250-common: Enable vibration multiple intensities
* Activates some options on Settings>accessibility>vibration

Change-Id: Ibefd78157324725f0d982d7044d8512cb8cea7a3
2021-12-09 21:23:08 +01:00
xSylla
1faaf19e81 sm7250-common: Add aptX blobs from crosshatch
Change-Id: I8277b2df70267ca5f44a01f062e4db0ec0e7bdd0
2021-12-07 11:03:34 +01:00
xSylla
11ff43d6d2 sm7250-common: Add hardware/xiaomi to dependencies
Change-Id: I463158a18e223b3c372a1a9312fb644d1de51bfe
2021-12-07 09:07:27 +01:00
LuK1337
0578114840 sm7250-common: Switch MDM remote fs symlinks to MSM
7250 has MSM baseband rather than MDM

Change-Id: Ie70a0c5dce177f293ccc0ff1b46a642527f85549
2021-12-01 16:43:29 +01:00
xSylla
17332c2465 sm7250-common: Move props to properties.mk 2021-12-01 16:43:29 +01:00
xSylla
f8582d196e Revert "sm8250-common: biometrics: Implement boosting on authentication"
This reverts commit 1b3fbae7b0.
2021-12-01 16:43:29 +01:00
xSylla
1b2b48fe7c sm7250-common: Add missing fm init and manifest entries 2021-12-01 16:43:28 +01:00
xSylla
164843e88f sm7250-common: Update blobs from monet V12.5.5.0.RJIEUXM
Signed-off-by: xSylla <syllamodder@gmail.com>
2021-12-01 16:43:28 +01:00
xSylla
1238134386 sm7250-common: Reorder Blobs
Signed-off-by: xSylla <syllamodder@gmail.com>
2021-12-01 16:43:28 +01:00
Sebastiano Barezzi
9cfedcc652 sm7250-common: Add a script to reorder blobs list
Change-Id: I76e85e07f5a562b7e2a3683da264ccebff5c3613
2021-12-01 16:43:28 +01:00
Dobsgw
7a381f3ff1 sm7250-common: rootdir: Fix PowerHAL nodes
Fix for:
W/libperfmgr(  670): Failed to write to node: /dev/stune/top-app/schedtune.boost with value: 10, fd: -1
W libperfmgr: Failed to write to node: /dev/cpu_dma_latency with value: 61, fd: -1

Change-Id: Ieb385110f236ab12549aea198639708068fb6156
2021-12-01 16:43:28 +01:00
blankaf
9915f84c99 sm7250-common: rootdir: Adapt for libperfmgr
Co-authored-by: Ramii Ahmed <ramy@ahmedramy.com>
Co-authored-by: SebaUbuntu <barezzisebastiano@gmail.com>
Change-Id: Ia5f59d183056728dc2966b99ff74dbb4fcc83c7b
2021-12-01 16:43:28 +01:00
SebaUbuntu
fc9c1a4a91 sm7250-common: rootdir: Move to Android.bp
Change-Id: I2175d44c28452e9c9138f5143229e7b7cac6d072
2021-12-01 16:43:28 +01:00
Albert I
b7cd634ffa sm7250-common: Cleanup rootdir scripts
* Some of these scripts are unused on lito, so remove them
* Also remove factory scripts, meant for eng

Signed-off-by: Albert I <kras@raphielgang.org>
Change-Id: I19cb6c84a4767cdc790f3ad42c256ca20ecde629
2021-12-01 16:43:28 +01:00
John Galt
a7d7730409 sm7250-common: rootdir: Move vendor.sensors from early-boot to boot
- Fixes broken sensors due to race condition

Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
Change-Id: I477512d2737d6d4f58eb06732d11c4bf53142a4b
2021-12-01 16:43:28 +01:00
Dobsgw
3aa67fd94e sm7250-common: overlay: config_suspendWhenScreenOffDueToProximity false
I wouldn't describe our ultrasound proximity sensor as reliable so let's not have it affect anything related to sleep.

Change-Id: Ifd018026d6cd56b3cb69c8ba8ff5ad57b568a6d6
2021-12-01 16:43:28 +01:00
Albert I
40c9499dc6 sm7250-common: Set up display color compositions
* Switch to "Adaptive" mode and Display P3 color by default

* Use default color mode for Natural and Boosted

* Enable QDCM combined mode and disable factory mode

* Drop LiveDisplay's color mode support as it conflicts with AOSP display
  color adjustment

* Rest of configuration is kanged off Pixel's overlay

* Add COLOR_MODE_SATURATED support from sunfish

Signed-off-by: Albert I <kras@raphielgang.org>
2021-12-01 16:43:28 +01:00
Dobsgw
c6faf7010b sm7250-common: disable volte HD notification 2021-12-01 16:43:28 +01:00
ghostrider-reborn
33c659a29e sm7250-common: overlay: Define OEM fast charge sysfs node
* this forces android to display "charging rapidly" whenever our
   proprietary 33w charger is connected, based on the value of
   this node (0/1)
2021-12-01 16:43:28 +01:00
xSylla
673320e8a1 sm7250-common: Commonize parts/utils
Signed-off-by: xSylla <syllamodder@gmail.com>
2021-12-01 16:43:28 +01:00
Arian
1319cf67e7 sm7250-common: parts: Allow to wake the screen instead of pulsing
Co-authored-by: Nauval Rizky <enuma.alrizky@gmail.com>
Co-authored-by: Fabian Leutenegger <fabian.leutenegger@bluewin.ch>
Change-Id: I1e74f8eafa51843e77d2d8c514c646a4494327cd
2021-12-01 16:43:28 +01:00
Sebastiano Barezzi
5c6a011963 sm7250-common: Default to 6GB Dalvik heap configuration
* Our libinit is missing on GSIs and DSUs

Change-Id: Ie5d7c5e297a47c9d5587b075bd0641914d368f78
2021-12-01 16:43:28 +01:00
xSylla
e1e609f04e sm7250-common: Set proper TARGET_CPU_VARIANT_RUNTIME
Signed-off-by: xSylla <syllamodder@gmail.com>
2021-12-01 16:43:28 +01:00
Panchajanya1999
3883c3c56c sm7250-common: Set target arch variant "armv8-2a"
* The target arch variant 'armv8-2a' enables Armv8.2 features in Clang
  and ART compiler when building Android images on host machines

* https://community.arm.com/developer/tools-software/oss-platforms/b/android-blog/posts/bringing-armv8-2-instructions-to-android-runtime

Change-Id: I813f02490c2d0d159dcadf1605e03b734e37e19e
Signed-off-by: Carlos Ayrton Lopez Arroyo <15030201@itcelaya.edu.mx>
Signed-off-by: xSylla <syllamodder@gmail.com>
2021-12-01 16:43:28 +01:00