Commit Graph

1028 Commits

Author SHA1 Message Date
Albert I
3ac812ed09 sm6150-common: gps: Reorder initializations list to satisfy warnings
-Wreorder-ctor is a compile-time, Clang-only flag which is enabled by
default since Clang 12, which will warn whenever a specified field will
be initialized right after field specified below it. However, since it
doesn't sweep through all fields, compiler may miss some of them.

This order has been checked thoroughly through many trial and errors to
ensure that no such warns will be triggered anymore.

Change-Id: Id24cbb7277dc8d6c02767f8f365818ab6c017683
2023-08-20 18:47:33 +02:00
Michael Bestas
15a7ec7e32 sm6150-common: gps: Resolve unused parameter warnings
Change-Id: I0acef3da2c3567a28edd0a71dac89a5828f7725d
2023-08-20 18:47:33 +02:00
LuK1337
6d7b2f1980 sm6150-common: overlay-lineage: Add reboot to fastbootd
Change-Id: I733b4d29129f85b92222e292af46602310b9f29f
2023-08-20 18:47:33 +02:00
danielml
cc633a0998 sm6150-common: sepolicy: Label /dev/block/mmcblk0p1 as sdcard block device
* Needed for DSU

Change-Id: I25f7272621451723eb0fc72d9b772795a1f8ed51
Signed-off-by: danielml <daniel@danielml.dev>
2023-08-20 18:47:33 +02:00
LuK1337
cae03c13c8 sm6150-common: Fix BOARD_FLASH_BLOCK_SIZE
BOARD_KERNEL_PAGESIZE * 64 != 131072

Change-Id: Id0762503d1223d0f2b9cacf9af2fca1e6e6caf3d
2023-08-20 18:47:33 +02:00
Arian
7ee23154dd sm6150-common: Commonize flash block size, cache and userdata filesystem types
Change-Id: I10ace86b93aeb4b87ec4ecca4da0952526e6c6ff
2023-08-20 18:47:33 +02:00
Arian
1fc4297c00 sm6150-common: Use FBE v2
AOSP defaults to v1 on devices shipped with Q or earlier,
explicitly enable v2 for these devices to use 16-byte padding

e575f4ed96/libfscrypt/fscrypt.cpp (L205)

Change-Id: I20e5f31007a2c01bc993c09e644205bf23ebd8ae
2023-08-20 18:47:33 +02:00
Jaegeuk Kim
a07e5e276e sm6150-common: Support adoptable storage encryption
Change-Id: I8225ef0499192503deafa440644d7ee3c177079f
2023-08-20 18:47:33 +02:00
Arian
7524cc06e5 sm6150-common: Use the new volume metadata encryption method
Change-Id: Iec8f0e612a00a792ad6e8d07c37a8d7a0e7f7158
2023-08-20 18:47:33 +02:00
basamaryan
8a68a965a3 sm6150-common: rootdir: Add sdcard1 and usbotg mount to recovery.fstab
Change-Id: Iaed4a828990a40eef1f13150c135d65ff9be1e25
2023-08-20 18:47:33 +02:00
raghavt20
43a2d997bf sm6150-common: rootdir: Remove vbmeta_system from fstab
Change-Id: I58f63641293e92a916bfcf64b9c8056f81416d19
Signed-off-by: raghavt20 <raghavt20@aospa.co>
2023-08-20 18:47:33 +02:00
Arian
e31a6e10d3 sm6150-common: rootdir: Check persist
Change-Id: Ifc66f4ff386ef3fd01eb10ebe7d105ff9f18127b
2023-08-20 18:46:58 +02:00
Arian
21d67b2b71 sm6150-common: rootdir: Drop zram from fstab.default and fstab.emmc
Change-Id: I54b163080471679be0f4b58e0e49d0a48b597cd8
2023-08-20 18:46:58 +02:00
Arian
650cb7d952 sm6150-common: rootdir: Add odm to fstab
Change-Id: I978f2549da6f213ca765577bf8f0a9ac6f8394cc
2023-08-20 18:46:58 +02:00
Arian
da59885981 sm6150-common: rootdir: Import dynamic non-ab fstabs from LA.UM.9.1.r1-13500-SMxxx0.QSSI13.0
Change-Id: Ib54d1fa04bbc57ec432c0e21cc90d04051321564
2023-08-20 18:46:58 +02:00
Arian
dc321889fb sm6150-common: rootdir: Don't specify fstab path unnecessarily
Change-Id: Ide70285090048630a89dc5ae425f9b548c072d0a
2023-08-20 18:46:58 +02:00
Debayan Kar
a8e2b710c8 sm6150-common: Fix IMS symlink as per dynamic partitions
* We have logical /system_ext partition now, so we dont need to rely over /system/system_ext

