283 Commits

Author SHA1 Message Date
Mohammad Kibria
48835f9c46 violet: Disable unwanted services 2024-07-11 23:00:24 +06:00
kamikaonashi
470af8b8cf violet: rootdir: Give permission to restricht_chg
Co-Authored-By: Tofu <ralph950412@gmail.com>
Signed-off-by: kibria5 <mdkibria687@gmail.com>
2024-07-10 19:55:30 +02:00
FlowerSea0208
cc8110b72c violet: rootdir: Add init.xiaomi.rc
Signed-off-by: kibria5 <mdkibria687@gmail.com>
2024-07-10 19:55:30 +02:00
afterallafk
e2efbc1897 violet: Set CPU governer as performance
Signed-off-by: afterallafk <shivamatiet2001@gmail.com>
2024-07-09 21:38:20 +02:00
afterallafk
0184540f02 violet: Improve surfaceflinger
Signed-off-by: afterallafk <shivamatiet2001@gmail.com>
2024-07-09 05:58:07 +02:00
afterallafk
eefe39a80f violet: Improve I/O scheduler
Signed-off-by: afterallafk <shivamatiet2001@gmail.com>
Signed-off-by: omnitrix21 <okand7946@gmail.com>
2024-07-09 05:58:07 +02:00
Yumi Yukimura
90a13fef7d violet: Switch to common QTI USB init scripts
Change-Id: I475ad6fb6991e2cc5580e2dcc57aa3bebb3682a4
Signed-off-by: adi8900 <adrianszymanski242@gmail.com>
2024-07-05 07:51:11 +02:00
Terminator-J
a0cf4ba63e violet: rootdir: Fix the battery drain due to statsd
Change-Id: I25ac318a96281fbf5d1bbeedb8243dc9f7958d7f
2024-07-04 05:56:38 +00:00
Nauval Rizky
51c35b6662 violet: rootdir: Register game libraries to sched_lib_name
These are known to access cpuinfo_max_freq and cpu_topology as well
just like libunity.so.
2024-07-04 05:56:04 +00:00
Andrzej Perczak
9a9bff4a3e violet: Import userdata tuning from oriole
Change-Id: I399933a6acd40c1b7f4eb90e8cfa381324107365
2024-07-04 05:55:53 +00:00
Michael Bestas
522d8a7c7f violet:Build Lineage Health HAL 2024-07-01 16:31:00 +00:00
Pranav Vashi
e6598b1c87 violet: Add Moto dolby support
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: adi8900 <adrianszymanski242@gmail.com>
2024-07-01 16:30:51 +00:00
adi8900
916e792bb7 violet: Add discard flag into fstab
Change-Id: I28d23f18f2c46ad6bca76937f6337e359be2fa01
Signed-off-by: adi8900 <adrianszymanski242@gmail.com>
2024-03-12 15:44:55 +00:00
Simon1511
f85259ef76 violet: add seperated fstab for recovery
* The keydirectory and metadata_encryption flags for /data make lineage recovery improperly format it

Change-Id: I43f3b6525113f73ca866b6ab442c61d572e4e821
Signed-off-by: adi8900 <adrianszymanski242@gmail.com>
Signed-off-by: kibria5 <mdkibria687@gmail.com>
2024-03-12 15:44:55 +00:00
adi8900
02bdd24a7b violet: Switch to fbe v2
Change-Id: Ib2cd37fa52d6823e5765e6165f5ba086ffc2b628
2024-03-12 15:44:55 +00:00
me-cafebabe
70e147131c violet: Add system_ext, product and odm partitions
Change-Id: I0143ab82569034cea684fc2f0b066bf6eb774a48
2024-03-12 15:44:55 +00:00
me-cafebabe
c6d338c4c5 violet: Retrofit Dynamic Partitions
Change-Id: I68cbb801fc029f6f9f2116ea36ff52acc1440ac8
2024-03-12 15:44:29 +00:00
Joker-V2
e04f370b47 violet: Mount system partition to /system
Needed after the removal of deprecated BOARD_BUILD_SYSTEM_ROOT_IMAGE flag

