Commit Graph

793 Commits

Author SHA1 Message Date
aswin7469
da13ced8b9 sm7250-common: reduce TARGET_SCREEN_DENSITY
* matches pixels with similar display size

Signed-off-by: aswin7469 <aswinas@pixysos.com>
2023-01-05 22:39:01 +05:30
Sandeep-FED
4b59886315 sm7250-common: set default refresh rate to 0
Signed-off-by: Sandeep-FED <sandymankara11@gmail.com>
2023-01-05 22:38:52 +05:30
Anirudh Gupta
cdb005fc97 sm7250-common: overlay: Define slow brightness ramp animation rate
Signed-off-by: Anirudh Gupta <anirudhgupta109@aosip.dev>
Change-Id: I00a4303a1a6e237ea0241e539ce635c0d4b9790f
Signed-off-by: Pranav <npv12@iitbbs.ac.in>
Signed-off-by: aswin7469 <aswinas@pixysos.com>
2023-01-05 22:38:44 +05:30
TH779
4d17856c81 sm7250-common: Declare OpenGL ES dEQP level
Signed-off-by: TH779 <i@779.moe>
Change-Id: Ia3a840b993c646ce1b017f4f55aef94d13040266
Signed-off-by: aswin7469 <aswinas@pixysos.com>
2023-01-05 22:38:36 +05:30
HotDogfinba11
65ea78171c sm7250-common: Adaptive charging xml
Allows to enable adaptive charging toggle.

Signed-off-by: sakhiofsakshi <imsakshisharma04@gmail.com>
Signed-off-by: aswin7469 <aswinas@pixysos.com>
2023-01-05 22:36:56 +05:30
Park Ju Hyung
5cc57c3755 sm7250-common: device: Relax timers for automatic refresh rate switching
* Due to visible gamma shifts on our panels, we should
   make the switchings to happen conservatively.

 * With idle timer >= touch timer, idle timer now always
   takes precedence, but we're leaving touch timer property
   to immediately switch back to 120Hz on touch input events.

 * Display power timer is left untouched as it's responsible
   for display mode changes such as Doze.

Change-Id: If8b1e00a2d2213c4d2288ab28fad4ba0826a36e8
Signed-off-by: aswin7469 <aswinas@pixysos.com>
2023-01-05 22:36:43 +05:30
Danny Lin
01b17acae3 sm7250-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 device tree as well to make pulling
down the notification shade/QS panel feel slightly more interactive.

Signed-off-by: aswin7469 <aswinas@pixysos.com>
Signed-off-by: Sandeep-FED <sandymankara11@gmail.com>
2023-01-05 22:36:34 +05:30
hpnightowl
9ffab294f4 sm7250-common: common: Drop audio.a2dp.default
* Building from here:
   https://github.com/LineageOS/android_build/blob/lineage-18.1/target/product/full_base.mk#L35

Change-Id: Ib71c1abd381468ec3621d60e5ca959f738f51168
Signed-off-by: chandu078 <chandudyavanapelli03@gmail.com>
Signed-off-by: rany <ranygh@riseup.net>
2023-01-05 22:36:24 +05:30
Chandu Dyavanapelli
60b91c0696 sm7250-common: rootdir: Update scripts from LA.UM.9.12.r1-14200-SMxx50.QSSI13.0
Signed-off-by: chandu078 <chandudyavanapelli03@gmail.com>
Signed-off-by: aswin7469 <aswinas@pixysos.com>
2023-01-05 22:36:17 +05:30
Midas Chien
ea3a9386c9 sm7250-common: add display fps deferral
The FPS deferral property allows deferring clock/bandwidth votes
when switching from high refresh rate to low in case hardware
takes some extra time to change refresh rate.

Bug: 152468927
Bug: 154607334
Test: 60/90 switching, no noise line
Test: systrace to check vsync period
Change-Id: I47284578d13c203b14b3213081faf258dd9a542b
Signed-off-by: aswin7469 <aswinas@pixysos.com>
2023-01-05 22:36:10 +05:30
Ramisky
8b97ab3a18 sm7250-common: set Surfaceflinger refresh rate timers
This to allow us to idle to lower refresh rates even if the app is requesting a higher one if it's idle to save battery life, or boost even on apps that don't request a certain high refresh rate to get a smoother experience

