Commit graph

88 commits

Author SHA1 Message Date
6b3e5c5a10
Revert "sdm710-common: permissive selinux"
No need, enforce working!
This reverts commit 549291d79f.
2023-11-25 20:35:08 +02:00
f8a78253fe
Revert "sdm710-common: Enable LZ4 compression for ramdisks"
Could not decompress initial ramdisk image.

Booting to EDL
You can get dmesg from EDL, dump memory and read any HEX Reader, for example - GHex
This reverts commit c264973aa9.
2023-11-25 20:35:08 +02:00
Alcatraz323
2549bc87d0
sdm710-common: sepolicy: fix vendor_init prop access denial
* these prop should be accessed by init process from /system partition
I /system/bin/init: type=1107 audit(0.0:3): uid=0 auid=4294967295 ses=4294967295 subj=u:r:init:s0 msg='avc:  denied  { set } for property=persist.vendor.bt.a2dp_offload_cap pid=1 uid=0 gid=0 scontext=u:r:vendor_init:s0 tcontext=u:object_r:bluetooth_prop:s0 tclass=property_service permissive=1'
I /system/bin/init: type=1107 audit(0.0:4): uid=0 auid=4294967295 ses=4294967295 subj=u:r:init:s0 msg='avc:  denied  { set } for property=ro.hwui.render_ahead pid=1 uid=0 gid=0 scontext=u:r:vendor_init:s0 tcontext=u:object_r:default_prop:s0 tclass=property_service permissive=1'
2023-11-25 20:34:25 +02:00
giasen
72a3c37dc1
sdm710-common: Require files to be included 2023-11-21 23:47:17 +02:00
SebaUbuntu
60d42efd08
sdm710-common: sepolicy: Label logdump partition in qcom sepolicy
Change-Id: I9c0678257ad21480581b30431dfcf3a5cd215bfd
Signed-off-by: kaderbava <ksbava7325@gmail.com>
2023-11-21 20:13:59 +02:00
Davide Garberi
b0294cf40d
sdm710-common: Reserve size for system partition statically
* With the older flag the system space size was being chosen statically,
  this way only the reserved size for Gapps is static while the whole size
  is being dynamically chosen

Change-Id: Ib9a59ab429f725b2f571c8b1d74cec8bb6ab72dc
2023-11-02 11:30:27 +02:00
Bruno Martins
a7bcd58d98
sm7325-common: Migrate to restructured sepolicy_vndr
The new folder structure now looks like this:

  device/qcom/sepolicy_vndr
  ├─ legacy-um (meant for sdm845 until sm8350)
  ├─ sm8450
  └─ sm8550

SEPolicy.mk placed in the root automatically redirects devices to the
proper subfolder.

Change-Id: I4ed1a06af779909d64172da294c4a99a3ae9ba0d
2023-11-02 11:21:05 +02:00
giasen
549291d79f
sdm710-common: permissive selinux 2023-10-29 16:49:20 +02:00
AmeChanRain
3f2c340233
sdm710-common: Drop BOARD_BUILD_SYSTEM_ROOT_IMAGE
* device/lenovo/sdm710-common/BoardConfig.mk:94: error: BOARD_BUILD_SYSTEM_ROOT_IMAGE is obsolete.

* Ref:
  05c0807f2f
2023-10-28 11:23:47 +03:00
Cyzi7777
e1cc9860f7
sdm710-common: Use fstab.qcom for TARGET_RECOVERY_FSTAB 2023-10-27 22:30:21 +03:00
me-cafebabe
29f1905334
sdm710-common: Use logdump as metadata partition and mount at the first stage
* logdump seems to be only contain factory logs which is of 2017 and useless for us.
* It's required for DSU
2023-10-27 22:30:21 +03:00
Sarthak Roy
deca8b38a0
sdm710-common: We dont build System as root in Retrofit Dynamic partitions
* build/make/core/config.mk:902: error: BOARD_BUILD_SYSTEM_ROOT_IMAGE cannot be true for devices with dynamic partitions.
2023-10-27 22:30:20 +03:00
me-cafebabe
ef2362021f
sdm710-common: Add system_ext product odm partitions 2023-10-27 22:30:20 +03:00
me-cafebabe
2a7017fc7a
sdm710-common: Specify a non-existent dt directory to avoid using dt fstab 2023-10-27 22:30:20 +03:00
me-cafebabe
ade32dd8dd
sdm710-common: Setup Retrofit Dynamic Partitions 2023-10-27 22:30:18 +03:00
Nem1xx
7bd37cdae4
sdm710-common: Set correct TARGET_TAP_TO_WAKE_NODE path 2023-10-12 18:57:22 +03:00
Rajshekar Eashwarappa
7fd8dc1c2c
sdm710-common: Set swiotlb to default size
swiotlb size set to 64MB default value.