Signed-off-by: Joker-V2 <nipinna0@gmail.com>
2023-10-11 19:41:07 +02:00
Joker-V2
00a19c33b7 violet: fstab: Remove avb flag from system 2023-10-11 19:41:07 +02:00
a-huk
9b97ea71b6 violet: init: Disable adsprpcd
It is crashing and spamming logcat:

09-06 16:49:05.981   787   787 E adsprpcd: vendor/qcom/proprietary/adsprpc/src/adspmsgd.c:112:Error 0x4e: adspmsgd_init failed for handle 0xbbab82d0 filter 16 with errno Success
09-06 16:49:05.982   787   787 E adsprpcd: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:1125: Error 0x4e: remote_handle64_invoke failed for handle 0xbbab82d0, method 3 on domain 0 (sc 0x3000000) (errno Operation not permitted)
09-06 16:49:05.982   787   787 I adsprpcd: vendor/qcom/proprietary/adsprpc/src/fastrpc_perf.c:240: fastrpc_perf_init: enabled RPC traces (kernel 0, dsp 0) with frequency 1000
09-06 16:49:05.983   787   787 I adsprpcd: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:1237: remote_handle_open: Successfully opened handle 0xf0ae5fc0 for adsp_default_listener on domain 0
09-06 16:49:05.984   787   787 I adsprpcd: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:1237: remote_handle_open: Successfully opened handle 0xf0ae6220 for adsp_default_listener on domain 0
09-06 16:49:05.985   787   787 E adsprpcd: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:1105: Error 0x4e: remote_handle_invoke failed for handle 0xf0ae6220, method 0 on domain 0 (sc 0x0) (errno Operation not permitted)
09-06 16:49:05.986   787 18831 E adsprpcd: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:1105: Error 0x4e: remote_handle_invoke failed for handle 0x3, method 4 on domain 0 (sc 0x4020200) (errno Operation not permitted)
09-06 16:49:05.987   787 18831 E adsprpcd: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:1105: Error 0x4e: remote_handle_invoke failed for handle 0x3, method 4 on domain 0 (sc 0x4020200) (errno Operation not permitted)
09-06 16:49:05.987   787 18831 E adsprpcd: vendor/qcom/proprietary/adsprpc/src/listener_android.c:135:Error 0x4e: listener response with result 0xffffffff for ctx 0x0, handle 0xffffffff, sc 0xffffffff failed
09-06 16:49:05.987   787 18831 E adsprpcd: vendor/qcom/proprietary/adsprpc/src/listener_android.c:221:Error 0x4e: listener thread exited (errno Operation not permitted)
09-06 16:49:05.988   787 18831 E adsprpcd: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:1125: Error 0x4e: remote_handle64_invoke failed for handle 0xbbb88ed0, method 3 on domain 0 (sc 0x3000000) (errno Operation not permitted)
09-06 16:49:05.988   787 18832 W adsprpcd: vendor/qcom/proprietary/adsprpc/src/log_config.c:360:Warning: file_watcher_thread received exit for domain 0, file adsprpcd.farf
09-06 16:49:05.988   787 18832 I adsprpcd: vendor/qcom/proprietary/adsprpc/src/log_config.c:407: file_watcher_thread exiting for domain 0
09-06 16:49:05.998   787   787 I adsprpcd: vendor/qcom/proprietary/adsprpc/src/rpcmem_android.c:191: rpcmem_deinit_internal: closed ION fd 5
09-06 16:49:05.998   787   787 I adsprpcd: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:2787: fastrpc_apps_user_deinit done
09-06 16:49:06.000   787   787 E adsprpcd: vendor/qcom/proprietary/adsprpc/src/adsprpcd.c:48:adsp daemon will restart after 25ms...
09-06 16:49:06.039   787   787 I adsprpcd: vendor/qcom/proprietary/adsprpc/src/rpcmem_android.c:158: rpcmem_init_internal: opened ION device fd 5, configured heap IDs: system (0x2000000), contig (0x400000), secure (0x200), secure flags (0x80080000)
09-06 16:49:06.039   787   787 I adsprpcd: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:2847: fastrpc_apps_user_init done
09-06 16:49:06.039   787   787 I adsprpcd: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:1237: remote_handle_open: Successfully opened handle 0x0 for '":;./\attachguestos on domain 0
09-06 16:49:06.041   787 18833 I adsprpcd: vendor/qcom/proprietary/adsprpc/src/listener_android.c:111: listener thread starting
09-06 16:49:06.041   787 18834 I adsprpcd: vendor/qcom/proprietary/adsprpc/src/log_config.c:345: file_watcher_thread starting for domain 0
09-06 16:49:06.041   787 18834 E adsprpcd: vendor/qcom/proprietary/adsprpc/src/log_config.c:268:Error 0x200: fopen failed for /vendor/lib/rfsa/adsp/adsprpcd.farf. (No such file or directory)
09-06 16:49:06.041   787 18834 E adsprpcd: vendor/qcom/proprietary/adsprpc/src/log_config.c:268:Error 0x200: fopen failed for /vendor/dsp/adsprpcd.farf. (No such file or directory)
09-06 16:49:06.041   787   787 E adsprpcd: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:1125: Error 0x4e: remote_handle64_invoke failed for handle 0xbbab82d0, method 4 on domain 0 (sc 0x4010100) (errno Success)
09-06 16:49:06.041   787   787 E adsprpcd: vendor/qcom/proprietary/adsprpc/src/adspmsgd.c:112:Error 0x4e: adspmsgd_init failed for handle 0xbbab82d0 filter 16 with errno Success
09-06 16:49:06.041   787   787 E adsprpcd: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:1125: Error 0x4e: remote_handle64_invoke failed for handle 0xbbab82d0, method 3 on domain 0 (sc 0x3000000) (errno Operation not permitted)

