147 Commits

Author SHA1 Message Date
kdrag0n
5da641c4ce
sm6250-common: overlay: Don't pin camera app in memory
The default camera app can be *huge* in some cases, e.g. when the app in
question is Google Camera. The system will only pin up to the first 80
MiB of the APK file, as well as the first 80 MiB of its odex. There are
several problems with this:

  - We could easily end up with 160 MiB of camera app files pinned,
    which is a tall order with the usable RAM that we have
  - The data that gets pinned may not even be the most critical data for
    launching the camera

Let's disable pinning of the camera app to save precious RAM on this
device.

Change-Id: Ic2f9edd811879e3f18876a508273a9544d8a23e0
2021-09-09 18:46:03 +02:00
Jesse Chan
b132da2af9
sm6250-common: overlay: configure SQLite to operate in MEMORY mode
This change yields considerable SQLite performance gains. It
should be generally safe as this device has irremovable battery.

Some OEMs have been doing this for years.

Change-Id: I541709fc771d4b501b56b8555e5e8a04486d0293
2021-09-09 18:46:02 +02:00
Jody Yuantoro
72d90a6218
sm6250-common: overlay: Set navigation gestures as default
Change-Id: I6b321cc0eff8869ce78cac843ddadfb73abe41f2
2021-09-09 18:46:02 +02:00
Sebastiano Barezzi
46e33f7d4a
sm6250-common: Import CarrierConfig from CAF
* From LA.UM.9.12.r1-10300-SMxx50.0

Change-Id: Iac0ff2be55bb3b8a942e450010bf90776a6c5733
2021-09-09 18:46:02 +02:00
Sebastiano Barezzi
a2f4c15be9
sm6250-common: Initial AOSP overlay
[dereference23: Take values from curtana-user 11 RKQ1.200826.002 V12.0.4.0.RJWMIXM release-keys]
Signed-off-by: Alexander Winkowski <dereference23@outlook.com>
Change-Id: I4153efdbd5ac95a32607d8aba1b6bbbdb02765c0
2021-09-09 18:46:02 +02:00
Anton Hansson
9ba5b04e9e
sm6250-common: Enforce RRO for all resource overlays
Bug: 118823052
Test: make
Change-Id: I579d09480c7a482543ea616dd5c493d825bb98b1
2021-09-09 18:46:01 +02:00
Sebastiano Barezzi
11d02d6e69
sm6250-common: Don't build full super image
Change-Id: I39e86181c3b57f614b61b339f0114100477862de
2021-09-09 18:46:01 +02:00
Demon000
f56698ed12
sm6250-common: Add miatoll to guard
Change-Id: Iea179e6d66a2f4d5cf7bea95fb493e2f15eb7b68
2021-09-09 18:46:01 +02:00
Volodymyr Zhdanov
99341ccae3
sm6250-common: Create EGL symlinks
Change-Id: Ia64d2c99e325eac217bb9065baa74f903b367a8e
2021-09-09 18:46:01 +02:00
Demon000
39c08b25c0
sm6250-common: Create wlan firmware symlinks
Change-Id: I0a6411de1559c73899c3a1b0e9247b2a69b94d7a
2021-09-09 18:46:01 +02:00
Bruno Martins
fa6e11d307
sm6250-common: Create RFS symlinks
Change-Id: Ica1d4a9893f526ab98c5ef07e18d51dbf74c8e93
2021-09-09 18:46:00 +02:00
Ameya Thakur
c0bbe5c117
sm6250-common: Generate non-hlos image mount points for A/B builds
On builds where A/B support is enabled the system image acts as the
rootfs. In this case we can no longer create the non-hlos image mount
points at run time as we used to. We now create them as part of the
build itself.

Change-Id: I30d98f7c50fca3ce7117b9b8d87150655bb5b440
2021-09-09 18:46:00 +02:00
Demon000
355171ab53
sm6250-common: Add root makefile
Change-Id: I5e301c7e5441be2b1745f9c5b137168dad49bdcb
2021-09-09 18:46:00 +02:00
Demon000
3e433303bf
sm6250-common: Inherit proprietary blobs
Change-Id: Ib182c1a70449097e332c1233c7909fc419b65091
2021-09-09 18:46:00 +02:00
Alexander Winkowski
cfc53b22ad
sm6250-common: Initial proprietary files list
Co-authored-by: Demon000 <demonsingur@gmail.com>
Co-authored-by: Volodymyr Zhdanov <wight554@gmail.com>
Change-Id: I6b303f4a276d67b1264877d290041b6b6a9d27d4
2021-09-09 18:46:00 +02:00
Shivaprasad Hongal
5c18a2d726
sm6250-common: avb: Compile recovery image as a chain partition
Add AVB flags to compile recovery image
as a chained partition. This is required
for safe OTA when multislot support is
not present.

