[MOVED] Thor: Open-Source Samsung flash tool with additinal features

Search This thread

TheAirBlow

Senior Member
May 7, 2021
56
57

This thread is outdated. Visit https://forum.xda-developers.com/t/thor-flash-utility-the-new-samsung-flash-tool.4597355/ for the new, and actually working version!​


Thor is an open-source alternative to Heimdall, actively maintained by me.
Written in C#, uses LibUsbDotNet for handling communication.

It is completely cross-platform - Windows, Linux and Mac OS are all supported!

Keep in mind, it is currently in development! I am looking for testers,
as my main phone has a broken bootloader and I don't wanna to mess with it!


Screenshot_20220603_143419.png

Screenshot_20220603_143528.png

Screenshot_20220603_143557.png

Here is a list of new features that Thor has or would have:
1) ✅ Ability to flash from BL/AP/CP/CSC .tar archives directly
2) ❎ Ability do download latest firmware and flash it automatically
3) ✅ Ability to flash compressed (.lz4) files directly (newly discovered)
4) ✅ You can shut down the device from GUI immediately (no reboot)
5) ✅ PIT viewer built-in, with more accurate information
6) ✅ Ability to do NAND Erase All (actually it just erases userdata)
7) ✅ Ability to do DevInfo (information about the device: model, carrier id, region, serial code)
BTW, These are not implemented in Heimdall!

Enough words! Here is it's source code: click here.
If you want to download and check out Thor: click here.
Want proof that I know how to implement all of the stuff above?
Here is the documentation of PIT, FUS and Odin protocol: click here.
 
Last edited:
  • Like
Reactions: klabit87

TheAirBlow

Senior Member
May 7, 2021
56
57
launching TheAirBlow.Thor.GUI not working
Report an issue on GitHub Issues, including logs. It is saved as `main.log` or smth like that.
Also, did you install .NET 6.0 runtime? It is stated in the readme on GitHub.

Also, did you even read that it is in development and untested? It is not a good idea to use it to update your phone.
 

jrkruse

Recognized Contributor
Aug 9, 2009
8,749
12,892
I can't get the windows version to recognize phone in download mode
 

tshacker

New member
Jul 6, 2021
2
0
Report an issue on GitHub Issues, including logs. It is saved as `main.log` or smth like that.
Also, did you install .NET 6.0 runtime? It is stated in the readme on GitHub.

Also, did you even read that it is in development and untested? It is not a good idea to use it to update your phone.
i think the source code have a lots of troubles and problems but thanks no problem, i am trying to fixing problems, thanks again
 

mcasanas

Member
May 7, 2023
7
0

WARNING! This project is now abandoned as the only Samsung phone I have broke because of water damage. But, if you are an experienced C++ developer (as I'm more into C#, I'm not complete in C++ zero but help is appreciated), please contact me! I have info on how to flash phones with the old bootloader and a lot more, let's make a better Heimdall alternative together!


Thor is an open-source alternative to Heimdall, actively maintained by me.
Written in C#, uses LibUsbDotNet for handling communication.

It is completely cross-platform - Windows, Linux and Mac OS are all supported!

Keep in mind, it is currently in development! I am looking for testers,
as my main phone has a broken bootloader and I don't wanna to mess with it!



Here is a list of new features that Thor has or would have:
1) ✅ Ability to flash from BL/AP/CP/CSC .tar archives directly
2) ❎ Ability do download latest firmware and flash it automatically
3) ✅ Ability to flash compressed (.lz4) files directly (newly discovered)
4) ✅ You can shut down the device from GUI immediately (no reboot)
5) ✅ PIT viewer built-in, with more accurate information
6) ✅ Ability to do NAND Erase All (actually it just erases userdata)
7) ✅ Ability to do DevInfo (information about the device: model, carrier id, region, serial code)
BTW, These are not implemented in Heimdall!

Enough words! Here is it's source code: click here.
If you want to download and check out Thor: click here.
Want proof that I know how to implement all of the stuff above?
Here is the documentation of PIT, FUS and Odin protocol: click here.
Nice, great job! Can you post updated download links? None is working... Thanks a lot!
 

mcasanas

Member
May 7, 2023
7
0
This is an abandoned tool which doesn't even have flashing implemented properly.
Oh, what a pity, I´m so sorry! I thought this could do something before it was abandoned, as you stated it´s functions in your first post. Besides, you are still promotioning Thor in your signature, what´s that for? Thanks for answering!
 
Jun 25, 2022
12
1
Someone has the last github actions windows app. I t has expired and i want to extract the devinfo of my Galaxy J320AZ, for unlock the carreer (and maybe root it)
I would appreciate it if someone would just share the windows program please.
1686155728898.png
 

TheAirBlow

Senior Member
May 7, 2021
56
57
I'm happy to announce that Thor is undergoing a big rewrite right now, with a CLI tool with all the features a flash tool could have + extras for testing, like sending and reading raw bytes (also can do strings and integers, and aligns buffer to 1024 bytes when an Odin connection was initiated)

Additionally, it uses ioctl for bulk transfer and reads /dev/bus/usb/BBB/DDD for metadata on Linux, so I could make the most reliable flash tool out here without all the libusb quirks people had over the years of using Heimdall. This is actually the way official Samsung Odin for Linux works - and people report successful flashes when Heimdall didn't work.

Sadly, I myself will never write a handler for Windows, macOS and whatever OS you may want to use this flash tool on because I can't test on those platforms. Once I release the rewrite feel free to make a pull request to implement those - I made the system very modular and easy to implement a new handler for an OS.

I have a device for testing, but it's quite old, so do not expect me to implement any of the cool features you may see in my Samsung docs. Additionally, this thread will be deleted and re-created to draw more attention only once when I actually get this tool working and flashing images successfully.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1

    This thread is outdated. Visit https://forum.xda-developers.com/t/thor-flash-utility-the-new-samsung-flash-tool.4597355/ for the new, and actually working version!​


    Thor is an open-source alternative to Heimdall, actively maintained by me.
    Written in C#, uses LibUsbDotNet for handling communication.

    It is completely cross-platform - Windows, Linux and Mac OS are all supported!

    Keep in mind, it is currently in development! I am looking for testers,
    as my main phone has a broken bootloader and I don't wanna to mess with it!


    Screenshot_20220603_143419.png

    Screenshot_20220603_143528.png

    Screenshot_20220603_143557.png

    Here is a list of new features that Thor has or would have:
    1) ✅ Ability to flash from BL/AP/CP/CSC .tar archives directly
    2) ❎ Ability do download latest firmware and flash it automatically
    3) ✅ Ability to flash compressed (.lz4) files directly (newly discovered)
    4) ✅ You can shut down the device from GUI immediately (no reboot)
    5) ✅ PIT viewer built-in, with more accurate information
    6) ✅ Ability to do NAND Erase All (actually it just erases userdata)
    7) ✅ Ability to do DevInfo (information about the device: model, carrier id, region, serial code)
    BTW, These are not implemented in Heimdall!

    Enough words! Here is it's source code: click here.
    If you want to download and check out Thor: click here.
    Want proof that I know how to implement all of the stuff above?
    Here is the documentation of PIT, FUS and Odin protocol: click here.
    1
    I can't get the windows version to recognize phone in download mode
    You have to do the same Zadig stuff as with Heimdall.
    It would be probably a good idea to write a driver instead.