Wifi direct share, and secphone? I guess u might have also uninstalled all the odex files too? These are necessary to run the phone and it checks for all the files at bootup. Either use thecoreguy 's method to flash stock rom, or seek assistance from Samsung service centre..
Sent from my GT-I8262 using XDA Premium 4 mobile app