Commit Graph

755 Commits

Author SHA1 Message Date
Keertesh
ff1a2d137b sm7250-common: Build libqdMetaData.system
*needed by libwfdmmsrc_system.so

*F linker  : CANNOT LINK EXECUTABLE "/system_ext/bin/wfdservice": library "libqdMetaData.system.so" not found: needed by /system_ext/lib/libwfdmmsrc_system.so in namespace (default)
2023-01-05 22:25:35 +05:30
Juhyung Park
cdc530b446 sm7250-common: sepolicy: label /proc/sys/vm/rswappiness
My kernel uses rswappiness

Change-Id: I3894163a83da0981c7ca4c214375bee4bc4912fd
Signed-off-by: Juhyung Park <qkrwngud825@gmail.com>
Signed-off-by: aswin7469 <aswinas@pixysos.com>
2023-01-05 22:25:28 +05:30
Ziqi Chen
3caf4a5a8b sm7250-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>
Signed-off-by: aswin7469 <aswinas@pixysos.com>
2023-01-05 22:25:22 +05:30
alk3pInjection
67c70612ba sm7250-common: Sync props for Gcam
Extracted from https://f.celsoazevedo.com/file/cfiles/gcm1/Aux_Mod_V2.1-signed.zip

Change-Id: I1e5a670b26079e9ab20d57d1287a26085f9fa6b2
Signed-off-by: aswin7469 <aswinas@pixysos.com>
Signed-off-by: Sandeep-FED <sandymankara11@gmail.com>
2023-01-05 22:25:15 +05:30
aswin7469
b01c825b8f sm7250-common: allow hal_sensors_default to access QCOM diag port
* denied { read write } for name="diag" dev="tmpfs" ino=26705 scontext=u:r:hal_sensors_default:s0 tcontext=u:object_r:vendor_diag_device:s0 tclass=chr_file permissive=0

Signed-off-by: aswin7469 <aswinas@pixysos.com>
2023-01-05 22:25:01 +05:30
Kevin F. Haggerty
b5646bb2a9 sm7250-common: Sepolicy: Allow system_app to read /proc/pagetypeinfo
avc: denied { read } for name="pagetypeinfo" dev="proc" ino=4026543033
scontext=u:r:system_app:s0 tcontext=u:object_r:proc_pagetypeinfo:s0
tclass=file permissive=0

Signed-off-by: aswin7469 <aswinas@pixysos.com>
Signed-off-by: Sandeep-FED <sandymankara11@gmail.com>
Signed-off-by: Sandeep P S <sandymankara11@gmail.com>
2023-01-05 22:24:47 +05:30
Ivan Vecera
bc4bd12a9d sm7250-common: sepolicy allow system_app to access zram sysfs nodes
04-22 09:15:37.459 19569 19569 I auditd  : type=1400 audit(0.0:570): avc: denied { search } for comm="pool-2-thread-1" name="zram0" dev="sysfs" ino=48559 scontext=u:r:system_app:s0 tcontext=u:object_r:sysfs_zram:s0 tclass=dir permissive=0
04-22 09:15:37.459 19569 19569 I auditd  : type=1400 audit(0.0:571): avc: denied { search } for comm="pool-2-thread-1" name="zram0" dev="sysfs" ino=48559 scontext=u:r:system_app:s0 tcontext=u:object_r:sysfs_zram:s0 tclass=dir permissive=0

Change-Id: Ide9b1a9488b26fa69e7a2c8e73a8e657c8b28beb
Signed-off-by: Ivan Vecera <ivan@cera.cz>
Signed-off-by: aswin7469 <aswinas@pixysos.com>
Signed-off-by: Sandeep-FED <sandymankara11@gmail.com>
Signed-off-by: Sandeep P S <sandymankara11@gmail.com>
2023-01-05 22:23:40 +05:30
Jaegeuk Kim
c194818165 sm7250-common: sepolicy: Allow ioctl to zram_swap for performance
This fixes permission denied when setting F2FS_PIN_FILE.

[   46.726131] init: [libfs_mgr]Failed to set pin_file for f2fs: /data/per_boot/zram_swap: Permission denied
[   46.726151] init: [libfs_mgr]Failure of zram backing device file for '/dev/block/zram0'
[   46.726341] type=1400 audit(1601025878.312:17): avc: denied { ioctl } for comm="init" path="/data/per_boot/zram_swap" dev="dm-9" ino=4868 ioctlcmd=0xf50d scontext=u:r:init:s0 tcontext=u:object_r:per_boot_file:s0 tclass=file permissive=0

