Commit graph android_device_motorola_sm6.../rootdir
Author SHA1 Message Date
Sevenrock
02dd7bf469
sm6375-common: Update UFS device name
Change-Id: I3f0d4a5b9b2a5971e2b1e49bbdac7968e850c358
2025-03-15 02:17:26 +02:00
Michael Bestas
73c86354a0
sm6375-common: Match stock ZRAM setup
Change-Id: I60539698fbeb6ba29f96ec6f8e68c778f999d701
2025-03-15 02:17:25 +02:00
Michael Bestas
f1465a042a
sm6375-common: init: Drop some unused services
Change-Id: Ic86157ca879a5fb62245c0001c88b3a1ccb26d73
2025-03-15 02:17:25 +02:00
Michael Bestas
90bb760a17
sm6375-common: init.oem.hw: Drop set_ro_vendor_incremental
Change-Id: Ic4d3d1775c437847f2aaecd87e504ba39bf93ac5
2025-03-15 02:17:25 +02:00
Michael Bestas
f4d076d7a3
sm6375-common: Cleanup class_main/early_boot/post_boot/qcom scripts
Change-Id: Icfdb75a7e43ca8ebb8d5599e6154a72aedd86507
2025-03-15 02:17:25 +02:00
Michael Bestas
09b9f7afa1
sm3675-common: Selectively update rootdir from fogos
Change-Id: Ia069475f135817d77e41d6588015aee17979b338
2025-03-15 02:17:25 +02:00
Michael Bestas
eb142b5b60
sm6375-common: Remove unused init scripts
Change-Id: Ief217277c299cfad31ec72a98a628217c74c551c
2025-03-15 02:17:25 +02:00
Michael Bestas
6faaacdc7a
sm6375-common: Move some init scripts to vendor
Change-Id: Ie3b878e67fac51ae899b741869326b425eeb770b
2025-03-15 02:17:25 +02:00
Arian
2cc4bb6e74
sm6375-common: rootdir: Remove unnecessary class_core script
Change-Id: I065407a7b9aaf186a22964786af97b36a140c793
2025-03-15 02:17:25 +02:00
Arian
54ecc821c6
sm6375-common: Set ro.media.xml_variant.profiles to choose media profiles
This was introduced with [1] and allows to choose target specific media
profiles without caf changes to frameworks/av. Unset media.settings.xml
so that the new property gets respected and drop copying the lahaina
config as media_profiles_vendor since we don't need a fallback anymore.

[1]: eaac82f33f#

Change-Id: I7ec306bf3dd595c09308ed26c9d3a6db8490c7f0
2025-03-15 02:17:25 +02:00
Suren Baghdasaryan
6137d9de9f
sm7325-common: Replace direct pid writes with setting task profiles for audio interfaces
For easy transition from SchedTune to UtilClamp, direct access to these
cgroups should be abstracted by using task profiles. Replace writepid
commands with new task_profiles command.

Bug: 155419956
Test: change .rc file and confirm task profile is applied
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: Ide373c283359cf4b73af4cb0813d8c0306942595
2025-03-03 12:35:49 +02:00
Lorenzo Colitti
0e18d8f01f
sm7325-common: Delete dhcpcd init entries, since dhcpcd is no more.
Bug: 27192644
Change-Id: I1aa25190c07f027884421d91c1e93f214493382d
2025-03-03 12:35:43 +02:00
Ethan Chen
b28ad057a4
sm7325-common: Remove wigig components
Change-Id: If730bffdf749f30ddf0dfeec8ce769848b19b17e
2025-03-03 12:35:37 +02:00
Michael Bestas
dc0d5ac6d2
sm7325-common: Remove duplicate bugreport service
Change-Id: I277d1ca4563abc06f10920ff20e95100e3320690
2025-03-03 12:35:24 +02:00
Michael Bestas
7baecdabb9
sm7325-common: Remove HIDL sensor multihal overrides
No longer needed, we use AIDL HAL which already has input & uhid groups

Change-Id: I817010777e80764eaf41282323caf705cd0043c6
2025-03-03 12:35:24 +02:00
Cosmin Tanislav
321fbb3d28 sm7325-common: enable lineage health service
/sys/class/power_supply/battery/device -> '../../../soc:mmi,discrete-charging/force_charger_suspend'

Change-Id: I6446876aca021bf3729609f3cad8fa5d9755e785
2025-02-06 17:39:06 -07:00
Nolen Johnson
d7b8a623f3 sm7325-common: Stop setting incremental prop
* Already set by the time this runs...

Change-Id: Ieba0186fb52ce690ece7d9cfe2af73348e93fa6b
2025-01-29 20:48:33 -05:00
Nolen Johnson
70da44b3b0 sm7325-common: Drop writing of camera schedtune devices
* We don't have them.

