Commit Graph

1234 Commits

Author SHA1 Message Date
John Galt 021c61704f Build/use UDFPS sensor
Change-Id: Ib12af1e03245224002be273266f1eb7e9d756d81
2023-02-18 20:47:09 +01:00
Omkar Chandorkar 3fe8b4ed6a sm8150-common: cleanup boardconfig and device makefiles
Change-Id: Iefb6dffcd07e8e6cb2d4c9df42388cfd89a5bda7
Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
2023-02-18 20:47:09 +01:00
Omkar Chandorkar e3748615fe sm8150-common: move to lz4 for EROFS
- while lz4hc,9 provides better compression ratio, it has the cost of
  tremendous compression time and potential hit while decompressing
- internal tests on aarch64 seem to suggest the decompression hit
  is larger than x86_64

Change-Id: I5c102c03f95ace982b85a6ffa5c33aa9ce4637a4
Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
2023-02-18 20:47:09 +01:00
timocapa 9e3181a5a7 overlay: Move "config_alertSliderLocation" to SystemUI
Ref: https://gerrit.aospa.co/c/AOSPA/android_packages_apps_Paranoid_SystemUI/+/27386
Change-Id: I28f9d00571a77af0437e523d7b5cc22a70a9f1ec
2023-02-18 20:47:09 +01:00
timocapa b61226c984 overlay: Remove unused overlays
Change-Id: Id86a1cdc4b017df4e28671cfd39c06aeb4617b6a
2023-02-18 20:47:09 +01:00
Vishalcj17 7739fd8c1d DisplayMode: settingslib.collapsingtoolbar.R -> settingslib.widget.R
* Fixes "error: unresolved reference: R"

Change-Id: Ib49a86efb4cdecdf21a818fe6d3886b4a191bb12
2023-02-18 20:47:09 +01:00
timocapa ee31131c3e common: move media-legacy to media
* ref: https://gerrit.aospa.co/c/AOSPA/android_device_qcom_common/+/25550

Change-Id: Idfc43e17e25a470202dbaf4f8e66a56713180f57
2023-02-18 20:47:09 +01:00
timocapa 0585d1dcba sepolicy: remove 2 neverallows since waipio merge
Change-Id: I7654de766e10eae932354ee6d3a2a95f2e17eac0
2023-02-18 20:47:08 +01:00
Omkar Chandorkar 61d7f74f2a sm8150-common: add both mmosal
Change-Id: Ide7bf3d72da76565e9fce6f8708fc0edf92f304b
Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
2023-02-18 20:47:08 +01:00
Omkar Chandorkar 9b62a6fb2c sm8150-common: add and enable SSR stack
- this will handle our potential adsp crashes

Change-Id: I49819bef2dd863ab7cf48cced5ab6dbeefe637ee
Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
2023-02-18 20:47:07 +01:00
UtsavBalar1231 f2786e96cd sm8150-common: overlay: Update multiple vibration intensity levels config for T
Since commit: eaaf5331d6
multiple intensities configuration flag has been changed to an interger
reflect that change in here to allow multiple intensity vibration pattern in settings.

Change-Id: I13f9dbf6280623ad1c954ce96ceecbe363140062
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
2022-09-05 02:44:44 +02:00
Adithya R 591d473791 sm8150-common: init: Install ueventd.qcom.rc to ueventd.rc
It's only loaded from /vendor/etc/ueventd.rc:
https://github.com/AOSPA/android_system_core/blob/topaz/rootdir/ueventd.rc#L1

Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
Change-Id: I42fb8c00ecae9af97fced15e10cb117a8af6a03d
2022-08-30 01:28:17 +02:00
timocapa 2a00cf083b BoardConfig: Update EROFS PCLUSTER SIZE
* Follow Google docs:
   https://source.android.com/docs/core/architecture/kernel/erofs

