openandroidinstaller icon indicating copy to clipboard operation
openandroidinstaller copied to clipboard

Boot custom recovery may mess up USB or Graphics drivers

Open thanojo opened this issue 1 year ago • 3 comments

Describe the bug I attempted to install LineageOS 20 on my Samsung S8 using OpenAndroidInstaller. After entering download mode, I attempted to boot custom recovery with Heimdall, but received the following error message:

>ERROR: Failed to access device. libusb error: -12

This seems to be a known issue with no clear solution. After going through several attempts using different USB cables, different ports, different laptops, at one point I unplugged the phone (previously connected to the Laptops side USB-2.0 port) while OpenAndroidInstaller was still open at "Boot custom recovery" and the aforementioned error message was output. This caused my external monitors, which were connected to the laptop via a Dell WD15 dock, to go dark. Windows still recognizes them, but they no longer receive a signal. I fixed it eventually after reinstalling and updating all kinds of Lenovo & Dell drivers (I did not keep track due to frustration). I suspect that Heimdall or OpenAndroidInstaller may have caused some sort of conflict with my PC's USB or graphics drivers. So, I think this is more a warning to users than a bug report.: I mean clearly OpenAndroidInstaller can mess with your phone and you make sure to disclaim that, but it seems the same applies to the desktop from which the OS installation is performed.

To Reproduce Steps to reproduce the behavior:

  1. In OpenAndroidInstaller, reproduce the heimdall_flash_recovery error: >ERROR: Failed to access device. libusb error: -12 (using wrong USB cable or port, for example) at the Boot Custom Recovery stage
  2. Disconnect phone from PC with OpenAndroidInstaller still running. (This is the main cause, I do not think it has much to do with the error message in step 1. That's just how it happened to me.)

Log file

openandroidinstaller.log

Desktop:

  • OS: Windows 11
  • Version 0.5.0
  • Additional setup details:
    • Device: Lenovo Thinkpad E495
    • Docking Station: Dell WD15

Smartphone:

  • Device: Samsung Galaxy S8
  • OS: Original Stock Samsung ROM installed is Android 9
  • Version [e.g. 0.4.2]

thanojo avatar Oct 08 '23 13:10 thanojo