#!/system/bin/sh
cd /data/local/tmp/
./busybox mount -o remount,rw -t ext4 /system
dd if=./su of=/system/bin/su
chown root.shell /system/bin/su
chmod 6755 /system/bin/su
ln -s /system/bin/su /system/xbin/su
dd if=/data/local/tmp/busybox of=/system/xbin/busybox
chmod 4755 /system/xbin/busybox
chown root.shell /system/xbin/busybox 
/system/xbin/busybox --install -s /system/xbin/
busybox cp /data/local/tmp/Superuser.apk /system/app/
# busybox rm -rf /data/local/tmp/* 2>/dev/null
sync; sync; sync
reboot
