[Galaxy S 5 Android Development (Snapdragon)] Danhack000:
Here is the updater-script. I'm about to step out of my house and wont be able to help till later. Good luck guys. There is something wrong here though.

set_progress(0.0);

ui_print(" ");

ui_print("****************************************");

ui_print(" Galaxy S5 DreamUX ");

ui_print(" A7 (2017) Port by MINH QUAN ");

ui_print("****************************************");

ifelse(is_mounted("/system"), unmount("/system"));

ui_print("@Preparing Installation...");

ui_print("@Mounting Partitions...");

mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");

mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/userdata", "/data");

mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/cache", "/cache");

delete_recursive("/system");

show_progress(0.200000, 0);

ui_print("Writing system files...");

package_extract_dir("system", "/system");

package_extract_dir("su_busybox/system", "/system");

show_progress(0.90, 1);

ui_print("@Installing S8 Style...");

package_extract_dir("norma/s8/system", "/system");

package_extract_dir("norma/vrtheme", "/data/tmp/vrtheme");

set_perm(0, 0, 0755, "/data/tmp/vrtheme/installtheme.sh");

set_perm(0, 0, 0755, "/data/tmp/vrtheme/zip");

set_perm(0, 0, 0755, "/data/tmp/vrtheme/zipalign");

run_program("/data/tmp/vrtheme/installtheme.sh");

endif;

ui_print("Symlinking");

symlink("/system/bin/sh", "/system/bin/mksh");

symlink("/system/bin/app_process32", "/system/bin/app_process");

symlink("/system/bin/dalvikvm32", "/system/bin/dalvikvm");

symlink("/system/bin/toybox", "/system/bin/acpi", "/system/bin/basename", "/system/bin/blockdev", "/system/bin/bzcat", "/system/bin/cal", "/system/bin/cat", "/system/bin/chcon", "/system/bin/chgrp", "/system/bin/chmod", "/system/bin/chown", "/system/bin/chroot", "/system/bin/cksum", "/system/bin/clear", "/system/bin/cmp", "/system/bin/comm", "/system/bin/cp", "/system/bin/cpio", "/system/bin/cut", "/system/bin/date", "/system/bin/dirname", "/system/bin/dmesg", "/system/bin/dos2unix", "/system/bin/echo", "/system/bin/env", "/system/bin/expand", "/system/bin/expr", "/system/bin/fallocate", "/system/bin/false", "/system/bin/find", "/system/bin/free", "/system/bin/getenforce", "/system/bin/getprop", "/system/bin/groups", "/system/bin/head", "/system/bin/hostname", "/system/bin/hwclock", "/system/bin/id", "/system/bin/ifconfig", "/system/bin/inotifyd", "/system/bin/insmod", "/system/bin/kill", "/system/bin/ln", "/system/bin/load_policy", "/system/bin/logname", "/system/bin/losetup", "/system/bin/lsmod", "/system/bin/lsusb", "/system/bin/md5sum", "/system/bin/mkdir", "/system/bin/mknod", "/system/bin/mkswap", "/system/bin/mktemp", "/system/bin/modinfo", "/system/bin/more", "/system/bin/mountpoint", "/system/bin/mv", "/system/bin/netstat", "/system/bin/nice", "/system/bin/nl", "/system/bin/nohup", "/system/bin/od", "/system/bin/paste", "/system/bin/patch", "/system/bin/pgrep", "/system/bin/pidof", "/system/bin/pkill", "/system/bin/pmap", "/system/bin/printenv", "/system/bin/printf", "/system/bin/pwd", "/system/bin/readlink", "/system/bin/realpath", "/system/bin/restorecon", "/system/bin/rm", "/system/bin/rmdir", "/system/bin/rmmod", "/system/bin/route", "/system/bin/runcon", "/system/bin/sed", "/system/bin/seq", "/system/bin/setenforce", "/system/bin/setprop", "/system/bin/setsid", "/system/bin/sha1sum", "/system/bin/sleep", "/system/bin/sort", "/system/bin/split", "/system/bin/stat", "/system/bin/strings", "/system/bin/swapoff", "/system/bin/swapon", "/system/bin/sync", "/system/bin/sysctl", "/system/bin/tac", "/system/bin/tail", "/system/bin/tar", "/system/bin/taskset", "/system/bin/tee", "/system/bin/time", "/system/bin/timeout", "/system/bin/touch", "/system/bin/tr", "/system/bin/true", "/system/bin/truncate", "/system/bin/umount", "/system/bin/uname", "/system/bin/uniq", "/system/bin/unix2dos", "/system/bin/usleep", "/system/bin/vmstat", "/system/bin/wc", "/system/bin/which", "/system/bin/whoami", "/system/bin/xargs", "/system/bin/yes");

symlink("/system/bin/toolbox", "/system/bin/dd", "/system/bin/df", "/system/bin/du", "/system/bin/getevent", "/system/bin/iftop", "/system/bin/ioctl", "/system/bin/ionice", "/system/bin/log", "/system/bin/ls", "/system/bin/lsof", "/system/bin/mount", "/system/bin/nandread", "/system/bin/newfs_msdos", "/system/bin/prlimit", "/system/bin/ps", "/system/bin/renice", "/system/bin/sendevent", "/system/bin/start", "/system/bin/stop", "/system/bin/top", "/system/bin/uptime", "/system/bin/watchprops");