Bug: 169311165
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Change-Id: I982f70556284ac55d659bae6aff93b84d71e67f0
Signed-off-by: aswin7469 <aswinas@pixysos.com>
Signed-off-by: Sandeep P S <sandymankara11@gmail.com>
2023-01-05 22:21:46 +05:30
Mimi Wu
fa6ee90f23 sm7250-common: sepolicy: Modify sepolicy for toolbox to rm -rf /data/per_boot
type=1400 audit(1581489923.612:571): avc: denied { getattr } for comm="rm" path="/data/per_boot" dev="dm-9" ino=4577 scontext=u:r:toolbox:s0 tcontext=u:object_r:per_boot_file:s0 tclass=dir permissive=1
type=1400 audit(1581489923.612:572): avc: denied { read } for comm="rm" name="per_boot" dev="dm-9" ino=4577 scontext=u:r:toolbox:s0 tcontext=u:object_r:per_boot_file:s0 tclass=dir permissive=1
type=1400 audit(1581489923.612:573): avc: denied { open } for comm="rm" path="/data/per_boot" dev="dm-9" ino=4577 scontext=u:r:toolbox:s0 tcontext=u:object_r:per_boot_file:s0 tclass=dir permissive=1
type=1400 audit(1581489923.616:574): avc: denied { getattr } for comm="rm" path="/data/per_boot/ft09,GYyRLUL4NXv4BjupD" dev="dm-9" ino=4578 scontext=u:r:toolbox:s0 tcontext=u:object_r:per_boot_file:s0 tclass=file permissive=1
type=1400 audit(1581489923.616:575): avc: denied { write } for comm="rm" name="per_boot" dev="dm-9" ino=4577 scontext=u:r:toolbox:s0 tcontext=u:object_r:per_boot_file:s0 tclass=dir permissive=1
type=1400 audit(1581489923.616:576): avc: denied { remove_name } for comm="rm" name="ft09,GYyRLUL4NXv4BjupD" dev="dm-9" ino=4578 scontext=u:r:toolbox:s0 tcontext=u:object_r:per_boot_file:s0 tclass=dir permissive=1
type=1400 audit(1581489923.619:577): avc: denied { unlink } for comm="rm" name="ft09,GYyRLUL4NXv4BjupD" dev="dm-9" ino=4578 scontext=u:r:toolbox:s0 tcontext=u:object_r:per_boot_file:s0 tclass=file permissive=1
type=1400 audit(1581489923.656:578): avc: denied { rmdir } for comm="rm" name="per_boot" dev="dm-9" ino=4577 scontext=u:r:toolbox:s0 tcontext=u:object_r:per_boot_file:s0 tclass=dir permissive=1

Bug: 147469156
Test: flash full build and find avc errors gone
Change-Id: I22706c63fb13ea2aae0cd9fe8b92edc578fd459e
Signed-off-by: Mimi Wu <mimiwu@google.com>
Signed-off-by: aswin7469 <aswinas@pixysos.com>
2023-01-05 22:19:07 +05:30
Mimi Wu
e8c93af4e7 sm7250-common: sepolicy: Add sepolicy for kernel to access /data/per_boot/zram_swap
type=1400 audit(1581485243.256:88): avc: denied { read } for comm="loop29" path="/data/per_boot/zram_swap" dev="dm-9" ino=9820 scontext=u:r:kernel:s0 tcontext=u:object_r:system_data_file:s0 tclass=file permissive=0

Bug: 147469156
Test: flash full build and find avc errors gone
Change-Id: I48d7684ce3b4ca1ada81011b1cab21007c758ba5
Signed-off-by: Mimi Wu <mimiwu@google.com>
Signed-off-by: aswin7469 <aswinas@pixysos.com>
Signed-off-by: Sandeep-FED <sandymankara11@gmail.com>
Signed-off-by: Sandeep P S <sandymankara11@gmail.com>
2023-01-05 22:18:57 +05:30
Wei Wang
71f489e89a sm7250-common: Remove zram cold page writeback file
Bug: 140879284
Test: boot
Signed-off-by: aswin7469 <aswinas@pixysos.com>
2023-01-05 22:17:48 +05:30
Minchan Kim
7233137d2c sm7250-common: Enable zram writeback
This is a squash of:
Author: Minchan Kim <minchan@google.com>
Date:   Mon Oct 14 14:22:45 2019 -0700

    Enable zram writeback job scheduler

    Bug: 140882488
    Change-Id: I5489a7ce7a8d73306a6ecf69f57d338b2b0eaad2
    Signed-off-by: Minchan Kim <minchan@google.com>

