I used my phone to do a lot of development and testing works with PhoneGap. I used to connect my phone via USB cable to my development laptop and deploy my PhoneGap apps directly into it to test run the functionality of PhoneGap APIs on my phone's hardware.
After I had installed the custom ROM on my phone, the PhoneGap SDK on my development laptop could not detect my phone any more and thus I couldn't deploy my apps into it. I had enabled the 'Allow installation of apps from unknown sources' security setting in my phone but it didn't do the trick.
Finally I managed to find the answer on the Internet that the CyanogenMod has hidden the Developer Options which provides the facility to do USB debugging. I have to admit that I had forgotten totally about it since it was hidden away from view. Once I followed the steps to 'unlock' it, the PhoneGap SDK is once again able to communicate with my phone.
Credits to the link below which has provided me with the guidance to solve the issue:
http://en.code-bude.net/2013/03/05/how-to-activate-usb-mass-storage-and-developer-options-on-cyanogenmod-10-1/
Here are the quick steps:
- Go to the 'About Phone' settings page.
- Look for an item called "build number" and tap it seven (7) times to unlock the Developer Options.
- Now look for the "Developer Options" settings page and enable the USB debugging option.
One thing noteworthy is that the existing Samsung USB driver installed on my development laptop is still working fine with the phone even though it has been replaced with the CyanogenMod ROM. Before I found the solution I was actually looking for something like 'Cyanogen USB driver for Windows' but it turns out that it is not necessary at all.
No comments:
Post a Comment