64 Commits

Author SHA1 Message Date
Rachel Lee
d884e136d9 Spacewar: Set 120Hz frame rate multiple threshold.
BUG: 190815773
Test: atest libsurfaceflinger_tests
Change-Id: I515aadf0305c306a1c58248daf9b38cec0161cf8
2026-01-15 11:22:43 +03:00
officialputuid
aaf9ac7a93 Spacewar: Remove Force triple frame buffers
* Causing some apps laggy & UI performance regression

Signed-off-by: TogoFire <togofire@mailfence.com>
Change-Id: I1a88503cdfbb6c52fbb66d6f67ffe26d9c51043c
Co-Authored-By: Reinazhard <reinazhard@gmail.com>
Co-Authored-By: Ratoriku <a1063021545@gmail.com>
Signed-off-by: absoluten00b <whiteviolent8@gmail.com>
2026-01-15 11:21:49 +03:00
chandu078
e4ceb64e6e Spacewar: Set debug.sf.disable_client_composition_cache to 0
This property disables client composition cache and causes
visible jank.

Change-Id: I9c5921dcf1116866ce95a043ad4388b9f2990036
2026-01-14 23:37:40 +03:00
Vikas batchu
49130c82bc Spacewar: Disable game_default_frame_rate override
-- this feature overrides fps during game play to a
   constant value irrespective of actual game frame rate
   which is not appropriate.

Change-Id: If072c09dd1f448648eef6199fdebff3853145412
2026-01-14 23:37:40 +03:00
New Author Name
0ac88c2c0f spacewar: Expose aux cameras to com.snapchat.android 2026-01-14 23:37:39 +03:00
nyxalune
9e3551751a Spacewar: cleanup!
Revert "spacewar: Fix screen record lag"

This reverts commit 5d7b9103de.

Spacewar: cleanup! again! haha.

Spacewar: cleanup

Revert "Spacewar: sepolicy: Allow PowerOffAlarm app to find alarm service"

This reverts commit bcf41ef21e5687e782d0af3f1ac9e82389e6cd05.
2026-01-14 23:37:39 +03:00
Ghosuto
f814a8b5db Spacewar: Set SurfaceFlinger uclamp.min to 20%
- improved rendering stability

Signed-off-by: Ghosuto <clash.raja10@gmail.com>
2026-01-14 23:37:39 +03:00
Sanjivns
f956d2af59 spacewar: prop: Add a property to enable prefetching video
persist.mm.enable.prefetch, if set to true, will enable
prefetching of video input from upstream source to help
improve playback performance for high frame-rate and
high bitrate content

Signed-off-by: Hikari-Soni <247soni01@gmail.com>
Signed-off-by: Drenzzz <naufalnazya@gmail.com>
Signed-off-by: Omar Mohamed <omarcoptan9@gmail.com>
Signed-off-by: Sanjivns <113604406+Sanjivns@users.noreply.github.com>
2026-01-14 23:37:38 +03:00
ghostrider-reborn
7f46887233 spacewar: Enable frame pacing for smoother visual performance
- Enabled `vendor.perf.framepacing.enable` to improve visual smoothness by regulating frame timing. This enhancement ensures consistent frame delivery, reducing stuttering and enhancing overall visual quality, particularly in graphics-intensive applications such as games.

Signed-off-by: TogoFire <togofire@mailfence.com>
Signed-off-by: ihsan <ihsanulrahman@gmail.com>
Signed-off-by: Niranjan BR <niranjankannan2003@gmail.com>
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
Signed-off-by: ryzenforce990 <superxorn@horizondroid.com>
2026-01-14 23:36:53 +03:00
pjgowtham
6585cc85a4 spacewar: Disable logging sensors-hal events
This sets log_level to 0

This is done especially to disable spammy logging of ambient light sensor events.
2026-01-14 23:36:53 +03:00
Guidix
a890c45033 spacewar: props: Enable support for kernel idle timer
- Kernel idle time enabled, as it supports better power management
2026-01-14 23:36:53 +03:00
imjyotiraditya
b46f0a4a98 spacewar: props: Enable config_avoidGfxAccel
- This flag turns off GPU/CPU intensive UI effects and
  reduces the RAM footprint.

- Using this is a better compromise than the 'low_ram' flag
  as this does not disable features in the rom but still
  reduces RAM usage and gives better smoothness in the UI.
 android-15
2026-01-14 23:36:53 +03:00
KenHV
22cfd8a991 spacewar: Fix screen record lag 2026-01-14 23:36:53 +03:00
ZVNexus
f1552a29c5 spacewar: Enable Qualcomm TrueWireless™ Stereo 2026-01-14 23:36:53 +03:00
LuK1337
638d2fa93e spacewar: Set ro.netflix.bsp_rev
* This prop makes Netflix select L1 instead of L3.