Signed-off-by: Joker-V2 <nipinna0@gmail.com>
2023-07-04 03:43:26 +00:00
Daniel Jacob Chittoor
b0aa1c7fa2 violet: rootdir: Enable suspend to RAM
Improves idle drain considerably.
2023-04-05 18:17:17 +02:00
Panchajanya1999
a084d4fc46 violet: init: power: Disable switching to s2idle
Its current implemntation is somewhat buggy because of CPU stalls even
after entering idle. Pixel's kernel hacks makes it "somewhat" usable but
not bugfree.
Let it default to deep.

Change-Id: I609ccb46b68e5745bd95e8ebb7ad51b719674e9d
Signed-off-by: Panchajanya1999 <panchajanya@azure-dev.live>
2023-01-26 04:44:55 +00:00
Randall Huang
93e35f159a violet: Remove IO read_ahead_kb tune
If we set 2048KB ra value in the beginning of the
boot process, services initialized at this time would
keep 2048KB ra value even though we adjust the ra value
to 128KB after boot completion.

This may cause memory pressure.

Bug: 174700194
Signed-off-by: Randall Huang <huangrandall@google.com>
Change-Id: I97ee0ee9511eaada011f2634afd68d68cdca4570
2023-01-26 04:44:55 +00:00
Panchajanya1999
7e7147bff1 violet: init: Do not collect I/O statistics on runtime
Saves us a pretty much IO overhead.o

