Commit Graph

734 Commits

Author SHA1 Message Date
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
KakatkarAkshay
bbbc1eb40a sm7250-common: Update Blobs from OOS 11.0.16.16.EB13DA 2023-01-05 21:57:08 +05:30
aswin7469
68031e1fee sm7250-common: include oneplus camera
Signed-off-by: aswin7469 <aswinas@pixysos.com>
Signed-off-by: Manikantraaavi <raavimanikanta6595@gmail.com>
Signed-off-by: Sandeep-FED <sandymankara11@gmail.com>
Signed-off-by: Sandeep P S <sandymankara11@gmail.com>
2023-01-05 21:56:27 +05:30
Sandeep-FED
a0a2a575c1 sm7250-common: exclude WFDCommon
Signed-off-by: Sandeep-FED <sandymankara11@gmail.com>
2023-01-05 21:54:12 +05:30
XiNGRZ
b5984f28ca sm7250-common: overlay: Don't let burn-in protection shift too far
Signed-off-by: chandu078 <chandudyavanapelli03@gmail.com>
Signed-off-by: Manikantaraavi <raavimanikanta6595@gmail.com>
2023-01-05 20:38:25 +05:30
Keertesh
589743abf7 sm7250-common: Ignore neverallows 2023-01-05 20:38:10 +05:30
Akash Srivastava
f2b38cbae5 sm7250-common: Optimize art props
Ref: https://source.android.com/devices/tech/dalvik/configure#dex2oat_options
Signed-off-by: aswin7469 <aswinas@pixysos.com>
Signed-off-by: Sandeep-FED <sandymankara11@gmail.com>
2023-01-05 20:38:04 +05:30
srfarias
241e47a986 sm7250-common: add nodes to hide Magisk in banking apps
Some banking apps read the file /proc/net/unix to
find out whether things like Magisk are installed/running.

To prevent that, chmod it 440.
This file isn't needed by any other process when boot is finished.

I've tested this and banking apps that did not work before
and recognized Magisk being installed now don't recognize
that and work just fine.

Signed-off-by: aswin7469 <aswinas@pixysos.com>
2023-01-05 20:37:55 +05:30
Hernán Castañón Álvarez
19b503385a sm7250-common: Enable Alert Slider UI
Signed-off-by: CryllicBuster273 <cryllicbuster273@pixelexperience.org>
Signed-off-by: aswin7469 <aswinas@pixysos.com>
Signed-off-by: Sipun Ku Mahanta <sipunkumar85@gmail.com>
Change-Id: I18d0a0a21c5b5793dc12acae8ccdf18335719038
2022-04-09 11:13:37 +00:00
Midas Chien
78fe83ac2b sm7250-common: enable idle timer with kernel support
Enable display kernel driver idle timer, which allows dropping to lower
refresh rate earlier and without additional overhead.

Bug: 160682800
Test: track idle timer through systrace
Test: zone test, scrolling
Change-Id: I6e82b58026d7b31cf0cabc0db7bb6277f6731d12
Signed-off-by: aswin7469 <aswinas@pixysos.com>
Signed-off-by: Manikantaraavi <raavimanikanta6595@gmail.com>
2022-04-08 19:53:09 +00:00
Eamon Powell
0cc060fa35 sm7250-common: Add task profiles for API 31
This is necessary in order for stune boost to work.

Change-Id: Icc3444be95a177fb4b6ef77cbf582d696381b9cb
Signed-off-by: aswin7469 <aswinas@pixysos.com>
Signed-off-by: Manikantaraavi <raavimanikanta6595@gmail.com>
2022-04-08 19:52:34 +00:00
PainKiller3
c58e44d7d4 sm7250-common: prop: Disable vsync for CPU rendered Apps
* Choreographer VSync has some performance impact for CPU rendered apps
as the app has to wait for VSync to start a new frame draw. When the
frame draw time exceeds one VSync, this has a direct impact on the FPS.
debug.cpurend.vsync property controls the VSync for CPU rendered apps.

Disable VSync for CPU rendered app, by setting this property to false.

Signed-off-by: chandu078 <chandudyavanapelli03@gmail.com>
Signed-off-by: Manikantaraavi <raavimanikanta6595@gmail.com>
2022-04-08 19:51:58 +00:00
kunalshah
f49a0b06b2 sm8250-common: Disable config_displayBlanksAfterDoze
*This fixes ambient display

