127 Commits

Author SHA1 Message Date
John Galt
bb08a46cb4 Pong: init: Move to 100 swappiness
CLO unconditionally uses 100 in their post boot scripts, so also
unconditionally use 100.

Signed-off-by: Ghosuto <clash.raja10@gmail.com>
2025-09-23 05:08:42 -04:00
Abhay Singh Gill
32c0ba5ff7 Pong: Add Simulated Nothing Charging service 2025-09-11 14:25:08 -04:00
chandu078
5a281770b7 Pong: Set ro.boot.hardware.revision based on SKU version
ro.boot.hardware.revision is used in fastbootd UI, getvar hw-revision
output and Settings app.

Set based on the SKU version so external tools can use it to flash
the correct firmware variant and show the HW variant in Settings.

Change-Id: Ia3a6bfdca9dc60d86fb81e5bac526813e037d13e
2025-09-11 14:25:08 -04:00
Adithya R
a0cbdee382 Pong: init: Unset scheduler ratelimits
- According to arter97 it is a regression.
- Currently limiting to Uclamp devices to monitor regressions

This reverts commit a48b2eecf0.

Signed-off-by: Ghosuto <clash.raja10@gmail.com>
2025-08-04 04:50:42 -04:00
LuK1337
a3e1add516 Pong: Build erofs odm, vendor and vendor_dlkm images
Making these partitions erofs saves ~641MB, which lets us reserve
significantly more space on /product.

Change-Id: I88984f6137c0bc9f01da742a7a485445c2162157
2025-08-01 03:31:15 +00:00
Ghosuto
2d6fe8ec25 [DNM]Pong: Switch to pre-build audio
This reverts commit e39ad24a93.

This reverts commit 831604a0e4.

This reverts commit 6767d81cea.

This reverts commit 29bb2218a9.
2025-07-18 12:36:04 +00:00
sarath varma ganapathiraju
55c562a055 Pong: init: Add /sys/class/qcom-haptics node permissions
Add haptics node permissions for audio hal to read the haptics
V and I Scale trim register values stored in haptics sysnode.

Change-Id: I07e1e0ebee6d1af47255159fcc5969f05d3ef273
Signed-off-by: chandu078 <chandudyavanapelli03@gmail.com>
2025-06-30 04:15:23 +00:00
Phani Deepak Parasuramuni
424a044986 Pong: init: Add ipa_events node permissions
Change-Id: I448bfeb9e575b1c8acc929b7eefb3ad4ae024ef1
Signed-off-by: chandu078 <chandudyavanapelli03@gmail.com>
2025-06-30 04:15:23 +00:00
farenl
da1bde9aa2 Pong: init: Update uevent rc for hala
Change-Id: I919e28326646efc57af9705635d1533a6c858010
Signed-off-by: chandu078 <chandudyavanapelli03@gmail.com>
2025-06-30 04:15:23 +00:00
Satish Kumar Kodishala
05b3725369 Pong: init: Add permissions for btfmswr node
Add permissions for btfmswr node to be
able to access from FTM.

CRs-Fixed: 3794899
Change-Id: Ib4d5f0fbba261439ed931aae4e73b21ca43bc9c6
Signed-off-by: chandu078 <chandudyavanapelli03@gmail.com>
2025-06-30 04:15:23 +00:00
Huang Yiwei
410804d927 Pong: init: Update RemoteProc state user and group
Update RemoteProc state user and group, so system health monitor
service can trigger a RemoteProc restart.

Change-Id: I63da50a498d15e9c98607b277a26812513553219
Signed-off-by: chandu078 <chandudyavanapelli03@gmail.com>
2025-06-30 04:15:23 +00:00
Anjelique Melendez
7bc662ec16 Pong: init: Add group permissions for haptics class sysfs files
Add group permissions for haptics class visense_enabled and
primitive_duration sysfs files.

Change-Id: I1796b991bb79b4da8b524e35612a3f1928db7d83
Signed-off-by: chandu078 <chandudyavanapelli03@gmail.com>
2025-06-30 04:15:23 +00:00
Himanshu Shukla
9757243397 Pong: init: Add device node for IMS
Desc: Add device node for Data Channel sub wise

