Commit Graph

1040 Commits

Author SHA1 Message Date
Omkar Chandorkar 051564ae19
sm8150-common: commonize dynamic/non-dynamic configs
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-03-18 14:07:50 +09:00
Omkar Chandorkar 4a61b1eca3
sm8150-common: rootdir: convert to bp
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-03-18 13:33:21 +09:00
Omkar Chandorkar baf55a1732
sm8150-common: overlay: disable PocketMode
* our ultrasound isn't a fan of constant checking

Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-03-16 13:42:15 +09:00
Omkar Chandorkar 21ed0c5fef
sm8150-common: declare udfps hbm type
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-03-03 23:28:37 +09:00
Omkar Chandorkar 0ca75cb361
sm8150-common: update property overrides
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-03-03 23:24:47 +09:00
Omkar Chandorkar c719aaed37
sm8150-common: the big cleanup
* move to as many components as we reasonably can
* drop all duplicate configs and properties
* add missing oneplus usb additions

Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-03-03 16:24:41 +09:00
Omkar Chandorkar 865e7926c8
sm8150-common: Add DisplayMode
* partial import from 6b201009de/DeviceSettings

Co-authored-by: darkobas <darkobas@gmail.com>
Co-authored-by: Max Weninger <max.weninger@gmail.com>
Co-authored-by: Vachounet <vachounet@live.fr>
Co-authored-by: kldoc <fred.berbigier@gmail.com>
Co-authored-by: Christian Oder <myself5@carbonrom.org>
Co-authored-by: Josh Fox (XlxFoXxlX) <joshfox87@gmail.com>
Co-authored-by: David Sn <divad.nnamtdeis@gmail.com>
Co-authored-by: Anirudh Gupta <anirudhgupta109@aosip.dev>
Co-authored-by: mTresk <djtresk@gmail.com>
Co-authored-by: Ido Ben-Hur <idoybh2@gmail.com>
Co-authored-by: Anushek Prasal <anushekprasal@gmail.com>
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-03-03 16:24:41 +09:00
Pranav 60d68347b1
sm8150-common: Set vendor code for udfps
Signed-off-by: Pranav <npv12@iitbbs.ac.in>
2022-03-03 16:24:40 +09:00
timocapa 0a1bbcb76e
sm8150-common: vintf: add vendor.qti.qspmhal
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-03-03 16:24:09 +09:00
Cosmin Tanislav 17fa1ada8e
sm8150-common: sensors: standardize pickup sensor
* use standard sensor type
 * ignore non-wakeup sensor variant
 * ignore events that do not properly match a pickup

Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-03-03 16:24:08 +09:00
timocapa 3ab7d463bb
sm8150-common: add prebuilt hidl interfaces
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-03-03 16:24:08 +09:00
Omkar Chandorkar 4d3e14094f
sm8150-common: add prebuilt hidl interface for wigig
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-03-03 16:24:07 +09:00
Omkar Chandorkar ef2820ef9d
sm8150-common: rootdir: uprev to LA.UM.9.1.r1-11200.01-SMxxx0.QSSI12.0
* mildy remove/beautify crap

Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-03-03 16:24:07 +09:00
John Galt 919fc23ab5
sm8150-common: rootdir:post_boot: inline with LA.UM.9.1.r1-10600-SMxxx0.0
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-03-03 16:24:07 +09:00
Omkar Chandorkar edfca68457
sm8150-common: don't patch 32bit fp blob
* removed as it's unused

Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-03-03 16:24:06 +09:00
Omkar Chandorkar 88875a335b
sm8150-common: RIP RemovePackages
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-03-03 16:24:06 +09:00
Omkar Chandorkar 06d4f95e1e
sm8150-common: update for new oneplus common tree
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-03-03 15:25:10 +09:00
Alexander Koskovich e23c4ffb53
sm8150-common: init: Don't mount TraceFS twice.
* AOSP already mounts TraceFS in system init, so mounting it twice
   causes SEPolicy denials. See the comments in this change.

   https://android-review.googlesource.com/c/platform/system/sepolicy/+/1294195