Author: Minchan Kim <minchan@google.com>
Date:   Tue Nov 26 06:48:48 2019 -0800

    fstab: correct zram parameter names

    There was a report about warning during boot.
    [libfs_mgr]Warning: unknown flag: zram_loopback_path=/data/per_boot/zram_swap
    [libfs_mgr]Warning: unknown flag: zram_loopback_size=512M

    We don't use zram_loopback_path any longer so remove it.
    We also changed zram_loopback_size with zram_backingdev_size so correct it.

    Bug: 145116439
    Test: confirmed there is no warning and zram backing device was configured
    Change-Id: Iafb355999cd4995f34bf67259a8a39993ae8326a
    Signed-off-by: Minchan Kim <minchan@google.com>

Signed-off-by: aswin7469 <aswinas@pixysos.com>
Signed-off-by: Sandeep-FED <sandymankara11@gmail.com>
2023-01-05 22:17:42 +05:30
Wei Wang
84cab334a0 sm7250-common: rootdir: tune zram performance
-Set zram disksize so it can successfully initialize
-Set max_comp_streams to num of cores since upstream also moves this to percpu.
-Switch to LZ4 for better overall performance
-Set page-cluster to 0 as the incremental cost of reading 1 page at a time is negligible for zram

Bug: 38249616
Test: boot and run zram-perf showing better performance
Signed-off-by: aswin7469 <aswinas@pixysos.com>
2023-01-05 22:17:35 +05:30
Alexander Koskovich
06271a9453 sm7250-common: prop: Enable Qualcomm TrueWireless™ Stereo
Signed-off-by: drkphnx <dark.phnx12@gmail.com>
Signed-off-by: Sandeep-FED <sandymankara11@gmail.com>
2023-01-05 22:17:26 +05:30
Sandeep-FED
a5ad9ba746 sm7250-common: overlay: Set config_screen_off_delay to 0
* Fixed screen flicker when turn off screen with aod on.

Signed-off-by: Sandeep-FED <sandymankara11@gmail.com>
Signed-off-by: Sandeep P S <sandymankara11@gmail.com>
2023-01-05 22:17:01 +05:30
Sandeep-FED
d48200c6b3 sm7250-common: Disable gms components for better WiFi speeds
Signed-off-by: Sandeep-FED <sandymankara11@gmail.com>
Signed-off-by: Sandeep P S <sandymankara11@gmail.com>
2023-01-05 22:15:59 +05:30
Sandeep-FED
851c6c07c0 sm7250-common:Reduce screenshot delay to 0
Signed-off-by: Sandeep-FED <sandymankara11@gmail.com>
Signed-off-by: Sandeep P S <sandymankara11@gmail.com>
2023-01-05 22:12:54 +05:30
revolwoc
850517a1cd sm7250-common:address some denials
Signed-off-by: revolwoc <imsakshisharma04@gmail.com>
Signed-off-by: Sandeep-FED <sandymankara11@gmail.com>
2023-01-05 22:11:07 +05:30
aswin7469
c7d4e3aca5 sm7250-common: cleanup common.mk
* remove disabled oneplus-fwk (no longer needed as we using bsp blobs)
* add back boot-jars for wfdcommon and telephony (needed Soong fix has been added in rom side)

Signed-off-by: aswin7469 <aswinas@pixysos.com>
Signed-off-by: Sandeep-FED <sandymankara11@gmail.com>
2023-01-05 22:10:57 +05:30
aswin7469
5041396400 sm7250-common: update sepolicy for oneplus cam
* follow up to dc211612076fc67fc9ec4b90672ed3df9246d997
* update to account for rom side change

Signed-off-by: aswin7469 <aswinas@pixysos.com>
Signed-off-by: Sandeep P S <sandymankara11@gmail.com>
2023-01-05 22:10:40 +05:30
Sandeep-FED
db5bc9f371 sm7250-common: add blur
Signed-off-by: Sandeep-FED <sandymankara11@gmail.com>
Signed-off-by: Sandeep P S <sandymankara11@gmail.com>
2023-01-05 22:06:47 +05:30
XtremeOrnob
1fdeaa22bd sm7250-common: Enable USB Debugging at boot
* Because we get bootloops often, so we really need this ._.
 * ADB is insecure as well

Signed-off-by: XtremeOrnob <xtreme.ornob@gmail.com>
Signed-off-by: Manikantaraavi <raavimanikanta6595@gmail.com>
Signed-off-by: Sandeep-FED <sandymankara11@gmail.com>
2023-01-05 22:05:51 +05:30
aswin7469
85af0ed4f9 sm7250-common: suppress ims logspam
Signed-off-by: aswin7469 <aswinas@pixysos.com>
2023-01-05 22:05:44 +05:30
Sean Callanan
0fab25f460 sm7250-common: BoardConfig: Enable Gralloc ion sync
Gralloc ion sync enables a cache sync when Gralloc buffers are
unlocked.  Buffers the GPU wrote don't need this, but buffers the
CPU wrote do.

