171 Commits

Author SHA1 Message Date
feiyuchen
e4e0676ba6 msm8953-common: rootdir: 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-01-31 08:51:55 +01:00
Andy Hung
814aa44b41 msm8953-common: rootdir: Enable RT priority inheritance
Test: instrumented
Bug: 181148259
Bug: 260918856
Merged-In: If56e449a9c6f1a49e372591893d8714534574e3a
Change-Id: If56e449a9c6f1a49e372591893d8714534574e3a
2025-01-31 08:51:07 +01:00
emilchung
5c23a83493 msm8953-common: rootdir: 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-01-31 08:50:17 +01:00
Giovanni Ricca
f6eef4a460 msm8953-common: rootdir: Android.mk -> Android.bp
* Also decommonize fstab as it would become a mess to maintain :D.

Change-Id: I1f1885af7d84c1be01dd257d99b43a84f4be49f6
2025-01-17 15:22:34 +01:00
Demon Singur
a6f9c193cd msm8953-common: Remove energy awareness daemon
All this does is to disable msm_core and set the
polling_interval to 0, which makes the driver useless.
We can achieve the same result by disabling the driver.

Change-Id: Ic19c505ed74811a3d1b76703255af3aa5cb37bf9
2025-01-17 15:22:33 +01:00
Roberto Sartori
2862c64019 msm8953-common: Switch from time_daemon to TimeKeep
* time_daemon just refuses to work properly on mata.
    Sony's TimeKeep, instead, does the job flawlessly,
    so just ditch the former in favor of the latter.

Signed-off-by: Roberto Sartori <roberto.sartori.android@gmail.com>
Change-Id: I54f50ed3d49efc2834d478781b15e6ee428a3062
2025-01-17 15:22:31 +01:00
basamaryan
c671d5bbc1 msm8953-common: Move to Xiaomi fingerprint AIDL
Change-Id: I68dba7184034fd37454c7d32a065f041cb611625
2024-12-10 09:46:18 +01:00
Giovanni Ricca
b6cfd8554f msm8953-common: Rename wcnss_service target
Change-Id: I638e8e40ea95b914ee3c36035704a4d55780d41f
2024-12-01 13:42:43 +01:00
dianlujitao
acf806d862 msm8953-common: Nuke ATFWD
It's normally not used at all.

Change-Id: Idb824b3b8c783b6ac962e604df05f9154beb4ed2
2024-12-01 13:42:41 +01:00
Yumi Yukimura
95d6a697b5 msm8953-common: Kill androidboot.usbconfigfs=true kernel cmdline
* Wastes space

Change-Id: Iaf8a7b3de83381f58120aa41102d5bb8e699434b
2024-08-19 01:14:46 +02:00
Bruno Martins
31f72c0c75 msm8953-common: Move to QTI health AIDL service
The health AIDL HAL service provides functionalities of charger,
therefore system charger at /system/bin/charger is deprecated.
On top of that, QTI health AIDL HAL service enables suspend by
default, the equivalent of setting ro.charger.enable_suspend
for legacy charger.

Change-Id: I59c23e7974cea1174b0161f31a535fa3afa1e5c9
2024-06-20 13:36:28 +02:00
Bruno Martins
cb4b3c5576 msm8953-common: rootdir: Reconfigure ZRAM
This time around with ZRAM size set to 75% of total RAM size,
as per Qualcomm Android GO Performance Tuning Guide.

Change-Id: I8f8362ccb5110fba6c5ed50b5d87a0b94a48e01c
2024-03-18 14:06:45 +01:00
Giovanni Ricca
dae2985212 msm8953-common: rootdir: Setup zram with fstab
Change-Id: I4b172ee5c61693b5d6ae14b297374ff679f4938c
2023-12-06 09:33:12 +01:00
Rick Yiu
82d43214db msm8953-common: Remove some camera-daemon commands
Those commands have moved to init.rc.