Change-Id: I389e39e576712f1a9eb497250e190ffec825e1cc
2023-08-20 18:46:58 +02:00
Arvind Kumar
4dd6725148 sm6150-comomn: Enable metadata uses flag
Change-Id: I2ad2bded831d82d85799ac6de6c26e779a650122
2023-08-20 18:46:58 +02:00
Arian
ffd0ded683 sm6150-common: sepolicy: Label cust, system and vendor block devices as system_block_device
Change-Id: Id230ee4893e67689e9162e834e9c7b9c5482c6c8
2023-08-20 18:46:58 +02:00
Alessandro Astone
187d4ed71c sm6150-common: Build and enable fastbootd
Change-Id: I0b20600fe7203a7aec19cbea8f6849052585c6ab
2023-08-20 18:46:58 +02:00
Arian
e786690216 sm6150-common: Commonize dynamic partitions
Change-Id: If754f1d40d5dd7488a0137fa90d82dce89bbc1dd
2023-08-20 18:46:58 +02:00
Sam Mortimer
dedce30a14 sm6150-common: Remove deprecated TARGET_KERNEL_APPEND_DTB
Background: https://review.lineageos.org/#/c/192397/

Change-Id: I7ed989a418799442bf92eedff6453a77f39f19ad
2023-08-20 18:46:53 +02:00
Arian
a7aad8d60e sm6150-common: Move more RIL properties to vendor
Change-Id: Iee7e36b2b4b441a0e038313ceba9314df13e74ca
2023-06-05 11:38:04 +02:00
Jayachandran C
8542099fdf sm6150-common: Move default network property to vendor partition
This fixes GSI image overriding the default value

Bug: 153852350
Test: Manually verified after flashing the GSI image
Change-Id: I78b415862c420c23121ec03d6953814cd628ea9a
2023-06-05 11:38:04 +02:00
Arian
d11c1d7822 sm6150-common: Drop unused RIL properties
Change-Id: Ia7559b7f583f75d1310fabc5f5d656cd8dab05ab
2023-06-05 11:38:04 +02:00
Arian
19e23767df Revert "sm6150-common: Force restorecon for /mnt/vendor/persist"
This reverts commit a13246a7fc.

This causes dac_override denials, set no_sehash_xattr on persist
in fstab instead to fix the issue.

Change-Id: I75f824d5b2beca5f7c3835045a7f568736e148f0
2023-06-05 11:38:04 +02:00
Gagan Malvi
0d51b5d042 sm6150-common: rootdir: Set up fingerprint nodes for phoenix.
Change-Id: If73a8a3dd917b625fbed863f81816ec11989e9f7
Signed-off-by: Gagan Malvi <malvi@aospa.co>
2023-06-05 11:38:04 +02:00
danielml
84cbd43575 Revert "sm6150-common: parts: Enable doze_status on screen off"
* Manually setting the doze status before entering the low-power mode
  makes the doze mode not to be set correctly on sweet.

* The doze status is automatically set when entering the low-power mode

This reverts commit 10f101e143.

Change-Id: I4dfee2ffb351b9bc426268e437a26f9eaefec319
2023-06-05 11:38:04 +02:00
danielml
f4e2098486 sm6150-common: sepolicy: Rename sys.panel.display to vendor.panel.display
Change-Id: I1765a9f867dad4ec7bdea40c50671e6416f871cb
Signed-off-by: danielml <daniel@danielml.dev>
2023-06-05 11:38:04 +02:00
Sebastiano Barezzi
c87372b3db sm6150-common: sepolicy: Drop camera.sensor* properties
* These were renamed to vendor.camera.* properties whose definition
  already exists in our current policy

Change-Id: I4392a7880d36b6b6d6aff4a6d9b43c1fc2bab950
2023-06-05 11:38:04 +02:00
Sebastiano Barezzi
6d2810da32 sm6150-common: sepolicy: Bringup property_contexts for Android 13
Change-Id: I60070ba7658ce262be66ee3bdd0cb6cdcf9b8c49
2023-06-05 11:38:04 +02:00
danielml
187b64e74f sm6150-common: sepolicy: Remove no longer existing properties
Change-Id: Icf3ef6dbf497671fec757f0de56d58df432d1d87
Signed-off-by: danielml <daniel@danielml.dev>
2023-06-05 11:38:04 +02:00
Weikai Kong
af694709f1 sm6150-common: Add back ro.vendor.extension_library definition
* We aren't using QCOM's perfd but our blobs still check for this.
 * To avoid unnecessary errors, let's just add it back.

Change-Id: Icc44b330f21a658cfa8ded691a6628d8f62c3649
2023-06-05 11:38:04 +02:00
Sebastiano Barezzi
855585a84b sm6150-common: libqti-perfd-client: Move to C
* Why bothering with C++ mangling when we can just build it as a standard C library?

Change-Id: I45ea977edf7ea7fab6fece76f3049654a8d24c5d
2023-06-05 11:38:04 +02:00
Chenyang Zhong
40e96f346b sm6150-common: libqti-perfd-client: return a dummy value
Return a positive integer for perf lock acquire and release so
that Goodix/FPC fingerprint sensor blobs will not complain.

