Commit graph

458 commits

Author SHA1 Message Date
David Su
e0e70814db sm8250-common: Don't sign Wifi RROs with platform cert
Preinstalled overlays needn't be signed with the same cert
as the package it overlays, simply being preinstalled is
enough. Sign with the default cert instead for now, which
provides fewer special privileges.

Bug: 162195999
Test: verify values still overlaid correctly
Change-Id: I017491fd383551c5aadf8648edb900e0c12a27b8
2021-02-02 14:57:40 +01:00
Bruno Martins
0615d4b4d0 sm8250-common: Deduplicate handheld_core_hardware.xml copy rule
Since Android 10 that this is already done while inheriting from
full_base_telephony.mk.

Change-Id: If533fbf95a9cf9798ddba24955a624d26f550d62
2021-02-02 14:57:40 +01:00
Tao Bao
38e5c38009 sm8250-common: AB_OTA_UPDATER is BoardConfig variable.
Bug: 130433003
Test: TreeHugger
Change-Id: I70c7a884df45781e8b14339edd02985ba3de02fd
2021-02-02 14:57:40 +01:00
LuK1337
c870005d46 fixup! sm8250-common: Set persist.sys.sf.color_mode to DISPLAY_COLOR_MANAGED (0)
* Meant to actually set the native_mode here.

Change-Id: Ie8830d2804df7be2563cbd2ea87a85727a8053f1
2021-02-02 12:59:27 +01:00
LuK1337
5e5a8d31d7 sm8250-common: Set persist.sys.sf.color_mode to DISPLAY_COLOR_MANAGED (0)
* 'Display white balance' only works when color_mode is
  set to something other than the default value
  DISPLAY_COLOR_UNMANAGED (1).

Change-Id: Idaf30a2f2924c461fc0f034f099afaecb5bbf79b
2021-02-02 11:58:29 +01:00
Lakshman Chaluvaraju
cb57f3d6f0 sm8250-common: Enable Stereo channel support for voip over audio path
Add changes to support stereo channel configuration
for voip over audio path.

Change-Id: Ib454d24a4017d3f91d429d47c52d4f86e5a18e97
2021-02-01 14:51:32 +01:00
Jaideep Sharma
a3a7f782df sm8250-common: Provide support for callscreening for kona/lito.
add support for callscreening support in audio_policy_configuration
- add mixer paths related to proxy ports needed in call_screening

Change-Id: Ib0c220fa44c23454e71e772bfa406bd82c06b90d
2021-02-01 14:51:32 +01:00
Zhou Song
4ad82c6dab sm8250-common: Move "fast input" and "quad mic" to the bottom
Generic recording and SVA LAB capture usecase can select
"fast input" or "quad mic" as a compatible profile, due
to the max active count is 1, audio recording and SVA
LAB capture concurrency can be failed.
Move the two profiles to the bottom for exact match
purpose.

Change-Id: Idaa615e653f0cf49e465809ab0034c0e56470a6e
2021-02-01 14:51:32 +01:00
Kunlei Zhang
ca267b96ef sm8250-common: Removing unsupported source
Removing dsd_compress_passthrough from headphones/
headset/line.

Change-Id: I136005329ab3764f57b53c118694ad44eb9c0a21
2021-02-01 14:51:32 +01:00
Kunlei Zhang
81a25d5ca3 sm8250-common: Use usb_surround_sound input profile for usb capture
Use usb_surround_sound input profile for usb capture to avoid
opening a new input for the second usb capture.

Change-Id: Id17a5daf9aefb390f374754c340a69b2113fe987
2021-02-01 14:51:32 +01:00
Zhou Song
4fe75c1701 sm8250-common: Add support of BT SCO mic for record_24 profile
Usecase audio-record and audio-record-compress2 can both be
mapped to record_24 profile, if both the usecases are active,
when BT SCO mic is connected, due to no more available usecases
in audio hal, check inputs for device can fail for other input
profiles which support BT SCO mic.
This makes BT SCO mic connection to be rejected and phone call
can't route to BT.
Add the support for record_24 profile, so existing input handle
can be returned when checking inputs for BT SCO mic.