Change-Id: Ib256f5d2a1642ba2e635e632e7d1486aa2dd8f13
2023-08-15 13:12:11 +03:00
Sebastiano Barezzi
0258bb0a50 sm710-common: Remove TARGET_ENABLE_MEDIADRM_64
* It's only used when building drm@1.0 HIDL

Change-Id: I06412e2dd2bb48d798be4ef6e9a26a17b65277a7
2023-06-24 15:13:20 +03:00
Pasha
29232afe34 sdm710-common: Sort kernel cmdline and additional flags as a list
* This allows better readability and eases tracking further changes.
2023-06-24 15:13:20 +03:00
Nolen Johnson
df8fc5c923 sdm710-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
Signed-off-by: adi8900 <adrianszymanski242@gmail.com>
2023-06-24 15:13:20 +03:00
Ultra119
5faad4e0b1 sdm710-common: cmdline: Disable kpti
* It can also help increase performance by a lot in some scenarios.
2023-06-24 15:13:20 +03:00
Ultra119
3b1af7dad7
sdm710-common: Remove prebuilt kernel support completely 2023-06-17 17:04:02 +03:00
Ultra119
a4a9630750
sdm710-common: Remove deprecated TARGET_USES_QTI_CAMERA_DEVICE
* Dead as of https://review.lineageos.org/c/LineageOS/android_vendor_lineage/+/331507.

Change-Id: I8ec420d6264fee70a1602eecdbb4f34f2e5db3dc
2023-06-17 17:03:57 +03:00
Arne Coucheron
46a4c6f95d
sdm710-common: Set TARGET_DISABLE_POSTRENDER_CLEANUP := true
To fix the bad UI lag we are experiencing.

Change-Id: I3edb25f93c58b87431a1802726f31123200f75d3
2023-06-17 17:03:51 +03:00
Pranav Vashi
79b2fec6ce
sdm710-common: Switch to jemalloc for libc
* Benchmark shows improvement.

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Sageofd6path <mail2anirban95@gmail.com>
2023-06-17 17:03:47 +03:00
Mohammad Asaad Akram
a3b4e88dd3
sdm710-common: Enable asynchronous library events in WPA supplicant
Change-Id: I3b028afa54605bd57d9fb5700d792cb9e5e0e76f
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2023-06-17 17:03:42 +03:00
Lisa Liu
c264973aa9
sdm710-common: Enable LZ4 compression for ramdisks
* This shortens the time to unpack initramfs.

Change-Id: Id23daba43ae7a6003cbde29480d2f433f344df73
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2023-06-17 17:03:42 +03:00
09712ee597
Revert "sdm710-common: Switch to Vulkan UI renderer"
This reverts commit 599bcd1d038ae12c6b5bd01069a5dcb51d5c2753.
2023-06-17 17:03:40 +03:00
e6586f7345
sdm710-common: Add FP Gestures
7d34f1a19d/include/uapi/linux/input-event-codes.h (L177)

7d34f1a19d/drivers/input/fingerprints/jd2019_goodixfp/gf_spi.h (L23)

Nowhere have I seen it shown where to take the values from, so I'll do this
2023-06-17 17:03:40 +03:00
Danny Lin
5db47d29dd
sdm710-common: Switch to Vulkan UI renderer
We tried doing this on Android 11 and later reverted it due to fd leaks
during prolonged video calls. However, the issue has been fixed on
Android 12, so let's enable it again for performance.

Nanhumly:
SystemUI Lag encountered in Android13 QPR1, probably related to OpenGLRenderer

E/OpenGLRenderer( 1556): Unable to match the desired swap behavior.
W/Parcel  ( 1556): Expecting binder but got null!
D/OpenGLRenderer( 2414): endAllActiveAnimators on 0x7adac3e100 (RippleDrawable) with handle 0x7a3803b540

So switch to Vulkan UI renderer for now, even though it has rendering problems in some interfaces.

Change-Id: I1cd2ca6931aad60f9c48d40aa0212b69c68edef8
Signed-off-by: Nishant Kumar <www.rajsonu13@gmail.com>
2023-06-17 17:03:34 +03:00
Edwin Moquete
69749103ae sdm710-common: Switch to legacy sepolicy_vndr
Change-Id: I13229c3057bf32c81b0fdace075f0791cb8ad380
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2023-01-27 22:53:22 +01:00
Bruno Martins
72b553259d sdm710-common: Revise and update audio feature flags and props
So to match what is shipped with stock because prebuilt a-HAL
and extensions are being used.

Change-Id: I74d5bd1de5ea87984ace38076cb5a0bd54736ca6
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2022-11-12 15:28:55 +01:00
Bruno Martins
822a2aaab1 sdm710-common: Drop custom APM flag along with no-op audio flags
Custom audio policy manager is hard disabled by CAF
for 2 years now. Remove as well the audio feature flags
that were used to configure it.

