[Sprint  Galaxy Note 4 Android Development] samep:
Just to be clear, I recommend deodexed ROM for Xposed.

If you've still got remnants of synapse in data partition and storage, I'd recommend borrowing the portion of the updater-script that removes the data for custom kernels and synapse from a custom kernel to prep for stock or Beastmode kernel installation. Just merge it with updater-script for Beastmode.

Text will look similar to this but this may be an old version:

ui_print("Mounting partitions...");

run_program("/sbin/mount", "-t", "auto", "/system");

run_program("/sbin/mount", "-t", "auto", "/cache");

run_program("/sbin/mount", "-t", "auto", "/data");

run_program("/sbin/mount", "-t", "auto", "/data/dalvik-cache");

run_program("/sbin/mount", "-t", "auto", "/preload");

delete_recursive("/cache");

delete_recursive("/data/dalvik-cache");

delete_recursive("/preload");

delete("/system/etc/init.d/11ENTROPY");

delete_recursive("/data/.ael");

delete_recursive("/data/.emotionkernel");

delete_recursive("/data/.nadiakernel");

delete_recursive("/data/.nbkernel");

delete_recursive("/data/.natekernel");

delete_recursive("/data/nadiatest.log");

delete_recursive("/data/natetest.log");

delete_recursive("/sdcard/Synapse");

delete_recursive("/data/data/com.af.synapse");

delete("/data/app/com.af.synapse-1.apk");

delete("/data/dalvik-cache/data@app@com.af.synapse-1.apk@classes.dex");

delete("/data/dalvik-cache/data@app@com.af.synapse-2.apk@classes.dex");

delete("/data/dalvik-cache/data@app@com.af.synapse-3.apk@classes.dex");

delete("/data/dalvik-cache/arm/data@app@com.af.synapse-1@base.apk@classes.dex");

delete("/data/dalvik-cache/arm/data@app@com.af.synapse-1@base.apk@classes.dex.art");

delete("/data/dalvik-cache/arm/data@app@com.af.synapse-2@base.apk@classes.dex");

delete("/data/dalvik-cache/arm/data@app@com.af.synapse-2@base.apk@classes.dex.art");

delete("/data/dalvik-cache/arm/data@app@com.af.synapse-3@base.apk@classes.dex");

delete("/data/dalvik-cache/arm/data@app@com.af.synapse-3@base.apk@classes.dex.art");

delete("/system/etc/init.d/11ENTROPY");

delete("/system/etc/init.d/01ENABLE_USB_KEYBOARD");

delete("/system/etc/init.d/02DISABLE_USB_KEYBOARD");

delete("/system/etc/init.d/01freq");

delete("/system/etc/init.d/71extreme");

delete("/system/etc/init.d/91iotweaks");

delete_recursive("/data/data/com.af.synapse");

delete_recursive("/res");

delete_recursive("/data/.nadiakernel");

delete_recursive("/data/.nbkernel");

delete_recursive("/data/.natekernel");

delete_recursive("/data/nadiatest.log");

delete_recursive("/data/natetest.log");

If you don't have init.d support in your stock ROM, edit /system/etc/usf_post_boot.sh to appear like this at the end:

# Post-boot start of selected USF based calculators

for i in $(cat $dir0/auto_start.txt); do

start $i

done

/system/etc/init.d/*

(leave one blank line with no spaces at bottom).

To test the above init.d support, add this script to /system/etc/init.d

#!/system/bin/sh

#Init.d Test

busybox mount -o remount,rw -t auto /system;

busybox mount -o remount,rw -t auto /data;

if [ -e /data/Test.log ]; then

rm /data/Test.log

fi

LOG_FILE=/data/Test.log

exec 2> /data/Test.log

echo "Init.d Is Working !!! - $( date +"%m-%d-%Y %r" )" >> $LOG_FILE;

To test, reboot and check /data/Test.log file for this:

Init.d Is Working !!! - 01-14-2016 11:05:54 AM

Credit unknown; googled it way back.