[Galaxy Tab S2 Android Development] MrBrause:
Okay please see the mainfest I work with below. I also followed metterschlings instructions.

I still get the bootloop at the samsung-logo, but spent hours in analysing what the the cause can be and trying to fix them.

I've tried a lot of commits, but it ended nearly the same.

To me it looks like that the reboot is triggered by failed services either apexd, boringssl-check or ueventd

My ideas were, silencing the return-codes of those services to check if they are the only trigger for the reboot:

- ignore the error returns from processgroup.cpp

- ignore the error returns from boringssl_self_test.rc

- silencing the linkerconfig ld.config error

- set cgroup-permissions

All of my error-logs have something in common:

libprocessgroup: Failed to make and chown /sys/fs/cgroup/uid_0: No such file or directory

As it does not say "Operation not permitted" it looks like there is really something read-only, so maybe the actions and ideas above are just symptom-fixing.

Some of the commits and articles, I've tried:

https://github.com/PotatoDevices/ke...mmit/852bd7ced95590612d0b803f9318c35ce26e165c

https://github.com/sfos-garlic/andr...mmit/af2a6918fac37da9d9e8a13b10b466a07433eb7a

https://github.com/Project-PixelStar/system_core/commit/18b698aee551c3188517a6c751653d9765169045

https://github.com/adiantek/Google-Pixel-2-XL-Android-S?tab=readme-ov-file

https://stackoverflow.com/questions...due-to-non-updatable-apex-or-boringssl-checks

Here are some log-entries from last_kmsg.

<3>[ 4.632562] [c5] libprocessgroup: Failed to make and chown /sys/fs/cgroup/uid_0: No such file or directory
<2>[ 4.632786] [c6] init: Service 'ueventd' failed to start due to a fatal error
<6>[ 4.633893] [c5] init: starting service 'apexd-bootstrap'...
<3>[ 4.635081] [c5] libprocessgroup: Failed to make and chown /sys/fs/cgroup/uid_0: No such file or directory
<6>[ 4.635254] [c5] init: Command 'exec_start apexd-bootstrap' action=early-init (/system/etc/init/hw/init.rc:81) took 2ms and failed: Could not start exec service: createProcessGroup(0, 2491) failed for service 'apexd-bootstrap'
<6>[ 4.635320] [c5] init: Service 'ueventd' (pid 2490) exited with status 6
<2>[ 4.635340] [c4] init: Service 'apexd-bootstrap' failed to start due to a fatal error
<6>[ 4.635349] [c5] init: Sending signal 9 to service 'ueventd' (pid 2490) process group...
<6>[ 4.635411] [c5] libprocessgroup: Successfully killed process cgroup uid 0 pid 2490 in 0ms
<6>[ 4.635969] [c5] init: Got shutdown_command 'reboot,bootloader,bootstrap-apexd-failed' Calling HandlePowerctlMessage()
<3>[ 4.638220] [c5] init: reboot-bootloader: Error writing bootloader_message: failed to find /misc partition
<6>[ 4.638244] [c5] init: Clear action queue and start shutdown trigger
<6>[ 4.638320] [c5] init: Entering shutdown mode
<6>[ 4.638411] [c5] init: processing action (shutdown) from (/vendor/etc/init/hw/init.universal5433.rc:603)
<6>[ 4.640133] [c5] init: Service 'apexd-bootstrap' (pid 2491) exited with status 6 oneshot service took 0.005000 seconds in background
<6>[ 4.640159] [c5] init: Sending signal 9 to service 'apexd-bootstrap' (pid 2491) process group...
<6>[ 4.640223] [c5] libprocessgroup: Successfully killed process cgroup uid 0 pid 2491 in 0ms
<3>[ 4.640260] [c5] init: Service apexd-bootstrap has 'reboot_on_failure' option and failed, shutting down system.
<6>[ 4.643259] [c5] init: Command 'copy /sys/class/power_supply/battery/batt_capacity_max /efs/Battery/prev_batt_capacity_max' action=shutdown (/vendor/etc/init/hw/init.universal5433.rc:606) took 2ms and failed: Could not write to output file '/efs/Battery/prev_batt_capacity_max': open() failed: No such file or directory
<6>[ 4.643305] [c5] init: processing action (shutdown_done) from (<Builtin Action>:0)
<6>[ 4.643341] [c5] init: Reboot start, reason: reboot,bootloader,bootstrap-apexd-failed, reboot_target: bootloader,bootstrap-apexd-failed
<6>[ 4.643366] [c5] init: Shutdown timeout: 6000 ms
<6>[ 4.643388] [c5] init: Create reboot monitor thread.
<6>[ 4.643621] [c7] init: shutdown_timeout_timespec.tv_sec: 310
<3>[ 4.643889] [c5] init: Could not open '/metadata/bootstat/persist.sys.boot.reason' to persist reboot reason: No such file or directory
<6>[ 4.644167] [c5] init: Reboot ending, jumping to kernel