Bug: 170507876
Bug: 171740453
Test: build pass
Change-Id: Icfe520e7f7367461607cc8fb5e524d9699e79124
2023-11-13 11:38:31 +00:00
Suren Baghdasaryan
f560ef2e32 msm8953-common: Replace writepid with task_profiles command for cgroup migration
writepid command usage to join a cgroup has been deprecated in favor
of a more flexible approach using task_profiles. This way cgroup path
is not hardcoded and cgroup changes can be easily made. Replace
writepid with task_profiles command to migrate between cgroups.

Bug: 191283136
Test: build and boot
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: Ibb56d2379c42e5ed4b2f15c1b04d5fb163b48678
2023-11-13 11:38:31 +00:00
Giovanni Ricca
f1287dd679 msm8953-common: rootdir: Tissot doesn't have a vendor partition
* Mi8953 in his true form :P

Change-Id: I43da62492c22f51e49ffb84830a99250dced8ae5
2023-11-13 11:32:53 +00:00
Sebastiano Barezzi
c948e3c7e6 msm8953-common: Switch to two-stage init mounting
* Stop handling cust and vendor mounting from kernel, first stage init is gonna do that, together with system (which is now /system)
* Use correct mount flags coming from kernel dts
* Move system, system_ext and vendor mount points to /dev/block/by-name/, we don't have bootdevice symlink to that point in init
* Copy fstab to ramdisk for first stage init

Change-Id: If8d75837f47c70f7ea02183bffaff233b4d6bb26
2023-11-13 11:32:53 +00:00
Giovanni Ricca
73d2b22e27 msm8953-common: rootdir: Don't read bluetooth.hciattach
* Unused with our current stack anyway

Change-Id: I80dda7f78dca91bd6b1c6f200a885045048f597f
2023-09-18 01:06:48 +02:00
Giovanni Ricca
2a46ce1cdd msm8953-common: rootdir: Don't start gamed
* We don't have this service

Change-Id: Ifa583998ec12343ff3fc0d783604520172832114
2023-09-18 01:06:47 +02:00
Giovanni Ricca
ea153565e2 msm8953-common: rootdir: Don't set store_user nodes to 0
* Not only they throw an useless denial on boot, they are already on 0

Change-Id: I6407e2293a3df47796ff5beebe3349c67a0ce715
2023-09-18 01:06:47 +02:00
Erfan Abdi
6cd38df0d3 msm8953-common: rootdir: Disable qemu.hw.mainkeys setprop
We are enabling software navigation bar using overlay. Thus, this is
not required. Not to mention, this causes SELinux denials as well.

selinux: avc:  denied  { set } for property=qemu.hw.mainkeys pid=1262 uid=0 gid=0 scontext=u:r:qti_init_shell:s0 tcontext=u:object_r:default_prop:s0 tclass=property_service permissive=0
Change-Id: I6f641bcde6b55ccc9a0ccad98b00de938d62d00f
2023-09-16 17:12:10 +02:00
Georg Veichtlbauer
2d4f521e08 msm8953-common: rootdir: Setup all the sub-system as related.
They can restart itself, but let the phone keep
running instead of triggering an reboot.

Change-Id: Idc486acbd6bb091fc9fddc7a0d876824215a757b
2023-09-12 20:06:18 +02:00
Michael Bestas
bf7a2fdeb8 msm8953-common: ueventd: Remove all permissions from /sys/devices/soc0/serial_number
Change-Id: I688347cfe59f56e4de2e4bf3c3324ca465f7a897
2023-09-12 20:06:17 +02:00
Michael Bestas
bcd545d091 msm8953-common: Implement xtra-daemon control via property
Default to false if the property is not set.
Device init scripts will need to be adapted to restart
loc_launcher service when property change is detected.

