400 Commits

Author SHA1 Message Date
Lucchetto
c9c3826f67
miatoll: Use libhidlbase from VNDK v32 for Goodix interface
* _ZN7android8hardware7details17gBnConstructorMapE and
  _ZN7android8hardware7details17gBsConstructorMapE have been
  removed in Android 13.

Signed-off-by: Lucchetto <lucchetto.tie@live.com>
Change-Id: I03ec2e4d709500cf01f8354cfba4dfa485b03293
2022-11-18 13:03:40 +00:00
Alexander Winkowski
43506e0897
miatoll: Build libpiex_shim for camera
Change-Id: I7f52646e518cf4818036a9ae4191b38a7ac8b6df
2022-11-17 19:15:29 +00:00
LuK1337
82d6f333e9
miatoll: Pull appropriate USB props from vendor_product.mk
Change-Id: I93b25c5d0989c83d1c8d7b7946a083771febdddd
2022-11-17 19:15:29 +00:00
Johnny Lee
f58073beb7
miatoll: sepolicy: label extcon files
Bug: 199218084
Test: boot with those files labeled
09-09 10:39:55.703  1660  1660 W android.ui: type=1400 audit(0.0:6):
avc: denied { read } for name="name" dev="sysfs" ino=62812
scontext=u:r:system_server:s0 tcontext=u:object_r:sysfs_extcon:s0
tclass=file permissivei=0

Change-Id: Iba001f99cf9290f55f860382829c8ce74912f14c
2022-11-17 19:15:28 +00:00
Jaegeuk Kim
a01f8714c4
miatoll: rootdir: Remove discard command tuning
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Change-Id: Ia67b48f0e2448ab296c942eb2b6d10cf858472ff
2022-11-17 19:15:28 +00:00
Nate Jiang
d4648c5e4a
miatoll: Enable set channel on NDP setup
Bug: 190354626
Test: build, CtsVerifier
Change-Id: Ieff18b96ec0f24c1c20c40add4e47a532ece8922
2022-11-17 19:15:28 +00:00
Les Lee
c1892417dd
miatoll: wifi: Configure correct overlay configuration.
ag/16564596 will change default value to false.
Configure correct overlay configuration.

Bug: 212488775
Test: manual test & build
Change-Id: Iaf1a0a23dae69fde5995e591a757a8ef5374d5b5
2022-11-17 19:15:28 +00:00
Robert Shih
d319abebff
miatoll: enable AIDL DRM HALs
Bug: 219538389
Test: atest GtsMediaTestCases
Change-Id: I431554dcbef014f8235f048ee062a218a2131f9c
2022-11-17 19:15:27 +00:00
Bruno Martins
22b14c584a
miatoll: overlay: Remove BT related configs
These have been migrated to sysprops in Android 13.

Change-Id: I34c1f6b882a61df6db95523997002512354d875e
2022-11-17 19:15:27 +00:00
Michael Bestas
b50ef8e382
miatoll: Remove bdroid_buildcfg.h
As of I3c7aed1bdb45db728d319f7d757400e44d232283 the Bluetooth stack
defaults to reasonable defaults that should work for all devices.

Change-Id: I056d63c4c8a2727e384172e964dc0000b6773504
2022-11-17 19:15:27 +00:00
Josh Wu
91a08d9f13
miatoll: Switch BtAudio to AIDL
Test: m
Bug: 203490261
Change-Id: I4b8ac40d5ad410b89eb6a0573d740d86471ecfc7
Merged-In: I4b8ac40d5ad410b89eb6a0573d740d86471ecfc7
2022-11-17 19:15:26 +00:00
Alexander Koskovich
bbfe405cdc
miatoll: Move Bluetooth power overlays to sysprops
* These were moved to sysprops in Android 13 [1] and while
   frameworks reads the values directly from power_profile.xml
   Bluetooth app reads from the properties.

 [1] 976d33062b%5E%21/#F0

Change-Id: I5bff67a15c537e8a47a19f30776fca6bf2c9fbe5
2022-11-17 19:15:26 +00:00
Alice Kuo
49d5d96c9a
miatoll: Disable LE audio related profiles
Bug: 231671426
Test: build
Change-Id: I57eaa7abe70e4c7739c707b09dc95530e10b5586
2022-11-17 19:15:26 +00:00
Sal Savage
a89bedb4c0
miatoll: Set default the Bluetooth class of device
The class of device is a string with a list of uint8t values:
90,2,12

