OK people thanks to UksusoFF 's help and my own Linux background i was able to have my phone fixed and running. No more screen going offs & phone locks!!
I see that many of you had asked for a step by step
process on working with the command line for disabling the proximity censor right?
Well here it goes folks , the complete step by step
1 - You have to be ROOT to complete this task so ROOT your phone (There are many links on google on HowTo ROOT your phone so do it!!!)
2- Open the Emulator on your phone.
3- Type su -
and make sure that $
sign changes to #
meaning you are the ROOT User now and can make serious changes to your device's system.
4- Insert the following commands in the Emulator
# cd /data/local
# touch userinit.sh
# echo "#!/system/bin/sh" > userinit.sh
# echo "#" >> userinit.sh
# echo "chmod 0000 /dev/cm3602" >> userinit.sh
# echo "chmod 000 /dev/cm3602" >> userinit.sh
# chmod 777 userinit.sh
5- Now verify that the file exists
# cat userinit.sh (You should see the information inserted above appearing).
6- Restart your phone
If you have done it right , your phone should be fine now. Starting now You will be in charge of turning on/off your screen instead of the proximity censor.
Hope it works for ya