Commit graph

37 commits

Author SHA1 Message Date
MD Raza
3bcd8763cc sm6225-common: Add gf_ident service
Signed-off-by: MD Raza <delightreza@gmail.com>
Change-Id: Iabeed926079cb2edb1d287e2654e7fa288c329fb
2024-04-05 07:21:13 +05:30
Steven Moreland
a422ee8e04
sm6225-common: Move /vendor/ueventd.rc to /vendor/etc/ueventd.rc
The root location of this file is deprecated for Android T.

Bug: 189268918
Bug: 178221726
Test: device reaches boot complete after raising API level to 32
Change-Id: I97a6d2e5cacd0ac5eeb81daafeb8b1a0ad5c119b
2024-03-24 11:24:23 +02:00
Michael Bestas
68eae2d364
sm6225-common: Disable batt_health service
Change-Id: I2533fd387c4d6605cb96a186bac1ca5a5ffb987b
2024-02-26 05:12:45 +02:00
Michael Bestas
757b8c471e
sm6225-common: Update rootdir to devon_g T2SN33.73-22-3
Change-Id: I00acebe92cf52b76991d5d53acbbcbfbc9b069bb
2024-01-05 11:41:06 +02:00
Michael Bestas
01e2eda4d3
sm6225-common: Resolve mmi vendor_init denial
Change-Id: I3c5db0ada1d132054433330ce347106e4d209f02
2023-11-29 17:03:39 +02:00
Suren Baghdasaryan
b6c60af207
sm6225-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: I249ecc45a001a69d73b06b77154f9b6e5f9964d9
2023-11-22 19:13:17 +02:00
Suren Baghdasaryan
fde8c98ecb
sm6225-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
2023-11-22 19:13:17 +02:00
Bruno Martins
e6633b270e
sm6225-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
2023-11-22 17:53:38 +02:00
Wolfram Liebchen
747fa28ad9
sm6225-common: Add notification light HAL
The otherwise unused charging-LED is used as notification light with
configurable pulse-widths.

Change-Id: Ic6c7cf993b8e83793b191d24cff65320c68d40d0
2023-11-11 16:28:23 +02:00
LuK1337
4b0fcbf205 sm6225-common: Drop SSR services and set SSR restart_level in init.qcom.rc
Change-Id: I32fc08c9ad36b9c8ebfc019fc87a19eece18f0b4
2023-07-26 23:33:02 +05:30
Dhina17
0da2e505af sm6225-common: Add charger service
- Taken from CodeLinaro.
- Fixes offline charging.

Change-Id: I614caefc4a7318e833247a20344f9b9efdcbeea4
2023-07-20 17:06:53 +02:00
dianlujitao
6198955b5f sm6225-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
2023-07-20 17:06:53 +02:00
Michael Bestas
2ff59b0506
sm6225-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 14:53:20 +03:00
Michael Bestas
e170a64038
sm6225-common: Match stock ZRAM setup
Change-Id: I60539698fbeb6ba29f96ec6f8e68c778f999d701
2023-05-19 04:20:33 +03:00
Michael Bestas
a4f78a14ef
sm6225-common: Set up dalvik according to stock configuration
Based on init.mmi.product.rc

Change-Id: I5bd4a19a2a880189b9c28780ff343d1b9e508a80
2023-05-19 04:20:33 +03:00
Michael Bestas
3055820c9c
sm6225-common: ueventd: Remove all permissions from /sys/devices/soc0/serial_number
Change-Id: I688347cfe59f56e4de2e4bf3c3324ca465f7a897
2023-05-17 20:48:49 +03:00
Michael Bestas
8ed68258b6
sm6225-common: Decommonize fstab
Change-Id: Ibe837811e364cb3b8fe189bf91474ae3dbf2989a
2023-05-10 23:36:33 +03:00
Dhina17
a544c2b81f sm6225-common: Correct the fstab.qcom_ufs src file
Change-Id: Ieed55ca0e5c91d5d98daad4de20d95daa63cef56
2023-05-10 03:07:39 +05:30
Michael Bestas
df61000153
sm6225-common: Add fstab support for emmc devices
Change-Id: Id8d2838dd747f02107116cda761cb364b3a626d3
2023-05-07 01:03:32 +03:00
Michael Bestas
f7bdf6f7f8
sm6225-common: Decommonize some init scripts
Change-Id: I4a5045970032c0578257b9acefa5aafb05d24f0c
2023-04-24 23:41:31 +03:00
Mohammed Mirza Mandayappurath Manzoor
b4daae51b7
sm6225-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-24 23:08:45 +03:00
Michael Bestas
91036a08a8
sm6225-common: Get rid of hardware_revisions.sh
This is useless for us and requires a bunch of SEPolicy changes.

