Category Archives: mobile phones

Dual sim mod for HD2, how-to, and disable auto connection setup

HD2, great phone, really. Shame it’s not dualsim, and no wonder there are people wanting to make it work with two different mobile numbers. Same thing did I, and this guide is to recount my findings, especially thanks to the italian member mannyy at XDA forums.

First things first: do NOT buy the insanely expensive adapters you find on the internet, it would be plain stupid to spend 70 euro on a little piece of plastic, when a full-fledged dual sim chinaphone with TV, radio, camera and bluetooth costs less than that.

There are two kind of dual-sim adapters on the market, no matter the brand, the “cutting” and “no cutting” versions, where either you have to cut the chip out of the SIMs to insert the in a single adapter, or you plug both integer SIMs into a bigger one without having to cut anything. The adapter I bought off ebay (the auction has been cancelled in the meantime, but you can find it from chinese shops on the internet) is the Magicsim “iphone 3g dualsim” no cutting, but I also own a Magicsim 23th-A cutting, which I have been told by mannyy at XDA that works correctly on the HD2 as well; the 26th should work as well.

magicsim 26th
This is the MagicSim iphone 3G dualsim; I spent 8USD something on it, including shipping from China
magicsim 26th hd2
Peeled off the cover from the adhesive strip, adapted both SIMs, this is how the MagicSim fits into the HD2
HD2 back metal cover
Interior of the metal back cover of the HD2; I marked the areas where the second SIM, and the chip, overlap the embossed metal frame, hence you cannot close the cover; you will need a diamond bur mounted on a dremel, or equivalent, to drill out those parts of the frame

As you can see, I didn’t actually drill the cover interior… in fact, in the end I avoided using the dual sim adapter at all, because I use my “SIM1” for my job, and since it goes offline when I switch to the other SIM, I’d rather not lose important work calls while I’m doing personal calls, this is why for the time being I will keep using a second phone for that.

Now, onto the operational part.

dualsim hd2 menu1
Main menu of the dual sim adapter; just tap on either SIM1 or SIM2 to switch between them; the one with the asterisk is the currently active card
Dualsim hd2 menu 2
This is the second level menu under "Dual mode"; make sure you have "STK mode" selected and DO NOT activate 007 mode

WARNING: DO NOT select 007 mode from the Dual Mode menu!!
007 mode is very useful in those phones that support it, since it doesn’t replace the SIM card menu, and you can switch between the SIMs by dialing either 001 or 002 and then hanging up, which is undoubtedly faster than going everytime in the menu; to disable 007 mode, you’d have to dial 007 and then hand up, and the STK menu will be back. Yet, the HD2 does NOT support 007 mode, you will get stuck into it and will not be able to disable it nor switch between SIM cards, so if you are silly enough to activate it even after reading this, there’s a way that worked for me: put the adapter inside another phone, and try disabling it by dialing 007, calling and then immediately hanging up. For me it didn’t work with a Nokia 3310, but it worked with a Nokia 7210, so I could disable it succesfully. I also wrote a mail to MagicSim support, and Cindy from their support (I always wonder why chinese people working in helpdesks always have american names) sent me a documentation doc, which says to create a new contact in your phonebook, called 007 and with number 007, and then save it to SIM memory (not phone memory), and it should switch off 007 mode and go back to STK mode.
Another method contained in that DOC file, was to switch from 3g mode to GSM mode in the phone settings, and reboot the phone, then the STK menu should reappear… but in my case, I already had 3g disabled.

Dualsim hd2 menu 3
Make sure that "Not connected" under "NO. Hide" is disabled, like this

Another detail to keep in mind: I do not have any data plans on my phone, so I have 3g disabled, to save battery, hence what I’m going to say could change for those with 3g enabled. Under the “NO. Hide” menu, make sure it says “Not Connected”, instead of “*Not Conneted” (in other words, there must be no asterisk). If I enable that (asterisk shows), when I switch between the cards, the phone sayd there is no SIM card, and cannot complete the switch, and I have either to reboot the phone, or activate and deactivate “Airplane mode” to reboot just the radio. If instead I have no asterisk under this option, the switch between SIM cards completes succesfully in about 30 seconds.

Disable Automatic connection network setup

Now, the next worst problem I faced, is that whenever I switched SIMs, the phone automatically started the network connection setup with my mobile carrier; I do not have any data plans, so if the phone has the ability to connect to the internet via the SIM, it means I waste a lot of money, so what I did before, once per ROM flash, was to wait that the connection setup finished, then go into:
Manila settings > Wireless > Menu > Connections > Advanced tab > Network selection
and from there make sure that both entries read “Office network”, that way the Edge/3g connection of the SIM card is never used and I don’t waste money.

