Commit graph

426 commits

Author SHA1 Message Date
Wang Han
5da67e0fae sm8250-common: Drop deprecated configstore flags
* These are converted to props, which we have already set.

Change-Id: I8449041eec5c8ab4153bd2942ebc7fda9ceb7432
2021-02-09 14:15:47 +01:00
Bruno Martins
6dca1a4e7f sm8250-common: Remove deprecated telephony flag
The custom jar is dead for good in Android 11.

Change-Id: I7f0f7afd186b00f01183bf4479092d03897e074a
2021-02-09 20:57:04 +08:00
LuK1337
2ed8019dd4 sm8250-common: Import config/script changes from OOS 11.0.4.4
Change-Id: I90d3f654f18d90d25f7b2321dbfebfecc79ee958
2021-02-08 20:12:21 +01:00
Nicholas Ambur
6edfb6eea4 sm8250-common: Add SoundTrigger HAL v2.3 support
Bug: 139071862
Test: gts-tradefed run gts-dev -m GtsAssistIntentTestCases
Change-Id: I2d17aade762ceb7800d5305119c37ec0f5991f35
2021-02-08 20:07:51 +01:00
LuK1337
4e686f34db sm8250-common: Bump vendor SPL to 2021-01-01
Change-Id: I51f03ee2b49dc83ab7a01388152c4476d9212be1
2021-02-08 19:57:04 +01:00
Han Wang
8cf80ff918 sm8250-common: tri-state-key: Add vendor. prefix to svc name
Change-Id: I616c359d7f9204be1dcb7008f4c44ceec92cd150
2021-02-08 15:08:47 +01:00
Hikari-no-Tenshi
19525f89df sm8250-common: tri-state-key: Add hall sensor calibration support
Change-Id: I8449041eec5c8ab4153bd2942ebc7fda9ceb743e
2021-02-08 15:06:53 +01:00
LuK1337
2412a59d46 sm8250-common: tri-state-key: Relocate to /vendor
Change-Id: Ic70173b82ded0151e98fcfa4023b8a081cd67874
2021-02-08 14:59:28 +01:00
arian
cf6e99f02a sm8250-common: doze: Add vector icons
* from https://materialdesignicons.com/ with small changes

Signed-off-by: Anunay Maheshwari <anunaym14@gmail.com>
Change-Id: Ibbb18065f97ed6f8f5376752495255aeafe1db82
2021-02-05 11:27:16 +08:00
Bruno Martins
043a8d113c sm8250-common: doze: Use all shared resources from devicesettings
Change-Id: Icd7f381c574ea36eb4d797cefd60ba9f1a0941bd
2021-02-05 01:19:02 +01:00
Prakash Pabba
ab3f0df0d6 sm8250-common: Add Ethernet type in network attributes
testGetAllNetworkInfo CTS test fails for instant
mode due to no ethernet type network attribute
support and selinux denial to find ETHERNET_SERVICE.

Add ethernet type network in network attributes overlay.

Change-Id: Ie70df6c0473aa1b20d383f2892d18a2f0583c7a9
2021-02-03 14:43:07 +01:00
Aalique Grahame
fbcac66dd9 sm8250-common: overlay: Add audio related features
Add audio related features present in android config
file to overlay config file.

CRs-Fixed: 2088093
Change-Id: I45f6d3ea68204ab254846726f0fe14bea91bb602
2021-02-03 14:42:31 +01:00
NAGASHREE S
ad63669730 sm8250-common: HFP: To enable the inband ringtone property
The change enables the inband ringtone
property.

CRs-Fixed: 2403633
Change-Id: Ib3e5cf66cad1afc40357f169ebfaeb762fdbf41e
2021-02-03 14:41:40 +01:00
Vineeta Srivastava
4f4ad31bd2 sm8250-common: Enable vt for this device
Bug: 27685376
Change-Id: Iecfea824c9fe7aca76fa86de6df68ed6f95bf154
2021-02-03 14:40:31 +01:00
Sunmeet Gill
8d74aa84a1 sm8250-common: Add 5G NR buffer sizes
CRs-Fixed: 2265499

Change-Id: I6d8a22721ffcbec02cb8ab8be85060f458afd4ab
2021-02-03 14:38:19 +01:00
Han Wang
e040fd281b sm8250-common: Correct TARGET_RECOVERY_PIXEL_FORMAT
* This was duplicated and set to wrong value eventually.

Change-Id: I4c397d787aaddf02254f750298ffcde64269d386
2021-02-03 04:14:25 +01:00
Wang Han
24dc525881 sm8250-common: Remove obsolete tethering overlays
* These are moved into Tethering package since R but I
   cannot find any RRO for them on OOS. Remove them
   and use default values as they just work for us.

Change-Id: I45cff81e1159613094440dd7b2b73b53519c9de3
2021-02-02 14:57:40 +01:00
Bruno Martins
8c5cb959db sm8250-common: Use CodeAurora ImsService implementation for RCS
There is no evidence that Qualcomm devices running a rather recent IMS
stack need to include AOSP RCS packages. RCS already worked before this
change and continues to do so, but the main goal was to get rid of some
of the RCS related log spam, which was accomplished here.

Change-Id: I219546e29d288373877e9bcd194a60ef5e09f224
2021-02-02 14:57:40 +01:00
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