Change-Id: I760cb419612f0a196a863f6bf1869e11341ab8d3
2023-04-19 20:35:11 +03:00
Michael Bestas
458f933282
sm6225-common: init.mmi: Drop setprop ro.vendor.build.fingerprint
This doesn't work and it would be wrong if it worked.

Change-Id: I0d4123eb33c3a18eea36e01308df21764e2df3ac
2023-04-19 20:35:11 +03:00
Michael Bestas
28e3cb2afe
sm6225-common: init.oem.hw: Drop set_ro_vendor_incremental
Change-Id: Ic4d3d1775c437847f2aaecd87e504ba39bf93ac5
2023-04-19 20:35:11 +03:00
Michael Bestas
a44f1a0a7a
sm6225-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
2023-04-19 20:35:10 +03:00
Jimmy Chen
c2e0639266
sm6225-common: Move WiFi supplicant service definition to dedicated RC
Change-Id: I7c448ecb511a738903ebe3702fefdf2cb13c3be3
2023-04-14 05:04:29 +03:00
Michael Bestas
7e41610385
sm6225-common: Disable ramdumps
This should not be enabled in production builds.
Also resolves SELinux denials.

Change-Id: Idcfe7301a96d5831c61c02e5f5f448cd46a9481b
2023-04-14 05:01:56 +03:00
Hridya Valsaraju
a108236cca
sm6225-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
2023-04-14 05:01:50 +03:00
Michael Bestas
122c791486
sm6225-common: init: Drop unused property triggers
Resolve SELinux denials.

Change-Id: I457c7ba325ce597cc56bf851236eeb2a00abb074
2023-04-10 19:18:18 +03:00
Alexander Koskovich
9b4c50d809
sm6225-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
2023-04-10 19:18:18 +03:00
Ethan Chen
459eba2f23
sm6225-common: Remove cnss_diag
* This is for debug use only

Change-Id: I1977c3495a3467702b87ed6b3428514e15d487c3
2023-04-10 19:18:18 +03:00
Albert I
863f1ffcc7 sm6225-common: fstab: Handle avb= fs_mgr flags correctly
Specifying avb=<vbmeta-partition> is only necessary for first entry of
partition groups that use same vbmeta partition. The following entry can have
<vbmeta-parititon> part omitted.

Test: None
Link: https://source.android.com/devices/architecture/kernel/mounting-partitions-early#fstab-entries
Signed-off-by: Albert I <kras@raphielgang.org>
Change-Id: I5a42fd3de72c400acfae56d6a1e1b85c22a79537
2023-04-09 01:09:24 +05:30
Dhina17
cae638f112 sm6225-common: Build QTI USB 1.3
Change-Id: Ic5be4a49c8b31099820b46a95026221f411b45de
2023-03-30 22:51:57 +05:30
Dhina17
c5327f4fe1 sm6225-common: Import rootdir from hawao S2SE32.28-41-1
Change-Id: I99ed9854b90396e594714124719ecb37d6cf5eae
2023-02-17 00:18:46 +05:30
Dhina17
222684d0fb sm6225-common: Import init.recovery.qcom.rc from CodeLinaro
TAG: LA.UM.9.15.r1-05800-KAMORTA.QSSI12.0

Change-Id: If491cd9a8b2e80a5b80f542a4a27186f253fd0dd
2023-02-17 00:18:46 +05:30
Dhina17
24692fc6e2 sm6225-common: Setup recovery
Change-Id: Iec167d51191bc5ff3ba8dcc1864ac7bfee23cfe1
2023-02-12 01:30:43 +05:30
Dhina17
7ba856aaeb sm6225-common: Build vendor boot partition
with:
- DTB image
- first_stage_ramdisk fstab

Change-Id: I7cf72994a49b1b49ba7bf2079537697fb6fd20fa
2023-02-12 01:30:43 +05:30