Commit Graph

736 Commits

Author SHA1 Message Date
Hemant Kumar
773b278760 sdm845-common: init.qcom.usb: Add vendor.usb.configfs property
Set sys.usb.configfs property when vendor.usb.configfs is set.
This prevents two enumerations at boot up. First one is done
when system core init enumerates with adb only composition. Soon
after this vendor default usb composition switch happens. Sometimes
controller fails to halt in the middle of control transfers when run
stop bit is cleared to perform composition switch to initiate second
enumeration. This is resulting in to device enumeration SET ADDRESS
failure as controller stops accepting SETUP packet from Host.

Change-Id: I5a4840d8eedf59809cc4d158f95d35f0477830bb
2020-04-05 14:27:16 +02:00
Pratham Pratap
0ed33caaa2 sdm845-common: init: USB: Modify rules to support QDSS using SW or BAM path
On some targets, QDSS can be used over SW path. This change
adds an property for QDSS instance name which will be defined
for each target in target.rc file. That property can be changed
accordingly for targets which uses QDSS over BAM or SW.

Change-Id: Ibf9af45f20feb7434d15b02ff86c91fce914dbd2
2020-04-05 14:27:09 +02:00
Bruno Martins
583ba0b070 sdm845-common: Move back to TZ version assertions
Since Xiaomi stopped providing developer builds, this now looks
a more generic and at the same time accurate way of checking
if the needed firmware is installed in the target devices.

Change-Id: Ia057ae1a34746a5cc47bd29d1bac5fb7013a1004
2020-04-04 23:27:40 +02:00
Bruno Martins
7a5a4e237e sdm845-common: Remove Mirror Link service
According to CodeAurora, the ML project is de-PORed, whatever that means.

Change-Id: I90bfe119e6c47add333f0d96824987da91ee68ea
2020-04-04 18:01:03 +02:00
Li Li
b273d44783 sdm845-common: ueventd.qcom.rc: set permissions for /dev/sp_nvm device
/dev_sp_nvm is used by sp_iar_lib to store CMAC values for spu
 firmware and application

Change-Id: I2ac5f29b66448a526cdbc6a1ccefd5f80066c170
Signed-off-by: Li Li <liil1@codeaurora.org>
2020-04-04 15:40:30 +01:00
Amandeep Virk
aba63c164c sdm845-common: qcom: devices: Add iuicc device for Secure Processor
Add iuicc device that can be opened by spdaemon to create
iuicc channel and interact with iuicc application on the
Secure Processor

Change-Id: I2c37053a9e7445abfe4f0c11868277bbf133266a
2020-04-04 15:39:45 +01:00
Liron Daniel
abdb4df115 sdm845-common: ueventd.qcom.rc: Add permission to /dev/spu_hal_ssr
Needed for spu HAL service to register on spcom channel for ssr
notifications

Change-Id: I43f070bf9948d4330f9ae05f9d631f2681f75164
2020-04-04 15:39:00 +01:00
Timothy Sham
f3db3a6342 sdm845-common: add permission for i2c7 device
Add audio domain permission for i2c7 device node.

Change-Id: I5d99360985f0b58fa355e22b0e1dd9c3e7c08318
2020-04-04 15:35:32 +01:00
David Ng
15d42bb317 sdm845-common: config.fs: Add sys_boot cap to peripheral manager
Enable sys_boot capability to allow system reboot
to peripheral manager.

Change-Id: I04b67543c4d2e541b9699b6faa3337b2638b3257
2020-04-04 15:31:28 +01:00
Sidipotu Ashok
bdf3d31e05 sdm845-common: Define SYS_NICE caps for android.hardware.audio@2.0-service.
- Grant SYS_NICE capabilities to audio HAL processes as sound trigger
HAL threads need to run at real time priority as well as use the
CPU affinity, for far field voice.

CRs-Fixed: 2359951
Change-Id: Ie0da744978609c750e92aec2c6001ace1868ad31
2020-04-04 15:30:14 +01:00
Bruno Martins
cab5f8ee79 sdm845-common: Bump SPL to reflect latest blobs update
Common blobs from MIUI V11.0.4.0 global stable are now in use:

  ro.vendor.build.fingerprint=Xiaomi/polaris/polaris:10/QKQ1.190828.002/V11.0.4.0.QDGMIXM:user/release-keys
  ro.vendor.build.security_patch=2020-03-01

