TeamWin / android_device_samsung_herolte

19 stars 17 forks source link

twrp-3.2.3.0-herolte: cannot cancel/exit sideload #4

Open triffid opened 5 years ago

triffid commented 5 years ago

Device codename: herolte TWRP version: 3.2.3.0

WHAT STEPS WILL REPRODUCE THE PROBLEM?

enter adb sideload mode. execute adb sideload /some/file on pc, stop sideload progress by any method.

WHAT IS THE EXPECTED RESULT?

adb sideload fails. can cancel and try again

WHAT HAPPENS INSTEAD?

twrp gets stuck in adb sideload screen. There's no way to cancel or exit, the phone cannot be turned off by long-pressing power or by any other method I can find. The phone also no longer appears as a USB device when connected.

The phone does still respond to the buttons - power button will sleep and un-sleep the screen, and power+voldn will take a screenshot, however the home button does nothing, and the position where the back button normally is is empty and tapping that area (or anywhere on the screen for that matter except the unlock slider) has no effect.

It seems that the only way to exit this state is to wait for the battery to run flat.

ADDITIONAL INFORMATION

in this case it was triggered by adb sideload on PC barfing with "failed to read command: success" at the start of the transfer - but that's a separate issue.

This post from 2014 seems to describe a similar issue: https://www.reddit.com/r/Nexus7/comments/2oa6bu/problem_sideloading_adb_failed_to_read_command/ although they suggest that theirs timed out after about half an hour

/tmp/recovery.log: can't access it, as I can't exit sideload screen and the phone no longer appears on USB dmesg: can't access it

bigbiff commented 5 years ago

Does this still happen on 3.3.0?

triffid commented 5 years ago

After several more hours of trawling forums, I found that long-pressing the screenshot button combo would cancel adb sideload, but that's super unintuitive and difficult to find.

An explicit cancel button, or at least responding to hardware back button would be vastly preferable ;)

I'll have to try 3.3.0 and get back, may take me a little while as it was my friend's phone and they may not want to sideload anything soon now that it's all set up and done.

NunoAlexVicente commented 2 years ago

Hello friends. It's Sep 2022 and I just had this problem. Thank you for the combo solution, it worked even though I had to remember mysef that with my OnePlus Nord N10 5G the combo is Power+VolumeUp.

artkpv commented 1 year ago

Same issue here. Sony Xperia 10 II with LineageOS. Thanks for the combo key. I used Power+VolumeUp

kjkrum commented 5 months ago

Same issue with TWRP 3.5.2_11-0, trying to flash an OxygenOS ROM onto a OnePlus N200. The cancel button logged that it was canceling sideload, but it fails to cancel. The screenshot buttons just take a screenshot. It may take two days to run the battery down...

More details:

adb sideload command immediately failed:

$ adb sideload OnePlusN200Oxygen_10.O.11_OTA_011_all_2203021426_2dd4f42a2d0545a3.zip 
serving: 'OnePlusN200Oxygen_10.O.11_OTA_011_all_2203021426_2dd4f42a2d0545a3.zip'  (~0%)    adb: failed to read command: Success

TWRP logged this:

Installing zip file '/sideload/package.zip'
Flashing A/B zip to inactive slot: A
[several "failed to mount" errors]
Updating partition details...
[more "failed to mount" errors]
...done.