Change-Id: I63046ec87e35774474e08762fb6aa6275318b2c8
2021-02-01 14:51:32 +01:00
Dhananjay Kumar
cdfe17d977 sm8250-common: Remove surround recording support from audio policy config xml
Remove surround sound recording support from audio policy config xml
as its resulting in CTS failure due to mismatch in channel index support
for record usecase.

Change-Id: Idf50b3f2e71c4209720e79c0248ce74bc1a0edf2
2021-02-01 14:51:32 +01:00
LuK1337
d3a5d47f75 sm8250-common: Add com.android.hotwordenrollment.common.util library
Fixes:
E AndroidRuntime: FATAL EXCEPTION: main
E AndroidRuntime: Process: com.android.hotwordenrollment.xgoogle, PID: 4331
E AndroidRuntime: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/android/hotwordenrollment/common/EnrollmentUtil;
E AndroidRuntime: 	at com.android.hotwordenrollment.common.EnrollmentService.onCreate(EnrollmentService.java:59)
E AndroidRuntime: 	at android.app.ActivityThread.handleCreateService(ActivityThread.java:4186)
E AndroidRuntime: 	at android.app.ActivityThread.access$1500(ActivityThread.java:237)
E AndroidRuntime: 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1932)
E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:106)
E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:223)
E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:7660)
E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
E AndroidRuntime: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
E AndroidRuntime: Caused by: java.lang.ClassNotFoundException: com.android.hotwordenrollment.common.EnrollmentUtil
E AndroidRuntime: 	... 10 more

Change-Id: I5e9605a3ecb9ec080aed554c1541ded9f25c188b
2021-02-01 14:34:15 +01:00
LuK1337
625e09ca3f sm8250-common: Pass OEM_TARGET_PRODUCT to kernel make flags
* OnePlus kernel adds -DUFS3V0 to KBUILD_CFLAGS for
  instantnoodle* and -DUFS3V1 otherwise.

Change-Id: I1cc104f973ead9dec3ab24a90d152c51798f3164
2021-01-31 14:29:44 +01:00
LuK1337
b32f70dd43 sm8250-common: Set ro.netflix.bsp_rev
* This prop makes Netflix select L1 instead of L3.

Change-Id: Idc0368803ca082e99392fb136f2cdc41a4cb0c87
2021-01-27 19:44:37 +01:00
LuK1337
8276504d67 sm8250-common: Decommonize audio amplifier firmware
Change-Id: Id262c31832d203fb04c1a36335f125547e1f850b
2021-01-24 15:55:07 +01:00
LuK1337
75c37b543c sm8250-common: sepolicy: Label ro.gfx.driver.1
Change-Id: I56ea28752ab8a1ef489adc7ab6547e86dfc220ca
2021-01-23 20:38:10 +01:00
LuK1337
443ade5112 sm8250-common: Set ro.gfx.driver.0 according to stock
* This was in stock /system/build.prop but since it's
  labeled as u:object_r:exported3_default_prop:s0 it
  may as well be put in /vendor/build.prop instead.

Change-Id: I5c03cedec64e7364c0733cd2ea416ca6a7b09089
2021-01-23 20:38:10 +01:00
LuK1337
0cd9a81dcf sm8250-common: Enable ro.audio.monitorRotation
* This was in stock /system/build.prop but since it's
  labeled as u:object_r:exported3_default_prop:s0 it
  may as well be put in /vendor/build.prop instead.

Change-Id: I462c575da006f096185f515ffb1b050d7bd4ae3c
2021-01-23 20:31:10 +01:00
LuK1337
a5e8df179d sm8250-common: Add liboemcrypto and its dependency
* For some users L1 isn't disabled on BL unlock.
  While this occurence is a true mystery that
  I wasn't able to reproduce on my hardware,
  it's totally fine to include these blobs in
  the vendor image so that these users can enjoy L1.