Change-Id: Idc0368803ca082e99392fb136f2cdc41a4cb0c87
2026-01-14 23:36:53 +03:00
sirNewbies
2af6b1ac4d spacewar: props: Enhance Audio Quality 2026-01-14 23:36:53 +03:00
OliverSyx
7174c52149 spacewar: Use hwui and add some hwui props for improve perf 2026-01-14 23:36:49 +03:00
MySelly
e6072b52ee spacewar: Enable debug.performance.tuning 2026-01-14 23:35:54 +03:00
Cyber Knight
9e5f39d735 spacewar: Apply dex2oat optimizations
- Set only 4 threads to be utilized for dex2oat as dex2oat supports concurrent jobs since [1].
- Moreover, set only 4 threads to be utilized for boot image dex2oat as well.

[1]: 93c605c0d6

Change-Id: I8cf2544efeb4cd0c9befbaa2c208eed68c4204ac
Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
2026-01-14 23:35:54 +03:00
eblonmusk
b5a3dcc86b Spacewar: props: For smoother scrolling and better responsiveness 2026-01-14 23:35:54 +03:00
BrainKub
7b8eb196d1 Revert "Spacewar: Remove QTI perfd"
UI stutters appear with lineage-libperfmgr

This reverts commit 54f61e8807.

Change-Id: Ib9cb5ade6d576db63348cca3867640ba04e74418
2026-01-14 23:35:54 +03:00
nyxalune
6c3c3d24e9 Spacewar: Update vendor.prop
- Disable backpressure to reduce frame latency
- Disable HWC VDS for consistent SurfaceFlinger behavior
2026-01-14 23:35:54 +03:00
DaViDev985
02336d81a0 vendor.prop: Set debug.sf.enable_hwc_vds=0
Seems to help with blur rendering performance.
2026-01-14 23:35:54 +03:00
DaViDev985
92bda29e94 vendor.prop: Add props for improving UI smoothness with blurs enabled 2026-01-14 23:35:54 +03:00
BrainKub
754ec9a4f0 Spacewar: set correct audio properties for in-call noise cancelling
Use fluence properties from stock rom, enable compr_voip and dynamic_ecns

Change-Id: I3b1fcc24528a6428be743a950027874279aad35e
2025-09-01 16:16:45 +00:00
Yumi Yukimura
afb73fb73e Spacewar: Migrate to QTI USB Gadget AIDL HAL
Change-Id: I6adbca2fab9a3fe0477d17f9786166828b786710
2025-09-01 16:11:34 +00:00
BrainKub
30db96478e Spacewar: disable fluence for speakerphone
When making a call on speakerphone, the noise cancelling was too strong, which drowned out all the sound from the microphone.

Change-Id: I7c2a55c5e53b1773ee6a0a5bf41b671aae67d4c9
2025-09-01 16:11:34 +00:00
Sami Tolvanen
4bda881fbd Spacewarr: set ro.oem_unlock_supported=1
Bug: 26039090
Change-Id: I79bc274db94944487a2af8210c3ab51f1356a1c0
2025-09-01 16:11:34 +00:00
adityayyy
a82e27b792 Spacewar: import more dirac libs & apps 2025-09-01 16:11:34 +00:00
Cyber Knight
6987b96ea8 Spacewar: Apply dex2oat optimizations
- Set only 4 threads to be utilized for dex2oat as dex2oat supports concurrent jobs since [1]. -
   Moreover, set only 4 threads to be utilized for boot image dex2oat as well.

[1]: 93c605c0d6

Change-Id: I9a531249de158f78b4a8b2289d949401dbf934e9
2025-03-20 15:21:58 +00:00
Sourajit Karmakar
e1583c3243 Spacewar: Disable FRP
This should really be disabled after you unlock your bootloader.

Change-Id: I6833ee39288472c76c8638800e3ee9c182f4adcc
2025-03-20 15:21:43 +00:00
Michael Bestas
067436f660 Spacewar: Use AOSP default Codec2/OMX ranks
debug.stagefright.ccodec=4
is the default value in frameworks.

debug.stagefright.omx_default_rank=0
was used to rank OMX SW codecs lower than OMX HW codecs
but we have removed all OMX SW codecs now.

Change-Id: Idf55ec02c2c0f4d2fa73f949cffef0d820a54570
2025-01-20 13:13:17 +01:00
DarkJoker360
6b3b9d441f Spacewar: Update from NothingOS 3.0 OBT
Co-authored-by: Jake Weinstein <jake@aospa.co>
Co-authored-by: aswin7469 <aswinas@pixysos.com>
Co-authored-by: BrainKub <fyhtjnt@gmail.com>
Change-Id: Ief104e379cfdd9d2b46b4fb79d21a6e848e119ca
2025-01-20 13:13:17 +01:00
Edwin Moquete
19b94acf58 Spacewar: Disable display refresh rate override
This got enabled by default on U, and it causes apps like
Chrome and Youtube to set the refresh rate to 30FPS when
playing some videos.

Change-Id: I649bf03d550c2b9726c7957d15ed09e455d874ec
2025-01-20 13:13:17 +01:00
Alessio Balsini
e2e4cf9972 Spacewar: Use FUSE passthrough by default
Enable the persist.sys.fuse.passthrough.enable flag for the device
configuration to enable the FUSE passthrough feature.
This feature has been enabled on Cuttlefish, Wembley and Redbull devices for
months and no issues have been detected yet.