Change-Id: Ic0dd15b121655f673754f67b81ab1295c510893c
Signed-off-by: Panchajanya1999 <panchajanya@azure-dev.live>
2023-01-26 04:44:54 +00:00
adi8900
3cba753690 violet: rootdir: configstore is disabled
Signed-off-by: adi8900 <adrianszymanski242@gmail.com>
2023-01-26 04:44:54 +00:00
adi8900
bf117341b1 violet: rootdir: Drop loading non-existent service
12-29 10:27:17.747     0     0 I init    : Command 'start rfs_access' action=boot (/vendor/etc/init/hw/init.qcom.rc:232) took 0ms and failed: service rfs_access not found

Signed-off-by: adi8900 <adrianszymanski242@gmail.com>
2023-01-26 04:44:54 +00:00
Subash Abhinov Kasiviswanathan
a247a31425 violet: 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: Ujjwal Kirorimal <ujjwalkirorimal@gmail.com>
2023-01-26 04:44:54 +00:00
intervigilium
413dd879c7 violet: rootdir: Remove unnecessary QTI logkit directories
* We do not use logkit
2023-01-26 04:44:54 +00:00
Signed-off-by: Panchajanya1999
8f77fd4a44 violet: Specify LZ4 as F2FS Compression algorithm
Based on benchmarks.

Change-Id: Ib9b01386fc78de6578629cf3ac8ef7e5e3cfde38 Signed-off-by: Panchajanya1999 <panchajanya@azure-dev.live>
2023-01-26 04:44:54 +00:00
Martin Liu
22935d0e73 violet: fstab: set readahead_size_kb=128 to partitions
To avoid memory pressure

Bug: 181567573
Test: check readahead size

Signed-off-by: Martin Liu <liumartin@google.com>
2023-01-26 04:44:54 +00:00
YH_Lin
e8f2afc7cb violet: rootdir: Remove deprecated max comp streams 2023-01-26 04:44:54 +00:00
johnmart19
db98ba9e48 violet: rootdir: Set Zram size to 50% 2023-01-26 04:44:54 +00:00
iusmac
07a8727554 violet: rootdir: Set max_comp_streams to 4
* more results in battery drain and lags

[someone5678] adapt to fstab

Original commit:
[1] eca73828b9

Signed-off-by: iusmac <iusico.maxim@libero.it>
Signed-off-by: someone5678 <nemui3353@gmail.com>
2023-01-26 04:44:54 +00:00
timocapa
6b505b2e43 violet: Fix fsmgr flag for F2FS Compression
- Without this, F2FS Compression would not work as this flag will be passed to recovery at format-time.

Signed-off-by: timocapa <timo.capa@gmail.com>
2023-01-26 04:44:54 +00:00
Akash Srivastava
e889b56763 violet: Change cache partition to f2fs 2023-01-26 04:44:54 +00:00
Panchajanya1999
5c7a9b9455 violet: Support F2FS compressions and garbage collector
Partially based on Pixel 6 fstab[1] and personal
recommendations.
F2FS Compression requires kernel support too.

[1]: https://android.googlesource.com/device/google/gs101/+/refs/heads/android12-d1-s4-release/conf/fstab.gs101#20

Change-Id: I319fa4033911e89160308535b626c978d7269805
Signed-off-by: Panchajanya1999 <panchajanya@azure-dev.live>
2023-01-26 04:44:54 +00:00
Panchajanya1999
bc16cb9511 violet: fstab: Enable 64-bit inode version support for ext4
https://jtlayton.wordpress.com/2016/12/16/the-inode-i_version-counter-in-linux/

