Commit Graph

657 Commits

Author SHA1 Message Date
kamikaonashi
ba527c1d05 stone: drop perf blobs
we use libperfmgr now

Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-08-03 02:45:04 +00:00
Randall Huang
eb86b461c9 stone: rootdir: etc: fstab: data=journal,commit=1 for /metadata
Since Ext4 doesn't implement "-o sync", it commits metadata at every 5 secs.
This may cause /metadata corruption.

Bug: 162883014
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-08-03 02:44:41 +00:00
kamikaonashi
0f19893ac5 stone: sepolicy: fix Powerhal
allow powerhal to write, open and read

Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-08-03 02:44:16 +00:00
kamikaonashi
8ca0e209f0 stone: rootdir: fix PowerHAL nodes
W libperfmgr: Failed to write to node: /proc/sys/kernel/sched_prefer_spread with value: 0, fd: -1
W libperfmgr: Failed to write to node: /proc/sys/kernel/sched_busy_hyst_ns with value: 3000000, fd: -1
W libperfmgr: Failed to write to node: /proc/sys/kernel/sched_busy_hysteresis_enable_cpus with value: 15, fd: -1
W libperfmgr: Failed to write to node: /proc/sys/kernel/sched_min_task_util_for_boost with value: 51, fd: -1
W libperfmgr: Failed to write to node: /proc/sys/kernel/sched_min_task_util_for_colocation with value: 35, fd: -1

Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-08-03 02:44:04 +00:00
kamikaonashi
5058b2b9b1 stone: properties: silence more battery logspam
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-08-03 02:43:43 +00:00
Sugakesshaa
9cdad36cf4 stone: added sepolicy for powerhal
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-08-03 02:43:16 +00:00
Sugakesshaa
e26e3d453e stone: Enable powerhint parsing after boot completion
Signed-off-by: Nomishaw21 <nomishaw9@gmail.com>
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-08-03 02:43:00 +00:00
Sugakesshaa
28ccfda792 stone: switch with oos libperfmgr
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-08-03 02:42:45 +00:00
bgcngm
689e6af2a2 stone: Convert WiFi firmware symlinks to install_symlink targets
The last bit that was preventing building hermetic images.

Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-08-03 02:42:31 +00:00
bgcngm
9c4da389cf stone: move to new RFS install_symlink targets
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-08-03 02:42:16 +00:00
kamikaonashi
eb91f75941 stone: audio: add back FM Tuner
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-08-03 02:41:57 +00:00
kamikaonashi
674ae59c00 stone: build FM again
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-08-03 02:41:46 +00:00
kamikaonashi
1b9178dd71 stone: fix qcom bluetooth soc
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-08-03 02:41:34 +00:00
kamikaonashi
2554ee8c93 stone: overlay: drop adaptive color profile
causes lags on our device

Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-08-03 02:41:23 +00:00
Arijit78
eb0941240b Revert "stone: Steal SurfaceFlinger offsets from taro"
This reverts commit 8a0e5d3e0f.
2024-08-03 02:39:46 +00:00
Arijit78
1cba9c54ad Revert "stone: Convert packages disallowed to use aux cameras to prop"
This reverts commit 3a6d93676f.
2024-07-16 17:59:25 +00:00
Arijit78
04976e30ab stone: Remove duplicate entries from genfs_contexts
- Also update kernel link from crdroid in vendorsetup.sh

Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-07-16 17:55:43 +00:00
Arijit78
2421d6ce33 stone: Official EvolutionX BringUp 2024-07-16 11:30:10 +00:00
Adithya R
e4e86ef966 stone: properties: Set SF idle timeout to 1100ms
When a clock with seconds tick is on the display, it switches back and
forth between high and low refresh rate if the timer is <=1000ms (1s).
Set it to 1.1s which is just slightly higher to avoid this issue.
This also matches stock value.

Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-07-16 10:55:27 +00:00
Vishalcj17
8a0e5d3e0f stone: Steal SurfaceFlinger offsets from taro
* Before:
   Jitter: 0.6ms
   Total duration: 7.1ms

 * After:
   Jitter: 0.3ms
   Total duration: 6.4ms

Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-07-16 10:55:17 +00:00
Alex Sarraf
c5563ee4a2 stone: properties: Set debug.sf.auto_latch_unsignaled to 0
Need to explicitly set auto_latch_unsignaled property to
disabled state to keep latch-unsignaled as the default
behavior.