Change-Id: Ie611283e1d75a31b218454073e85742be91fdf07
Signed-off-by: aswin7469 <aswinas@pixysos.com>
2023-01-05 22:36:04 +05:30
Ramii Ahmed
bf913e6885 sm7250-common: props: Enable content based SF refresh rate setting
Change-Id: I6a79a172df58f724e1d43ae527bc5fbd3ec7ea67
Signed-off-by: aswin7469 <aswinas@pixysos.com>
Signed-off-by: Sandeep-FED <sandymankara11@gmail.com>
2023-01-05 22:35:57 +05:30
Akash Srivastava
e7fb163ef0 sm7250-common: Optimize art props
Ref: https://source.android.com/devices/tech/dalvik/configure#dex2oat_options
Signed-off-by: Sandeep-FED <sandymankara11@gmail.com>
Signed-off-by: Sandeep P S <sandymankara11@gmail.com>
2023-01-05 22:35:39 +05:30
hkuang
df2eee5d0c sm7250-common: Add transcoding related property
Bug: 175231451
Test: CtsMediaTranscodingTestCases:MediaTranscodeManagerTest
Change-Id: I439ca19f718b9ea0d2fe0eb6f6960a4aa80d915d
Signed-off-by: aswin7469 <aswinas@pixysos.com>
2023-01-05 22:31:53 +05:30
wenchangliu
2ccd595f04 sm7250-common: Codec2: Set minQP to 1 for IMS VT Call
We can not reach to the target bitrate in CBR mode with default minQP
when VT Call set iframe interval = -1. Set minQP=1 to generate enough
bits from encoder in CBR mode.

Bug: 155482704
Test: reproduce steps in bug
Change-Id: If59cf475683eb4cf8b83d02653272a1cd8294dd5
Signed-off-by: aswin7469 <aswinas@pixysos.com>
2023-01-05 22:31:47 +05:30
Sebastiano Barezzi
e8e59cd57d sm7250-common: Stop explicitely building netutils-wrapper-1.0
* Built by default

Change-Id: Id6666535bb8d0b84d2d0a8d19411fafa49df3d68
Signed-off-by: aswin7469 <aswinas@pixysos.com>
2023-01-05 22:31:41 +05:30
Sebastiano Barezzi
4f16df691b sm7250-common: Drop QTI camera device usage
* qcom-camera topic hasn't been ported to 19.1
* Keep building vendor.qti.hardware.camera.device@1.0 interface lib, IMS stack and possibly camera HAL still needs it

Change-Id: I87bcd5b54ad986d5844df50de243fc1a18507198
Signed-off-by: aswin7469 <aswinas@pixysos.com>
Signed-off-by: Sandeep-FED <sandymankara11@gmail.com>
2023-01-05 22:31:35 +05:30
Sebastiano Barezzi
1748d6510c sm7250-common: Remove USE_DEVICE_SPECIFIC_CAMERA
* Doesn't exist
* also remove unused TARGET_CAMERA_NEEDS_CLIENT_INFO_LIB := true

Change-Id: I10fc7de8721f3c871d00522e1d85c2a8d8c18160
Signed-off-by: aswin7469 <aswinas@pixysos.com>
Signed-off-by: Sandeep-FED <sandymankara11@gmail.com>
2023-01-05 22:31:30 +05:30
Sebastiano Barezzi
0ef94be9da sm7250-common: Remove TARGET_ENABLE_MEDIADRM_64
* It's only used when building drm@1.0 HIDL

Change-Id: I06412e2dd2bb48d798be4ef6e9a26a17b65277a7
2023-01-05 22:31:24 +05:30
aswin7469
cd7d09b9d9 sm7250-common: nuke non-existent oneplus gpudriver prop
* we switched to caf graphics blobs

Signed-off-by: aswin7469 <aswinas@pixysos.com>
Signed-off-by: Sandeep-FED <sandymankara11@gmail.com>
2023-01-05 22:31:16 +05:30
Chenyang Zhong
cd13d243c8 sm7250-common: add a script to update sha1sum from vendor commit
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
Signed-off-by: aswin7469 <aswinas@pixysos.com>
2023-01-05 22:31:11 +05:30
Subash Abhinov Kasiviswanathan
ef19130635 sm7250-common: init: Remove unused tcp property change actions
Remove the events triggered on the setting of
ro.data.large_tcp_window_size and sys.sysctl.tcp_adv_win_scale.

These events are no longer used and are also resulting in
unneccessary selinux denials.

CRs-Fixed: 2947333
Change-Id: I92bc474b7168729eebb56cab0868dbd1cbbebf04
Signed-off-by: aswin7469 <aswinas@pixysos.com>
2023-01-05 22:31:05 +05:30
aswin7469
e0453cfb16 sm7250-common: drop unused radio properties
* move Atfwd client prop to system
* checkout to LA.UM.9.12.r1-14200.02-SMxx50.QSSI12.0