Goodix:
E [goodixHAL][gf_hal_milan_f_series]: goodix_perf_lock_acquire: Failed to acquire perf lock, err: 0
E [goodixHAL][gf_hal_milan_f_series]: goodix_perf_lock_release: Perf lock release error 0

FPC:
E fpc_tac : fpc_perf_lock_acquire: Incorrect params, Failed to acquire perf lock, err
E fpc_tac : fpc_perf_lock_release: Perf lock release error 0

Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
Change-Id: I861672e9a738c2204755d802670f4b28b662f286
2023-06-05 11:38:04 +02:00
Bruno Martins
d477ef0667 sm6150-common: libqti-perfd-client: Remove namespace declaration
It's pointless when using extern "C".

Change-Id: Ibdf9f06a70aa3a75687b33781c78cf2172bb334d
2023-06-05 11:38:04 +02:00
Lucchetto
d1c9828f55 sm6150-common: Create dummy libqti-perfd-client
* proprietary perfd blobs can finally be nuked without breaking goodix
* we could even map the functions to use libperfmgr powerhints in the future

Change-Id: I124652f3041761966a3e3bd97c757fecc39cc5fb
2023-06-05 11:38:04 +02:00
Michael Bestas
014ef5ee19 sm6150-common: overlay: Enable multiple vibration strength levels support
Change-Id: If17503f2dd4bd4d6e333891f9649a7db8d809852
2023-06-05 11:38:04 +02:00
basamaryan
4fd45a6d3a sm6150-common: sepolicy: Label fpc wakeup node
Change-Id: I6c7b7d5d2777bfae02b3bd8b0d875ccc2564f337
2023-06-05 11:38:04 +02:00
Nolen Johnson
be567c8301 sm6150-common: Drop vestigial FM board-flags
* No longer read anywhere.

Change-Id: Iaf5d8cda03e055c4331e3a20e33c8058037b09b2
2023-06-05 11:38:04 +02:00
Georg Veichtlbauer
016949aaa4 sm6150-common: Remove max ZRAM compression streams setting
Kernels >4.7 will create a comp stream for each online CPU
and ignore /sys/block/max_compression_streams. This has been
backported to many 4.4 kernels as well.

Any device running a kernel with the upstream commit can safely remove
the parameter.

Upstream commit: 43209ea2d1

Change-Id: Ibb29b54a31f0fb5bd941d7709d15d571dd77ebf5
2023-06-05 11:38:04 +02:00
Alexander Koskovich
587bd40505 sm6150-common: init: Don't mount TraceFS twice.
* AOSP already mounts TraceFS in system init, so mounting it twice
   causes SEPolicy denials. See the comments in this change.

   https://android-review.googlesource.com/c/platform/system/sepolicy/+/1294195

Change-Id: Ic5d9ac2dbd36e404a93a8d48aa0ea933fd7fa701
2023-06-05 11:38:04 +02:00
SebaUbuntu
9d72a6566e sm6150-common: overlay: Drop MMS user agent overlays
* Current profile URL points to a 404 page

Change-Id: I92f3ded52dda04f6cec5709d51c84b32f39d8095
2023-06-05 11:38:04 +02:00
Danny Lin
d220c17b24 sm6150-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 8 GiB of 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 RAM.

Change-Id: I745e39b6ff212dfaf9213517d2a2be8ff7384e24
2023-06-05 11:38:04 +02:00
Arian
5dee55fd0a sm6150-common: overlay: Set preferred refresh rate on keyguard to 60
This ensures that the device doesn't switch to hrr while
doze mode is active.

Change-Id: I8488e86e56a46aea95f2835d8667c23401625f0b
2023-06-05 11:38:04 +02:00
SamarV-121
87320fdb23 sm6150-common: Disable continuous transaction tracing on all build types
Change-Id: I95657a00e38f1229675682e784b20cca12c119b0
2023-06-04 10:55:57 +02:00
Ady Abraham
0bd5d02b54 sm6150-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
2023-06-04 10:55:57 +02:00
SamarV-121
0b9591f89f sm6150-common: Remove obsolete debug.sf.disable_backpressure
* It has been removed in Android S
 * 2ec5391acf

Change-Id: I23a210a37ad257f0c8b7a3c5e1d59b2ac20cde9a
2023-06-04 10:55:57 +02:00
Alex Sarraf
e6630baeb0 sm6150-common: Disable SF client composition cache
Disable SF client composition cache. Helps with framework
client target fence management.

Change-Id: I73e03e76f51d00fafad38479be00f4005be50665
2023-06-04 10:55:57 +02:00
Danny Lin
904d052076 sm6150-common: Disable EGL image tracking
This is a surfaceflinger debugging feature that we don't care about, so
disable it to reduce overhead.

Change-Id: Iaf6417d101f1a79bfadf85f779a614ed0460c56d
2023-06-04 10:55:46 +02:00