HTC is struggling to get back to its former glory and the latest flagship device One is helping the company.