The meaning is as follows:
{Service Field, Major class, Minor class}

Service Field: 0x5A -> 90
    Bit 17: Networking
    Bit 19: Capturing
    Bit 20: Object Transfer
    Bit 22: Telephony
MAJOR_CLASS: 0x02 -> 2 (Phone)
MINOR_CLASS: 0x0C -> 12 (Smart Phone)

Bug: 217452259
Test: make -j; -- check that bluetooth.device.class_of_device is
correct

Merged-In: I75a6fb83a6149f58372b7aa46ccc190fd4451ab0
Change-Id: I75a6fb83a6149f58372b7aa46ccc190fd4451ab0
2022-11-17 19:15:26 +00:00
Sal Savage
e060370414
miatoll: Update LE Audio profile properties
Bug: 217448211
Test: atest BluetoothInstrumentationTests
Merged-In: I0d23d92ae4d75d6658c2ab2ca25122dd5ac68300
Change-Id: I0d23d92ae4d75d6658c2ab2ca25122dd5ac68300
2022-11-17 19:15:25 +00:00
Sal Savage
e7f76528e9
miatoll: Enable Bluetooth profiles with properties
Bug: 217448211
Test: make -j
Merged-In: I0a76275baf2c80894b6be71d79b3265021ac921b
Change-Id: I0a76275baf2c80894b6be71d79b3265021ac921b
2022-11-17 19:15:25 +00:00
Alexander Winkowski
66372f27a5
miatoll: Define PID 1.0 thermal HAL feature
Change-Id: I88074a61369a066886a3d64de1843b342e357a40
2022-11-17 19:15:25 +00:00
Bowgo Tsai
968e78ea6e
miatoll: Removing GSI keys
Those keys will be embedded into VtsSecurityAvb on host side
instead, to verify the GSI image used on the device.

Bug: 149806769
Test: tree hugger
Change-Id: If0835179ab5332e94170f3cbdd1b708c9388e435
2022-11-17 19:15:13 +00:00
Alexander Winkowski
f6df761250
Merge sm6250-common into miatoll
Change-Id: I870ee30f1c9b8e612ec4acf1e33654ec2f6eb9fd
2022-11-17 19:14:57 +00:00
Sebastiano Barezzi
80f5acee8f
sm6250-common: Use RSA4096 keys for recovery and vbmeta_system
* Per https://android.googlesource.com/platform/external/avb/+/master/README.md#build-system-integration, SHA256_RSA4096 is used if BOARD_AVB_ALGORITHM isn't defined
* We can assume bootloader is able to understand RSA4096 keys for recovery and vbmeta_system as well

Change-Id: I7325387ed4bf04407629c48bbc2e7126c151c192
2022-11-13 10:49:31 +00:00
razorloves
51c784b7c3
sm6250-common: Don't limit inodes on /system_ext
This fixes the issue where the MindTheGapps zip install is
incomplete due to /system_ext only having 5 free inodes.

Before:
~$ df -h
Filesystem     Size   Used  Avail   Use%  Mounted on
/dev/loop0     352M   323M    22M    94%  /system_ext

~$ df -i
Filesystem   Inodes  IUsed  IFree  IUse%  Mounted on
/dev/loop0      528    523      5   100%  /system_ext

After:
~$ df -h
Filesystem     Size   Used  Avail   Use%  Mounted on
/dev/loop0     352M   323M    22M    94%  /system_ext

~$ df -i
Filesystem   Inodes  IUsed  IFree  IUse%  Mounted on
/dev/loop0    96000    523  95477     1%  /system_ext

Fixes: https://gitlab.com/LineageOS/issues/android/-/issues/5013
Change-Id: I4a1e9c10d5b8b23d19a4f71091ec743d472794dc
2022-11-13 09:40:43 +00:00
Arian
ccc1b7f640
sm6250-common: Don't explicitly build fs_config_files
The fs_config_files for each partition is already added to
PRODUCT_PACKAGES by base_{product,system,system_ext,vendor}.mk.

Change-Id: Ifbadacd5cb20beca70ed8b3accb3baf86a989c92
2022-11-13 09:40:43 +00:00
Bruno Martins
205ae2b9e3
sm6250-common: Remove deprecated notch overlay
The config has been removed since the centered display cutout
is now programatically detected.