Yet, when you continually switch between the cards inside the dualsim adapter, the auto connection setup always kicks in, and other than a bother to the eye, it also compells you to go into that wireless settings loop each time to select “Office network”. Not feasible. You need a way to disable altogether the network setup wizard.

EDIT (28th Sept 2010): you can ignore the last paragraph of this guide, I was overdoing it; member xlr8me at XDA found the “easy” way: from Manila settings, open the Communications Manager, then Data Connection, and from the menu button untick the “auto-configuration” line.

The app that configures the network is /Windows/ConnectionSetupAuto.exe, which you cannot delete/rename, because it is in the ROM, so unless you want to cook it out of the ROM yourself, all you need to do is make sure nothing runs that exe, no matter what. A quick repulisti of the registry did this for me: I used DotFred’s Advanced Task Manager registry editor, searched the WHOLE registry for values containing the string connectionsetupauto and made sure to delete whatever upper folder contained a key with a value matching that search, TOGETHER with the other keys contained in that upper folder; quite harsh I agree, but it worked for me, so I am not going back. Another more conservative way would be to manually change the paths inside the keys pointing to that exe file, by adding, for example, .off at the end, but as I didn’t test it, I cannot really guarantee it will work.

  This article has been Digiproved

Guide for HTC HD2 full two-way in-call recording

I am not going to argue with you regarding the reasons you may want to record your incoming or outgoing calls, nor how it is illegal or only partially legal in some countries.
There are a couple of issues with full duplex phonecall recording on the untouched HD2:

  1. the other person’s voice is very faint and totally unhearable when speaking in loud environments
  2. the recording stops after a minute or so, and longer phonecalls are cut after that delay

The reasons for this are

  1. the sound for the third party is not recorded directly, but only what comes from the speaker through to the mic is hearable
  2. the device enters a sleep mode after a certain delay when in a phonecall, so anything which is not radio related is shut down

The main concern until a while ago was the first problem, the second being addressed by a pre-existing  registry hack by I don’t really know who (I’d be happy to credit them, but XDA member shinoby_uk only released a CAB of those pre-esisting hacks, so he is not the real author); this neverending issue (which in time led some people to think that it was a hardware limitation, while I’ve always believed in the hidden software switch) has been solved (according to the XDA member who published the solution) by member RekGRpth; the existing registry hacks that were released by XDA member mskip (if I am not wrong) and worked for previous HTC models, are still needed, even if are not sufficient by themselves to enable full recording.

So here is the complete list of registry keys to add/modify in order to enable full 2way incall recording on the HD2:

[HKLM > Drivers > BuiltIn > WaveDev]

[HKLM > Drivers > BuiltIn > RIL]

[HKCU > ControlPanel > Phone]

[HKCU > ControlPanel > BackLight]

[HKLM > System > AudioRecording]

[HKLM > Software > Microsoft > Voice]

Once you have done so, you are still not done, as you will need a program to actually record the calls; the one I use is the simple but deadly efficient ACR by XDA member slothie.

  This article has been Digiproved

Windows Mobile uptime since boot or battery swap, registry key

I am (at the date of writing) the proud owner of an HD2; given its limited 1200 something mAh battery, and my precaution of always having a spare battery for each of my devices (even if now, with the HD2, I got rid in one swoop of mobile phone, PDA, compact camera and bluetooth gps receiver, and this is pretty much my only device, excluding my DSLR which I rarely bring with me), I went a little overboard and bought three spare batteries, which I charge with a mains charger and then swap out periodically.

Just now I became curious to check the uptime before the battery reaches 10% (at which point I take it out for charging), because I never really remember how long it has been since the last battery swap.

I dug a little, and the registry key that stores the uptime since last boot is

HKLM > System > Uptime > Clock

while the uptime since last battery swap (appears to become 0 when you take out the battery, and is not reset after a simple reboot) is

HKLM > System > Uptime > ClockSession

These keys contain a time interval expressed in seconds. Divide it by 60 twice, and by 24 once, and you get the uptime in days (and fraction of day). They have been verified under WM 6.5.X, yet there is no reason they shouldn’t work in not-so-older builds of  Windows Mobile too.

  This article has been Digiproved

How to compose ringtones for Nokia mobile phones composer, using MIDIs