Change-Id: I1115eba4038e6fcaa61440846a25861366996ed4
Signed-off-by: Volodymyr Zhdanov <wight554@gmail.com>
2021-09-09 18:45:59 +02:00
Nolen Johnson
8b15fb7dae
sm6250-common: Simplify AVB flag logic
* AVB's `--flags 3` argument builds a disabled VBMeta with
  disabled hashtree, so no need to set both flags individually.

Change-Id: Ibe9ee322a5af58f13e76d53e18dee49451fe8838
2021-09-09 18:45:59 +02:00
Christian Oder
c9394889aa
sm6250-common: Build disabled VBMeta image
Partitions that use vbmeta_system can be found by looking at
avb flag in fstab from boot ramdisk.

--flags 2 makes the verification function of avb always return a
positive result.

--set_hashtree_disabled_flag builds the vbmeta images with the
HASHTREE_DISABLED bit set and as a result they don't need to manually
disable dm-verity via e.g. 'adb disable-verity'.

The rest of the configuration is taken from
https://source.android.com/devices/tech/ota/dynamic_partitions/implement#avb-configuration-changes

Change-Id: I381feef8f6fefc8449ca50d85d704b67bcc8a77e
2021-09-09 18:45:59 +02:00
Demon000
aab5ab4811
sm6250-common: Include qcom sepolicy
Change-Id: Iaf54a187cda5e6921b791031fa2132a91a62d184
2021-09-09 18:45:59 +02:00
Demon000
86f966abab
sm6250-common: Define security patch level
Can be found by checking the value of ro.vendor.build.security_patch
on stock.

Change-Id: I1d4a8bb4a5b6fdb4d1213fab0ea5e19eb7904ff7
2021-09-09 18:45:59 +02:00
Demon000
16b28c14ac
sm6250-common: Define vendor RIL service usage
This can be checked by looking for a rild service in system.
If it's missing, then a vendor ril service is being used, in
our case, it is qcrild.

Change-Id: I5378de6eec4ff2511a49c19c0fc474658efe338f
2021-09-09 18:45:58 +02:00
LuK1337
d89b49336b
sm6250-common: releasetools: Add vbmeta images to the output zip if present
Change-Id: I18372d2f8f3ab701bd92427c571d7506540f6f05
2021-09-09 18:45:58 +02:00
XiNGRZ
d0df23cd8c
sm6250-common: releasetools: Add dtbo image to the output zip if present
Change-Id: I8bb4da99945eceae3beab77489e6b9e2a47ab972
2021-09-09 18:45:58 +02:00
Demon000
76fd1493b6
sm6250-common: Specify recovery flags
Change-Id: I203a86d59908b96ab90f1599f3426ba4ebd8ba26
2021-09-09 18:45:58 +02:00
David Sehr
179a6eb85e
sm6250-common: Use dex2oat64
Enable dex2oat64 use.

Bug: 153380900
Test: boot and install an application
Change-Id: I3e7a6e6e9385ff6564d1a2e6dda004ebb061f095
(cherry picked from commit 126f03be80f57a8a0411842011152d9381589b78)
Merged-In: I3e7a6e6e9385ff6564d1a2e6dda004ebb061f095
2021-09-09 18:45:57 +02:00
Albert I
d3292ab6e6
sm6250-common: Decrease number of total call volume steps to 10
Signed-off-by: Albert I <kras@raphielgang.org>
Signed-off-by: Alexander Winkowski <dereference23@outlook.com>
Change-Id: Icf9f877415cd6242f27b248b6821bd3464790904
2021-09-09 18:45:57 +02:00
Albert I
b35cb65b48
sm6250-common: Remove MIUI packages from auxpackagelist
Signed-off-by: Albert I <kras@raphielgang.org>
Change-Id: Ic1a01044ce0f862e8d6e279b6f1a1f163e438931
2021-09-09 18:45:57 +02:00
Alexander Winkowski
28e76b69d4
sm6250-common: Initial build properties
* From curtana-user 11 RKQ1.200826.002 V12.0.4.0.RJWMIXM release-keys

Change-Id: I6898416bacc3ebde9938f9a9cd455d90e3dcef0a
2021-09-09 18:45:57 +02:00
Sebastiano Barezzi
b6871b71e6
sm6250-common: Declare BOARD_VENDOR
* Needed for xiaomi-perfmgr power AIDL guards

Change-Id: I54f2377ac529053906ee4dbdc16def74c8ed80fc
2021-09-09 18:45:56 +02:00
Alexander Winkowski
1f48e70a82
sm6250-common: Add platform flags
Change-Id: I06431ef5fb73eceda5bbff8706d45303fe6f5aab
2021-09-09 18:45:56 +02:00
Volodymyr Zhdanov
e7b68cf01e
sm6250-common: Reserve some space in dynamic partitions
Change-Id: If5546e4459da7408932c797d1c239b6442f96dd7
2021-09-09 18:45:56 +02:00
Demon000
fab0daa3bd
sm6250-common: Define partition rules
Partition sizes can be found by query-ing sysfs.
For example, for super partition.