Change-Id: I2a77d860f347c7217876cd69b0eadd0510ca0d0c
Signed-off-by: chandu078 <chandudyavanapelli03@gmail.com>
2025-06-30 04:15:23 +00:00
Ekansh Gupta
33046db8a2 Pong: init: Add fastrpc upstream driver device permissions
Add rwx permissions for fastrpc upstream device node.

Change-Id: I9d178f8af63406d8aebfc19556d4604ee9ff3dc1
Signed-off-by: chandu078 <chandudyavanapelli03@gmail.com>
2025-06-30 04:15:23 +00:00
Wesley Cheng
4538d140d5 Pong: init: Modify DWC3 MSM mode file settings
In order for the USB HAL to issue a USB port reset, the ownership for the
mode sysfs path needs to be under the system usb group.

Change-Id: I8c330206c40b9c355fbe2f9beba0dde406026912
(cherry picked from commit 9daea1b9f6ce27f72e5b8e2a05bb7ae30acdb49d)
Signed-off-by: chandu078 <chandudyavanapelli03@gmail.com>
2025-06-30 04:15:23 +00:00
Umesh Vats
b4cb82400f Pong: init: Update Q2SPI device user and group
Updated user and group for Q2SPI UWB device.

Change-Id: I50b19e83c54a103d03707f910b62a9bc14407114
(cherry picked from commit 01d6f18dd892ce96e1ee672fb2fc831959e8aae6)
Signed-off-by: chandu078 <chandudyavanapelli03@gmail.com>
2025-06-30 04:15:23 +00:00
Anjelique Melendez
beaafc70d4 Pong: init: Add group permissions for LED repeat and hw_pattern sysfs
Add group permissions for LED device pattern trigger's repeat and
hw_pattern sysfs files.

Change-Id: I95492e7305107776c3dc0f610ea6fec5c5a6d12d
Signed-off-by: chandu078 <chandudyavanapelli03@gmail.com>
2025-06-30 04:15:23 +00:00
Shashank Sivakumar
e2b23734c7 Pong: init: Add permission for gunyah node
For AVF, the permission for the /dev/gunyah node is set in the ueventd
file.

Change-Id: Id8ce809c744bac4be70f8bbfd65c39f3703d82fa
Signed-off-by: chandu078 <chandudyavanapelli03@gmail.com>
2025-06-30 04:15:22 +00:00
Balakrishna Godavarthi
ac2f78ad3a Pong: init: Add permission for BTFMCODEC dev node
This change adds BTFMCODEC dev node permissions.

Change-Id: Ia8b67dba7ac14e6be420493ed76e3bc6a30f81e8
Signed-off-by: chandu078 <chandudyavanapelli03@gmail.com>
2025-06-30 04:14:57 +00:00
Balakrishna Godavarthi
b17427bef8 Pong: init: Add BT control glink node permission
This change adds BT control glink node permissions.

Change-Id: I83a2dcdcc0c602989c1c6a32893b55cd4ec46d62
Signed-off-by: chandu078 <chandudyavanapelli03@gmail.com>
2025-06-30 04:14:57 +00:00
Wesley Cheng
18abe3eb6c Pong: init: Modify USB root hub authorize setting
Change the ownership of the authorize file to allow the USB bus reset audio
recovery mechanism in the USB HAL to work.  This only modifies the
ownership of the USB root hubs that are present on the system.  For all
other connected devices, the default ownership is fine, as the recovery is
only allowed on direct connection to the USB root hub.

Change-Id: Idbce78b52054f75c09891aa1c1c827dda60f1d0a
Signed-off-by: chandu078 <chandudyavanapelli03@gmail.com>
2025-06-30 04:14:57 +00:00
Jack Pham
f10f66602b Pong: init: Change ownership of USB device power control settings
Change ownership of USB devices' power autosuspend, control and wakeup
file nodes to system user and usb group.  This allows the USB HAL
running as non-root to dynamically enable autosuspend for enumerated
devices.

