Hi Benjamin, please consider this simple patch to add a reboot command to the Heimdall interface. I only noticed by chance that I could run 'heimdall close-pc-screen' to reboot the phone; having a separate, explicit command just for rebooting would make this more obvious / usable.
Add a new reboot command
This does more than reboot. It establishes a Loke connection which then releases "pc-screen" boot-locks. If the device had been marked as soft-bricked by the SBOOT/SBL it would release that lock at this time.
With that said, as long as "help" documentation matches, i don't see the problem.
Hi Benjami, could you show me the method that can reboot into recovery mode directly while in download mode?
@swordman2001 That can't be done from a computer. You have to use the device-specific button sequence.
@swordman2001 The Odin/Loke protocol, at least every implementation I've seen, does not provide a command. By that I mean that the phone itself does not support this functionality.
What Adam suggested is to flash a file to the device and then reboot normally. When devices reboot they read their params and boot into recovery mode if the params specify they should. You may have seen this behaviour before when you flash official firmware.
However, Heimdall only implements the Odin/Loke flashing protocol, it does not know anything specific about the content it flashes and does not know anything about the boot procedure of the devices it communicates with. This is intentional so that Heimdall supports as many devices as possible.
However, if you're talking about a particular device model that you know the necessary params for, you could follow Adam's suggestion. To automate this you could write a script that generates the necessary params, flashes them with Heimdall and reboots the phone (at the end of the flash).
I've decided not to add a reboot command that functions the same as the close-pc-screen action as the name "reboot" is slightly misleading with respect to what is actually going on. If you'd like improved documentation for the close-pc-screen action please open a new issue. Thanks.