Change-Id: Ia01c1cbf018753cac53947bf31c7a582cb3706b8
2020-04-03 00:00:04 +02:00
palaych
aa4f192e4d sdm845-common: releasetools: Readd common import
Removed in 79d111f0bf, this is needed for perseus.

Change-Id: I53711c2417449ca4109894292b9d6b015b10c752
2020-03-26 18:59:50 -04:00
PIPIPIG233666
e261035d91 sdm845-common: Add missing fluence prop
Change-Id: I2a1c8ff905d10d6a8d93f26f032e830d02b16715
2020-03-14 21:30:24 +00:00
LuK1337
54044b9c23 sdm845-common: Remove hw_acc effect
* It doesn't work at all.

Change-Id: I60406590e44c77bf823a50272f24c16445725145
2020-03-14 10:01:15 +01:00
Bruno Martins
02d143d1ca sdm845-common: wifi: Pick config edits from Xiaomi for Q
The ETSI SRD channels enablement in particular fixes 5GHz tethering.

Change-Id: Ib9314ccca9fe5171ca7eba793e308eeac5628ac8
2020-03-10 23:08:32 +00:00
Ashish Kumar Dhanotiya
a7342a2063 sdm845-common: wifi: Remove TxPower2g and 5g from config file
Ini config values TxPower2g and TxPower5g are not
getting used anymore.
Remove TxPower2g and TxPower5g from WCNSS_qcom_cfg.ini
for all the targets.

Change-Id: Id85bec3e4ae3bb8012e13844bb0afa682a593fee
CRs-Fixed: 2607679
2020-03-10 23:08:32 +00:00
theandroid02
53fd164f98 sdm845-common: Enable HID profile support
This matches MIUI 11 stock configs.

Change-Id: Ied2164bbe38daa415e860d8b8cef4c7249ec3802
2020-03-02 22:26:19 +02:00
1nfrag
ee38d63387 sdm845-common: audio: Remove references to misoundfx lib
Solves:

EffectsFactoryConfigLoader: Could not find library in effect directories: libmisoundfx.so

Change-Id: I9d41ccf067d2c39dc51ee0260c52425ca36bfee4
2020-03-01 10:49:14 +02:00
dianlujitao
1fbd9506c4 sdm845-common: Force enable mobile network settings v2
* AOSP defaults to true but 10 QC telephony extension sets it to false.
 * Restore AOSP behavior by enabling it with a system property which has
   higher priority over global system settings which is used by QCOM w/o
   modifying the jar.

Change-Id: I45854b91bb8cfafabfe811777cda9f1e1840febf
2020-02-25 13:49:57 +05:30
Rashed Abdel-Tawab
612c904042 sdm845-common: Enable vendor and system property isolation
Change-Id: Ic73cd73c13220b804ec1c0a5fd1bd68470cf9db1
2020-02-24 22:43:09 +01:00
Bruno Martins
9cc2093330 sdm845-common: Split system, odm and vendor props
Change-Id: Iee726d7d95d2bc4abb14fcfdffc55a04aca6e1cc
2020-02-24 22:43:09 +01:00
Vinay Verma
64b4ae36cd sdm845-common: Add libdexfile_support to vndk-sp list.
Change-Id: I77c6137add7b0f4eec422f42870236c3bfe91715
2020-02-21 23:13:39 +01:00
Himanshu Agrawal
d8f0ceedfa sdm845-common: Remove *_OUT_INTERMEDIATE_LIBRARIES
Always use the exact libraries like Soong does instead.
Also, update vndk-sp-list as per latest compliance.

Change-Id: Ia3f7b57951aab7ac5eaf4c179b7bfb758e1d598f
2020-02-21 23:13:33 +01:00
Bruno Martins
35f53f8d75 sdm845-common: Remove redundant Treble override flag
Treble is fully enabled for all devices launched with API level 26 or higher
(which applies to all the targets of this common tree), therefore there's
really no need to override it.

