Only a copyright holder can bring legal action in this case. If you're just a customer, you can't bring action by yourself, as you're not a party to the violation or license agreement between HTC and the copyright holder(s).
If you've bought a G2, you are a copyright holder for the code in question.
If you buy a copy of a copyright-able work, you are a licensee. The "copyright holder" is the person who owns the legal ability to specify and grant the rights under which the work may be copied.