Bug: 183735780
Test: RealCalc
Change-Id: I67a9ee15b172fb11d262c41723404c5b9cafde82
Signed-off-by: aswin7469 <aswinas@pixysos.com>
2023-01-05 22:05:35 +05:30
Panchajanya1999
8b796843a4 sm7250-common: wifi: Disable WLAN Firmware loggings
firmware loggings are not at all necessary for general development.

Change-Id: I111943a641670ea052f68148103e377771297d77
Signed-off-by: Sherif Rahim <sherifrahim2001@gmail.com>
2023-01-05 22:05:25 +05:30
kerneltoast
7a6d81a214 sm7250-common: wifi: Relax WiFi re-association RSSI thresholds
Change-Id: I073f08eed69b2454e1fd2350c8f7e8bb8983641b
2023-01-05 22:03:27 +05:30
aswin7469
32b187fe0a sm7250-common: increase max visible notification icons
Signed-off-by: aswin7469 <aswinas@pixysos.com>
Signed-off-by: Sandeep-FED <sandymankara11@gmail.com>
2023-01-05 22:03:11 +05:30
Pranav Vashi
38fcb7fc6d sm7250-common: Use proper device name for USB mount
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Change-Id: Ib555205b589e017fbca3119b11495280e72536a8
Signed-off-by: firebird11 <hbgassel@gmail.com>
2023-01-05 22:03:00 +05:30
Hikari-no-Tenshi
c8c777a3b8 sm7250-common: prop: Add OnePlus device specific props
* Some proprietary blobs may check them

Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
Signed-off-by: chandu078 <chandudyavanapelli03@gmail.com>
Signed-off-by: firebird11 <hbgassel@gmail.com>
Change-Id: Ia5fab66dc63d2be92a3c56fff2765884ee2fa9e6
Signed-off-by: firebird11 <hbgassel@gmail.com>
2023-01-05 22:02:50 +05:30
firebird11
6a4d745e08 sm7250-common: Force OPCam into MultiResolution
Change-Id: I0dab3866240489e047fea1bb8822935fb456b951
Signed-off-by: firebird11 <hbgassel@gmail.com>
Signed-off-by: aswin7469 <aswinas@pixysos.com>
Signed-off-by: Sandeep-FED <sandymankara11@gmail.com>
2023-01-05 22:02:42 +05:30
chandu078
db9de2f501 sm7250-common: rro_overlays: Add RRO for OnePlusCamera & OnePlusGallery
Signed-off-by: firebird11 <hbgassel@gmail.com>
Change-Id: If69bfa3d417207b36bf08a0e87f8ab97916f0fbe
Signed-off-by: c79 <vexed@riseup.net>
Signed-off-by: aswin7469 <aswinas@pixysos.com>
Signed-off-by: Sandeep-FED <sandymankara11@gmail.com>
2023-01-05 22:02:30 +05:30
LuK1337
46aec432c2 sm7250-common: sepolicy: Allow camera to access vendor_xdsp_device
Change-Id: I59ee2b5a5f37690c2d55f8ee3acb0cdfb127e678
Signed-off-by: c79 <vexed@riseup.net>
2023-01-05 22:02:12 +05:30
c79
7a7402c347 sm7250-common: apply oneplus edits to media_profiles
* fixes slow mo in oneplus camera
Signed-off-by: aswin7469 <aswinas@pixysos.com>
2023-01-05 22:01:56 +05:30
Sultan Alsawaf
85325d4286 sm7250-common: Force triple frame buffers
* This yields significantly reduced jitter and doesn't have any measurable impact on latency.

Signed-off-by: DarkAngelGR <asavvo01@gmail.com>
2023-01-05 22:01:43 +05:30
Ethan Chen
3c4a667f46 sm7250-common: rootdir: Remove unnecessary QTI logkit directories
* We do not use logkit
2023-01-05 22:01:18 +05:30
Kyle Harrison
1d85ec5fc3 sm7250-common: props: Don't write binary XML files
- Android 12 now writes XML files in binary format by default. This can cause incompatibility with TWRP which can hang when attempting to read XML files e.g. /data/system/storage.xml

- This commit sets the persist.sys.binary_xml property to false so that XML files are written in text format.