Change-Id: Idcb96fe444c555a4110f7ed94e7774b413e35c33
2022-11-13 09:40:43 +00:00
Alexander Winkowski
57cb4d91aa
sm6250-common: audio: Import Xiaomi soundtrigger changes
Change-Id: Ie780e1fc452541338af1e1f888cfeb0ea9532d4b
2022-11-13 09:30:16 +00:00
Alexander Winkowski
f2107c5c1b
sm6250-common: audio: Use the correct sound_trigger_mixer_paths
It turns out that soundtrigger has a hardcoded list of platform-specific
mixer paths files defined in sound_trigger_platform.h and wcd937x is not
there. Import the generic path from LA.UM.9.1.r1-12600.01-SMxxx0.QSSI13.0
to make soundtrigger work.

Change-Id: Ief47ff9b1459e680d4b54c62da93b6ac2e21f190
2022-11-13 09:27:34 +00:00
Revathi Uddaraju
067911f386
sm6250-common: Enable multi-stage SVA
Change-Id: I5bced49059bb5d98c647e7688899a1314ef1571d
2022-11-13 09:06:03 +00:00
Alexander Winkowski
41aedba2ad
sm6250-common: Remove deprecated listen libs
libadpcmdec and libsmwrapper are not used in OSS soundtrigger HAL.

Change-Id: Ibcd86e165355154b12af851db6885b76b33e74d4
2022-11-13 09:04:39 +00:00
Sebastiano Barezzi
3f3511bd67
sm6250-common: Import libcapiv2svarnn.so
Change-Id: I9cb0191111fe97821f73bbddb6ca0e9e40c34a04
2022-11-13 09:04:38 +00:00
Sebastiano Barezzi
79019c4f6a miatoll: Downgrade camera blobs to Android 11
* New blobs requires new kernel changes, which are unreleased at the moment

Change-Id: Icb69504ffb841390c7fd601c2be06c28118167c8
2022-10-08 06:57:53 +02:00
Sebastiano Barezzi
7658d416fb miatoll: Import some missing camera sensor modules blobs
Change-Id: Ic40a06c7d1585c9b936defd19892683d4537cc7e
2022-10-08 06:57:53 +02:00
Sebastiano Barezzi
0b5a283319
sm6250-common: Pin camera blobs from Android 11
* New blobs requires new kernel changes, which are unreleased at the moment

Change-Id: Ieb6e0106e19c94723a804c85833052c5e91476ee
2022-10-08 04:26:35 +00:00
Sebastiano Barezzi
2e4c553cd5
sm6250-common: Reorganize camera blobs list
Change-Id: I7cdf60816e24cd9aa037ca1c4101b658b1367fce
2022-10-08 04:26:30 +00:00
Sebastiano Barezzi
9c9cb917f5
sm6250-common: Remove MIUI camera blobs
Change-Id: Ie1d09f685a31691bc6ddfa0c30637f076d159810
2022-10-03 21:33:52 +02:00
Sebastiano Barezzi
e5934107e6
sm6250-common: Import 32 bit CamX libraries
* Fixes camera freezes

Change-Id: Iaac91b252cc02bf9af972288f9dbe44b5ad003cb
2022-10-03 21:25:05 +02:00
Sebastiano Barezzi
8ddef50cea
sm6250-common: Sort blobs list
Change-Id: Ia7d704c85c2df5aaa54d099155f27bca8a7dfc8d
2022-10-03 21:05:34 +02:00
Alexander Winkowski
4df9c64cf3
miatoll: Upgrade Indian curtana to Redmi Note 10 Lite
Because Indian version of Redmi Note 9 Pro is identical to Redmi Note 10 Lite,
choose the latter name to not intersect with Global version of Redmi Note 9 Pro.

Change-Id: I12901a6427fcdde77055eebc6e0c4c7979ab9f75
2022-09-26 10:19:20 +00:00
Alexander Winkowski
3f88f5b3e9
sm6250-common: powerhint: Refine for reduced power consumption
Tune powerhint.json using freqbench results [1]. Instead of increasing
SchedTune boost, just boost big cluster to 825 MHz on interaction as
it's the most efficient frequency. Replace 1248 MHz with a more efficient
1324 Mhz frequency step.