* Also set debug.sf.latch_unsignaled to 1

Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-07-16 10:54:55 +00:00
helliscloser
75cfaf5a58 stone: properties: Explicitly disable "Enable GL comp backpressure"
When blur is enabled,
There is severe lag in; Launcher3 while scrolling apps in App drawer, Scrolling through recents and occasionally on QS pull down.

Enabling or completely removing the prop here sm6150-davinci/device_xiaomi_sm6150-common@d6233e0 doesn't seem to make an effect.
Explicitly disabling the "Enable GL comp backpressure" prop seems to slove the issue.

Lag & janks are gone now, even with blur.

Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-07-16 10:54:42 +00:00
kamikaonashi
a4445c3822 stone: overlay: Disable pickup gesture
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-07-16 10:53:01 +00:00
zeelog
393763ed7d stone: parts: Shrink resources
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-07-16 10:52:36 +00:00
kamikaonashi
973111e140 stone: libinit: set memory tweaks only for 4GB Users
6 and 8 GB Users are fine. atleast for now

Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-07-16 10:52:18 +00:00
Jyotiraditya
2c6d485c69 stone: libinit: Enable config_avoidGfxAccel for 4GB variants
- 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.

Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-07-06 17:18:49 +00:00
kamikaonashi
dcf6a5bd9c revert: stone: overlay: Set config_avoidGfxAccel to true
this reverts commit 821496e
2024-07-06 17:18:19 +00:00
althafvly
e4981371da stone: Add front-facing camera protection
* Extra padding for front facing camera cutout when camera is in use
* Remove flares on high brightness while using front camera

Change-Id: I68acb0deecbecd916be90de0a9043ea4703553df
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-07-06 06:54:12 +00:00
Alexander Koskovich
93b805cf1e stone: rro_overlays: Drop explicit 'sdk_version' declaration
* We don't need to manually set this anymore.

Change-Id: I1239ba541636e53f8ea4373d3815024f2cd60824
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-07-06 06:53:58 +00:00
basamaryan
ff84d47efa stone: Drop unnecessary BOARD_USERDATAIMAGE_FILE_SYSTEM_TYPE flag
Change-Id: Ibb96c529ac64239d7bb919e46f5a625a6deebf98
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-07-06 06:52:19 +00:00
SGCMarkus
f053895640 stone: unset BOARD_USERDATAIMAGE_PARTITION_SIZE
This not only saves a lot of build time when building with
TARGET_USERIMAGES_SPARSE_EXT_DISABLED and/or
TARGET_USERIMAGES_SPARSE_F2FS_DISABLED which is required
on A14, but also removes the need for the build system to
temporarily create a 40+GB userdata image.
Which means that less free space is required to start the
build.

Change-Id: Ibf48e7cdf566a4653e85352a79170b354d917234
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-07-06 06:51:58 +00:00
Michael Bestas
77befcb086 stone: Build missing libraries for 14 QPR3
Change-Id: I6a84526ca1e9f4e5140c8068646433cab3fe85b2
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-07-06 06:51:07 +00:00
AnaadiAnanta
530c5ec6ef stone: Drop duplicate libjson
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-07-06 06:50:50 +00:00
basamaryan
890f65768a stone: Convert packages allowed to use aux cameras to prop
Change-Id: Ie8c5cc86d3dc4937059432cd42be6dcaa6ac089c
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-07-06 06:50:36 +00:00
althafvly
666717ef79 stone: Add libpiex_shim for com.mi.node.mialgocontrol.so
Change-Id: I9e8b125ab5dfaa325db63b02a7fcf51577ee7b0d
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-07-06 06:50:11 +00:00
Paul Crowley
4fb6fd0086 stone: Remove wait_for_keymaster and all references
No longer needed now init listens for property changes on a
separate thread.