After making a deal with my father, that is exchanging my brand new Philips Fisio 311 (he gave it to me after receiving it as a gift) for his second-hand Nokia 3310 (which keeps the battery load only for 3 idle days…), I threw myself into high-end customization.

First things came first, but then I could spend some time working on ringtones: all I dreamt was to have the Monkey Island most famous themes to play on my cellphone.

This guide is thought for the ones who have MIDI files of their favourite songs and want to "translate" them to ringtones, and is made referring to some useful tools I found on the net. The downloadable ZIP containing them (Nokia Ringtone Kit), along with the tones I made myself, can be found in the Downloads/AudioVideo page.

RTTTL (simply referred to as "RTTL") stands for RingTone Text Transfer Language and is the standard text format describing notes on the cellphones, so, at least until the last passage, this guide can be used for every kind of phone supporting this standard, the only difference being that you will need to find yourself the keys to write notes, as the program I included in the package converts notes to keypresses just for Nokia phones.

First step, find a MIDI file that suits you:

These are two of the files I used to create ringtones


Then copy them in your working folder, possibly changing the name to easier ones, like "intro.mid" and "ghost.mid" for the example, and finally start MIDI2Tone (tonewin.exe) opening one file and playing it.

Once opened the file, you must find the channel which plays the melody.


Use the selector in the upper-right corner to change the channel, until you see the note frequency in the black window follows the beat and the frequency of the main melody. After that, press the Note View button:

Here you see where the notes are relatively to the Nokia reproducible octaves (notes are red because they have been selected).


Drag a rectangle around the whole set of notes forming the melody (selected notes become red), and after right clicking choose "Listen". You may get an error here. If you don’t, jump the paragraph regarding MIDI Transpose. The Nokia 3210, same for 3310 (don’t know about the others, but should be the same) supports only 3 octaves, while the standard RTTL reads 4 octaves. When you press Listen, if some of the notes fall outside the octave range of the phone you’ll get an error:

One of the selected (red) notes falls outside the correct range.


This means that you need to adjust the melody to fit available octaves by shifting the notes of the MIDI up or down according to the number of halftones you specify. Roughly, if you don’t know what I am talking about, take a look at the screenshot of MIDI2Tone Note View: it will drag up or down the red signs to make all of them be inside the yellow area. Supposedly, then, we need to bring them down. Let’s say 7 halftones down are sufficient. We uncompress MIDI Transpose (let’s do it in the same folder where the MIDI and TXT files are) and go to the command prompt (Start > Run > Command inside Win98/Me or Start > Run > cmd inside Win2k/XP), change to the directory containing the miditran.exe file, and do the following (supposing our file is named ghost.mid):

The sintax of miditran.exe is the following (for our purposes):
miditran -notes <+/- halftones (up or down)> <originalfile>.mid <newfile>.mid


The GHOSTDOWN.MID file will now be down 7 halftones.

Now if the original MIDI was OK, or you just fixed it into the new MIDI, open it inside MIDI2Tone and do the same of above:

Now all the notes fall inside the yellow area, as they should.
Here you can see how many notes contains the melody after right-clicking and pressing "Listen"


You can’t have more than 50 notes (pauses included) in a ringtone. MIDI2Tone does the dirty job for you and removes pauses, prolonging previous beats to save space, but if after this you still have more than 50 notes, you need to reduce the selected notes by right clicking and chosing "Clear", and then again selecting the last notes to remove, untill the "Listen" dialog shows 50 notes or less. When you are happy of the results, right click in the Note View and choose "Save as nokring" (choose a name with a TXT extension).

In the package is included also WBeep, a DOS utility. Extract it in the same folder of the TXT, and in Windows Explorer drag and drop the TXT on the EXE file. It will playback the tone with the PC Speaker giving a fast preview.

After that start the Nokring RTTL to Nokia Converter and load the TXT you saved from inside MIDI2Tone. Important: MIDI2Tone gets exclusive usage of the MIDI device even if it’s not playing anything, so you need to close MIDI2Tone to hear audio from Nokring Converter.

The RTTL txt file once imported in Nokring Converter and converted to keypresses.


Select the options of Nokring Converter as in figure, and press the button Get… to browse to the txt file saved from MIDI2Tone (or use one of the RTTL files I included in the ZIP). Choosing to view the keypresses, you’ll see what keys you need to type in the Nokia composer to write the notes.

Et voilà medames et monsieurs
or whataver, I didn’t study french