in short, if your phone is rooted, just create an empty file called profile under /system/bin/
in adb shell, change to root user and then do the followings:
touch /system/bin/profile; chmod 644 /system/bin/profile
notice that you may have to remount the /system partition as rw (with read/write permission) first by issuing the command:
mount -o remount,rw /system
more info and alternative solutions