• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

Easy steps/screenshots to install Windows drivers for FastBoot to work with XA2 Ultra

Search This thread

roirraW "edor" ehT

Recognized Contributor
10/26/2019 update (also posted at the end of this thread):

I was having trouble Using NewFlasher v19 with the "H3223_Customized US_1312-1380_50.2.A.0.400_R2B" firmware I downloaded and extracted with XperiFirm. I kept getting the following:

(short version: occasionally the Sony driver doesn't work for me to flash the latest official update. On those occasions I update the driver in Device Manager to the GordonGate driver that Newflasher provides, and then it works fine, but other times if I just go straight to GordonGate, then it doesn't work either, so go figure. At least it works one way or the other, just depending on I don't know what. :) )

Code:
ERROR: GetOverLapped_out_Result: failed with error code 1 as follows:
Incorrect function.

 - Error write! Need nBytes: 0x18 but done: 0x0
nBytes[0x0]:

 - Error writing command getvar:max-download-size!

This was on a relatively new (almost three months old) Windows 10 build 1903 installation, so I hadn't flashed my H3223 on this Windows build yet. I had installed without trouble the same XZ2 driver (they haven't updated it) but no luck. Finally I tried NewFlasher's GordonGate option, I extracted the archive, pointed Device Manager at this folder for the Sony ADB driver and it installed just fine. After that, NewFlasher flashed this just fine. I don't recall ever needing the GordonGate driver, nor it even working when I had attempted it previously.

I was still able to use the XZ2 driver to fastboot boot TWRP.img.

Just FYI if this helps anyone.

