417 Commits

Author SHA1 Message Date
Alexander Winkowski
5a21614da8
Revert "[TEMP] Revert "sm6250-common: Enforce android-S new launch debugfs restrictions""
This reverts commit 55c65cd1523a4f198ac81d3c39d7354bdcc23e2d.

Resolved in PE source.

Change-Id: If3f49f10726aabd5752db3574ba26d1466a29ec3
2023-01-06 08:48:57 +00:00
Alexander Winkowski
209ea4bd86
Revert "[TEMP] miatoll: Build dummy libmegface"
This reverts commit 224c67dbb382bb1aff3652d9aec6cac8374264aa.

Resolved in PE source.

Change-Id: Idd49591edff1e89317782fb875a98b46a9bf5eda
2023-01-06 08:48:57 +00:00
Alexander Winkowski
0b6d328cf1
miatoll: Build LiveDisplay
Change-Id: I05d9aaea5177f005885194c94b08642024bdc623
2022-11-20 12:38:17 +00:00
Alexander Winkowski
55c65cd152
[TEMP] Revert "sm6250-common: Enforce android-S new launch debugfs restrictions"
This reverts commit 78df45d6b953f85e5cad1b66c6aefccda78c4d5d.

Change-Id: I2ccc24460ab4a31c3b263c5d0c0e49de4ff4d1fc
2022-11-20 07:37:02 +00:00
Alexander Winkowski
e46c452d83
[TEMP] Revert "sm6250-common: Build libssrec from source"
This reverts commit 01ca9ce4bd8c3ca5ebe547ecc79021f02d7c3bd3.

Change-Id: I46087543b4d39dbdb5da598ebb4fbc323446bfdb
2022-11-20 07:37:02 +00:00
Alexander Winkowski
224c67dbb3
[TEMP] miatoll: Build dummy libmegface
Change-Id: Ie7cfd3a87ccc40e0308e7dbbd93827c3f153fc9c
2022-11-20 07:37:02 +00:00
Alexander Winkowski
9616ba9373
miatoll: Add a shim to silence prebuilt audio HAL
For some reason Xiaomi built audio HAL with "very very verbose" logging
enabled [1] and it spams really too much. Just shim the whole log function
to do nothing.

[1] https://github.com/LineageOS/android_hardware_qcom_audio/blob/c659e83702/hal/audio_hw.c#L41

Co-authored-by: Jan Engelmohr <jan.engelmohr@mailbox.tu-dresden.de>
Change-Id: Iff278c44f203dc7b81bccb2281edfc3f5687a47c
2022-11-20 07:37:01 +00:00
Alexander Winkowski
1edd945981
miatoll: Switch to prebuilt audio HAL
Change-Id: I985a9b2c3bdb39c17bc0f861913536c121e7eeae
2022-11-20 07:35:14 +00:00
Volodymyr Zhdanov
9bf7b2901b
miatoll: Increase statusbar height a bit
* I want punch hole to be centered on statubar

Change-Id: I7005e79ef486f562bd6aa29fcb365fb256f035ae
2022-11-18 13:14:18 +00:00
Alexander Winkowski
58b9cc72e7
miatoll: 420 DPI
From oriole

Change-Id: Ia7197e3ca9582547c8e31bca931a3316f04c39a3
2022-11-18 13:03:42 +00:00
Alexander Winkowski
f520929379
miatoll: Include Google Camera
Change-Id: Id18fde32623d542beead14df523d0b7b0579f737
2022-11-18 13:03:42 +00:00
Alexander Winkowski
29a0ddd61d
miatoll: Adapt for Pixel Experience
Change-Id: I24dd4fffe16d51b92e5fb12ce0b355f4606145c8
2022-11-18 13:03:41 +00:00
Alexander Winkowski
bf51cfaa27
miatoll: Remove Lineage HALs and overlays
Change-Id: I2f12329994cfd698e6834e64f5d37d1465d12dac
2022-11-18 13:03:41 +00:00
Alexander Winkowski
de3c837116
miatoll: Switch to AOSP encryption
Change-Id: I20d40c93b3861a92716165ab90bb09c73c0e64ed
2022-11-18 13:03:41 +00:00
Alexander Winkowski
c2de0a2b78
miatoll: releasetools: Add firmware images to the output zip if present
Change-Id: Iddbe5306379a5285018cd8e6b4c0a989b92caa11
2022-11-18 13:03:41 +00:00
Akhil Narang
bf20832d80
miatoll: releasetools: Be more clear about firmware image patching
This looks very odd on most of the devices using this tree
because nothing is being patched. Just mention which image
is being flashed and only when it actually is.

Change-Id: Ib6c35e08aee0f1c102da28ca37434093a92f7045
2022-11-18 13:03:40 +00:00
Lucchetto
fb0ef3327f
miatoll: Copy prebuilt libhidlbase from VNDK v32
Signed-off-by: Lucchetto <lucchetto.tie@live.com>
Change-Id: Idb79d248d33a6ce1b2e960b3195b8c27c89994ee
2022-11-18 13:03:40 +00:00
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