symlink("/system/lib/libaed.so", "/system/app/AdvSoundDetector2015/lib/arm/libaed.so");

symlink("/system/lib/libfdb.so", "/system/app/AdvSoundDetector2015/lib/arm/libfdb.so");

symlink("/system/lib/libSamsungBCPP.so", "/system/app/AdvSoundDetector2015/lib/arm/libSamsungBCPP.so");

symlink("/system/lib/libasf_fileshare.so", "/system/app/AllshareFileShare/lib/arm/libasf_fileshare.so");

symlink("/system/lib/libasf_fileshareserver.so", "/system/app/AllshareFileShareServer/lib/arm/libasf_fileshareserver.so");

symlink("/system/lib/libasf_mediashare.so", "/system/app/AllshareMediaShare/lib/arm/libasf_mediashare.so");

symlink("/system/lib/libbluetooth_jni.so", "/system/app/Bluetooth/lib/arm/libbluetooth_jni.so");

symlink("/system/lib/libjni_pacprocessor.so", "/system/app/PacProcessor/lib/arm/libjni_pacprocessor.so");

symlink("/system/lib/libmorpho_panorama_wa_for_viewer.so", "/system/app/Panorama360Viewer_Zero/lib/arm/libmorpho_panorama_wa_for_viewer.so");

symlink("/system/lib/libmorpho_sensor_fusion_for_viewer.so", "/system/app/Panorama360Viewer_Zero/lib/arm/libmorpho_sensor_fusion_for_viewer.so");

symlink("/system/lib/libcommonpawrapper.so", "/system/app/RootPA/lib/arm/libcommonpawrapper.so");

symlink("/system/lib/libapa_jni.so", "/system/app/SapaMonitor/lib/arm/libapa_jni.so");

symlink("/system/lib/libprintspooler_jni6.so", "/system/app/SPrintSpooler6/lib/arm/libprintspooler_jni6.so");

symlink("/system/lib/libdefcontainer_jni.so", "/system/priv-app/DefaultContainerService/lib/arm/libdefcontainer_jni.so");

symlink("/system/lib/libatomcore.so", "/system/priv-app/SelectiveFocusViewer/lib/arm/libatomcore.so");

symlink("/system/lib/libatomjpeg.so", "/system/priv-app/SelectiveFocusViewer/lib/arm/libatomjpeg.so");

symlink("/system/lib/libsecipx.so", "/system/priv-app/SelectiveFocusViewer/lib/arm/libsecipx.so");

symlink("/system/lib/libSRIB_FocusShot.so", "/system/priv-app/SelectiveFocusViewer/lib/arm/libSRIB_FocusShot.so");

symlink("/system/lib/libCreateSceneMap.so", "/system/priv-app/VirtualTourViewer_WQHD_Hero/lib/arm/libCreateSceneMap.so");

symlink("/system/lib/libqjpeg_secvision.so", "/system/priv-app/VirtualTourViewer_WQHD_Hero/lib/arm/libqjpeg_secvision.so");

symlink("/system/lib/libQualityWrapper_Wallpaper.so", "/system/priv-app/WallpaperCompression/lib/arm/libQualityWrapper_Wallpaper.so");

if is_substring("SCL23", getprop("ro.bootloader")) || is_substring("SC04F", getprop("ro.bootloader")) || is_substring("G900S", getprop("ro.bootloader")) || is_substring("G900L", getprop("ro.bootloader")) || is_substring("G900K", getprop("ro.bootloader")) then

ui_print("Skip to extract wcd9320 fimeware");

else

symlink("/data/misc/audio/mbhc.bin", "/system/etc/firmware/wcd9320/wcd9320_mbhc.bin");

symlink("/data/misc/audio/wcd9320_anc.bin", "/system/etc/firmware/wcd9320/wcd9320_anc.bin");

symlink("/data/misc/audio/wcd9320_mad_audio.bin", "/system/etc/firmware/wcd9320/wcd9320_mad_audio.bin");

endif;

symlink("/system/fonts/Roboto-Bold.ttf", "/system/fonts/DroidSans-Bold.ttf");

symlink("/system/fonts/Roboto-Regular.ttf", "/system/fonts/DroidSans.ttf");

symlink("/system/lib/libGLESv2.so", "/system/lib/libGLESv3.so");

if is_substring("G900I", getprop("ro.bootloader")) || is_substring("G900P", getprop("ro.bootloader")) then

ui_print("Extracting Boardcom NFC Library");

package_extract_dir("variant/bcmnfc", "/system");

endif;

if is_substring("SCL23", getprop("ro.bootloader")) || is_substring("G900P", getprop("ro.bootloader")) || is_substring("G900V", getprop("ro.bootloader")) || is_substring("G900R", getprop("ro.bootloader")) || is_substring("G9009D", getprop("ro.bootloader")) || is_substring("G9009W", getprop("ro.bootloader")) then

ui_print("Extracting CDMA Library");

package_extract_dir("variant/cdma", "/system");

endif;