Change-Id: Ic5d9ac2dbd36e404a93a8d48aa0ea933fd7fa701
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-03-03 15:25:09 +09:00
Omkar Chandorkar 659c50ddcb
sm8150-common: remove dead packages
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-03-03 15:25:09 +09:00
Omkar Chandorkar a4777fb116
sm8150-common: remove call for updateble apex
* included in partner_modules

Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-03-03 15:25:09 +09:00
Vishalcj17 980bd5588c
sm8150: Use VNDK Version 30 for our vendor.
Change-Id: I6f4b670e7be383c88ca2d33ce9ef54d8596022aa
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-03-03 15:25:08 +09:00
Baligh Uddin ecb6b0c523
sm8150-commo: init: Switch "system/core/base" ref to "system/libbase"
BUG: 148941208
Test: TH
Change-Id: I49184ac6e4d73172ddc066683dbd1ad3f2fc8429
2022-03-03 15:25:08 +09:00
LuK1337 d3e7573d05
sm8150-common: Switch to AOSP NfcNci
Change-Id: I3403084373445475ee1d997c47cfaa887bcfeb4a
2022-03-03 15:25:07 +09:00
Art_Chen a21e672dc5
sm8150-common: sensors: Spawn a binder thread for als service
Change-Id: Idefb74395f691ebec5e50aca0899c5d07f4276fe
2022-03-03 15:25:07 +09:00
Pranav 487af89e03
sm8150-common: sensors: Switch to ScreenshotClient::captureDisplay
Change-Id: I59057c31b5ce714cbb6abbd574be2d5d9248f4b1
Signed-off-by: Pranav <npv12@iitbbs.ac.in>
2022-03-03 15:25:07 +09:00
dantmnf 93c9e478e7
sm8150-common: Use average linear light for ALS correction
Change-Id: Ia784480462f5a236d0bd75861f1cf5fd170fe3b1
2022-03-03 15:25:06 +09:00
LuK1337 c279953dc7
sm8150-common: sepolicy: Address neverallows
Change-Id: I73b3d2d45a2e6988ca86a9d3bfa125fd69320b13
2022-03-03 15:25:06 +09:00
LuK1337 5863411fde
sm8150-common: sepolicy: exported_radio_prop is no more
Change-Id: I0f5b2220d5d8c3efc41e2f7b1d5930affe4614a6
2022-03-03 15:25:06 +09:00
Inseob Kim fc2551d553
sm8150-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.

Change-Id: Iedbbcc5086c09f549e91e73ece7311563c378347
2022-03-03 15:25:05 +09:00
SamarV-121 9408b66bfa
Revert "sm8150-common: sepolicy: Label ro.gfx.driver.1"
* https://android-review.googlesource.com/c/platform/system/sepolicy/+/1344643

This reverts commit 1c1b01fc0ed48a42b470efc987b28352485547b6.

Change-Id: I8cf513c21b91260ef914ea1621a7363c133d37d3
2022-03-03 15:25:05 +09:00
Wilson Sung f19ad57929
sm8150-common: Set SOC manufacturer and chipset properties
Bug: 158284209
Bug: 180589452
Change-Id: I9be67a1a78ab1d3b4a0e717fb3381458eb4996da
2022-03-03 15:25:04 +09:00
Edwin Wong 1458dce091
sm8150-common: Update clearkey plugin to drm HAL v1.4
Test: atest
  atest CtsMediaTestCases:android.media.cts.MediaDrmClearkeyTest#testGetPlaybackComponent

Bug: 182525516
Change-Id: I3adf55199301768bacb38103c3ef4ba24807df2f
2022-03-03 15:25:04 +09:00
Roger Ellis 3455e94187
sm8150-common: Allow ELF prebuilts in PRODUCT_COPY_FILES.
* ELF prebuilts were banned in PRODUCT_COPY_FILES starting
   May 11th. See b/156534160 for long-term fix which should
   override this change.

Change-Id: Icd25b40ca4e4285319775046a1b70de30572be07
2022-03-03 15:25:04 +09:00
Tri Vo cfa4c2fcfe
sm8150-common: Use PRODUCT_*_SEPOLICY_DIRS to build product sepolicy.
We are restoring the old behavior of BOARD_PLAT_*_SEPOLICY_DIR that
extends system sepolicy. To that end, we use another make variable to
specify product sepolicy.

Bug: 119305624
Test: m selinux_policy
Change-Id: I67636b7aaff2bd5ae5309981f9fa2f8ce51edf6f
2022-03-03 15:25:03 +09:00
LuK1337 ca4a668092
sm8150-common: Build HWC from source
Change-Id: Idea9dacb2df45ba7f27e1dac691d1353eebf4c1a
2022-03-03 15:25:03 +09:00
DarkJoker360 7e4b3ff6d9
sm8150-common: Allow system_server to write motor sysfs nodes
* Fixes retry/close buttons not working on error
  open/close camera alert.

Change-Id: I3fccb76e038e7da7a7e39a8df371c7ee48f54ed3
Signed-off-by: DarkJoker360 <simoespo159@gmail.com>
2022-03-03 15:25:03 +09:00
LuK1337 b58744eaa3
sm8150-common: sepolicy: Label vendor_sensors_als_prop in private
Fixes init panic on Android S GSI.

Change-Id: Ie3273eaf0a8958d3821c4d5eb79cd4a3e83e82d5
2022-03-03 15:25:02 +09:00
Christian Oder 52f00219ac
sm8150-common: Patch fingerprint blobs to different prop
libgf_ud_hal.so looks for vendor.boot.verifiedbootstate to be set to the phones true state
in our case, for an unlocked phone, it must be orange
(green = locked with factory rom, orange = unlocked no checking, yellow = locked with user key)