* Solves:
```01-28 22:46:06.188   368   368 W init    : type=1400 audit(0.0:11): avc:  denied  { create } for  name="schedtune.prefer_idle" scontext=u:r:vendor_init:s0 tcontext=u:object_r:device:s0 tclass=file permissive=0
01-28 22:46:06.188   368   368 W init    : type=1400 audit(0.0:12): avc:  denied  { create } for  name="schedtune.boost" scontext=u:r:vendor_init:s0 tcontext=u:object_r:device:s0 tclass=file permissive=0```

Change-Id: I07d1fa834592c286a60044f23802f65888ecb790
2025-01-29 00:00:08 -05:00
dianlujitao
01bd5f1ee2 sm7325-common: Nuke ATFWD
It's normally not used at all.

Change-Id: Idb824b3b8c783b6ac962e604df05f9154beb4ed2
2024-11-09 16:42:23 -07:00
Nolen Johnson
143f1118e6 fixup! sm7325-common: Remove wait_for_keymaster and all references
* Oh wow, a second instance!

Change-Id: I97160cb66b218c3d9b5e8bf3c5eea6721e9e409f
2024-06-23 11:52:36 -04:00
Paul Crowley
5e3340a0aa sm7325-common: 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
2024-06-23 11:51:28 -04:00
dianlujitao
b7db219e92
sm7325-common: Set timer trigger for charging LED
Required after recent kernel update. Based on QCOM commits:
  liblight: set "timer" trigger before setting delay for blinking
  display: light: set timer trigger before updating delay_on/off values
  display: light: clear timer trigger before setting brightness

Change-Id: Iaa4d78fe7411f299ba866de174782c269c068c23
2023-08-09 08:04:52 -07:00
LuckYViii
f6745648c0 sm7325-common: rootdir: Remove legacy ril-daemon and vendor.ril-daemon rules
* W libc : Unable to set property "ctl.stop" to "ril-daemon": error code: 0x20
* W libc : Unable to set property "ctl.stop" to "vendor.ril-daemon": error code: 0x20

Change-Id: I80784cb3d6ee3cf539b3a8b5dbcada2e8b850641
2023-06-21 13:27:23 -03:00
Nolen Johnson
383ae94428 [TMP] Revert "sm7325-common: Build Lineage Health HAL"
This reverts commit e63d405d36.

Reason for revert: Need to rework kernel side.

Change-Id: I5edfb82b02a63ab068dfe87878bc2be7edb197b1
2023-06-21 05:15:57 +02:00
Adithya R
dec61d442b sm7325-common: rootdir: Set ro.boot.hardware.revision
Bootloader sets ro.boot.revision, we can use this to show
"Hardware version" in model information in Settings.

Change-Id: Id2d825f60f792e6d05c0b34cfee811a0ac3b5604
2023-06-14 17:58:35 -06:00
Michael Bestas
e63d405d36 sm7325-common: Build Lineage Health HAL
Change-Id: I70cc903a03ac9fa3303bb8fa039c9de4806449bf
2023-06-09 13:59:05 -04:00
Michael Bestas
8cbf817fce sm7325-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-06-09 13:59:05 -04:00
Michael Bestas
104d9a6b48 sm7325-common: ueventd: Remove all permissions from /sys/devices/soc0/serial_number
Change-Id: I688347cfe59f56e4de2e4bf3c3324ca465f7a897
2023-06-09 12:38:57 -04:00
Adithya R
33ddc4f499 sm7325-common: ramdisk: Nuke non-modified qti media script
We have want to ensure the one in the media folder gets copied

Change-Id: I2d85bb5c4989611139997b03c2b7e2e61fd4e19e
2023-06-09 08:17:34 +02:00
Marc Bourgoin
fcbf39be75 sm7325-common: Add init.oem.fingerprint2.sh
It turns out berlna still needs this to initialize FP sensor
even though in the real world only one is used, so we might
as well leave this in common for berlna and xpeng

Change-Id: I094d12dc7581099c611dc1ffedf63d065af04081
2023-04-28 08:09:37 -06:00
Marc Bourgoin
a0b19996f8 sm7325-common: Decommonize fingerprint HW ident entries from ramdisk
Only xpeng needs this

Change-Id: Iaac7d76f4cbdc32ef186fb7d327b2d3a8b195f9f
2023-04-23 00:45:15 -06:00
Marc Bourgoin
555896aae7 Revert "sm7325-common: Use bluetooth firmware from A52s"
This reverts commit bdbd9a4df4.

Reason: Xiaomi Mi 11 Lite 5G NE (lisa) got A13 stock ROM so we can just
flash their bluetooth firmware partition onto ours and fix the issue
right at the source and drop the fix we have in our device tree.

Change-Id: I21f4918f8d0fc794db29b4aa2235c238c36a800e
2023-03-11 03:04:30 +01:00
SGCMarkus
bdbd9a4df4 sm7325-common: Use bluetooth firmware from A52s
This fixes the bluetooth module crashing due to firmware that should support
BT LE as yupik is BT 5.2 but instead it fails.

