Commit graph android_device_motorola_sm6.../rootdir
Author SHA1 Message Date
Michael Bestas
6a8b820e91
sm6375-common: Remove unused fingerprint services
Change-Id: Idcc9dbd5bb1c02b1afcf0e5f26cfea1e0ceb9db6
2026-06-07 07:26:04 +03:00
Michael Bestas
6b8e6a885d
sm6375-common: Build Lineage Health HAL
Change-Id: I70cc903a03ac9fa3303bb8fa039c9de4806449bf
2026-02-03 15:08:05 +02:00
Anand S
be3d300b71
sm6375-common: ueventd: Set permissions for focaltech fps
Change-Id: I2d93047e9d566f73cf4cb42254adba256cde7bbc
2025-06-03 13:44:15 +03:00
Sevenrock
308fef9451
sm6375-common: rootdir: create directories for focaltech fps
Change-Id: I0f935b0be92a44cbd9a90702a0531504aa621ecc
2025-06-03 13:44:11 +03:00
Marc Bourgoin
a11081a62e
sm6375-common: Remove time_daemon from init.qcom.rc
It is covered by a self-contained module

Change-Id: I24f5ccab38328a785c4eb4af8005ad37799b8df8
2025-06-03 13:35:19 +03:00
Michael Bestas
c13071c58a
sm6375-common: init: Remove unused touchrec folder
Change-Id: If797ab9f65bdb7ee907c15fbeb543632e3948d15
2025-06-03 13:35:01 +03:00
LuK1337
0c22753c84
sm6375-common: Set SSR restart_level in init.qcom.rc
Change-Id: I31e174f8c3647c17152a2b225b1bb524e22e07aa
2025-05-05 10:32:30 +03:00
dianlujitao
96a7212b84
sm6375-common: Remove moto charger
* The close-sourced binary uses symbols removed on R. It doesn't make
   much sense to fix the 45MB binary :), simply use AOSP one instead.
 * Move charge-only services to init.mmi.charge_only.rc while at it.

Change-Id: I62cdd36603afb46d5287dfcaac3d16acc9fca178
2025-05-03 13:33:17 +03:00
Michael Bestas
5cf467e8e7
sm6375-common: Update to fogos_g V1UG35H.75-14-3
Change-Id: I37343245917f648876871d2c7ed2aead3fef7fa2
2025-05-03 04:18:24 +03:00
Hridya Valsaraju
b931f7917c
sm6375-common: Set PRODUCT_SET_DEBUGFS_RESTRICTIONS
Starting with Android R launched devices, debugfs cannot be mounted in
production builds. In order to avoid accidental debugfs dependencies
from creeping in during development with userdebug/eng builds, the
build flag PRODUCT_SET_DEBUGFS_RESTRICTIONS can be set by vendors to
enforce additional debugfs restrictions for userdebug/eng builds. The
same flag will be used to enable sepolicy neveallow statements to
prevent new permissions added for debugfs access.

Test: build, boot
Bug: 184381659
Change-Id: I45e6f20c886d467a215c9466f3a09965ff897d7e
2025-05-02 02:00:06 +03:00
Alexander Koskovich
88d06888ab
sm6375-common: init: Don't mount TraceFS twice
* AOSP already mounts TraceFS in system init, so mounting it twice
   causes SEPolicy denials. See the comments in this change.

   https://android-review.googlesource.com/c/platform/system/sepolicy/+/1294195

Change-Id: Ic5d9ac2dbd36e404a93a8d48aa0ea933fd7fa701
2025-05-02 02:00:06 +03:00
Michael Bestas
053bf999af
sm6375-common: init.mmi.touch: Drop SELinux permissive check
This part of the script causes unnecessary denials to show up when
we are in permissive mode.

Change-Id: I4b1fd469d0f37e8f31c998ee480b51078edd8a99
2025-05-02 02:00:06 +03:00
Michael Bestas
72fbe0ec19
sm6375-common: Set ro.carrier from ro.boot.carrier
Change-Id: I19c912343bd19d86f56c111dc1a38d0309c52490
2025-05-02 01:04:18 +03:00
dianlujitao
b88ed8c9cd
sm6375-common: Set timer trigger permissions for charging LED
Change-Id: Iaa4d78fe7411f299ba866de174782c269c068c23
2025-04-06 03:41:13 +03:00
Michael Bestas
2ae3ac998a
Revert "sm7325-common: enable lineage health service"
This reverts commit 321fbb3d28.

Reason for revert: Not all charger drivers have the sysfs implemented,
this needs to be revisited later.

Change-Id: Ie8800faadf0e118d7bc05edc0093960031dbd8d3
2025-04-01 20:59:43 +03:00
Michael Bestas
5255a93fd6
sm6375-common: init: Remove unused power_supply_logger directories
Avoid SELinux denials.

Change-Id: I5e181e399bd73b6035bff1514ef420bbeb6bf8ea
2025-03-31 10:27:10 +03:00
Michael Bestas
e8477dbff1
sm6375-common: Set up dalvik according to stock configuration
Based on init.mmi.product.rc

Change-Id: I5bd4a19a2a880189b9c28780ff343d1b9e508a80
2025-03-23 14:02:43 +02:00
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