Change-Id: Ia79aebda7fb922762f83948d0c19a6356ce343a8
2020-02-19 23:01:12 +01:00
Bruno Martins
dfcd36ae66 sdm845-common: Unset BOARD_VNDK_VERSION
PRODUCT_USE_VNDK will be true in Android-P or later launching devices
and consequently BOARD_VNDK_VERSION will be set to 'current'.
This applies to all targets except polaris, which will instead
override VNDK version in its own tree.

Change-Id: Iaed3eb4875c00742903627d63b4f2968e356781b
2020-02-19 23:01:05 +01:00
Weikai Kong
bdf150e9da sdm845-common: Remove global packages from PRODUCT_DEXPREOPT_SPEED_APPS
This reverts commit 10827db261 and 103e65a875.

Reason for revert: this is now done under vendor/lineage

Change-Id: Idf156ddfce4c1d7627850c47737eb80a374cedb1
2020-02-15 10:58:06 +01:00
kubersharma001
c2f17105bd sdm845-common: Add debug WFC prop to force enable it.
Change-Id: I006154d536c657084dcaa8bca86545bb5e7faf7c
2020-02-13 17:28:24 +01:00
Jorim Jaggi
e8765353ce sdm845-common: Refined early SF configuration for WCG
Test: Use photos, observe no jank
Bug: 110112323
Change-Id: Ib331d0b792ee1790963159a17ec24f36b4a1882a
Merged-In: Ib331d0b792ee1790963159a17ec24f36b4a1882a
2020-02-12 00:41:02 +00:00
Bruno Martins
103e65a875 sdm845-common: Add Trebuchet to PRODUCT_DEXPREOPT_SPEED_APPS
Change-Id: I437cc1af399c82e38128d9a183d49bc86c891915
2020-02-12 00:40:35 +00:00
Jorim Jaggi
7fc0a5ed2f sdm845-common: Enable early phase offsets
Since we frequently hit GL composition during transitions, it
makes sense to enable early phase offsets on crosshatch.

Test: Open apps, observe no jank
Bug: 79173695
Change-Id: Ie44b116b1a4f2c8fde1ba4decbbc6e3316686a5d
2020-02-12 00:40:34 +00:00
Ady Abraham
c9709ea061 sdm845-common: enable GL comp backpressure
Enable backpressure for client composition to avoid jank due to
HWC queue stuffing.

Test: 1. Open Camera
      2. Swipe horizontally to go back to previous app.

Bug: 138083790
Change-Id: I3d26aa470c1660b23bd97133f39858f92638aca8
(cherry picked from commit 4e8a210c0e3e6854cd34f432f52e3f4821e7b2d5)
2020-02-12 00:39:17 +00:00
razorloves
824d1d2d86 sdm845-common: Dexpreopt speed compile SystemUI instead of SystemUIGoogle
Change-Id: I3331f8e65898f8696953b2602b9ad963f7e4313d
2020-02-12 00:35:48 +00:00
Wei Wang
10827db261 sdm845-common: add SysUI to PRODUCT_DEXPREOPT_SPEED_APPS
Test: Build
Change-Id: I088938462b389e1ebe783997f773dc5946345666
2020-02-12 00:35:25 +00:00
Bruno Martins
085d5c34bd sdm845-common: Update MIUI offmode charging daemon and its path
Change-Id: I46bda03f9a9eacf19e386d9a32870638650d4505
2020-02-12 00:29:16 +01:00
TheScarastic
a7e383febf sdm845-common: Add vibration tuning from stock MIUI
Change-Id: I8701294921d006f6ca762a1d83b4e80031c7652c
2020-02-12 00:29:16 +01:00
TheScarastic
e852972846 sdm845-common: Force enable VoLTE
For some reason VoLTE wasn't working on some carriers even with
updated carrierconfig overlays, so add it for now.

Change-Id: I18b5356e1f5b8c8623e569a1fc526394e7e9e247
2020-02-12 00:29:16 +01:00
Henrique Pereira
9178dad152 sdm845-common: power: Bring back fts definition
Some variants of dipper have fts instead of fts_ts.

Test: DT2W works again with this touchscreen type on dipper.

