How to enable developer mode on a HP TouchPad16 Jul 2011
This might be a no-brainer for developers who developed for webOS phones in the past. But if you are getting started programming for webOS with a HP Touchpad and the (relatively) new Enyo framework like I am doing right now, you'll have a hard time figuring out how to test your app on the actual device.
Step 1: Put your device in developer mode
In "Just Type" enter webos20090606. If you happen to have a lot of time on your hands you can also enter upupdowndownleftrightleftrightbastart (the Konami Code). Both secret phrases will result in a otherwise hidden button appearing:
Press the button, switch the "Developer Mode" switch on, and follow the straightforward onscreen instructions. Your life will be a lot easier if you leave the password empty, but that also means that anyone who gets your Touchpad and connects it to a computer, has Novaterm and knows what he or she is doing can get root access to your Touchpad. You decide.
When you're done you should see this screen:
Step 2: Restart
I am not sure this step is really needed but on the internets I read reports of things not working if you skip this step. To restart your Touchpad, press and hold the main button and then press and hold the on/off button. Keep holding them until the flashing HP logo appears.
Step 2: Connect Touchpad to computer
Plug the USB cable into the Touchpad and into the computer where you are developing the app. On the Touchpad you'll see a
notification popup offering you to connect the Touchpad as a USB drive. Don't do it.
Step 3: Load your app onto the Touchpad
The assumption here is, that you have the Enyo SDK installed on your computer (if you used the emulator to test your app, you have the SDK). Open your command line (or terminal if on a Mac) and use the following command:
palm-package [directory where your app sourcecode is goes here]
This packages your app into an ipk archive named after the app name you gave the app in appinfo.json.
palm-install -d usb [filename of your compiled app archive goes here]
The app will apear under "Downloads" in the Launcher. Done.
Appendix 1: Dear Microsoft
Notice how this howto did not include a two week process of getting approved by one of your shitty partner companies and how it did not cost me 75 Euros to gain the right to test three apps on my device for one year.
Appendix 2: Dear Apple
Notice how this howto did not require going to the store to buy a Mac. Also note, that no NSA style encryption and security certificates were involved.
Appendix 3: Dear Blackberry
Notice how it was possible to test the app on the actual device.