[Touch HD Themes and Apps] tls:
I have succeeded in:

- downloading the Foxtel Mobile TV Guide

- making it work on my HTC Touch HD

- stopping it from prompting me for "permissions" every time it runs.

- creating a direct shortcut to the application

This allows me to send remote-record instructions to my Foxtel iQ2 set top box, just like on the "supported" handsets, such as the Nokia N95.

(I've cross-posted this information to an existing thread on forums.whirlpool.net.au, where there are probably more Aussies asking about it. But I thought I should also post here, because xda-developers has more people interested in adjusting permissions in Jbed's "selector.utf".)

The following worked with Jbed 20080418.2.1 on the HTC Touch HD. I am not entirely sure whether that is the version which came on my handset originally, but if you have a problem with the version you're using, you can try to find the version I'm using via a Google/forum search.

Step 1. Register for the Foxtel TV Guide on your computer, and make sure it's working from a normal PC browser:

https://www.foxtel.com.au/EPG/EPG.aspx

Step 2. Send the text message "Guide" to 19 955 955 from the handset, as per the instructions at the following webpage:

http://www.foxtel.com.au/mobile/get-started.htm

(Cost: $0.55 according to that web page.)

You will shortly receive an SMS message with a URL to download the software, but if you try to download it on your handset, you will probably get an error message saying that your handset is unsupported.

Step 3. Change a web browser's "agent string" to match one of the supported handsets' agent string, then use the URL on the SMS message to download the software.

I used Firefox, and changed my agent string to:

Mozilla/5.0 (SymbianOS/9.2; U; Series60/3.1 NokiaN95_8GB/10.0.021; Profile/MIDP-2.0 Configuration/CLDC-1.1 ) AppleWebKit/413 (KHTML, like Gecko) Safari/413

as quoted on the following web page:

http://www.leytonjay.co.uk/internet...kia-n95-8gb-user-agent-string-default-browser

Using the instructions on this page:

http://johnbokma.com/mexit/2004/04/24/changinguseragent.html

(I removed the "general.useragent.override" setting afterwards, to change Firefox back to normal.)

The file you download will be a ".jad" file.

Step 4. Copy the ".jad" file onto the handset, using ActiveSync, etc.

Step 5. On the handset, run the Jbed "Java" program, and choose Menu->Install->Local Files to locate the .jad file, and install it.

At this stage, you have installed the Foxtel Mobile TV Guide, but you might not be able to use it. On the HTC Touch HD, you do not have any built-in keyboard, or any directional buttons, and something needs to be done to work around it.

Step 6. If you don't have a directional pad on your pocket pc, then install a utility to re-map your volume buttons to fulfil the role of the directional pad. I installed AE-Button Plus, and used the following settings for my HTC Touch HD:

Volume Up:

1: Press Up arrow key

2: Press Left arrow key

3: Press Enter

Long: Press Left SoftKey

Volume Down:

1: Press Down arrow key

2: Press Right arrow key

3: Press Enter

Long: Press Right SoftKey

You may choose to use a different utility, as long as you can access up/down/left/right/enter and have a "hardware" way of accessing the soft-keys, which will be invisible.

http://ae.inc.ru/aebplus.php

Step 7. Run "Java" and launch the "Foxtel TV Guide" application. You will probably need to give it several permissions manually, because we haven't done anything about that, yet.

In order to perform a "remote record", you will need to enter your Foxtel TV Guide user guide and password, the same as for the normal web browser interface. But, Jbed won't let you access a SIP, and if you might not have a physical keyboard. You will need to use some software to control your handset from your PC.

I used EveryWAN Remote Support Personal Edition 3.0:

http://www.sparus-software.com/spip.php?page=download&lang=en

In the Foxtel Java application, press the Left SoftKey, to bring up the "Actions" menu. You can do this via your remote control program, or use your remapped buttons. Choose "Settings", then "Account Settings".

Now you have to enter your Foxtel username and password using the remote control software as a keyboard. However, it's not as simple as typing "a", "b", "c", etc. The application expects you to ONLY use digit keys, like on a simple phone. So, for "a" you might press "2" once, "b" = hit "2" twice in quick succession, etc. It's a pain, but you should only have to do it once, and it'll remember your settings.

By this stage, you should be able to launch and control the Foxtel Mobile TV Guide with your remapped buttons, and because you've entered your username and password, you can ask your iQ/iQ2 to record something from your phone, and it'll do it.

IF you want to get rid of the annoying prompts for permission on startup: (technical, and your mileage may vary)

Step 8. Find the files "selector.utf" on your handset, and copy it to your PC. Mine is in \Esmertec Java\AppDb, but yours might be in \Windows\AppDb. Make backups, both on your PC and on your handset, in case you do something wrong.

Step 9. Download a Hex editor for your PC, and edit "selector.utf".

I used "HexEdit":

http://www.physics.ohio-state.edu/~prewett/hexedit/

The first two bytes of the file determine exactly how many bytes follow. My file was 397 bytes long, so the first two bytes were "01 8B" = 395. The first two bytes don't count. The java program should be happy with "selector.utf" as long as the correct length is given.

The Foxtel application is installed with a setting/line "domain=midp1", but we need to change it to "domain=tckmax". That's exactly one byte longer, so, use your hex editor to increase the length by 1. In my case, that meant changing the first two bytes from "01 8B" to "01 8C".

Save and exit.

Next, open the file up with a normal editor. Hopefully you can use notepad, but I used "vi", which may not be available on your computer. Change "domain=midp1" to "domain=tckmax", save, and exit.

Step 10. Overwrite "selector.utf" on your handset with your edited version, and run Java again, and launch the Foxtel TV Guide application. Hopefully, it will now run without prompting you for any permission any more.

Step 11. You can make a direct shortcut to the Foxtel TV Guide application if you like, so you don't have to run "Java" and then select it manually any more. If you look at "selector.utf" again, there is a parameter "root=XXXX". In my case, the Foxtel TV Guide root is "s2_". It depends on which order you install your Java applications.

Using Resco File Explorer, copy the Java shortcut from \Windows\Start Menu\Programs\ and create a link "Foxtel" in the same directory. Then, tap-and-hold on it and choose "Properties", then the "Shortcut" tab. In the "target" field, append the string:

-run XXXX

where XXXX is the root of your Foxtel application. Don't forget to use a space to seperate "-run" from whatever comes before.

I hope this information is useful to someone. I tried following all sorts of tutorials for removing the permissions prompts, but most threads are focussed on Java Gmail/Opera applications, and they never worked for this Foxtel software. They key was, the Foxtel application installs itself in the "midp1" domain, and in order to change that to "tckmax", which is one extra byte, and I had to change the two-byte header of the file.

:)

Edit: Addendum: The application looks like it'd be happier on a QVGA device, and I had some problems scrolling through the list of all channels in WVGA mode. It's more functional if I use WVGAFIX3 to set the resolution to VGA 480x640 before I run it.