[SuperSU] pipop62:
Hi again,

was wondering if SuperSU still supports system mode or the sepolicy patching is deprecated, cause got some issues.

I've patched the sepolicy extracted from my stock boot.img within my rooted device (N5X with Nougat) with SuperSU 2.78-SR1 systemless.

Also noticed the patched sepolicy file was matching the same in /, md5 matched.

I've repacked the boot.img and the device booted fine, so the kernel was indeed working.

Then installed SuperSU and it auto installed as system mode according to the installation output, since it detected the sepolicy patched.

Then device bootlooped with following logs, hopefully these are the interesting parts:

09-19 22:56:00.575: I/ServiceManager(451): Waiting for service AtCmdFwd...
09-19 22:56:00.727: E/slim_daemon(470): [NDK] bindNDKSensors: Sensor server is unavailable.
09-19 22:56:01.576: I/ServiceManager(451): Waiting for service AtCmdFwd...
09-19 22:56:01.729: E/slim_daemon(470): [NDK] bindNDKSensors: Sensor server is unavailable.
09-19 22:56:02.577: I/ServiceManager(451): Waiting for service AtCmdFwd...
09-19 22:56:02.731: E/slim_daemon(470): [NDK] bindNDKSensors: Sensor server is unavailable.
09-19 22:56:03.579: I/ServiceManager(451): Waiting for service AtCmdFwd...
09-19 22:56:03.732: E/slim_daemon(470): [NDK] bindNDKSensors: Sensor server is unavailable.
09-19 22:56:04.580: I/ServiceManager(451): Waiting for service AtCmdFwd...
09-19 22:56:04.735: E/slim_daemon(470): [NDK] bindNDKSensors: Sensor server is unavailable.
09-19 22:56:04.871: W/ls(3281): type=1400 audit(0.0:808): avc: denied { getattr } for path="/persist" dev="mmcblk0p24" ino=2 scontext=u:r:shell:s0 tcontext=u:object_r:persist_file:s0 tclass=dir permissive=0
09-19 22:56:04.871: W/ls(3281): type=1400 audit(0.0:809): avc: denied { getattr } for path="/init" dev="rootfs" ino=9568 scontext=u:r:shell:s0 tcontext=u:object_r:init_exec:s0 tclass=file permissive=0
09-19 22:56:04.874: W/ls(3281): type=1400 audit(0.0:810): avc: denied { getattr } for path="/file_contexts.bin" dev="rootfs" ino=9567 scontext=u:r:shell:s0 tcontext=u:object_r:rootfs:s0 tclass=file permissive=0
09-19 22:56:04.874: W/ls(3281): type=1400 audit(0.0:811): avc: denied { getattr } for path="/service_contexts" dev="rootfs" ino=9560 scontext=u:r:shell:s0 tcontext=u:object_r:rootfs:s0 tclass=file permissive=0
09-19 22:56:04.874: W/ls(3281): type=1400 audit(0.0:812): avc: denied { getattr } for path="/init.bullhead.misc.rc" dev="rootfs" ino=9553 scontext=u:r:shell:s0 tcontext=u:object_r:rootfs:s0 tclass=file permissive=0
09-19 22:56:04.874: W/ls(3281): type=1400 audit(0.0:813): avc: denied { getattr } for path="/selinux_version" dev="rootfs" ino=9550 scontext=u:r:shell:s0 tcontext=u:object_r:rootfs:s0 tclass=file permissive=0
09-19 22:56:04.874: W/ls(3281): type=1400 audit(0.0:814): avc: denied { getattr } for path="/init.bullhead.diag.rc" dev="rootfs" ino=9549 scontext=u:r:shell:s0 tcontext=u:object_r:rootfs:s0 tclass=file permissive=0
09-19 22:56:04.874: W/ls(3281): type=1400 audit(0.0:815): avc: denied { getattr } for path="/ueventd.rc" dev="rootfs" ino=9545 scontext=u:r:shell:s0 tcontext=u:object_r:rootfs:s0 tclass=file permissive=0
09-19 22:56:04.878: W/ls(3281): type=1400 audit(0.0:816): avc: denied { getattr } for path="/init.bullhead.sensorhub.rc" dev="rootfs" ino=9544 scontext=u:r:shell:s0 tcontext=u:object_r:rootfs:s0 tclass=file permissive=0
09-19 22:56:04.878: W/ls(3281): type=1400 audit(0.0:817): avc: denied { getattr } for path="/default.prop" dev="rootfs" ino=9543 scontext=u:r:shell:s0 tcontext=u:object_r:rootfs:s0 tclass=file permissive=0
09-19 22:56:04.878: W/ls(3281): type=1400 audit(0.0:818): avc: denied { getattr } for path="/init.usb.configfs.rc" dev="rootfs" ino=9542 scontext=u:r:shell:s0 tcontext=u:object_r:rootfs:s0 tclass=file permissive=0
09-19 22:56:04.878: W/ls(3281): type=1400 audit(0.0:819): avc: denied { getattr } for path="/init.bullhead.usb.rc" dev="rootfs" ino=9538 scontext=u:r:shell:s0 tcontext=u:object_r:rootfs:s0 tclass=file permissive=0
09-19 22:56:04.878: W/ls(3281): type=1400 audit(0.0:820): avc: denied { getattr } for path="/init.zygote32.rc" dev="rootfs" ino=9537 scontext=u:r:shell:s0 tcontext=u:object_r:rootfs:s0 tclass=file permissive=0
09-19 22:56:04.878: W/ls(3281): type=1400 audit(0.0:821): avc: denied { getattr } for path="/fstab.bullhead" dev="rootfs" ino=9535 scontext=u:r:shell:s0 tcontext=u:object_r:rootfs:s0 tclass=file permissive=0
09-19 22:56:04.878: W/ls(3281): type=1400 audit(0.0:822): avc: denied { getattr } for path="/init.bullhead.ramdump.rc" dev="rootfs" ino=9534 scontext=u:r:shell:s0 tcontext=u:object_r:rootfs:s0 tclass=file permissive=0
09-19 22:56:04.878: W/ls(3281): type=1400 audit(0.0:823): avc: denied { getattr } for path="/init.bullhead.fp.rc" dev="rootfs" ino=9532 scontext=u:r:shell:s0 tcontext=u:object_r:rootfs:s0 tclass=file permissive=0
09-19 22:56:04.878: W/ls(3281): type=1400 audit(0.0:824): avc: denied { getattr } for path="/init.rc" dev="rootfs" ino=9530 scontext=u:r:shell:s0 tcontext=u:object_r:rootfs:s0 tclass=file permissive=0
09-19 22:56:04.878: W/ls(3281): type=1400 audit(0.0:825): avc: denied { getattr } for path="/sepolicy" dev="rootfs" ino=9529 scontext=u:r:shell:s0 tcontext=u:object_r:rootfs:s0 tclass=file permissive=0
09-19 22:56:04.881: W/ls(3281): type=1400 audit(0.0:826): avc: denied { getattr } for path="/verity_key" dev="rootfs" ino=9528 scontext=u:r:shell:s0 tcontext=u:object_r:rootfs:s0 tclass=file permissive=0
09-19 22:56:04.881: W/ls(3281): type=1400 audit(0.0:827): avc: denied { getattr } for path="/init.bullhead.rc" dev="rootfs" ino=9527 scontext=u:r:shell:s0 tcontext=u:object_r:rootfs:s0 tclass=file permissive=0
09-19 22:56:05.580: W/Atfwd_Sendcmd(451): AtCmdFwd service not published, waiting... retryCnt : 1

Is there anything i've missed? Can sepolicy be patched from a systemless rooted phone? Is some Nougat issue? Did something wrong?

Thanks.