Commit graph

644 commits

Author SHA1 Message Date
LuK1337
6cac812f0b sm8250-common: Decommonize BOARD_ONEPLUS_DYNAMIC_PARTITIONS_SIZE
Change-Id: I8e423551a64bcf3cb96ff30a04fa56cdfa0d2d0e
2021-04-02 02:05:28 +02:00
LuK1337
fea51bce3c sm8250-common: Update blobs from OOS 11.0.5.5
Change-Id: Iaa7ca6c73513a4bccda4c6738d78b47bf52630dd
2021-03-30 12:13:40 +02:00
LuK1337
5ae4426e8f sm8250-common: sepolicy: Allow vendor_sensors to read project info
This is necessary so that SSC sensors HAL can
expose hw_id/project to sensor configs.

Change-Id: I9130ac5985c0924b01937ece15740d08e04d0bbf
2021-03-25 19:09:32 +01:00
LuK1337
dbaff453fe sm8250-common: Add vendor.lineage.power.IPower to compatibility matrix
Change-Id: Id3a1ef18a9d2b09a32d889ce7d533f927d18a9aa
2021-03-24 15:26:41 +01:00
LuK1337
1157082e8c sm8250-common: KeyHandler: Use mode specific vibration effects
NOTE: This change depends on following SystemUI change:
- https://review.lineageos.org/c/305900
- https://android-review.googlesource.com/c/1648967

Fixes: https://gitlab.com/LineageOS/issues/android/-/issues/3019
Change-Id: Ifc16a469311c4dd7ce9ef8633ab66546ef4e6ede
2021-03-23 10:24:59 +01:00
LuK1337
c943073afe sm8250-common: sepolicy: Remove init.te
How did that end up here???

Change-Id: I4ec4382f84e2e5f66a6779b5f5920511e09d8d84
2021-03-21 15:49:17 +01:00
Erfan Abdi
b9c5c96fad sm8250-common: Add APN hack for sprint 312 530
* This hack adds 310120 APNs to 312530, so we can have LTE+ on it

Change-Id: I9184348ee58dbf0239fce5cf69b7826b5e7a3ed1
2021-03-20 15:10:44 +01:00
Erfan Abdi
041cd132b7 sm8250-common: Set right Sprint APNs
* We need the new Sprint APNs (x.ispsn.*).

Change-Id: I8680ed8ae214c7e76dc177f1db8474e092b03a37
Signed-off-by: Erfan Abdi <erfangplus@gmail.com>
2021-03-20 15:10:44 +01:00
chandra
2d239e9f10 sm8250-common: livedisplay: Switch to vendor display mode prop in .rc
We forgot to do that after we moved livedisplay to vendor.

Change-Id: I0cff7e5da11f4c544189185ef784941cfe30bfec
2021-03-16 09:50:59 +01:00
LuK1337
dfc13143a3 sm8250-common: sepolicy: Label OEM /data top-level directories
Fixes boot up after booting once in permissive mode,
alternatively that could be fixed by removing mkdir
instructions in *.rc but I'd rather add couple SELinux
lines than diverge from stock scripts.

Change-Id: I32e4461745c6738a6c7579e5e93481d4186972f2
2021-03-12 00:15:28 +01:00
LuK1337
16c1dc83b2 sm8250-common: audio: Switch speaker-dmic-endfire ACDB id to 43
Apparently switching SND_DEVICE_IN_SPEAKER_DMIC_AEC_NS to the
same ACDB id as SND_DEVICE_IN_VOICE_SPEAKER_DMIC improves
WhatsApp microphone volume when in speaker mode.

Change-Id: I4eb72fd2726d8ea10da56a76b820ee51a24d3c67
2021-03-07 23:06:43 +01:00
Alexander Koskovich
4a242e6a1f sm8250-common: amplifier: Clean up makefile.
Change-Id: I416005aec3e4b6a686079d7e4796e5b548ee0e9f
2021-03-02 20:58:04 +01:00
Pig
623635f450 sm8250-common: amplifier: Fix device list initializations
Update missing device list initializations.

Reported-by: Signed-off-by: SayanAcharya <rowdysayan99@gmail.com>
Co-authored-by: Signed-off-by: SayanAcharya <rowdysayan99@gmail.com>
Change-Id: Iaa44429e7a2514f882828089355fca1634b79200
2021-03-02 18:56:18 +01:00
PIPIPIG233666
278ffc532d sm8250-common: Add custom audio amplifier for TFA amp feedback
* Based on observing reverse engineering from davinci stock audio HAL.
 * Fixes speaker distortion on high volume.

 * Same logic with Smosia, rewritten by me.

Co-authored-by: Smosia <stasenko_nv@nrcki.ru>
Change-Id: I369555a9fcb06065177636b436d2e006c7a0b07d
2021-03-02 18:56:18 +01:00
chandra
c5ba644983 sm8250-common: Correct media codecs copy destination
Change-Id: I4ac12b4945aea67df067e1778f6e0c7aa1b790ad
2021-03-02 11:08:40 +01:00
LuK1337
b710ebaaf3 sm8250-common: sepolicy: Remove commented out rules
Change-Id: I026d7f6f0185773d5aa8a5e0f53b70323551f5cf
2021-02-19 15:57:10 +01:00
LuK1337
d1d109c825 sm8250-common: Bring in TOF sensor HAL
Change-Id: Ic5296a9ecf96f9a7fec5f523f9c59bfb68a0704f
2021-02-16 19:18:10 +01:00
dianlujitao
0a0b0f26f8 sm8250-common: Switch to source built vendor.qti.hardware.perf@2.0.so
Change-Id: Ia5de8c300d71b6def223e97ef9d58898c9c11a57
2021-02-16 13:28:27 +01:00
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