Difficult to find it now/here as I have the phone only but @nephros posted a script/reference once, to updatee the GPS regularly. You will find it with the search engine.
If your XA2 takes more than 4-5 minutes to get a fix, it probably has a hardware issue that can perhaps be arranged.
Details here: [How-to][Hardware] Fix XA2 GNSS(GPS): Let's Try harder