Change it to look for vendor.boot.fingerprintbstate which we set to orange without having to mess with anything safetynet related.

Add a device check since only 7T Series actually checks for it

Co-authored-by: Matt Filetto <matt.filetto@gmail.com>
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
Change-Id: I35dec00b50c2f45334127ff251d5475100a6f3f2
2022-03-03 15:25:02 +09:00
Omkar Chandorkar c54503a189
sm8150-common: update to LA.UM.9.1.r1-10200-SMxxx0.0
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
Change-Id: I68d837dbb44a0cb2871bc7aa671dea22c8184d6a
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-03-03 15:25:01 +09:00
Omkar Chandorkar 452e53f8d6
sm8150-common: audio: remove unused audio_effects
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
Change-Id: Ib7ef471997249ed76d632d7483c1d66ef606758c
2022-03-03 15:25:01 +09:00
Omkar Chandorkar 21a2c53706
sm8150-common: Use prebuilt vendor libdisplayconfig.qti.so
There are several VMTs inside that library that are prone to change
on CAF merges.

So far, last LA.QSSI.11.0.r1-12300-qssi.0 merge already modified
ConfigInterface VMT in a way that's not backwards compatible thus
it'd be better if we provided a prebuilt library instead.

Change-Id: I25fe58e6721b8d0e67882f576cfaf288c9992fc9
2022-03-03 15:25:01 +09:00
Omkar Chandorkar 76266d26b6
sm8150-common: add missing nfc blob and sepolicy
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-03-03 15:25:00 +09:00
Omkar Chandorkar c25c167184
wifi-mac-generator: convert to blueprint
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-03-03 15:25:00 +09:00
Omkar Chandorkar 543063999d
camera_helper: convert to blueprint
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-03-03 15:25:00 +09:00
Omkar Chandorkar 75daa29964
sm8150-common: libinit: add support for hotdogg
* remove default cases, we are setting in makefiles anyways

Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-03-03 15:24:59 +09:00
Omkar Chandorkar a47f3cdffc
sm8150-common: update media props to LA.QSSI.11.0.r1-12300-qssi.0
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-03-03 15:24:59 +09:00
Satheesh Kumar Pallemoni e8128ca90d
sm8150-common: AAC frame control enabled for hal implementation.
Added below two changes to enable the AAC frame control
when property persist.vendor.bt.a2dp.hal.implementation
has nbeen enabled.

- Send bitrate value to MM on basis of MTU and sample rate.
  CRs-Fixed: 2402346
  Change-Id: I6c964311dfa5db335d3b9dd21c60d1f9dcc61ebe

- A2dpSrc: Calculate bitrate with exact peer MTU value.
  CRs-Fixed: 2466969
  Change-Id: I95e93cb29d1add0b2bca8f99827849519311a0b1

CRs-Fixed: 2474400
Change-Id: I8eea975fac290c117d9781c1455e81e9404f6bd6
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-03-03 15:24:58 +09:00
M Safoorah Banu b0e676d74b
sm8150-common: Enable TWS plus feature using persist property
- Enable/Disable TWS plus feature support using persist
   property - "persist.vendor.btstack.enable.twsplus"

 - TWS plus feature is supported only if property is set to
   "True" else feature is not supported.By default property
   is set to False.

CRs-Fixed: 2344895
Change-Id: I855f448146424b7b647ca599f3d830073ec7c409
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-03-03 15:24:58 +09:00
xiaowang 92f50991a6
sm8150-common: Add support for low power adaptive control feature
High power consumption issues were reported for some HS/CK/Speaker
in close range(1 meter) on hastings platform as they may not have
perfect RSSI golden range logic for power control and always request
SOC to increase TX power to max power level. Newer hastings SOC support
LPA power control to avoid unnecessary higher power consumption.

The change enable this soc feature according to value of property.
And disable it for special remote devices which have been added in BL
when new ACL link is created.

If feature is enabled, controllable power level for remote is L0-L9,
BT controller increase it to L10 or L11 according to RSSI and NAK rate.
Otherwise controllable power level for remote is from 0 to max power
level signified in NVM, most likely L11 for hastings.

CRs-Fixed: 2597191
Change-Id: I354bb34a84aa7a55537e3a595daac54c46d90603
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-03-03 15:24:58 +09:00
Sebastiano Barezzi df7c29eb29
sm8150-common: Readd 32bit SCVE and VPP blobs
* Needed for some hardware accelerated codecs

Change-Id: Id0f9ec8541f24b3aad2f80a9bcb2c0d4e3343cf5
2022-03-03 15:24:57 +09:00