[SuperSU] Manh_IT:
Try Root G925S Android 6.0.1

I tried to modified ramdisk to Root G925S - Android 6.0.1 Rom, but get bootloop!

I see su binary,... in /system/xbin/ and symlink app_process > daemonsu in /system/bin/, but symlink app_process64 > daemonsu is missing

My modified:

- Patched sepolicy by SuperSU 2.67 via N920P - Android 5.1.1 devices

- Remove ",support_scfs,verify" in fstab files

- Add /sbin/injectsu.sh , /sbin/busybox & sbin/su/ (include SuperSU 2.67 binary files,...)

#!/system/bin/sh

/sbin/busybox mount -o remount,rw /system

# Inject SuperSU
if [ ! -f /system/xbin/su ]; then
# Make necessary folders
/sbin/busybox mkdir /system/etc/init.d

# Extract SU from ramdisk to correct locations
/sbin/busybox rm -rf /system/bin/app_process
/sbin/busybox rm -rf /system/bin/install-recovery.sh
/sbin/busybox cp /sbin/su/supolicy /system/xbin/
/sbin/busybox cp /sbin/su/su /system/xbin/
/sbin/busybox cp /sbin/su/libsupol.so /system/lib64/
/sbin/busybox cp /sbin/su/install-recovery.sh /system/etc/
/sbin/busybox cp /sbin/su/99SuperSUDaemon /system/etc/init.d/

# Begin SuperSU install process
/sbin/busybox cp /system/xbin/su /system/xbin/daemonsu
/sbin/busybox cp /system/xbin/su /system/xbin/sugote
/sbin/busybox cp /system/bin/sh /system/xbin/sugote-mksh
/sbin/busybox mkdir -p /system/bin/.ext
/sbin/busybox cp /system/xbin/su /system/bin/.ext/.su

/sbin/busybox cp /system/bin/app_process64 /system/bin/app_process_init
/sbin/busybox mv /system/bin/app_process64 /system/bin/app_process64_original

/sbin/busybox echo 1 > /system/etc/.installed_su_daemon

/sbin/busybox chmod 755 /system/xbin/su
/sbin/busybox chmod 755 /system/xbin/daemonsu
/sbin/busybox chmod 755 /system/xbin/sugote
/sbin/busybox chmod 755 /system/xbin/sugote-mksh
/sbin/busybox chmod 755 /system/xbin/supolicy
/sbin/busybox chmod 777 /system/bin/.ext
/sbin/busybox chmod 755 /system/bin/.ext/.su
/sbin/busybox chmod 755 /system/bin/app_process_init
/sbin/busybox chmod 755 /system/bin/app_process64_original
/sbin/busybox chmod 644 /system/lib64/libsupol.so
/sbin/busybox chmod 755 /system/etc/install-recovery.sh
/sbin/busybox chmod 644 /system/etc/.installed_su_daemon

/sbin/busybox ln -s /system/etc/install-recovery.sh /system/bin/install-recovery.sh
/sbin/busybox ln -s /system/xbin/daemonsu /system/bin/app_process
/sbin/busybox ln -s /system/xbin/daemonsu /system/bin/app_process64

/system/xbin/su --install
fi

# Inject Busybox if not present
if [ ! -f /system/xbin/busybox ]; then
/sbin/busybox cp /sbin/busybox /system/xbin/
/sbin/busybox chmod 755 /system/xbin/busybox
/system/xbin/busybox --install -s /system/xbin
fi

# Kill securitylogagent
if [ -d /system/app/SecurityLogAgent ]; then
/sbin/busybox rm -fR /system/app/SecurityLogAgent
/sbin/busybox rm -fR /system/priv-app/KLMSAgent
/sbin/busybox rm -fR /system/app/*Knox*
/sbin/busybox rm -fR /system/app/*KNOX*
/sbin/busybox rm -fR /system/container
/sbin/busybox rm -fR /system/app/Bridge
/sbin/busybox rm -fR /system/app/BBCAgent
/sbin/busybox rm -fR /system/priv-app/FotaClient
/sbin/busybox rm -fR /system/priv-app/SyncmIDM
/sbin/busybox rm -fR /system/priv-app/*FWUpdate*
fi

# Enforce init.d script perms on any post-root added files
/sbin/busybox chmod 755 /system/etc/init.d
/sbin/busybox chmod 755 /system/etc/init.d/*

# Run init.d scripts
/sbin/busybox mount -t rootfs -o remount,rw rootfs
/sbin/busybox run-parts /system/etc/init.d

# Deep sleep fix
if [ ! -d /system/su.d ]; then
/sbin/busybox mkdir /system/su.d
/sbin/busybox chmod 0700 /system/su.d
if [ ! -f /system/su.d/000000deepsleep ]; then
/sbin/busybox cp -f /sbin/su/000000deepsleep /system/su.d/
/sbin/busybox chmod 0700 /system/su.d/000000deepsleep
fi
/system/bin/reboot
fi

# Wait for 5 seconds from boot before starting the SuperSU daemon
/sbin/busybox sleep 5
/system/xbin/daemonsu --auto-daemon &

sync

- Add lines to init.rc file

# Inject SuperSU
service daemonsu /sbin/injectsu.sh
class late_start
user root
seclabel u:r:init:s0
oneshot

Sorry bad english