Signed-off-by: Henrique Pereira <hlcpereira@pixelexperience.org>
Change-Id: I75ab85e1badbb4bc22fec073c4382e4da1634593
2020-02-11 16:33:18 +01:00
Bruno Martins
d9a18ba693 sdm845-common: power: Remove CPU freq boost on power key input
Support has been removed from the kernel.

Change-Id: I4db18c2766e81562b1902212bd95b0f86e5db205
2020-02-09 15:35:53 +00:00
Bruno Martins
c64110ca04 sdm845-common: Add "system/" prefix to system blobs path
Change-Id: Id94956fbfd9695f398fd0580548aa17e9d0d126b
2020-02-08 22:37:31 +00:00
Bruno Martins
a189d636ce sdm845-common: Move aptX blobs to proper location
These blobs now live in /product.

Change-Id: Icad7fc3bed1374cc1d8f2383fc649a04b2bf67fc
2020-02-08 22:25:02 +00:00
Bruno Martins
a7af6d2712 sdm845-common: power: Fix FTS touchscreen device input name
Test: D2TW works with this touchscreen type.

Change-Id: Ic15d9622d213a947702e3706db174936a4ee3a3d
2020-02-06 19:34:57 +02:00
kubersharma001
6b1e8d7d96 sdm845-common: Do not enable updatable APEXes on every target
This reverts commit 52a78a2af1.

It can't really be enabled for beryllium, as apexd requires /data/apex
to be available right after boot to update all the Android modules.
As in all FDE devices, /data/apex is encrypted until the device
is unlocked by the user, rendering APEX basically useless as only
the system APEX variants will be loaded at boot.

test:
beryllium(FDE):
Boots with forceencryption after a clean install.
Boots after wiping data, system and flash over MIUI 11 - Q encrypted.

polaris(FBE):
Unaffected, everything still works.

Change-Id: I0649862e5c5b2c1a1cb597914a11df79b3e01957
2020-02-05 23:19:46 +00:00
Bruno Martins
049d8e1444 sdm845-common: Fix A2DP when offload is disabled
Ensure that A2DP still works in case one disables offload in the
Developer options for whatever reason.

Change-Id: I89fd37962b2d063d6e30f84234568d552131fd97
2020-02-04 21:39:34 +01:00
Bruno Martins
174ebc6721 Revert "sdm845-common: Mark as having overridden commands"
This reverts commit de8670a555.

Overriden commands? Not anymore.

Change-Id: Id435e0fda13babadd5fbc2fe1c790e5a1fdba6df
2020-02-04 21:39:26 +01:00
Bruno Martins
e19933276a sdm845-common: Ship all stock audio HAL extensions
Change-Id: I4660a5ea0e29a1fab8d25cd0b5389decc224fa2e
2020-02-04 21:37:21 +01:00
Arian
3f2b0357d8 sdm845-common: Drop QC implemenation for audio sw effects
* AOSP implementation is used since 05a197da8c

Change-Id: I4de7bfcac10c673087ca6be900ed8804c503e7a2
2020-02-04 21:35:51 +01:00
Bruno Martins
eba7658462 sdm845-common: Blob out A2DP offload library
These targets are using prebuilt audio HAL and for some reason,
using the source-built lib breaks A2DP. Just use prebuilt one
and be happy with it.

Change-Id: I37a5601afdbfdcb81a1053b366fad79fadf4eaa7
2020-02-03 23:33:52 +00:00
1nfrag
9c8082c9f8 sdm845-common: Enable BT A2DP offload
Change-Id: I3c7120f5f29605a939d0ca78054894e2cafcca65
2020-02-03 23:33:52 +00:00
Cheney Ni
47a2f9aea8 sdm845-common: Support A2DP offload for Bluetooth Audio HAL V2
Remove primary flags from hearing aid also.

Bug: 124277691
Bug: 124014853
Test: manual with BluetoothAudioHAL enabled / disabled
Change-Id: Ibc86687a6a6c2f0767a213ccd408e7bb5de98985
2020-02-03 23:33:52 +00:00
Bruno Martins
c5925481a0 sdm845-common: Bump security patch level to match MIUI 11
Change-Id: I4a74b696806b99ff1dfd7477b0faeeaf7cc73df5
2020-02-04 00:33:17 +01:00