> ls -la /dev/block/by-name/super
lrwxrwxrwx 1 root root   16 1970-03-23 06:51 super -> /dev/block/sda17
> cat /proc/partitions | grep sda17
 259        1    8388608 sda17

The size needs to be multiplied by the block size used by
/proc/partitions, which is 1024 bytes.

Logical partitions found inside the physical super partition
can be found by looking for entries with the logical flag in the
fstab inside boot ramdisk.

Change-Id: Ic65df8e093a601e3f603c40174b116b20072ee27
2021-09-09 18:45:56 +02:00
Albert I
af4ac57c6e
sm6250-common: Use as many LLVM tools as possible
Signed-off-by: Albert I <kras@raphielgang.org>
Change-Id: I3cff2a996944d8fe354859fa51b71d21475c3972
2021-09-09 18:45:56 +02:00
Demon000
f874e702d7
sm6250-common: Define kernel rules
Change-Id: Iba6e0617d69a6c1ef2266dddf551613e5876aa56
2021-09-09 18:45:55 +02:00
Sebastiano Barezzi
27c7899680
sm6250-common: Initial variant handler libinit
* This libinit has been made to commonize device variants props handling

[dereference23: Adapt for Xiaomi SM6250]
Signed-off-by: Alexander Winkowski <dereference23@outlook.com>
Change-Id: Iab68ff451ab1d6e861fb4cda4ef07fad3123ecde
2021-09-09 18:45:55 +02:00
Alexander Winkowski
223d20e8cd
sm6250-common: Add framework compatibility matrix
* Generated with https://gist.github.com/SebaUbuntu/ec053a00a9988eaea091fb1cc1f19324

Change-Id: Ic40d19adb0d47a52c4b82eb71bb60ddaff76548d
2021-09-09 18:45:55 +02:00
Sebastiano Barezzi
fe19426429
sm6250-common: Use only full qualified name for manifest entries
* As recommended by Google for multiple different versions of the same HAL in VINTF manifests
* https://android.googlesource.com/platform/hardware/interfaces/+/master/drm/1.1/README.md#devices-launching-with-android-pie

Change-Id: I4922d72ab60ca1aae78c010aeb610f9bca9012cb
2021-09-09 18:45:55 +02:00
Alexander Winkowski
40a05679ad
sm6250-common: Uprev soundtrigger
Change-Id: Ia150b3af7cc22dce12a96b745c52f38858c61666
2021-09-09 18:45:54 +02:00
Paras Nagda
1306dbd561
sm6250-common: Remove VPP service from the device manifest
Change-Id: I4df4ca927e32a7d40dadf6669b308a6c8181b94f
2021-09-09 18:45:54 +02:00
Alexander Winkowski
d67c35223b
sm6250-common: Remove Xiaomi HALs from manifest
Change-Id: I509d96e04315c300e723dcc71999b4498d3dd02e
2021-09-09 18:45:54 +02:00
Alexander Winkowski
fee6e4e2c5
sm6250-common: Import compatibility matrix and manifest
* From mojito-user 11 RKQ1.201022.002 V12.5.2.0.RKGMIXM release-keys

Change-Id: I9ffb0687e0f8bdfdec3253f198a6e08b93543a01
2021-09-09 18:45:54 +02:00
Demon000
c38eca6eb1
sm6250-common: Define bootloader flags
Change-Id: I9a47b68089717e8ad96cec85ea9ed99ba0e75b7e
2021-09-09 18:45:54 +02:00
Alexander Winkowski
597303833b
sm6250-common: Define architecture rules
Taken from ad8e3a17f6/BoardConfig-common.mk

Change-Id: I5d53c033449a86e0ec354ba38214a11e8b7d7c6c
2021-09-09 18:45:53 +02:00
Demon000
5bb1b2b40a
sm6250-common: Allow duplicate targets
Change-Id: Ied8866cc2d9f76bc2acd77ff07fd72d560ba7c69
2021-09-09 18:45:53 +02:00
Demon000
0528cf0e42
sm6250-common: Specify common path
This path will be used later when including files relative to
this directory.

Change-Id: I09870cf0525e7ae6ef9a85a1b36eff14fa898590
2021-09-09 18:45:53 +02:00
Alexander Winkowski
44dc9bdff9
sm6250-common: Import extract files scripts
Change-Id: Idb96de9b5c170ca6919e1766e6bae99545f80a45
2021-09-09 18:45:53 +02:00
Demon000
0057b473fa
sm6250-common: Initialize tree
Change-Id: Iaf4dcad4b5bf29c4a348d9b726201d34e0b1a29c
2021-09-09 18:45:51 +02:00