Change-Id: Ib5fdb7a41fec84a9df03296ad48473e70ce8f208
2021-01-23 17:28:11 +01:00
Alexander Koskovich
dba70894ea sm8250-common: Set gain of vibrator to 0x55 on boot
* Seems better than the default of 0x80, vibrator is
   a bit too strong by default.

Change-Id: I676b74aac3cbc1900c73b3236879479e8ecfca00
2021-01-22 15:45:53 +01:00
LuK1337
232c213a90 sm8250-common: Enable barometer sensor for SKU 9 and 11
Change-Id: I2a0568822557d1ce4217f092a695037c8329dc1a
2021-01-17 13:48:55 +01:00
chandra
b1f4027111 sm8250-common: Sort and remove duplicated packages under display group
Change-Id: I637d43c89aca0d9817e77996c0d2db394e2bdf34
2021-01-15 21:47:28 +01:00
LuK1337
f758a48142 sm8250-common: Add vintf fragments for all local Lineage HALs
Change-Id: Iffa3e7bc3d01c2c8975ee9ea2eb03adf93d175e6
2021-01-13 12:36:09 +01:00
LuK1337
30a4a42bb2 sm8250-common: Decommonize PowerShare HAL
Change-Id: Id6b79d04e3cac4ea602c2af27c3562227e3c0485
2021-01-13 12:09:00 +01:00
Bruno Martins
08c4245a54 sm8250-common: Drop prebuilt libwfdaac
Change-Id: Ia2b8b073b652c3969ac8b95c2ecce355754bd1b4
2021-01-12 21:08:04 +01:00
Indranil Chakraborty
79b4324a2a sm8250-common: Pack libwfdaac_vendor for WFD
Change-Id: I828918c42e1eb2963829d62a9dbeee83e2f0e600
2021-01-12 21:07:59 +01:00
Lubin Yin
14c6cdd034 sm8250-common: Deploy libwfdaac_proprietary for miracast
Change-Id: I7f00c9f0a0375d7007123614e7605e3915903b90
2021-01-12 21:07:45 +01:00
LuK1337
d2b4a13530 sm8250-common: Add 32-bit vendor.qti.hardware.dsp@1.0 HIDL lib
* Somehow this lib is being loaded by `media.codec` process
  and thus along with stagefright vendor plugin fixes video
  recording start timestamp (?)

Change-Id: Ib39fb9385b13947b5e1ec6f0bf7e62a22d7ab0c3
2021-01-12 04:37:43 +01:00
LuK1337
cddd4bebc4 sm8250-common: Build stagefright vendor plugin
Change-Id: I040a8fb7639e78a538f3d75bdaba2a6deb9b6825
2021-01-12 04:36:38 +01:00
LuK1337
122c9902a1 sm8250-common: Include device specific init recovery rc script
Change-Id: I7750ff22585a7b760d8b4d6f771fd7fe22db1e2e
2021-01-11 18:38:02 +01:00
Badhri Jagan Sridharan
e5d06f846a sm8250-common: Add usb hal service
BUG: 31015010
Test: Manually tested for type-c role switches.
Change-Id: Ibc81cf763a14c0975a7721588d6e8b81bd0b124c
2021-01-11 12:21:57 +01:00
LuK1337
22ab810b58 sm8250-common: Import surface flinger props from OOS
Change-Id: Iac8f215d02b0873f51a9ab0e35f5a659393b75e6
2021-01-11 03:59:45 +01:00
LuK1337
1412004719 sm8250-common: Increase /product image reserved size
Change-Id: Ifc90f64cff2748143bb341004520222e70d16e1a
2021-01-09 12:19:47 +01:00
LuK1337
9e70d87ab6 sm8250-common: Add PowerOffAlarm app
* Blob has been modified to add back MS_IN_ONE_MIN offset.

Change-Id: Ib69b4e00794c5d094a5e95e84281f7db205d423f
2021-01-08 14:31:39 +01:00
LuK1337
5df4fcc558 sm8250-common: Set SSR level to RELATED
Change-Id: I15871af43e62936ffde5e86aa1c0630bff909237
2021-01-08 14:31:38 +01:00
Ryan Mitchell
1d9989ef3d sm8250-common: Use component-override to configure Bluetooth
Runtime Resource Overlays (RROs) can no longer change the value of
resources in manifest when read during PackagerParser.