Change-Id: If744eff8ceb7f665b0304fb4a506efd23926bbe1
2022-12-24 00:27:59 -07:00
Wang Han
16751d26f6 sm7325-common: ueventd: Don't modify permissions of /dev/hw_random
This addresses an underlying problem since /dev/hw_random is used. The
issue is that EntropyMixer, which runs in system_server, needs to read
from /dev/hw_random, but thanks to our qualcomm ueventd, EntropyMixer
can never accress this node, resulting in warnings like this:

W EntropyMixer: Failed to add HW RNG output to entropy pool
W EntropyMixer: java.io.FileNotFoundException: /dev/hw_random (Permission denied)

AOSP ueventd handles this well, so just remove this line to get things
back to stage. This issue was never exposed because Google derps the
logging here, which is already fixed on Pie.

https://android.googlesource.com/platform/frameworks/base/+/c78a463e875d91eae2cf256042fd99d130217c38

Change-Id: I42c9aaa8f57306536e51c0a17febad57a5a77581
2022-12-11 17:49:01 +01:00
Rick Yiu
0c6409907d sm7325-common: rootdir: Remove some camera-daemon commands
Those commands have moved to init.rc.

Bug: 170507876
Bug: 171740453
Test: build pass
Change-Id: Ib7acc0fd83adca37e247cd9f3113c1f117e5196e
2022-12-11 17:49:01 +01:00
Alexander Koskovich
1fae7ae657 sm7325-common: rootdir: Fix "Invalid section keyword found" on ueventd
Change-Id: I8a3eb3abea82feb5e1a92cc859cd6498ee68666e
2022-12-11 17:49:01 +01:00
Cosmin Tanislav
f65f648212 sm7325-common: remove light hal
Change-Id: I5307764a5a04b5a28f940b31759a4552cc75a0a2
2022-10-08 00:09:40 +02:00
Mohammed Mirza Mandayappurath Manzoor
ca42ad08c8 sm7325-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
2022-09-29 22:21:26 -04:00
Marc Bourgoin
032a78d43f sm7325-common: Import stock charge_only_mode
Change-Id: I3542bac25ac2a161a165c55cbabe93ec75c04ce8
2022-09-20 10:08:57 +02:00
dianlujitao
3605aa48b1 sm7325-common: Ensure multisim property gets set at early stage
Change-Id: I8066dbd0a466f008ec1ce3144b76922fe1b7e750
2022-09-03 12:27:22 -06:00
Jimmy Chen
52791ba7c5 sm7325-common: Move WiFi supplicant service definition to dedicated RC
Change-Id: I7c448ecb511a738903ebe3702fefdf2cb13c3be3
2022-08-28 10:48:45 +02:00
Nolen Johnson
887dd57b09 sm7325-common: Swap to QTI USB init scripts
Change-Id: Ibb01a6a8b9817b01a8db397cdf82a89659562d62
2022-08-09 11:01:48 -04:00
SGCMarkus
1008a7e64b sm7325-common: build more blobs from source
includes:
*) com.dsi.ant@1.0
*) vendor.qti.hardware.btconfigstore@1.0
*) vendor.qti.hardware.btconfigstore@2.0
*) vendor.qti.hardware.display.composer-service
*) libdisplayconfig.qti
*) libsdmcore
*) libsdmutils
*) libsdedrm
*) libqsap_sdk
*) vendor.qti.hardware.systemhelper@1.0

Change-Id: Ica20d37094b0528f0b3984f0500f17f6f253b14f
2022-08-07 15:28:00 +02:00
SGCMarkus
f2a8de29f1 sm7325-common: update to S1RG32.53-18-11
Change-Id: I4bea9b6ebe78c4fc87c89405b43bb51467575be5
2022-08-06 21:51:07 +02:00
SGCMarkus
f216a1fc2e sm7325-common: rootdir: add missing qti display_boot and qcv rc files
Change-Id: I10a47aa3d4bfeb8b99f20e55659318ec43931832
2022-07-29 15:14:46 +02:00
SGCMarkus
95b667c5b9 sm8250-common -> sm7325-common 2022-03-26 23:16:05 +01:00
SGCMarkus
bc6c1abac1 sm8250-common: set board in device tree, and add more stock props 2022-03-09 22:16:05 +01:00
SGCMarkus
54cdde429d sm8250-common: rootdir: remove init.mmi.usb.sh 2022-02-20 16:57:16 +01:00
dianlujitao
99a387cf03 sm8250-common: Fix invalid usage of log utility
Fix derp in 1116fa8b1f

Change-Id: I7a4d5291a11d823f0cef024b136cfc703fa64fc0
2022-02-20 13:06:27 +01:00
SGCMarkus
2e99e32574 sm8250-common: cleanup rootdir init
remove non existing services

also fixup path for fpc_ident
2022-02-20 13:04:31 +01:00