Change-Id: I1eb8b78583b13d422c5335465695b6e069846927
2022-08-30 01:26:42 +02:00
Omkar Chandorkar 3641c0e4a9 sm8150-common: fix duplicate sysprop assignment
Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
Change-Id: Ibfb076d067bb7c4786f65719698f2487c5f9799e
2022-08-30 01:26:31 +02:00
Tyler Trephan 66d48b8c96 sm8150-common: Update multihal to use new sensors AIDL interface
Signed-off-by: KanishkTheDerp <kanishkthederp@gmail.com>
Change-Id: I83c25910027e7f7f57d41913ec95f57094e78b09
2022-08-30 01:23:34 +02:00
timocapa 6c5585079f init: update ueventd 2022-08-09 06:51:48 +02:00
timocapa 2e987ada56 small cleanup 2022-08-09 06:38:50 +02:00
Omkar Chandorkar b6057b31c1 BoardConfig: shift recovery margin down to match notch
Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
2022-07-09 18:59:09 +02:00
timocapa 71f795db99 Revert "sm8150-common: Don't advertise vorbis offloading support"
* CLO supports it

This reverts commit 867b1a41fb.
2022-06-27 15:42:47 +02:00
timocapa 194933699f common: make VRR less aggressive 2022-06-16 23:04:49 +02:00
timocapa 530ba33cf1 common: Enable incrementalfs 2022-06-16 23:04:49 +02:00
Lisa Liu 72a6dbb4f0 BoardConfig: Enable LZ4 compression for ramdisk
Change-Id: Id23daba43ae7a6003cbde29480d2f433f344df73
2022-06-16 23:04:37 +02:00
timocapa 3b2124f1c3 common: Enable semi-aggressive VRR
* I may tweak this at a later point, or split it up across devices,
   depending on user feedback

 * Below around 15% force 90 hz

 * To get the brightness in integer from the UI percentage, use
   "settings get system screen_brightness"
2022-06-03 23:28:49 +02:00
timocapa 5e6351dd44 common: Enable fuse passthrough 2022-05-25 03:11:24 +02:00
timocapa feaffc512e sepolicy: Fix wakeup denials
E android.system.suspend@1.0-service: Error opening kernel wakelock stats for: wakeup38: Permission denied
W Binder:663_2: type=1400 audit(0.0:2897): avc: denied { read } for name=wakeup38 dev=sysfs ino=81797 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=dir permissive=0

used:

for i in $(realpath /sys/class/wakeup/*); do if ! echo "$(ls -dZ $i)" | grep -q sysfs_wakeup; then echo genfscon sysfs $(echo $i | sed -e 's|/sys||g' -e 's|wakeup/wakeup.*|wakeup|g' -e 's|wakeup[0-9]*|wakeup|g') u:object_r:sysfs_wakeup:s0; fi; done | sort -u
2022-05-24 19:26:23 +02:00
timocapa b21394246d Revert "BoardConfig: Enable Vulkan"
* Needs some user reviews if their camera issues are resolved

This reverts commit 9151bf9d3a.
2022-05-23 00:49:22 +02:00
Danny Baumann a2bbc1c26d
sm8150-common: Add missing USB properties
The missing diag property actually broke the ability to use diag mode.

Change-Id: I135dc2f739e969a30a269652f599f4a79bbafceb
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-05-22 17:34:42 +09:00
Omkar Chandorkar 281bddd2ab
sm8150-common: rip Android.mk
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-05-22 14:21:18 +09:00
Omkar Chandorkar c42d98a33e
sm8150-common: fix custom usb rc
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-05-22 14:10:10 +09:00
John Galt 2f43a1fb49 BoardConfigCommon: set erofs pcluster size
Used on cuttlefish as part of erofs switch. Benefits performance
considerably..

 - Pre big cluster product size: 1.1GB
 - Post product size: 875MB
2022-05-12 09:14:32 +02:00
timocapa 416030ed32 BoardConfigCommon: Enable KERNEL_LLVM_SUPPORT 2022-05-09 11:10:32 +02:00
timocapa 483527db73 sm8150-common: Enable Wifi Aware
* A year ago this didn't work at all and caused major log spam
   Log spam seems to be gone and not affect anything else, however
   I can't verify whether it actually works.
2022-05-07 00:30:30 +02:00
timocapa 221ebef251 Revert "Revert "sm8150-common: enable KERNEL_CUSTOM_LLVM""
This reverts commit 37f256efae.
2022-05-06 20:04:02 +02:00
Selim Cinek 2ff60f071c sm8150-common: overlay: Enable subtle tick vibration when revealing shelf.
* The stock ROM enables this because our vibrator supports
   subtle "tick" vibration effects. Enable it in our overlays
   to make pulling down the notification shade/QS panel
   feel slightly more interactive.

 ---

 * With Android 12L adding subtle ticks in more places,
   perhaps this makes more sense to add now

Change-Id: I0c160694bd9616c8693a659da8db9cf4e59ba4c3
2022-05-04 23:04:07 +02:00
timocapa 69043bde85 common: move to erofs 2022-05-04 23:03:54 +02:00
timocapa 37f256efae Revert "sm8150-common: enable KERNEL_CUSTOM_LLVM"
This reverts commit 7fb1fe01c9.
2022-04-21 13:57:27 +02:00
timocapa 4aa9aba069 fixup: fstab: Support F2FS compressions and garbage collector 2022-04-20 03:22:12 +02:00
timocapa fde667ffe0 BoardConfigCommon: Enable PRODUCT_FS_COMPRESSION 2022-04-19 23:22:39 +02:00
Panchajanya1999 71eb22fad5 fstab: Support F2FS compressions and garbage collector
Partially based on Pixel 6 fstab[1] and personal
recommendations.
F2FS Compression requires kernel support too.

Note: even though we already have atgc and gc merge force enabled in
kernel, this does no harm and is nice for other testing.

[1]: https://android.googlesource.com/device/google/gs101/+/refs/heads/android12-d1-s4-release/conf/fstab.gs101#20

Change-Id: I319fa4033911e89160308535b626c978d7269805
Signed-off-by: Panchajanya1999 <panchajanya@azure-dev.live>
2022-04-19 14:58:49 +02:00
Juhyung Park 7fb1fe01c9 sm8150-common: enable KERNEL_CUSTOM_LLVM
Change-Id: I9824f54f5b7942cd65a2536b9d7c8dbf8b11ae19
Signed-off-by: Juhyung Park <qkrwngud825@gmail.com>
2022-04-19 14:36:39 +02:00
timocapa 9151bf9d3a BoardConfig: Enable Vulkan
* We're probably fine using this now
  Testing showed no issues in apps that were known to have issues
2022-04-19 14:32:40 +02:00
Martin Liu 3778d83096
sm8150-common: set readahead_size_kb=128 on fstab
To avoid memory pressure

Bug: 181567573
Test: check readahead size
Change-Id: I0ef6456a96ef923fe681112560d2f49c514ff529
Signed-off-by: Martin Liu <liumartin@google.com>
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-03-18 14:08:06 +09:00
Ziqi Chen 8f29c69ab6
sm8150-common: init: Tuning UFS clkgate and ah8 during boot time
Disabling UFS clkgate and ah8 during boot time helps in reducing
IO delays, which helps in reducing the total boot time. This change
will disable UFS clkgate and ah8 during early-init and then enable
it back after boot completion.

Change-Id: I6a10cd57a30fe3bdc4fba72a0d84cdfa3b1fd513

Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-03-18 14:08:05 +09:00
Omkar Chandorkar efa1095059
sm8150-common: relocate init scripts
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-03-18 14:07:57 +09:00
Omkar Chandorkar 051564ae19
sm8150-common: commonize dynamic/non-dynamic configs
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-03-18 14:07:50 +09:00
Omkar Chandorkar 4a61b1eca3
sm8150-common: rootdir: convert to bp
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-03-18 13:33:21 +09:00
Omkar Chandorkar baf55a1732
sm8150-common: overlay: disable PocketMode
* our ultrasound isn't a fan of constant checking

Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-03-16 13:42:15 +09:00
Omkar Chandorkar 21ed0c5fef
sm8150-common: declare udfps hbm type
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-03-03 23:28:37 +09:00
Omkar Chandorkar 0ca75cb361
sm8150-common: update property overrides
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-03-03 23:24:47 +09:00
Omkar Chandorkar c719aaed37
sm8150-common: the big cleanup
* move to as many components as we reasonably can
* drop all duplicate configs and properties
* add missing oneplus usb additions

Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-03-03 16:24:41 +09:00