Change-Id: Idd34d1cbbdb735d6cf0de3b159c2670bf7ddd1e3
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2022-11-12 15:27:28 +01:00
Michael Bestas
7c1c0cc57b sdm710-common: Remove bdroid_buildcfg.h
As of I3c7aed1bdb45db728d319f7d757400e44d232283 the Bluetooth stack
defaults to reasonable defaults that should work for all devices.

Change-Id: I056d63c4c8a2727e384172e964dc0000b6773504
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2022-11-12 15:14:56 +01:00
Alexander Koskovich
4006e12c62 sdm710-common: Remove virtual framebuffer
* It's largely for testing purposes and it consumes
   a large amount of memory. If your hardware doesn't
   have graphics then it can be useful, which isn't the
   case for shipped devices.

Change-Id: I2348718ad3afba846498572161fa7e83dd8b7ce9
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2022-09-14 18:56:17 +02:00
GiaSen
518ed57996 sdm710-common: Kang display configs from xiaomi-sdm710
After new kernel has now everything working codecs bug went brr
Thanks sebaubuntu for not helping me :)
2022-09-06 17:16:56 +02:00
GiaSen
341f6909e6 Revert "sdm710-common: switch to S sepolicy_vndr"
This reverts commit fe1019795c.
S is now default one
2022-04-03 15:32:26 +02:00
Giammarco Senatore
2e21c30312
Revert "sdm710-common: relax sysprop owner enforcement"
use 15436 from gerrit until patch gets merged

This reverts commit 2ebb67f1d4.
2022-01-04 21:36:36 +01:00
Giammarco Senatore
fe1019795c
sdm710-common: switch to S sepolicy_vndr 2022-01-03 19:36:06 +01:00
jjpprrrr
e05b539a51
sdm710-common: Address init denial 2021-11-25 20:05:41 +01:00
jjpprrrr
df77b02041
sdm710-common: let's not deal with ELF file copies for now
Basically any non-plain-text files in our proprietary file list
are ELF binaries. Granted that I can use llvm-readobj to check the
headers and build them through cc_prebuilt_binary or
cc_prebuilt_library_shared one by one, but the result is kind of
pointless.

The purpose of cc_prebuilt_binary is to track dependencies by
running check_elf_file.py on them. We have so many proprietary blobs
that it is nearly impossible (and sometimes impractical and undesirable)
to define dependencies.
2021-11-24 20:45:42 +01:00
Giammarco Senatore
040f8d3543
Revert "sdm710-common: Permissive SELinux"
This reverts commit ddee12f5a5.
2021-10-30 12:58:43 +02:00
Chenyang Zhong
2ebb67f1d4
sdm710-common: relax sysprop owner enforcement
Quoting commit afc09932f6fa07c5f6beffbcdc2bb4691e527321 in
system/sepolicy [1]:

"Devices launching with R or eariler can this by setting following
under BoardConfig.mk"

It is impractical to replace every prop definition from qcom to
vendor_property_type for old platforms like SDM845, so relax the
enforcement to avoid triggering millions of neverallows.

ref:
[1] afc09932f6

Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2021-10-20 22:38:25 +02:00
Giammarco Senatore
ddee12f5a5
sdm710-common: Permissive SELinux 2021-10-19 23:37:11 +02:00
Giammarco Senatore
b3fae0714c
sdm710-common: Drop duplicated gralloc1 config 2021-08-16 21:55:24 +02:00
Udaya Bhaskara Reddy Mallavarapu
4cd1b6296d
sdm710-common: Enable 64 bit DRM plugins compilation
Enable 64 bit compilation for DRM plugins.
This will generate DRM plugins, HALs & oemcrypto_test in 64 bit.

Change-Id: I451db39edea3446d9816fcaba77caa8d3b097afb
2021-08-16 21:55:24 +02:00
Giammarco Senatore
6b05d70854
Revert "Add build broken flags in BoardConfig.mk"
This reverts commit ce11e64add.
2021-08-16 21:55:23 +02:00
Giammarco Senatore
09cd80eeb5
sdm710-common: Go enforcing
- major cleanup
- sepolicy from xiaomi-sdm845-common
- label both goodix and fpc
- allystar GPS uart port and ontim nodes
2021-08-11 22:41:19 +02:00
Henrique Pereira
65cb7a78e4
sdm710-common: Split system properties from vendor 2021-08-02 11:57:36 +02:00
Giammarco Senatore
f6f497c743
sdm710-common: Initial commonized tree
* minor cleanup in overlay and init rc
* drop dolby
2021-07-25 21:56:17 +02:00
Renamed from BoardConfig.mk (Browse further)