Change-Id: Icbda789cd2a9a3391f437af2c07fc5127f2f09ab
2023-09-12 20:06:17 +02:00
Georg Veichtlbauer
5ba494352b msm8953-common: Fix PowerOffAlarm
* The APK is prepared to not run as system user
* Adjust /persist/alarm/data permissions accordingly

Change-Id: Ie24ccb3749d1dda2deb670cdb531e35d153034ed
2023-09-12 20:06:15 +02:00
Qimeng Pan
737aceef21 msm8953-common: rootdir: add power_off_alarm into init.rc
Add power_off_alarm into init.rc on charge mode

Change-Id: I18158cde8b3ae0890a92bd1ced56782fa053230a
CRs-Fixed: 2373093
2023-09-12 20:06:15 +02:00
Mao Jinlong
2e47fe50dc msm8953-common: rootdir: Add vendor prefix to power_off_alarm service
power_off_alarm is a vendor service. Add vendor prefix to it.

Change-Id: Ib4a988467a54bbe4544960180afeeeb5dd0e85f3
2023-09-12 20:06:15 +02:00
Mao Jinlong
3cd3f87a1d msm8953-common: rootdir: Add power off alarm service
Add power off alarm service for power off alarm feature to
reboot device when power off alarm is up in some special
mode like power off charging mode.

CRs-Fixed: 2095984
Change-Id: Ib8d82e63e92a85a7f60d5559064a1f19e0de5a22
2023-09-12 20:06:15 +02:00
Giovanni Ricca
e5cc6fde61 msm8953-common: Enable Qcrild
Change-Id: I6eec8ed7b81acde0904d47ec6707a680b513318d
2023-09-12 20:06:12 +02:00
Mohammed Mirza Mandayappurath Manzoor
08d8cedc8e msm8953-common: ueventd: Set permissions for KGSL sysfs node
Some KGSL sysfs nodes need to be access controlled. Set proper
permissions for the same.

Change-Id: Idc7e2447d02742074873901c6539f2c6d9d25862
2023-04-19 12:05:42 +02:00
Manoj Basapathi
aac36026db msm8953-common: Remove unused fast dormancy persist property.
[    7.265723] audit: type=1107 audit(129718197.409:4): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=u:r:init:s0 msg='avc:  denied  { read } for property=persist.env.fastdorm.enabled pid=0 uid=0 gid=0 scontext=u:r:vendor_init:s0 tcontext=u:object_r:default_prop:s0 tclass=file permissive=0'

Properties which are related to the fastdormancy apk
are removed. Legacy fast dormancy code is obsolete and removed
all its instances.

CRs-Fixed: 2748503
Change-Id: I7a2bd24d78bb49765af59c933eca4503015b6792
2023-04-19 12:05:37 +02:00
dianlujitao
ddf6526d8a msm8953-common: Don't apply persist.vendor.usb.config
* Otherwise adb turns on after reboot every time.

Change-Id: I66631f1f38a3e3a16e6d3dad87c83d0a98e6f851
2023-04-19 12:05:37 +02:00
me-cafebabe
721a333301 msm8953-common: Legacy devices doesn't support ICE Encryption
Change-Id: I07003e50aea9a8fe5bf59437e769166c8dcd4668
2023-04-19 12:05:34 +02:00
Nicholas Lim
00edd4169b msm8953-common: Drop FDE support entirely
Change-Id: Ifecd15ee6c86a4571e5a7cc961372348455c4d5c
2023-04-19 12:05:34 +02:00
Sebastiano Barezzi
574abaed96 msm8953-common: rootdir: Import recovery init scripts
* From phoenixin recovery

Change-Id: Ic83f991e22052abd5a4c7ec012ba66a222358e22
2023-04-19 12:05:31 +02:00
Giovanni Ricca
229247c226 msm8953-common: rootdir: Mount /vendor block conditionally
* Set `TARGET_IS_LEGACY := true` on BoardConfig.mk to revert back to /cust