Bug: 168023149
Test: 'adb shell getprop | grep persist.sys.fuse.passthrough.enable',
    ScopedStorageTest
Signed-off-by: Alessio Balsini <balsini@google.com>
Change-Id: I3f39b02af436f7e508bb70efc702565a667a051c
2025-01-20 13:13:17 +01:00
Victor Hsieh
65c6f59459 Spacewar: Enable APK Verity
fs-verity is already in the kernel, so enabling the feature.

Test: atest com.android.apkverity.ApkVerityTest
Bug: 142494008
Change-Id: I19810f53d32972a64b16f5b74bbee67d8f4722c3
2025-01-20 13:13:17 +01:00
Sultanxda
ff2c5a326a Spacewar: Disable vendor.audio.feature.kpi_optimize.enable
We're not using perfd so this is useless.

Change-Id: I862d8bf175c8a99e525f50250ef900cc84da89d9
2023-10-09 20:18:12 +02:00
Park Ju Hyung
af5c67ecb8 Spacewar: 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
120 Hz 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: Park Ju Hyung <qkrwngud825@gmail.com>
2023-10-07 01:46:25 +02:00
x0x00044
cf59a7f76e Spacewar: Update from NothingOS 2.0.2 Hotfix build
- Update rootdir chowns
- Uppercase the device name again

Co-authored-by: aswin7469 <aswinas@pixysos.com>
Change-Id: I96d837889cdbd4cd9652a7f5d5e716c3767c8aca
2023-09-20 23:24:11 +02:00
Wei Wang
54f61e8807 Spacewar: Remove QTI perfd
Bug: 69270928
Test: Build and boot device and test camera
Change-Id: I87b283206f462fb5c8ec9cdd303ae2934fe9bfc4
2023-09-11 21:34:03 +02:00
Alexander Koskovich
d4a069943f Spacewar: Set USB product string to 'Nothing phone (1)'
* This is better for user facing stuff than "A063".

Change-Id: I1f380699692c07b2fcc03fa83adc292b6d899cf7
2023-09-11 19:54:36 +02:00
Ady Abraham
547b00213d Spacewar: enable SurfaceFlinger's display power timer
Set ro.surface_flinger.set_display_power_timer_ms to 1 second to handle
DOZE mode with multiple refresh rates.

Bug: 135550670
Test: Toggle DOZE by hitting the power button and collect systrace
Change-Id: I43d0c90c0156f7bf21ccca3127f53a4cd967717f
2023-09-11 19:54:36 +02:00
Ana Krulec
a9eb6c1b18 Spacewar: SF: increase idle timer timeout to 100ms
Screen flickers before going to sleep because idle timer is reset every
50ms. Increasing the tolerance of the idle timer to 100 fixes it, since pulses
come every 89ms. Let's try going with 100ms and see how it goes.

Bug: 128359869
Test: systrace

Change-Id: I12180d128e37c14cff713658db6ac5cdffde48ad
2023-09-11 19:54:36 +02:00
Ady Abraham
46c6a6f1df Spacewar: add surface flinger idle timer value
Set SurfaceFlinger idle timer to 50ms on coral and flame devices.

Test: flashall the build and observe idle timer value
Bug: 126270036
Change-Id: I26a0b3f9f1efedd05f164cdda1d6a1bbd07ba7e5
2023-09-11 19:54:36 +02:00
justinweng
16da11ba24 Spacewar: Extend audio offload buffer size to 256kb
Extend buffer size for offload playback to reduce the frequency of CPU
wake up.
It makes ADSP to process more data one time and reduce the number of
times to wake up CPU.

Bug: 137973303
Test: MP3 playback

Change-Id: Ib0b2a8827647ed780bb20bd9dfa2a383153eb282
Signed-off-by: justinweng <justinweng@google.com>
2023-09-11 19:54:36 +02:00
Jayachandran C
323567f62c Spacewar: 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-09-11 19:54:36 +02:00
Edwin Moquete
75da6d9859 Spacewar: Remove unused persist.bluetooth.a2dp_offload.cap property
This prop has no effect as of T QPR1.

See: cf25e33147

Change-Id: Ic762812dd59429d344ccc55c01bf96b0ffd6dbab
2023-09-11 19:54:36 +02:00
johnmart19
ae2d2ec1c4 Spacewar: props: Switch to AutoSingleLayer Android 13 Setting
- According to https://source.android.com/docs/core/graphics/unsignaled-buffer-latch

Change-Id: Iece8dcf25ca227f171eba3689709bb03e8b7d183
2023-09-11 19:54:36 +02:00
xboxfanj
6a21aea04b Spacewar: Enable asynchronous power mode
This fixes resuming display after suspend when AOD is disabled.

Change-Id: If5cd0c37d97da3d7a96432e17be7fa34e377a690
2023-09-11 19:54:36 +02:00
xboxfanj
8b23cc7784 Spacewar: Force pre-5.10 devices to treat 170M as sRGB in SF
Bug: 229442032
Test: builds, boots
Change-Id: If144724a342be4a74f823aa25ff8a74fe3d2843a
2023-09-11 19:54:36 +02:00