How to exit factory mode for samsung galaxy devices

Steps :

1. Download "Terminal Emulator" app
2. Open "Terminal Emulator" and type

Su

Then enter
3. Type
rm /efs/FactoryApp/keystr
rm /efs/FactoryApp/factorymode
echo -n ON >> /efs/FactoryApp/keystr
echo -n ON >> /efs/FactoryApp/factorymode
chown 1000.1000 /efs/FactoryApp/keystr
chown 1000.1000 /efs/FactoryApp/factorymode
chmod 0744 /efs/FactoryApp/keystr
chmod 0744 /efs/FactoryApp/factorymode
reboot

Then enter … your device will reboot

"Terminal Emulator" app HERE