This change uses component-override to enable the service by default.

Remove usages of profile_supported_* from overlays as they no
longer configure the enable state of Bluetooth components.

Bug: 135048762
Test: adb shell pm query-services \
      com.android.bluetooth/.avrcpcontroller.AvrcpControllerService
      adb shell pm query-services \
      com.android.bluetooth/.hid.HidDeviceService
      adb shell pm query-services \
      com.android.bluetooth/.sap.SapService

Change-Id: I284d254a921b14d1533745611a083f4b5a27d9dc
2021-01-08 14:31:38 +01:00
LuK1337
08b67c59e8 sm8250-common: Restrict DSDS to intl variants
Change-Id: I8858ca1ce05a3354acea8f322bb34cc2192d81f5
2021-01-08 14:31:38 +01:00
LuK1337
f87d85bdd7 sm8250-common: Decommonize super partition size
Change-Id: I833f31bf639599fafd38e9f69cb073da1f0463b7
2021-01-08 14:31:38 +01:00
Jimmy Chen
b7b61bb523 sm8250-common: Move supplicant service init to wpa_supplicant
Bug: 138790309
Test: boot and wifi function is ok
Change-Id: I35cf3e03566443e20799623045eacd423fd7f5c4
2021-01-08 14:31:38 +01:00
Anton Hansson
59c42cbe94 sm8250-common: Enforce RRO for all resource overlays
Bug: 118823052
Test: make
Change-Id: I579d09480c7a482543ea616dd5c493d825bb98b1
2021-01-08 14:31:38 +01:00
LuK1337
c28ecd7875 sm8250-common: Decommonize fstab
* 8T uses different metadata/userdata encryption algo.

Change-Id: Ie19487d4b4efe17540dd8c018537d7e222f64abd
2021-01-08 14:31:38 +01:00
LuK1337
dfd05e2565 sm8250-common: Build vndservicemanager
* Needed for FCM >= R.

Change-Id: I6d5eb8084127e295e4abec2c0192c0ad5b07b867
2021-01-08 14:31:38 +01:00
LuK1337
46098650a7 sm8250-common: Add DEVICE_FRAMEWORK_COMPATIBILITY_MATRIX_FILE
* Needed for FCM >= R.

Change-Id: I5200b7a8d159cfd5ff91ad80fa714c215c7e01fb
2021-01-08 14:31:38 +01:00
LuK1337
f9c9767e3b sm8250-common: sepolicy: Initial vendor sepolicy
Change-Id: I28ae7907209b5aae9806466556dc49639dd7c9e4
2021-01-08 14:31:38 +01:00
LuK1337
507155e7a5 sm8250-common: Switch to QTI bootctrl HAL
Change-Id: Ie5079fd4c40cb1f7414f2cba9f98d350f03047d8
2021-01-08 14:31:38 +01:00
LuK1337
e7a726e756 sm8250-common: Enable OTG
Change-Id: I9a361ba93d94ee9a5cfeb8421367fae097837601
2021-01-08 14:31:38 +01:00
LuK1337
343e954111 sm8250-common: Start building vendor and odm
* Build whatever we can from source
* Import vintf compatibility_matrix and manifest
* Import stock vendor props

Change-Id: I905b2b6c388f6b76844e7cea2def70d10e164dab
2021-01-08 14:31:38 +01:00
LuK1337
f1b69167ae sm8250-common: Remove OnePlus vendor overlays
Change-Id: Id22dfbeabb9487e4ee67f914dbb4507115bf250f
2021-01-06 18:47:30 +01:00
LuK1337
da018dd3c6 sm8250-common: Re:Start sepolicy
* Drop all old rules, but keep tri-state-key.
* Also introduce dashd/wlchgd domain as they are needed for seclabels.

Change-Id: I0a7121f51d106d927866aead746a49b3dea6a149
2021-01-06 18:47:30 +01:00