[XDA Assist] jackey31:
Script aborted "system/bin/debuggered" has unexpected content...

Here's that debuggered file below..

#!/system/bin/.krsh

API_LEVEL=$(cat /system/build.prop | grep "ro.build.version.sdk=" | dd bs=1 skip=21 count=2)

SUPERUSER_NAME=Kinguser

func_kr_pidof() {

/system/xbin/krdem kingroot-dev 3 $1

}

func_wait_system_server()

{

while [ -z "$(func_kr_pidof system_server)" ]; do

echo "waiting for system_server"

sleep 1

done

}

func_wait_package_manager()

{

while [ ! -z "$(func_kr_pidof system_server)" ]; do

echo "waiting for package_manager"

service list | grep -p "android.content.pm.IPackageManager" > /dev/null 2>&1 && break

sleep 1

done

sleep 1

}

func_kr_isInstalled() {

pm path com.kingroot.kinguser | grep -q "package:" > /dev/null && echo 1 || echo 0

}

func_bypass_coolsec() {

func_wait_system_server

func_wait_package_manager

/system/xbin/krdem kingroot-dev 100002

echo "rooting ..."

mount -o remount,rw /system

mount

if [ -f "/system/xbin/ku.sud" ]; then

cat /system/xbin/ku.sud > /system/xbin/su

chown 0.0 /system/xbin/su

chmod 00755 /system/xbin/su

chcon u:object_r:system_file:s0 /system/xbin/su

ln -s /system/xbin/su /system/bin/su

chown 0.0 /system/bin/su

chmod 00755 /system/bin/su

chcon u:object_r:system_file:s0 /system/bin/su

fi

if [ "$(func_kr_isInstalled)" != "1" ]; then

KU_SRC_FULL_PATH=/system/app/$SUPERUSER_NAME.apk.cool

if [ "$API_LEVEL" -ge "21" ]; then

KU_SRC_FULL_PATH=/system/app/$SUPERUSER_NAME/$SUPERUSER_NAME.apk.cool

fi

echo "$KU_SRC_FULL_PATH"

if [ -f "$KU_SRC_FULL_PATH" ]; then

rm -f /data/local/tmp/$SUPERUSER_NAME.apk

cat $KU_SRC_FULL_PATH > /data/local/tmp/$SUPERUSER_NAME.apk

chown 0.0 /data/local/tmp/$SUPERUSER_NAME.apk

chmod 00644 /data/local/tmp/$SUPERUSER_NAME.apk

chcon u:object_r:system_file:s0 /data/local/tmp/$SUPERUSER_NAME.apk

pm install -r -d /data/local/tmp/$SUPERUSER_NAME.apk

rm -f /data/local/tmp/$SUPERUSER_NAME.apk

fi

else

echo "ku already installed"

fi

mount -o remount,ro /system

}

func_do_and_launch() {

if [ -f "/system/xbin/krdem" ]; then

if [ -f "/sbin/coolsec" -o -f "/sbin/coolsec.kr" ]; then

func_bypass_coolsec

else

/system/xbin/krdem kingroot-dev 100002

fi

fi

if [ -f "/system/xbin/ku.sud" ]; then

echo "launching daemon ..."

/system/xbin/ku.sud -d &

fi

}

KR_TMP_FNAME=krperm

LOG_FILE_TMP=/data/local/tmp/$KR_TMP_FNAME.txt.tmp

LOG_FILE=/data/local/tmp/$KR_TMP_FNAME.txt

rm -f $LOG_FILE_TMP

rm -f $LOG_FILE

setenforce 0

/system/xbin/supolicy --live

/system/xbin/supolicy --live "permissive init"

/system/xbin/supolicy --live "permissive kernel"

/system/xbin/supolicy --live "permissive toolbox"

/system/xbin/supolicy --live "permissive toolbox_exec"

/system/xbin/supolicy --live "permissive s_init_shell"

/system/xbin/supolicy --live "permissive init_shell"

/system/xbin/supolicy --live "permissive shell"

/system/xbin/supolicy --live "permissive su"

/system/xbin/supolicy --live "permissive adbd"

setenforce 0

echo "[$0] begin ..." > $LOG_FILE_TMP

chmod 0777 $LOG_FILE_TMP

id >> $LOG_FILE_TMP 2>&1

echo "API_LEVEL=$API_LEVEL" >> $LOG_FILE_TMP 2>&1

func_do_and_launch >> $LOG_FILE_TMP 2>&1

echo "[$0] end!" >> $LOG_FILE_TMP

chcon u:object_r:shell_data_file:s0 $LOG_FILE_TMP

chown shell.shell $LOG_FILE_TMP

chmod 00644 $LOG_FILE_TMP

mv $LOG_FILE_TMP $LOG_FILE

#sync

echo "launching debuggerd_real ..."

/system/bin/debuggerd_real

i had used kingroot to root my device.. and i think it left some traces after unrooting which is causing the problem..