Change-Id: I92806107a46ea0256cef5f211e7ea910541f1705
Signed-off-by: chandu078 <chandudyavanapelli03@gmail.com>
2025-06-30 04:14:57 +00:00
Jack Pham
26b87fa28b Pong: init: Reassign Type-C sysfs node ownership
Assign the /sys/class/typec/port0 entries for data and power
role switching to system / usb ownership to allow the USB HAL
to run as non-root and write to these nodes.

Change-Id: I6317a5e6ef99179570e87705cd43a8fa667f0d03
Signed-off-by: chandu078 <chandudyavanapelli03@gmail.com>
2025-06-30 04:14:57 +00:00
Phani Deepak Parasuramuni
8c8c0cf887 Pong: init: Create device nodes for CMA and DMA
Change-Id: Ied8a09d18e989ab265276bd1391bde74d5bda195
Signed-off-by: chandu078 <chandudyavanapelli03@gmail.com>
2025-06-30 04:14:57 +00:00
Rama Krishna Nunna
41c83c70ac Pong: init: Add UBWCP permission for Camera
- Add permission for the new ubwcp device.

Change-Id: I9e5954cdd40391b9f98531a78fa5cf1d0abc32a3
Signed-off-by: chandu078 <chandudyavanapelli03@gmail.com>
2025-06-30 04:14:57 +00:00
Chris Goldsworthy
877734f15b Pong: init: Add ueventd policies for the SMMU proxy device
Add ueventd policies for the SMMU proxy device.

Change-Id: I88037bb152bc4daf74e6b2c3f95214145425cb3d
Signed-off-by: chandu078 <chandudyavanapelli03@gmail.com>
2025-06-30 04:14:57 +00:00
Ronak Vijay Raheja
d0638e84d9 Pong: init: Add entry for usb dynamic disable
Add entry for the sysfs dynamic_disable at
/sys/bus/platform/devices/a600000.ssusb which is written by
UsbSecure.cpp in userspace and read by dwc3-msm-core.c in kernel to
enable/disable USB peripheral.

Change-Id: Ia37a89a756c1edf2a8c9c2a1057df523b098231c
Signed-off-by: chandu078 <chandudyavanapelli03@gmail.com>
2025-06-30 04:14:57 +00:00
Yu Wu
977e99e260 Pong: init: Provide permissions for trusted_touch related sysfs node
Provide permissions for trusted_touch related sysfs node.

Change-Id: Ic0abc3213ebeb0d7cb0dca2971554e6abf6cc030
Signed-off-by: Yu Wu <quic_zwy@quicinc.com>
Signed-off-by: chandu078 <chandudyavanapelli03@gmail.com>
2025-06-30 04:14:57 +00:00
Can Guo
2b025fc4d4 Pong: init: Change ownership of UFS LUN4 BSG device for raw partition access
Trust zone GPT service listener needs to access UFS LUN4 BSG device to
perform raw partition access, hence its change owenership so that it can
be accessed without root permissions.

Change-Id: I97fac4c47c537a07d3e5fc3920e9e13a7fe5d092
Signed-off-by: chandu078 <chandudyavanapelli03@gmail.com>
2025-06-30 04:14:57 +00:00
Devendar Gali
a6765c9405 Pong: init:: FR74324, Add the new STM device node
As a part FR74324 requirement, added the new STM NFC device node
entries in uevent RC file.

Change-Id: I07ae2d5f52d8711e59f49c3b06c8b8d6df22ec58
2025-06-30 04:14:57 +00:00
Ziqi Chen
81bf08dd5d Pong: init: Enable UFS LPM on power-off charging mode
The UFS clkscale, clkgate and ah8 had been disabled during boot
time and enabled them back after boot completion to help reduce
the total boot time.
However, in power-off charging mode, due to UFS LPM being disabled,
the overall power consumption increases. If charging with 500mA SDP,
the input current would not enough to supply system power consumption.
This change is to eanble back UFS LPM on power-off charging mode.