[1] https://github.com/kdrag0n/freqbench/tree/96d72eac/results/sm7125/main

Change-Id: I6655484527feecc3e0c815ddab3be319643cd92c
2022-09-06 17:16:04 +00:00
Alexander Winkowski
b14576f34f
sm6250-common: powerhint: Remove TASchedtuneHighCap
It hasn't been added to the new kernel for simplicity.

Change-Id: I82b0851345c57372a497ff64d2f81c5579e92662
2022-09-06 16:41:19 +00:00
Alexander Winkowski
5e4269470d
sm6250-common: rootdir: Add recovery entry to fstab
Change-Id: I90f864d4ab09c0ba7ed61ad86758b0c82effe344
2022-09-06 16:38:50 +00:00
Alexander Winkowski
ad16ea511a
miatoll: Rearrange common and target device trees
Change-Id: I5ce121204a9ba81d11f30bd1ddf57aeafc6b8f54
2022-09-04 14:32:09 +00:00
Alexander Winkowski
7b20b67ff6
sm6250-common: Rearrange common and target device trees
Change-Id: I5ce121204a9ba81d11f30bd1ddf57aeafc6b8f54
2022-09-04 14:31:54 +00:00
Georg Veichtlbauer
eb18f2f516
miatoll: overlay: Update deprecated screen power items
* screen.on -> screen.on.display0
* screen.full -> screen.full.display0

AOSP frameworks/base: 8ac63071a4e6da7e0740f5eb6c6753218efcfd3a

Change-Id: Iad50e6cb63368e2d71e6fa1dbb6997c0f95d321e
2022-09-04 09:56:48 +00:00
Alexander Winkowski
9d431ff21c
miatoll: Update blobs
* curtana: V13.0.2.0.SJWMIXM
* joyeuse: V13.0.1.0.SJZMIXM

Change-Id: I0c7d79387629dde54cf875d4dd66c37d61b8ba3c
2022-09-04 09:56:37 +00:00
Alexander Winkowski
e5f08782f3
sm6250-common: Update copyright headers in modified files
Change-Id: I256eb65e4e2df3bb4cca174145976bd46016aed1
2022-09-04 09:45:28 +00:00
Sebastiano Barezzi
c4c62db493
sm6250-common: Add copyright header to Android.bp
Change-Id: I7b3bcf8019a98f93f8b6e8039a2a3153b15a306f
2022-09-04 09:38:35 +00:00
Alessio Balsini
0adc6f4264
sm6250-common: Use FUSE passthrough by default
Enable the persist.sys.fuse.passthrough.enable flag for the P21 device
configuration to enable the FUSE passthrough feature.
This feature has been enabled on Cuttlefish, Wembley and Redbull devices for
months and no issues have been detected yet.

Bug: 168023149
Test: 'adb shell getprop | grep persist.sys.fuse.passthrough.enable',
    ScopedStorageTest
Signed-off-by: Alessio Balsini <balsini@google.com>
Change-Id: I3f39b02af436f7e508bb70efc702565a667a051c
2022-09-04 09:34:41 +00:00
P.Adarsh Reddy
78df45d6b9
sm6250-common: Enforce android-S new launch debugfs restrictions
Change-Id: I78878e1c4177c07d66b13e5659d4360252c5f87b
2022-09-04 09:24:07 +00:00
Alexander Winkowski
3f31a5561d
sm6250-common: Remove android.hidl.base@1.0
* Not referenced by any blobs.

Change-Id: I8f0d4b65972ffc49d5c47fd23a6f3eb939f3a0db
2022-09-04 09:24:06 +00:00
Alexander Winkowski
26e3fcee51
sm6250-common: Control wfdservice64 with vendor.wfdservice prop
Change-Id: I984c413ce2455065b717c04df02cd2d121640798
2022-09-04 09:24:00 +00:00
Alexander Winkowski
9fa7f92b82
sm6250-common: Disable UBWC for WFD
As it turns out, atoll does not support UBWC:
[drm:sde_encoder_virt_atomic_check:1028] [sde error]enc43 mode unsupported, phys idx 0
[drm:sde_encoder_phys_wb_atomic_check:769] [sde error]invalid output format 3231564e

Change-Id: If445caf152428abb3dce74091dac9b4c9d2e26d5
2022-09-04 09:19:28 +00:00