Change-Id: I58eac01a8f387fdc6d98be4c14212011aa2fc927
Signed-off-by: Panchajanya1999 <panchajanya@azure-dev.live>
2023-01-26 04:44:54 +00:00
SVB
1ab9280859 violet: rootdir: Allow all filesystems for USB-OTG
Signed-off-by: Zinadin Zidan <zidan.roking@gmail.com>
Change-Id: I0f7c8b0a5851577e93d0536060de2763bc7448db
Signed-off-by: Panchajanya1999 <panchajanya@azure-dev.live>
2023-01-26 04:44:54 +00:00
Randall Huang
97b3744b52 violet: 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: Jaegeuk Kim <jaegeuk@google.com>
Signed-off-by: Randall Huang <huangrandall@google.com>
Change-Id: Icd38754bad1b1529d01165ea8c703c214d20bb4b
2023-01-26 04:44:54 +00:00
xNombre
17444c77e0 violet: Add blkio tuning from sunfish
Change-Id: Id8a6ef29c85c94dab17d590918e80837bc84838d
2023-01-26 04:44:54 +00:00
Pig
95d9a62376 violet: Update charging voltage properties to R
* Move to new props instead init setprop stuff

Change-Id: I27f3569f05908ad4b93b2a519026790ee8e72d22
2022-12-16 19:40:56 +00:00
raghavt20
f010bc84d6 violet: parts: Introduce FPS counter QS Tile
Squash of the following:

violet: parts: introduce FPS overlay

violet: parts: adapt FPS Info based on exposed data from kernel

* Current kernel emits measured_fps inside /sys/class/drm/card0/sde-crtc-0.
  It also has a different output format than the original patches.
  So adapt it so measured fps can be displayed properly.

* Shift position by 50px more so the fps counter is 100%
  visible without getting cutted by the hardware corner.

* Also, cleanup some unused imports and redundant file reader since
  we're already has that inside utils/.

violet: parts: Add FPS overlay QS tile

violet: parts: Digital-style icon for FPSInfo QS Tile

violet: parts: FPSInfoService: Switch to isDreaming check

Co-authored-by: Nauval Rizky <enuma.alrizky@gmail.com>
Co-authored-by: Marko Man <darkobas@gmail.com>
Co-authored-by: Ido Ben-Hur <idoybh2@gmail.com>
Signed-off-by: raghavt20 <raghavtandon2000@gmail.com>
2022-12-16 14:47:21 +00:00
Ramii Ahmed
1197565711 violet: rootdir: Add Offline Charging LED Indicator
* Write to node to turn on LED in offline charging mode

Change-Id: Iee02ac9af0438b5bc4dcf08dfe19e10226d7090e
2022-11-23 07:37:26 +00:00
David Ng
7499d127f6 violet: Mount metadata fs during first stage init
Mount metadata at first stage init.

Change-Id: I51408b0c6b5edb4434d32be803daf3a21beb91e1
2022-11-23 07:37:26 +00:00
Joker-V2
7561ac83f2 violet: Switch to metadata FBE
- Drop wrappedkey flags

Signed-off-by: Joker-V2 <nipinna0@gmail.com>
2022-11-23 07:37:26 +00:00
Undying-yueyue
c5a89452b1 violet: rootdir: Set permissions for Power HAL nodes
Fix this:

libperfmgr: Failed to write to node: /dev/cpu_dma_latency with value: 67, fd: -1
Change-Id: Iaf6310b385c5db38aa070db49d07b30ec558eff6
2022-01-28 23:56:24 +05:30
Joker-V2
6e36ba311a violet: Cleanup NFC leftover
Signed-off-by: Joker-V2 <nipinna0@gmail.com>
2022-01-26 04:26:26 +00:00
Brock5555
adcb894ca8 violet: init: Register and enable qcrild & data services on boot
* Fixes delay on getting network service after boot

Signed-off-by: Joker-V2 <nipinna0@gmail.com>
2022-01-26 04:20:16 +00:00
Dyneteve
79963ec3f0 violet: Switch to AOSP offline charging animation 2022-01-25 01:48:36 +00:00
Sandeep Neerudu
0e6ea3fa37 violet: sensors : remove sensors specific boot up commands from init.qcom.rc
move sensors specific boot up commands from global init.qcom.rc to component

specific rc files , which are part of individual component projects.

Change-Id: Ib0410cd0af8d77573bd320063982b504b1b1d1d5
2021-01-31 12:48:12 +05:30