Change-Id: If48a15b39505ac3f12b902aad85dca553c3001a2
Signed-off-by: chandu078 <chandudyavanapelli03@gmail.com>
2025-06-30 04:14:56 +00:00
Rui Wang
413e51b849 Pong: init: Create folders for hexlp service.
Create /mnt/vendor/persist/hexlp and /data/vendor/hexlp folders
for hexlp service.

Change-Id: I656bb69dcc9e363ccce2d42274000d4e9f579bc8
Signed-off-by: chandu078 <chandudyavanapelli03@gmail.com>
2025-06-30 04:12:10 +00:00
Liron Daniel
94084ed275 Pong: init: Move SPU NVM direcroty creation to earlier stage
Change-Id: I85781ef0ce6dcdc7ddc701f16677da9a4e3aafa9
Signed-off-by: chandu078 <chandudyavanapelli03@gmail.com>
2025-06-30 04:12:10 +00:00
Rajat Yadav
2b3b17321e Pong: init: Add a vendor directory for audio data collector
Add /data/vendor/audio/audio_collector sub-directory for audio use.

Change-Id: Ic3236611fb5bb15b666034e1579a44ed8372d2cd
Signed-off-by: chandu078 <chandudyavanapelli03@gmail.com>
2025-06-30 04:12:10 +00:00
Venkatesh Mangalappali
6fc8dd5926 Pong: init: Add a vendor directory for audio
Add data/vendor/audio_dsp sub directory for audio use.

Change-Id: Ibf1b026f5106e0615cd5d39323dcbba1154d4ca5
Signed-off-by: chandu078 <chandudyavanapelli03@gmail.com>
2025-06-30 04:12:10 +00:00
Ramkumar Radhakrishnan
bfcc664705 Pong: init: Add trusted touch nodes to system group
Change-Id: I82e7e6287f3ec6a3356dedbc5eb7f0e0a61c1458
(cherry picked from commit c1c3e57253b3d71374e11680c8dd37deb94c1152)
Signed-off-by: chandu078 <chandudyavanapelli03@gmail.com>
2025-06-30 04:12:10 +00:00
BOREDDY MAHIDHAR
e4f6126467 Pong: init: Set Blur property based on Soc id.
Change-Id: I8ab77ad5a2051a145ff65816fa8e976a9727dfd2
Signed-off-by: chandu078 <chandudyavanapelli03@gmail.com>
2025-06-30 04:12:10 +00:00
Akhil Manikoth Kallankandy
772f32268a Pong: init: Disable cdsprpcd daemon
Disable cdsprpcd daemon for ravelin soc_ids
as the CDSP subsystem not supported.

Change-Id: I698670219ffc88a8d3d07e5cd60c52e3a1050e1e
Signed-off-by: chandu078 <chandudyavanapelli03@gmail.com>
2025-06-30 04:12:10 +00:00
Kamesh Relangi
c0e6c858d6 Pong: init: Remove qcrild start/stop changes from the qcom init script.
Handle the qcrild start/stop from qcrilNr rc file.

Change-Id: Icf016b379cff2e18a32c00b16e1ba3083b010d39
CRs-Fixed: 3732757
Signed-off-by: chandu078 <chandudyavanapelli03@gmail.com>
2025-06-30 04:12:10 +00:00
Cosmin Tanislav
e39ad24a93 Pong: Remove unused media codecs and profiles
On CAF, the ro.media.xml_variant.codecs is used for both codecs and
profiles.

media_profiles_vendor.xml does not exist on stock, even if
media.settings.xml is set to /vendor/etc/media_profiles_vendor.xml.

Setting media.settings.xml on CAF shortcircuits the loading to
check /vendor/etc/media_profiles + ro.media.xml_variant.codecs + .xml.

Setting ro.media.xml_variant.codecs on CAF makes it load
/vendor/etc/media_codecs + ro.media.xml_variant.codecs + _vendor.xml.

ro.media.xml_variant.codecs is set by init.qti.media.sh.

