[SuperSU] Dmitry87:
I'm trying to add SuperSU to a Stock Rom for Samsung SM_G3608:

Device Model:	SM-G3608

Bootloader:	G3608ZMU1AQA2

RAM:	768 MB

Board:	MSM8916

Toolchain:	GCC 4.7

Runtime Dalivk:	1.6.0

Chipset:	QUALCOMM TECHNOLOGIES, INC MSM 8916

SDK Version:	19

Android Version:	4.4.4

Kernel:	Linux 3.10.28

CPU Chipset:	Qualcomm Snapdragon 410, 28nm LP

Processor Rev:	0 (v71)

Processor Design:	Cortex A53

Processor Architecture:	ARMV7L

CPU Cores:	4x1190MHz

CPU ABI:	ARMEABI-V7A

CPU ABI2:	ARMEABI

CPU Revicion:	r0p0

CPU implementation:	0x41

Display Resolution:	480x800 TFT

Pixel Density:	210X/210Y ppi

Aspect Ratio:	1.675:1

Refresh Rate:	60 Hz

Orientation:	Portrait

Graphics:	Qualcomm Adreno (TM) 306

Grpahics API:	OpenGL ES 3.0 V@84.0 AU@ (CL@)

Texture Units:	16

Usable RAM:	630 MB

SD Card 0:	2.28 GB

To patch the rom I use this script:

#!/bin/bash
#
# configure script for android_img_repack_tools.
#
SuperSU_PATH="UPDATE-SuperSU"

sudo cp $SuperSU_PATH/common/Superuser.apk /system/app/Superuser.apk
sudo chmod 0644 /system/app/Superuser.apk
echo "/system/app/Superuser.apk u:object_r:system_file:s0" >> ./file_contexts
sudo setfattr -n security.selinux -v u:object_r:system_file:s0 /system/app/Superuser.apk

sudo cp $SuperSU_PATH/common/install-recovery.sh /system/etc/install-recovery.sh
sudo chmod 0755 /system/etc/install-recovery.sh
echo "/system/etc/install-recovery.sh u:object_r:toolbox_exec:s0" >> ./file_contexts
sudo setfattr -n security.selinux -v u:object_r:toolbox_exec:s0 /system/etc/install-recovery.sh

sudo cp $SuperSU_PATH/armv7/su /system/xbin/su
sudo chmod 0755 /system/xbin/su
sed -i '/^\/system\/xbin\/su/d' ./file_contexts
echo "/system/xbin/su u:object_r:system_file:s0" >> ./file_contexts
sudo setfattr -n security.selinux -v u:object_r:system_file:s0 /system/xbin/su

sudo mkdir /system/bin/.ext
sudo cp $SuperSU_PATH/armv7/su /system/bin/.ext/.su
sudo chmod 0755 /system/bin/.ext/.su
echo "/system/bin/.ext/.su u:object_r:system_file:s0" >> ./file_contexts
sudo setfattr -n security.selinux -v u:object_r:system_file:s0 /system/bin/.ext/.su

sudo cp /system/xbin/su /system/xbin/daemonsu
echo "/system/xbin/daemonsu u:object_r:system_file:s0" >> ./file_contexts
sudo setfattr -n security.selinux -v u:object_r:system_file:s0 /system/xbin/daemonsu

sudo cp /system/xbin/su /system/xbin/sugote
echo "/system/xbin/sugote u:object_r:zygote_exec:s0" >> ./file_contexts
sudo setfattr -n security.selinux -v u:object_r:zygote_exec:s0 /system/xbin/sugote

sudo cp $SuperSU_PATH/armv7/supolicy /system/xbin/supolicy
sudo chmod 0755 /system/xbin/supolicy
echo "/system/xbin/supolicy u:object_r:system_file:s0" >> ./file_contexts
sudo setfattr -n security.selinux -v u:object_r:system_file:s0 /system/xbin/supolicy

sudo cp $SuperSU_PATH/armv7/libsupol.so /system/lib/libsupol.so
sudo chmod 0755 /system/lib/libsupol.so
echo "/system/lib/libsupol.so u:object_r:system_file:s0" >> ./file_contexts
sudo setfattr -n security.selinux -v u:object_r:system_file:s0 /system/lib/libsupol.so

sudo touch /system/etc/.installed_su_daemon
sudo chmod 0644 /system/etc/.installed_su_daemon
echo "/system/etc/.installed_su_daemon u:object_r:system_file:s0" >> ./file_contexts
sudo setfattr -n security.selinux -v u:object_r:system_file:s0 /system/etc/.installed_su_daemon

sudo cp /system/bin/sh /system/xbin/sugote-mksh
sudo chmod 0755 /system/xbin/sugote-mksh
echo "/system/xbin/sugote-mksh u:object_r:system_file:s0" >> ./file_contexts
sudo setfattr -n security.selinux -v u:object_r:system_file:s0 /system/xbin/sugote-mksh

sudo mv /system/bin/app_process /system/bin/app_process_original
sudo chmod 0755 /system/bin/app_process_original
echo "/system/bin/app_process_original u:object_r:zygote_exec:s0" >> ./file_contexts
sudo setfattr -n security.selinux -v u:object_r:zygote_exec:s0 /system/bin/app_process_original

sudo ln -s /system/xbin/daemonsu /system/bin/app_process
sudo rm -f /system/bin/install-recovery.sh
sudo ln -s /system/etc/install-recovery.sh /system/bin/install-recovery.sh

sudo ./make_ext4fs -s -l 900M -a system new.img /system/
sudo chmod a+rw ./new.img

file_contexts I append to boot.img

After flashing the rom the phone numbs at samsung logo. Apparently the problem with app_process. If I change it back to app_process_original, the phone starts, but supersu says that binaries should be updated and it fails to update it.

May be I use wrong arm version?

Original isntruction says that the lib folder is lib\(64\) i.e. lib(64)... there is no such folder in my rom