more

4.611458] [c5] init: processing action (SetupCgroups) from (<Builtin Action>:0)
<3>[ 4.612816] [c5] libprocessgroup: Failed to mount blkio cgroup: No such file or directory
<4>[ 4.612839] [c5] libprocessgroup: Failed to setup blkio cgroup
<6>[ 4.613301] [c5] libprocessgroup: Mounting memcg with memory_recursiveprot failed. Retrying without.
<3>[ 4.613464] [c5] libprocessgroup: Failed to mount cgroup v2: No such device
<7>[ 4.613891] [c5] SELinux: initialized (dev cgroup, type cgroup), uses genfs_contexts
<3>[ 4.614433] [c5] libprocessgroup: Failed to mount cpuset cgroup: No such device
<4>[ 4.614456] [c5] libprocessgroup: Failed to setup cpuset cgroup
<3>[ 4.614643] [c5] libprocessgroup: Failed to mount memory cgroup: No such file or directory
<4>[ 4.614665] [c5] libprocessgroup: Failed to setup memory cgroup
<6>[ 4.617035] [c5] init: processing action (SetKptrRestrict) from (<Builtin Action>:0)
<6>[ 4.617372] [c5] init: processing action (TestPerfEventSelinux) from (<Builtin Action>:0)
<6>[ 4.617426] [c5] init: Permissive SELinux boot, forcing sys.init.perf_lsm_hooks to 1.
<6>[ 4.617761] [c5] init: processing action (ConnectEarlyStageSnapuserd) from (<Builtin Action>:0)
<6>[ 4.617835] [c5] init: processing action (early-init) from (/system/etc/init/hw/init.rc:15)
<6>[ 4.619983] [c5] init: Command 'mkdir /acct/uid' action=early-init (/system/etc/init/hw/init.rc:30) took 1ms and failed: mkdir() failed on /acct/uid: Read-only file system
<6>[ 4.623899] [c5] init: starting service 'exec 1 (/system/bin/bootstrap/linkerconfig --target /linkerconfig/bootstrap)'...
<3>[ 4.625368] [c5] libprocessgroup: Failed to make and chown /sys/fs/cgroup/uid_0: No such file or directory
<3>[ 4.625428] [c5] libprocessgroup: Failed to make and chown /sys/fs/cgroup/uid_0/pid_2488: No such file or directory
<3>[ 4.625497] [c5] libprocessgroup: Failed to write '2488' to /sys/fs/cgroup/uid_0/pid_2488/cgroup.procs: No such file or directory
<6>[ 4.625661] [c5] init: Command 'exec -- /system/bin/bootstrap/linkerconfig --target /linkerconfig/bootstrap' action=early-init (/system/etc/init/hw/init.rc:59) took 2ms and failed: Could not start exec service: createProcessGroup(0, 2488) failed for service 'exec 1 (/system/bin/bootstrap/linkerconfig --target /linkerconfig/bootstrap)'
<2>[ 4.625743] [c6] init: Service 'exec 1 (/system/bin/bootstrap/linkerconfig --target /linkerconfig/bootstrap)' failed to start due to a fatal error
<6>[ 4.625826] [c5] init: Command 'copy /linkerconfig/bootstrap/ld.config.txt /linkerconfig/default/ld.config.txt' action=early-init (/system/etc/init/hw/init.rc:61) took 0ms and failed: Could not read input file '/linkerconfig/bootstrap/ld.config.txt': open() failed: No such file or directory
<6>[ 4.626484] [c5] init: starting service 'ueventd'...
<3>[ 4.627607] [c5] libprocessgroup: Failed to make and chown /sys/fs/cgroup/uid_0: No such file or directory
<3>[ 4.627680] [c5] libprocessgroup: Failed to make and chown /sys/fs/cgroup/uid_0/pid_2489: No such file or directory
<3>[ 4.627766] [c5] libprocessgroup: Failed to write '2489' to /sys/fs/cgroup/uid_0/pid_2489/cgroup.procs: No such file or directory
<6>[ 4.627899] [c5] init: Untracked pid 2488 exited with status 6
<6>[ 4.627923] [c5] init: Untracked pid 2488 did not have an associated service entry and will not be reaped
<2>[ 4.627938] [c4] init: Service 'ueventd' failed to start due to a fatal error
<3>[ 4.629551] [c7] logwrapper: executing /apex/com.android.runtime/bin/linkerconfig failed: No such file or directory
<3>[ 4.629566] [c7] logwrapper:
<6>[ 4.629629] [c5] linkerconfig: executing /apex/com.android.runtime/bin/linkerconfig failed: No such file or directory
<6>[ 4.630438] [c5] linkerconfig: linkerconfig terminated by exit(255)
<6>[ 4.630438]
<6>[ 4.630587] [c5] init: Command 'update_linker_config' action=early-init (/system/etc/init/hw/init.rc:75) took 2ms and failed: failed to execute linkerconfig: No such file or directory
<6>[ 4.630634] [c5] init: Service 'ueventd' (pid 2489) exited with status 6
<6>[ 4.630660] [c5] init: Sending signal 9 to service 'ueventd' (pid 2489) process group...
<6>[ 4.630729] [c5] libprocessgroup: Successfully killed process cgroup uid 0 pid 2489 in 0ms
<6>[ 4.633260] [c5] init: processing action (early-init) from (/init.environ.rc:2)
<6>[ 4.633452] [c5] init: processing action (early-init) from (/vendor/etc/init/hw/init.universal5433.rc:7)
<6>[ 4.635683] [c5] init: processing action (early-init) from (/system/etc/init/prng_seeder.rc:5)
<6>[ 4.636073] [c5] init: starting service 'prng_seeder'...
<6>[ 4.636525] [c5] init: Created socket '/dev/socket/prng_seeder', mode 666, user 1092, group 1092
<3>[ 4.637847] [c5] libprocessgroup: Failed to make and chown /sys/fs/cgroup/uid_1092: No such file or directory
<3>[ 4.637936] [c5] libprocessgroup: Failed to make and chown /sys/fs/cgroup/uid_1092/pid_2491: No such file or directory
<3>[ 4.638008] [c5] libprocessgroup: Failed to write '2491' to /sys/fs/cgroup/uid_1092/pid_2491/cgroup.procs: No such file or directory
<6>[ 4.638146] [c5] init: processing action (ro.product.cpu.abilist32=* && early-init) from (/vendor/etc/init/boringssl_self_test.rc:2)
<2>[ 4.638225] [c4] init: Service 'prng_seeder' failed to start due to a fatal error
<6>[ 4.638625] [c5] init: starting service 'boringssl_self_test32_vendor'...
<3>[ 4.639752] [c5] libprocessgroup: Failed to make and chown /sys/fs/cgroup/uid_0: No such file or directory
<3>[ 4.639822] [c5] libprocessgroup: Failed to make and chown /sys/fs/cgroup/uid_0/pid_2492: No such file or directory
<3>[ 4.639895] [c5] libprocessgroup: Failed to write '2492' to /sys/fs/cgroup/uid_0/pid_2492/cgroup.procs: No such file or directory
<6>[ 4.640066] [c5] init: Command 'exec_start boringssl_self_test32_vendor' action=ro.product.cpu.abilist32=* && early-init (/vendor/etc/init/boringssl_self_test.rc:3) took 1ms and failed: Could not start exec service: createProcessGroup(0, 2492) failed for service 'boringssl_self_test32_vendor'
<2>[ 4.640097] [c6] init: Service 'boringssl_self_test32_vendor' failed to start due to a fatal error
<6>[ 4.640156] [c5] init: Service 'prng_seeder' (pid 2491) exited with status 6
<6>[ 4.640180] [c5] init: Sending signal 9 to service 'prng_seeder' (pid 2491) process group...
<6>[ 4.640236] [c5] libprocessgroup: Successfully killed process cgroup uid 1092 pid 2491 in 0ms
<6>[ 4.640676] [c5] init: Got shutdown_command 'reboot,boringssl-self-check-failed' Calling HandlePowerctlMessage()
<6>[ 4.640712] [c5] init: Clear action queue and start shutdown trigger
<6>[ 4.640809] [c5] init: Entering shutdown mode
<6>[ 4.640905] [c5] init: processing action (shutdown) from (/vendor/etc/init/hw/init.universal5433.rc:603)
<6>[ 4.641360] [c5] init: Service 'boringssl_self_test32_vendor' (pid 2492) exited with status 6 oneshot service took 0.001000 seconds in background
<6>[ 4.641386] [c5] init: Sending signal 9 to service 'boringssl_self_test32_vendor' (pid 2492) process group...
<6>[ 4.641446] [c5] libprocessgroup: Successfully killed process cgroup uid 0 pid 2492 in 0ms
<3>[ 4.641483] [c5] init: Service boringssl_self_test32_vendor has 'reboot_on_failure' option and failed, shutting down system.
<6>[ 4.644809] [c5] init: Command 'copy /sys/class/power_supply/battery/batt_capacity_max /efs/Battery/prev_batt_capacity_max' action=shutdown (/vendor/etc/init/hw/init.universal5433.rc:606) took 2ms and failed: Could not write to output file '/efs/Battery/prev_batt_capacity_max': open() failed: No such file or directory
<6>[ 4.644869] [c5] init: processing action (shutdown_done) from (<Builtin Action>:0)
<6>[ 4.644914] [c5] init: Reboot start, reason: reboot,boringssl-self-check-failed, reboot_target: boringssl-self-check-failed
<6>[ 4.644940] [c5] init: Shutdown timeout: 6000 ms
<6>[ 4.644963] [c5] init: Create reboot monitor thread.
<6>[ 4.645194] [c7] init: shutdown_timeout_timespec.tv_sec: 310
<3>[ 4.645606] [c5] init: Could not open '/metadata/bootstat/persist.sys.boot.reason' to persist reboot reason: No such file or directory
<6>[ 4.645871] [c5] init: Reboot ending, jumping to kernel