Setting ro.media.xml_variant.profiles on AOSP makes it load
/vendor/etc/media_codecs + ro.media.xml_variant.profiles + .xml.

Remove all unused media codecs, and switch to stock media codecs
while using AOSP logic by renaming media_codecs_cape_vendor.xml to
media_codecs_cape.xml.

Change-Id: Ibbea90ecb63b0cb611d50fbb6e7cbfa5f2d4d9d6
Signed-off-by: chandu078 <chandudyavanapelli03@gmail.com>
2025-06-23 10:00:35 +00:00
hiroshi
b4e152a9ed Revert "Pong: init: Fix the battery drain due to statsd"
This reverts commit fd088d8768.
- Actually causes battery drain now on A16 because the system tries to start aidl/stats over and over
2025-06-23 09:35:24 +00:00
Ghosuto
29b258fbf5 Pong: init: Set fixed size to 3GB instead of 40% of RAM
Signed-off-by: Ghosuto <clash.raja10@gmail.com>
2025-06-23 09:35:24 +00:00
chandu078
b851ecb0a2 Pong: init: Bring in NT camera init script changes
Signed-off-by: chandu078 <chandudyavanapelli03@gmail.com>
Signed-off-by: Ghosuto <clash.raja10@gmail.com>
2025-06-23 09:35:24 +00:00
Chris Goldsworthy
e1ea12217b Pong: init: Remove redundant mlock() limit setting
The per-process limit for the mlock() family of system calls only
needs to be set in one group of config files. Remove from here as it
is being set in init.qcom.rc .

Change-Id: Ia7d46800eabe2954e3e2618a38ff180c88fee348
Signed-off-by: Chandu078 <chandudyavanapelli03@gmail.com>
2025-06-23 09:35:24 +00:00
Chris Goldsworthy
03da6e4ab5 Pong: init: Reduce mlock() limit to 64 KB
Reduce the per-process limit of the mlock() family of system calls to
64 KB on account of a new CTS requirement.

Change-Id: I211668956bb6098e87cb7ef68bb7f1510d93d76f
Signed-off-by: Chandu078 <chandudyavanapelli03@gmail.com>
2025-06-23 09:35:24 +00:00
feiyuchen
da0b924fd8 Pong: init: Add "system" group to Audio HAL
needed for using EdgeTpu.
Due to this code goes to AOSP, please see CL details and test result in
b/289097511#comment24.

Bug: 289097511
Change-Id: Ie0969309346cd85b4bb8ac71860a529710c73345
2025-05-12 12:10:31 +00:00
emilchung
627aa78ad9 Pong: init: add context_hub into audio hal group
While implementing the capo nanoapp for audio configuration, we met
some chre socket connected error due to the access group denied.

Add context_hub group for audio hal to connect chre socket.

go/capo-algo

Bug: 141128522
Bug: 149069556
Test: FULL build with audio hal part and local prebuilts nanoapp.
Test: Audio HAL communicates normally with CHRE socket.
Change-Id: Iea84411682f4c3e08f8b37a5b21818b0e9b04983
2025-05-12 12:10:31 +00:00
Mohit Aggarwal
06ac5a1c1e Pong: init: time-services: Remove time_daemon rc definition
time_daemon starts from its own init rc
init: processing action (ro.crypto.state=encrypted && ro.crypto.type=file && post-fs-data) from (/vendor/etc/init/init.time_daemon.rc:7)
init: starting service 'time_daemon'...

Fixes:
ignored duplicate definition of service 'time_daemon'

Change-Id: Ia92d88eb2ec9696bc8ce075e74833cde572cb1e1
2025-05-11 13:11:49 +00:00
Arian
1cb45d5777 Pong: init: Don't start/import removed scripts
Change-Id: Iab1ce460122775fa885a0a484b1203757fe48a1e
2025-05-11 13:11:49 +00:00
Ethan Chen
179c5eff1f Pong: init: Remove unnecessary QTI logkit directories
* We do not use logkit

Change-Id: I7719bbcebbd053addd16684926eff30d46b945d8
2025-05-11 13:11:49 +00:00