Change-Id: Id6bbb6c5d4873032a7ce5ec1419413c661a34787
2023-04-19 12:05:31 +02:00
Giovanni Ricca
c5ef1dd2e1 msm8953-common: rootdir: Chown dt2w nodes
Change-Id: I443cdfe61d5405b08516bcef0c367e308eb8c3f0
2023-04-19 12:05:31 +02:00
crevanth
6569e213a4 msm8953-common: rootdir: Add permission for /dev/spidev5.1
Change-Id: I5163e8125a7adf04e001e0402c1398786f8fd81f
2023-04-19 12:05:30 +02:00
Giovanni Ricca
e6e20dcc28 msm8953-common: Goodbye 3.18
* No one misses you

Change-Id: I44c5434c0466674a57095edad805e31a1fc55e10
2023-03-11 22:04:59 +01:00
Melody Olvera
a2bde4acd9 msm8953-common: rootdir: Remove racey printk setups
Configure printk from init.qcom.sh only.

Change-Id: I4eff77fd5cd121f31156c2fbdac1208dec6c9ac5
2022-05-29 21:09:35 +02:00
Randall Huang
4938fe1686 msm8953-common: rootdir: 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
2022-05-29 21:09:35 +02:00
Alexander Koskovich
7d86bcc8e3 msm8953-common: Move ueventd.qcom.rc to /vendor/etc.
* This is the preferred location as of Android 12.

Change-Id: I8c7d2230281b6d8da802bf10f88461289849acaf
2022-05-29 21:09:35 +02:00
Bruno Martins
b3852cdafc msm8953-common: Remove wcnss_filter and all references to it
* No longer needed with QCOM BT stack

Change-Id: I6c30349e177613adf943f20d1f27bcd0b936911d
2022-05-27 21:33:03 +02:00
Kyle Peterson
a6183e4484 msm8953-common: Move qcamerasvr to main so it restarts on decryption.
* Possible fix for for qcamerasvr not starting sometimes.

Signed-off-by: Kyle Peterson <kyle.peterson1@gmail.com>
Change-Id: Ia0e69e48f0e005d92e20647c7a8a19b02ad3ac75
2022-05-27 21:33:03 +02:00
Dhina17
16595fbc73 msm8953-common: init.qcom.rc: Remove vendor.sensors
- Our device doesn't have sscrpcd, so remove it from init.qcom.rc

fixes:
init: Could not start service 'vendor.sensors' as part of class 'early_hal': Cannot find '/vendor/bin/sscrpcd': No such file or directory

Change-Id: I54e93aaa5e76c168d515d626fb7f4f5e88d30f9f
2022-05-27 21:33:03 +02:00
Sean Tranchetti
aef9154153 msm8953-common: init.qcom.rc: remove unused propery
Removes the unused large_tcp_window_size property.

Change-Id: I3c3fad8ff2d13e359e1d4e34bcd18f021d1e07b6
2022-05-27 21:33:03 +02:00
Ethan Chen
889e2b5eb1 msm8953-common: Remove unnecessary QTI logkit directories
* We do not use logkit

Change-Id: I7719bbcebbd053addd16684926eff30d46b945d8
2022-05-27 21:33:03 +02:00
Ethan Chen
5426443f74 msm8953-common: Remove hbtp components
Change-Id: Id2fb715d0dbe3b148603d0fe5b9ab301fbeea683
Signed-off-by: danascape <saalimquadri1@gmail.com>
2022-05-27 21:33:03 +02:00
Ethan Chen
fdbf0cd52c msm8953-common: Remove non-vendor FOTA folder
Change-Id: I2efc44fc2b053df7f52dbe8492ca800f7f7f7c88
2022-05-27 21:33:03 +02:00
Ethan Chen
1d54cdd677 msm8953-common: Remove unnecessary iop service
Change-Id: Iea7ec46bbcc1e5c285d1b1ac3d07dd045efdd49a
2022-05-27 21:33:03 +02:00