I have long believed that the FSF or SFLC should provide free or lowcost insurance against patent lawsuits where free software is involved. That way companies, like HTC, could more comfortably, and with less associated risk, deny paying for these kinds of patent rackets.
The FSF and SFLC would have the expsrtise of fighting the case, and would probably get the resources to do it too.