Signed-off-by: kunalshah <kunalshah912@gmail.com>
Signed-off-by: Manikantaraavi <raavimanikanta6595@gmail.com>
2022-04-08 19:48:59 +00:00
alk3pInjection
dce9f79f6b sm7250-common: sepolicy: label new fod status nodes
* Required for our fod hack.

Change-Id: I999b33ca675da101c58af79dc3b3363594fe25b9
Signed-off-by: aswin7469 <aswinas@pixysos.com>
Signed-off-by: Manikantaraavi <raavimanikanta6595@gmail.com>
2022-04-08 19:40:01 +00:00
johnmart19
149dcdad46 sm7250-common: BoardConfig: Apply latest Kryo 785 & 385 Optmiziations
- Kryo 785 for 64 bit Operations
- Kryo 385 for our Cortex A55 small cores
---------------
This change require commits in system:
build_soong: PixelPlusUI-SnowCone/build_soong@3ccb23e5f4
bionic: PixelPlusUI-SnowCone/bionic@d9150457a9
art: PixelPlusUI-SnowCone/art@47b140b6e9

Signed-off-by: chandu078 <chandudyavanapelli03@gmail.com>
Signed-off-by: Manikantaraavi <raavimanikanta6595@gmail.com>
Signed-off-by: Sandeep-FED <sandymankara11@gmail.com>
2022-04-08 19:38:42 +00:00
sthomsonpl
725f3e9d73 sm7250-common: Silence clang warnings during kernel compile
*clang-11: warning: argument unused during compilation:
'-fuse-ld=lld' [-Wunused-command-line-argument]

Signed-off-by: Manikantaraavi <raavimanikanta6595@gmail.com>
2022-04-08 19:33:28 +00:00
John Galt
5589919dff sm7250-common: overlay/fwb/config: Actually enable adaptive AOD brightness
Signed-off-by: aswin7469 <aswinas@pixysos.com>
Signed-off-by: Manikantaraavi <raavimanikanta6595@gmail.com>
2022-04-08 19:32:32 +00:00
xdevs23
cc422f3fab sm7250-common: rootdir: Hide Magisk Better
* Some banking apps read the file /proc/net/unix to
find out whether things like Magisk are installed/running.

To prevent that, chmod it 440.
This file isn't needed by any other process when boot is finished.

I've tested this and banking apps that did not work before
and recognized Magisk being installed now don't recognize
that and work just fine.

Signed-off-by: Manikantaraavi <raavimanikanta6595@gmail.com>
2022-04-08 19:30:51 +00:00
Daniel Solomon
798b78c656 sm7250-common: Add config for display composition color spaces
* Currently we use the Display-P3 color space for display composition
   across all color modes on op8. We do this to facilitate a new version
   of Adaptive color mode; this forces display to always use P3 color
   calibration.

 * It turns out that in op8's case using P3 color calibration for sRGB
   content, even when the content is accurately converted to P3, degrades
   color accuracy for certain sRGB colors. To fix this, we revert back to
   pre-op8 behavior, where we let SurfaceFlinger choose the most
   appropriate color space for composition, for all color modes used on op8
   *except* for Adaptive color mode.

Bug: 137140317
Bug: 137053654
Change-Id: I8670f76aa8c7c513e5a6db291c970a20609d032d
2022-04-01 16:51:37 +05:30
Jake Weinstein
19b73df61d sm7250-common: Set display calibration on color mode settings
* sRGB on Natural and Boosted
   Unmanaged on Saturated
   P3 on Automatic

Change-Id: Ida1a64ff2ea99973f2e2a0fa7ca062c75b7c4831
2022-04-01 16:51:29 +05:30
Jake Weinstein
c5c683c160 sm7250-common: Configure available color modes
* Stock already enables Natural, Boosted, and Adaptive.
   We add Saturated to give more options.

Change-Id: Ie8bb08e2cac9f6facdf64f5aebfa2b195a841b43
2022-04-01 16:51:26 +05:30
maxwen
38f99fb7f6 sm7250-common: overlay: Hide sRGB toggle in developer options
* This is only available on Nexus/Pixel devices. Already implemented
   in LiveDisplay for devices that have the proper profile in the
   QDCM calibration file or provide the commands via sysfs node.

Change-Id: I1dbeafdef930bcfeb2b950b3adce293307abff85
2022-04-01 16:51:22 +05:30