Signed-off-by: aswin7469 <aswinas@pixysos.com>
Signed-off-by: Sandeep-FED <sandymankara11@gmail.com>
2023-01-05 22:01:08 +05:30
Diab Neiroukh
ae9d6537b9 sm7250-common: wifi: Enable channel bonding for Wi-Fi 4.
Signed-off-by: aswin7469 <aswinas@pixysos.com>
2023-01-05 21:59:49 +05:30
Alastair Donaldson
a96406d9f8 sm7250-common: Add Vulkan dEQP feature flags
Change-Id: I55c39601687ab66745c17598ec08e3eee12bf84c
Signed-off-by: aswin7469 <aswinas@pixysos.com>
2023-01-05 21:59:35 +05:30
aswin7469
7c63be3a8f Revert "sm7250-common: BoardConfig: Apply latest Kryo 785 & 385 Optmiziations"
This reverts commit 377add56440f2575579476c12451d1aad812eea9.
2023-01-05 21:59:19 +05:30
aswin7469
12c9486209 sm7250-common: label more wakeup nodes
log:

E android.system.suspend@1.0-service: Error opening event_count for wakeup104: Permission denied
E android.system.suspend@1.0-service: Error opening kernel wakelock stats for: wakeup24: Permission denied

Signed-off-by: aswin7469 <aswinas@pixysos.com>
2023-01-05 21:58:58 +05:30
MB
c17c94b335 sm7250-common: Improve haptic and vibe patterns 2023-01-05 21:58:49 +05:30
Venkata Sharath Chandra Manchala
15fc581ecf sm7250-common: wifi: Enable nl broadcast logging and disable packet logging
In Display ON DTIM power experiment it was found
that we have power saving with gMulticastHostFwMsgs=0
and gEnablePacketLog=0.

CRs-Fixed: 2506878
Change-Id: Ia4ea66c85c6ea3fd84f8f651de9db2c26fc134ed
Signed-off-by: Joey Huab <joey@evolution-x.org>
Signed-off-by: aswin7469 <aswinas@pixysos.com>
2023-01-05 21:58:40 +05:30
TheCrazyLex
1114bb3572 sm7250-common: wifi: Enable QPower and Deep sleep at the same time
* This enables Deep Sleep mode, additionally to QPower
* With this configuration, QPower manages the new Deep sleep mode
 -> Leads to amazing power savings

Change-Id: Ic4c23583cb008a5cfb14af15236f5aeba32f0f80
Signed-off-by: Joey Huab <joey@evolution-x.org>
2023-01-05 21:58:30 +05:30
Luk1337
ea6d8387cf sm7250-common: wifi: Disable RX wakelock feature
Change-Id: If79e1512a83f5162444683e1fa8f5560f98b6c9a
Signed-off-by: Joey Huab <joey@evolution-x.org>
Signed-off-by: aswin7469 <aswinas@pixysos.com>
2023-01-05 21:58:21 +05:30
ghostrider-reborn
7a9918cdf2 sm7250-common: Enable QCRIL radio power saving
Signed-off-by: aswin7469 <aswinas@pixysos.com>
2023-01-05 21:58:13 +05:30
Adithya R
40d78cd290 sm7250-common: rootdir: Disable cnss_diag service
* useless for production builds, runs in background and
   sometimes spams logcat

Signed-off-by: aswin7469 <aswinas@pixysos.com>
Signed-off-by: Sandeep-FED <sandymankara11@gmail.com>
2023-01-05 21:58:04 +05:30
Vaisakh Murali
17b308a944 sm7250-common: props: Use HintManager for HWUI
This will send HWUI timings to HintManager for better CPU scheduling.
Setting a 30% margin for CPU should heavily reduce CPU loads for HWUI and
use GPU for the rest.

Signed-off-by: drkphnx <dark.phnx12@gmail.com>
Signed-off-by: aswin7469 <aswinas@pixysos.com>
2023-01-05 21:57:55 +05:30
johnmart19
d972a291fc sm7250-common: Add android.hardware.media.c2@1.2 vendor version 2023-01-05 21:57:47 +05:30
Chenyang Zhong
cc3f770751 sm7250-common: Build media Codec2 modules 2023-01-05 21:57:27 +05:30
klozz
59a934bcda sm7250-common: media: satisfy C2 Codecs
We are using c2.qti codecs but satisfy aosp too
MediaCodecsXmlParser: MediaCodec: cannot update non-existing codec: c2.android.vp9.decoder at line 203 of /vendor/etc/media_codecs_performance.xml

Signed-off-by: aswin7469 <aswinas@pixysos.com>
2023-01-05 21:57:19 +05:30