Bug: 186580823
Test: Cuttlefish boots successfully
Change-Id: Ief3a546d2154231d18957c2f703bd128966d7288
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-07-06 06:49:33 +00:00
Bruno Martins
3a6d93676f stone: Convert packages disallowed to use aux cameras to prop
Change-Id: I02a4711bfb5f4cebf87d6f2d8a02f47f00c2d62f
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-07-06 06:48:59 +00:00
Chirayu Desai
c27b05070d stone: Disable UFFD GC
Unable to determine UFFD GC flag for kernel version "5.4.268-qgki".
You can fix this by explicitly setting PRODUCT_ENABLE_UFFD_GC to "true" or
"false" based on the kernel version.
1. Set PRODUCT_ENABLE_UFFD_GC to "true" if the kernel supports userfaultfd(2)
   and MREMAP_DONTUNMAP.
2. Set PRODUCT_ENABLE_UFFD_GC to "false" otherwise.

Change-Id: Ie77d9a86a7fe94e4cade1868ffea27194f724e03
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-07-06 06:48:33 +00:00
Alan Chen
8977809b0c stone: wifi: Enable Optimized Power Management
gEnablePowerSaveOffload was renamed to gOptimizedPowerManagement

[1]: 10989ba376
[2]: 9ef1447db3

Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-07-06 06:47:15 +00:00
ghostrider-reborn
bce733625e stone: overlay: Disable alpha compositing in WM
Completely eliminates occasional jank in few animations

Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-07-06 06:46:53 +00:00
kamikaonashi
7591349103 stone: sepolicy: add rules for haptics change
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-07-06 06:38:32 +00:00
kamikaonashi
00540766d6 stone: rootdir: give permissions to adjust vibration
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-07-06 06:38:18 +00:00
Nauval Rizky
e97bc751bf stone: parts: introduce haptic feedback level adjustement
and adjust path to /sys/class/leds/vibrator/brightness
since its the path for prebuilt stone kernel

Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-07-06 06:38:03 +00:00
Alexander Winkowski
375c4e312d stone: configs: Pull brightness configs from lynx
Change-Id: Ic58fb5a638c290e68633d9716be9bf907841f0af
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-06-15 18:51:16 +00:00
AnaadiAnanta
396e945c9c stone: configs: Import display config
from moonstone V816.0.5.0.UMPMIXM

Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-06-15 18:50:54 +00:00
stic-server-open
177d231af1 stone: rootdir: Remove duplicate "start logd"
* It is started in the on init phase in /system/etc/init/hw/init.rc

Change-Id: Ie10e1d4c520329a76627a965ca139f9ad0f71875
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-06-15 18:50:30 +00:00
Bart Van Assche
127b4bc623 stone: rootdir: Restore I/O performance
As one can see in cfq_arm_slice_timer(), the CFQ I/O scheduler supports
two parameters that can make it delay I/O: group_idle and slice_idle.
Restore I/O performance by setting both the group_idle and slice_idle
parameters to zero.

Bug: 213617178
Bug: 313578691
Change-Id: I02429876790a6456ca957ff7c38f0c8bf88127f9
Signed-off-by: Bart Van Assche <bvanassche@google.com>
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-06-15 18:50:08 +00:00
kamikaonashi
10bd2ae8df stone: overlay: kang statusbarpadding from alioth
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-06-15 18:49:48 +00:00
Arijit Saha
87f24c86ff stone: Remove typo 2024-05-26 20:08:31 +06:00
Arijit78
2b27db6359 stone: Build FrameworksResTargetOverlayStone 2024-05-26 14:00:12 +00:00