manifest

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="MrBrause/android_device_samsung_gts210ltexx" path="device/samsung/gts210ltexx" remote="github" revision="lineage-20" />
<project name="metterschlg/android_device_samsung_gts2-common-selinux" path="device/samsung/gts2-common" remote="github" revision="lineage-20-r22" />
<project name="metterschlg/android_kernel_samsung_universal5433" path="kernel/samsung/universal5433" remote="github" revision="lineage-20-r22" />
<project name="metterschlg/proprietary_vendor_samsung" path="vendor/samsung" remote="github" revision="lineage-20-r22" />
<project name="LineageOS/android_hardware_samsung" path="hardware/samsung" remote="github" revision="lineage-20"/>
<project name="LineageOS/android_hardware_samsung_slsi_exynos" path="hardware/samsung_slsi/exynos" remote="github" revision="lineage-19.1" />
<project name="LineageOS/android_hardware_samsung_slsi_exynos5" path="hardware/samsung_slsi/exynos5" remote="github" revision="lineage-19.1" />
<project name="LineageOS/android_hardware_samsung_slsi_openmax" path="hardware/samsung_slsi/openmax" remote="github" revision="lineage-19.1" />
<project name="retiredtab/android_hardware_samsung_slsi_exynos5433-r22" path="hardware/samsung_slsi/exynos5433" remote="github" revision="20-r22" />
<project name="LineageOS/android_device_samsung_slsi_sepolicy" path="device/samsung_slsi/sepolicy" remote="github" revision="lineage-20" />
</manifest>