Signed-off-by: Sandeep-FED <sandymankara11@gmail.com>
2023-01-05 22:30:50 +05:30
KakatkarAkshay
5f403a427f sm7250-common: Update blobs from LA.UM.9.12.r1-14200.02-SMxx50.QSSI12.0 2023-01-05 22:30:44 +05:30
KakatkarAkshay
221589fbe3 sm7250-common: Update blobs from LA.UM.9.12.r1-14000.02-SMxx50.QSSI12.0
Signed-off-by: Sandeep-FED <sandymankara11@gmail.com>
2023-01-05 22:30:33 +05:30
Chandu Dyavanapelli
e8c44e34b4 sm7250-common: rootdir: Update scripts from LA.UM.9.12.r1-13300-SMxx50.QSSI12.0
Signed-off-by: chandu078 <chandudyavanapelli03@gmail.com>
Signed-off-by: aswin7469 <aswinas@pixysos.com>
2023-01-05 22:30:26 +05:30
aswin7469
0bc8972eea sm7250-common: rootdir: cleanup unused oneplus stuffs
* im sorry custom kernels

Signed-off-by: aswin7469 <aswinas@pixysos.com>
2023-01-05 22:30:20 +05:30
Chandu Dyavanapelli
d7383e5556 sm7250-common: prop: Update props from LA.UM.9.12.r1-13300-SMxx50.QSSI12.0
Signed-off-by: chandu078 <chandudyavanapelli03@gmail.com>
2023-01-05 22:30:13 +05:30
dev-harsh1998
e421d0844d sm7250-common: Enable HWUI_COMPILE_FOR_PERF
* activates few optimizing compiler flags for HWUI

Signed-off-by: aswin7469 <aswinas@pixysos.com>
2023-01-05 22:30:04 +05:30
TheCrazyLex
dc78aae9b5 sm8250-common: wifi: Improve 5GHz AP selection preference
* Implement a smarter system on whether to connect to the
   provided 2Ghz or 5Ghz network.

Change-Id: Idd41e3d9a5e2bde3ea9b4873dffc4274d1530324
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Signed-off-by: PainKiller3 <ninadpatil100@gmail.com>
Signed-off-by: drkphnx <dark.phnx12@gmail.com>
2023-01-05 22:29:45 +05:30
aswin7469
6cb8811cbd sm8250-common: Enable haptic feedback on text selection/insertion
Signed-off-by: drkphnx <dark.phnx12@gmail.com>
Signed-off-by: Sandeep-FED <sandymankara11@gmail.com>
2023-01-05 22:29:18 +05:30
mukesh22584
7e9632b5e6 sm7250-common: overlay: Exempt cne from location indicators
- CNE isn't suspicious, So hide privacy indicators for this app.

Signed-off-by: drkphnx <dark.phnx12@gmail.com>
Signed-off-by: Sandeep-FED <sandymankara11@gmail.com>
2023-01-05 22:29:10 +05:30
Sandeep-FED
b8ea694219 sm7250-common:overlay: Allow more cached apps in the background
Signed-off-by: Sandeep-FED <sandymankara11@gmail.com>
2023-01-05 22:29:03 +05:30
Chiawei Wang
1f0ced70f0 sm7250-common: Add the customized max cached processes number
Bug: 190531672
Test: make
Test: dumpsys activity | grep CUR_MAX_CACHED_PROCESSES
Change-Id: Iad6ea04fe2cc7223168d2753e53949394056540a
Signed-off-by: aswin7469 <aswinas@pixysos.com>
2023-01-05 22:28:50 +05:30
Santiago Seifert
87e5d81407 sm7250-common: Unpin updatable-media from memory
Bug: 214499288
Change-Id: If523b95d295feba8f0de0ae85a1b3c2985dbbfbc
Test: Presubmit
Signed-off-by: aswin7469 <aswinas@pixysos.com>
2023-01-05 22:28:42 +05:30
aswin7469
8f94637235 sm7250-common: cleanup aosp Codec2 modules
* we switched to  QTI Codec2 HAL

Signed-off-by: aswin7469 <aswinas@pixysos.com>
2023-01-05 22:28:23 +05:30
aswin7469
b8df5084a8 sm7250-common: remove GCamGO
This reverts commit b5ab9eb2478b1586866f4cb6a5c045f6f117a439.
2023-01-05 22:28:14 +05:30
jjpprrrr
88153d8d8c sm7250-common: build libdisplayconfig.system.qti for QCOM WFD
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2023-01-05 22:25:45 +05:30
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