The following is my original post (if the above new instructions don't get you what you need, or if you need help installing the XZ2 driver in order to boot TWRP - I have no idea if NewFlasher's GordonGate driver would make it so that you could boot TWRP.

I hope this guide with both text descriptions and screenshots for every step can help anyone who had trouble with the driver installation steps. They're not difficult steps, but on three PCs that I installed the drivers on, I found the description of the method to be just a little different than what some users experienced, so please note that you may have a slightly different experience, and this post is not meant to mean that this is the only way to get the Xperia XA2 Ultra drivers installed.

Also note that I have the H3223 model (one of the two "Discovery" types, just in case there are any differences in experiences for those with different variants, as well.

Please use this thread for all variants, however, as long as it is regarding the installation of drivers.

First the thanks:

Sony for making their devices bootloader unlockable and being developer-friendly.
@LuK1337 for building official TWRP for the "Pioneer" types of The XA2 Ultra, which at least for 'fastboot boot TWRP.img', works great on the "Discovery" variants as well.
@Chainfire for [BETA][2017.10.01] SuperSU v2.82 SR5, which works great on the ROM v50.1.A.5.59_R6A.
@topjohnwu for Magisk, which I know others are using and I may have to switch to when this device is updated to Android 8.1+, as I know from personal experience SuperSU doesn't work on the 2016 Pixel on Android 8.1, at least not by straight flashing the zip.
@li0nh3art3d and @AngryManMLS for leading me down the path of being able to successfully install the correct drivers, in this thread Unlocking Bootloader/Rooting

If I missed anyone, please let me know and I'll correct ASAP.

The steps are (also all instructions and screenshots are available here and below (click on the thumbnails to open larger copies):

1a. Go to the Sony Driver webpage and download Xperia XZ2 driver and unzip it
OR
1b. Go to Xperia XZ2 driver webpage and download the driver and unzip it

2. Put the Xperia XA2 Ultra in Fastboot mode (turn the phone off and disconnect it from any cables, press and hold the Up Volume button, and while doing so, connect the cable from the computer to the phone

3. Right-click on Start Button


4. Click 'Device Manager'


5. 'Device Manager' - 'Other devices'


6. Right-click on 'Android', choose 'Update driver'


7. Choose 'Browse my computer for driver software'


8. Browse or copy-paste path of extracted Xperia XZ2 driver, and choose 'Let me pick from a list of available drivers on my computer'


9. Choose 'Show All Devices', click 'Next'


10. Choose 'Have Disk'


11. Browse to or select in the drop-down menu the path to the extracted Xperia XZ2 driver


12. Click 'OK'


13. Select the only driver that is listed and click 'Next' (on just one of the three PCs I installed the driver to, there were more than one Sony drivers listed, and I'm pretty sure I picked the one that said 'Fastboot' in it in that case)


14. Select 'Yes' at the warning dialog


15. Click 'Close'


16. Observe that Device Manager now lists 'Sony sa0118 ADB Interface Driver' in the 'Sony sa0118' section (again, on just one of the three PCs that I installed the driver too, it said something different in that case)
 
Last edited:
A

Aklenz07

Guest
thank you for this. I couldnt get anything to work until i tried this. very useful
 

jake333at333

New member
Oct 27, 2018
1
0
Hi, This did not work...... (error code 10) when trying to update driver as in your instructions!...... which i thought might happen as youve directed us to the XZ2 driver instead of XA2 ULTRA driver!!!
Where the hell can I find the proper XA2 ULTRA driver?????? ...cant find anywhere...its crazy!!!
 

roirraW "edor" ehT

Recognized Contributor
Hi, This did not work...... (error code 10) when trying to update driver as in your instructions!...... which i thought might happen as youve directed us to the XZ2 driver instead of XA2 ULTRA driver!!!
Where the hell can I find the proper XA2 ULTRA driver?????? ...cant find anywhere...its crazy!!!

There is no XA2 Ultra driver, that's why we have to use the XZ2 one.
 

Flaco05

Senior Member
Mar 27, 2011
176
15
Chicago
First, thank you for the great guide. Now, sorry about the possibly silly question, but I am a bit of a neophyte. I am able to follow these instructions and install the adb driver for the XA2 Ultra (all works as described). However, after I eject the phone and reconnect it while in USB debugging mode to try to use an adb command (to add a permission to write_secure_settings), Windows does not recognize the phone as an adb device. Thus I cannot do anything. I have tried this on two different Windows machines and the result is the same. Please apologies again if this is silly, but I feel I am missing something important. Thank you in advance.
 

roirraW "edor" ehT

Recognized Contributor
First, thank you for the great guide. Now, sorry about the possibly silly question, but I am a bit of a neophyte. I am able to follow these instructions and install the adb driver for the XA2 Ultra (all works as described). However, after I eject the phone and reconnect it while in USB debugging mode to try to use an adb command (to add a permission to write_secure_settings), Windows does not recognize the phone as an adb device. Thus I cannot do anything. I have tried this on two different Windows machines and the result is the same. Please apologies again if this is silly, but I feel I am missing something important. Thank you in advance.

Thanks, and you're welcome! I'm afraid I haven't actually used ADB that much with this phone. Does Device Manager actually list 'Sony sa0118 ADB Interface Driver' in the 'Sony sa0118' section (as I noted in the OP, on one or more PCs it said something different, and in a differently-named section)? You may find better help if you create a new thread in the general Q&A section since this problem doesn't deal directly with the driver installation problem that this thread is for. Good luck!
 
  • Like
Reactions: Flaco05

Flaco05

Senior Member
Mar 27, 2011
176
15
Chicago
Does Device Manager actually list 'Sony sa0118 ADB Interface Driver' in the 'Sony sa0118' section (as I noted in the OP, on one or more PCs it said something different, and in a differently-named section)?

It does! All goes exactly like your screenshots indicate. But when you eject the phone and reconnect it again in USB Debugging mode, the ADB driver is gone, and you when type 'ADB devices' on CMD, nothing shows, so Windows cannot find it and it's not possible to run any commands. Let me do some more searching prior to starting a new thread.
 
  • Like
Reactions: roirraW "edor" ehT

roirraW "edor" ehT

Recognized Contributor
It does! All goes exactly like your screenshots indicate. But when you eject the phone and reconnect it again in USB Debugging mode, the ADB driver is gone, and you when type 'ADB devices' on CMD, nothing shows, so Windows cannot find it and it's not possible to run any commands. Let me do some more searching prior to starting a new thread.

Did you ever have any luck?
 

eeloed

New member
Sep 7, 2019
1
1
Thank you thank you thank you. I was about ready to give up on unlocking bootloader for my xa2 when i found this. Your a lifesaver. Now Ive installed /e/ on 3 devices. i'm 3 for 3 Your data is your data and everyone should take a look at this and ungoogle yourself.
 
  • Like
Reactions: roirraW "edor" ehT

roirraW "edor" ehT

Recognized Contributor
I was having trouble Using NewFlasher v19 with the "H3223_Customized US_1312-1380_50.2.A.0.400_R2B" firmware I downloaded and extracted with XperiFirm. I kept getting the following:

Code:
ERROR: GetOverLapped_out_Result: failed with error code 1 as follows:
Incorrect function.

 - Error write! Need nBytes: 0x18 but done: 0x0
nBytes[0x0]:

 - Error writing command getvar:max-download-size!

This was on a relatively new (almost three months old) Windows 10 build 1903 installation, so I hadn't flashed my H3223 on this Windows build yet. I had installed without trouble the same XZ2 driver (they haven't updated it) but no luck. Finally I tried NewFlasher's GordonGate option, I extracted the archive, pointed Device Manager at this folder for the Sony ADB driver and it installed just fine. After that, NewFlasher flashed this just fine. I don't recall ever needing the GordonGate driver, nor it even working when I had attempted it previously.

I was still able to use the XZ2 driver to fastboot boot TWRP.img.

Just FYI if this helps anyone.
 
Last edited:

maximdq

Member
Aug 28, 2011
37
5
twrp.jpg

Whats-App-Image-2020-05-31-at-20-03-50.jpg

hi if anyone can help me install twrp on my xa2 ultra, try all possible methods and it is not possible. jump that error, someone who knows how to fix it? i want root to install lineage 17. thank you very much
 

roirraW "edor" ehT

Recognized Contributor
hi if anyone can help me install twrp on my xa2 ultra, try all possible methods and it is not possible. jump that error, someone who knows how to fix it? i want root to install lineage 17. thank you very much

I don't think you can install TWRP, but you can:

Code:
fastboot boot twrp.img

to boot it each time you want to use it while connected to your PC where you have the TWRP image named "twrp.img", and the latest Android platform tools (available at https://dl.google.com/android/repository/platform-tools-latest-windows.zip) in the same folder as twrp.img. Obviously you have almost all the steps correct, just wanted to spell it out for anyone else with the same problem.
 

maximdq

Member
Aug 28, 2011
37
5
I don't think you can install TWRP, but you can:

Code:
fastboot boot twrp.img

to boot it each time you want to use it while connected to your PC where you have the TWRP image named "twrp.img", and the latest Android platform tools (available at https://dl.google.com/android/repository/platform-tools-latest-windows.zip) in the same folder as twrp.img. Obviously you have almost all the steps correct, just wanted to spell it out for anyone else with the same problem.

sorry I do not understand. I can't install lineone 17 then? I speak Spanish and the translator does not understand well. Thank you
 
  • Like
Reactions: roirraW "edor" ehT

roirraW "edor" ehT

Recognized Contributor
I don't think you can install TWRP, but you can:



sorry I do not understand. I can't install lineone 17 then? I speak Spanish and the translator does not understand well. Thank you

Yes, your can flash anything you want once you "boot" twrp.img instead of "flash" (or install) it. This device probably doesn't have a discreet Recovery partition, same as on the Google Pixel. It's probably a combination Bootloader/Recovery partition, which is why you can't overwrite the recovery, any instead you have to boot TWRP directly each time you want to use it.

I don't speak Spanish although I had two years of it nearly 40 years ago, but let me know if this doesn't help or you don't figure it out, and I'll try to find an adequate Spanish translation for what I'm saying.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    To answer your own question, go to the driver page in the first post.



    Control-F to "Find" (if on a computer) and type:

    Code:
    XA2

    and press enter.

    I went ahead and kept scrolling since it's one of those PIA load-as-you-scroll pages and kept searching, as well.
    Xa2 ultra driver is not there
  • 12
    10/26/2019 update (also posted at the end of this thread):

    I was having trouble Using NewFlasher v19 with the "H3223_Customized US_1312-1380_50.2.A.0.400_R2B" firmware I downloaded and extracted with XperiFirm. I kept getting the following:

    (short version: occasionally the Sony driver doesn't work for me to flash the latest official update. On those occasions I update the driver in Device Manager to the GordonGate driver that Newflasher provides, and then it works fine, but other times if I just go straight to GordonGate, then it doesn't work either, so go figure. At least it works one way or the other, just depending on I don't know what. :) )

    Code:
    ERROR: GetOverLapped_out_Result: failed with error code 1 as follows:
    Incorrect function.
    
     - Error write! Need nBytes: 0x18 but done: 0x0
    nBytes[0x0]:
    
     - Error writing command getvar:max-download-size!

    This was on a relatively new (almost three months old) Windows 10 build 1903 installation, so I hadn't flashed my H3223 on this Windows build yet. I had installed without trouble the same XZ2 driver (they haven't updated it) but no luck. Finally I tried NewFlasher's GordonGate option, I extracted the archive, pointed Device Manager at this folder for the Sony ADB driver and it installed just fine. After that, NewFlasher flashed this just fine. I don't recall ever needing the GordonGate driver, nor it even working when I had attempted it previously.

    I was still able to use the XZ2 driver to fastboot boot TWRP.img.

    Just FYI if this helps anyone.

    The following is my original post (if the above new instructions don't get you what you need, or if you need help installing the XZ2 driver in order to boot TWRP - I have no idea if NewFlasher's GordonGate driver would make it so that you could boot TWRP.

    I hope this guide with both text descriptions and screenshots for every step can help anyone who had trouble with the driver installation steps. They're not difficult steps, but on three PCs that I installed the drivers on, I found the description of the method to be just a little different than what some users experienced, so please note that you may have a slightly different experience, and this post is not meant to mean that this is the only way to get the Xperia XA2 Ultra drivers installed.

    Also note that I have the H3223 model (one of the two "Discovery" types, just in case there are any differences in experiences for those with different variants, as well.

    Please use this thread for all variants, however, as long as it is regarding the installation of drivers.

    First the thanks:

    Sony for making their devices bootloader unlockable and being developer-friendly.
    @LuK1337 for building official TWRP for the "Pioneer" types of The XA2 Ultra, which at least for 'fastboot boot TWRP.img', works great on the "Discovery" variants as well.
    @Chainfire for [BETA][2017.10.01] SuperSU v2.82 SR5, which works great on the ROM v50.1.A.5.59_R6A.
    @topjohnwu for Magisk, which I know others are using and I may have to switch to when this device is updated to Android 8.1+, as I know from personal experience SuperSU doesn't work on the 2016 Pixel on Android 8.1, at least not by straight flashing the zip.
    @li0nh3art3d and @AngryManMLS for leading me down the path of being able to successfully install the correct drivers, in this thread Unlocking Bootloader/Rooting

    If I missed anyone, please let me know and I'll correct ASAP.

    The steps are (also all instructions and screenshots are available here and below (click on the thumbnails to open larger copies):

    1a. Go to the Sony Driver webpage and download Xperia XZ2 driver and unzip it
    OR
    1b. Go to Xperia XZ2 driver webpage and download the driver and unzip it

    2. Put the Xperia XA2 Ultra in Fastboot mode (turn the phone off and disconnect it from any cables, press and hold the Up Volume button, and while doing so, connect the cable from the computer to the phone

    3. Right-click on Start Button


    4. Click 'Device Manager'


    5. 'Device Manager' - 'Other devices'


    6. Right-click on 'Android', choose 'Update driver'


    7. Choose 'Browse my computer for driver software'


    8. Browse or copy-paste path of extracted Xperia XZ2 driver, and choose 'Let me pick from a list of available drivers on my computer'


    9. Choose 'Show All Devices', click 'Next'


    10. Choose 'Have Disk'


    11. Browse to or select in the drop-down menu the path to the extracted Xperia XZ2 driver


    12. Click 'OK'


    13. Select the only driver that is listed and click 'Next' (on just one of the three PCs I installed the driver to, there were more than one Sony drivers listed, and I'm pretty sure I picked the one that said 'Fastboot' in it in that case)


    14. Select 'Yes' at the warning dialog


    15. Click 'Close'


    16. Observe that Device Manager now lists 'Sony sa0118 ADB Interface Driver' in the 'Sony sa0118' section (again, on just one of the three PCs that I installed the driver too, it said something different in that case)
    1
    First, thank you for the great guide. Now, sorry about the possibly silly question, but I am a bit of a neophyte. I am able to follow these instructions and install the adb driver for the XA2 Ultra (all works as described). However, after I eject the phone and reconnect it while in USB debugging mode to try to use an adb command (to add a permission to write_secure_settings), Windows does not recognize the phone as an adb device. Thus I cannot do anything. I have tried this on two different Windows machines and the result is the same. Please apologies again if this is silly, but I feel I am missing something important. Thank you in advance.

    Thanks, and you're welcome! I'm afraid I haven't actually used ADB that much with this phone. Does Device Manager actually list 'Sony sa0118 ADB Interface Driver' in the 'Sony sa0118' section (as I noted in the OP, on one or more PCs it said something different, and in a differently-named section)? You may find better help if you create a new thread in the general Q&A section since this problem doesn't deal directly with the driver installation problem that this thread is for. Good luck!
    1
    Does Device Manager actually list 'Sony sa0118 ADB Interface Driver' in the 'Sony sa0118' section (as I noted in the OP, on one or more PCs it said something different, and in a differently-named section)?

    It does! All goes exactly like your screenshots indicate. But when you eject the phone and reconnect it again in USB Debugging mode, the ADB driver is gone, and you when type 'ADB devices' on CMD, nothing shows, so Windows cannot find it and it's not possible to run any commands. Let me do some more searching prior to starting a new thread.
    1
    Did you ever have any luck?

    Gave up temporarily; until my phone receives the Pie update.

    Thanks for checking in!