[DEV] Thor Flash Utility - The new Samsung flash tool - Android Software/Hacking General [Developers Only]

Thor Flash Utility​This is a flash utility for Samsung devices, made from scratch in C#.
To run this, you must have .NET 7 runtime installed on your computer.
Latest release can be found on GitHub - https://github.com/Samsung-Loki/Thor
This tool was tested and works flawlessly, I'm open for any bug reports.
List of platforms​1) Linux (USB DevFS method)
2) Windows (not implemented)
3) Mac OS (not implemented)
How's it different from Heimdall?​Fun fact: Official Odin for Linux works using DevFS, and people report it working when Heimdall didn't.
1) Is able to do NAND Erase All (aka erase userdata) and erase any partition, given the length.
2) Ability to shutdown and reboot into Odin mode (not supported on every device)
3) Not using a USB transfer library and doing it natively for best results
4) Extended the PIT parser with new information being discovered
5) Can flash directly from an Odin .tar / .tar.md5 archive
6) Works with .lz4 files directly without manual extraction
7) Implemented EFS Clear and Bootloader Update options in Odin
8) Is able to change the sales code of the device
Support me​If you would like to support me and my team, donate here.
We're a team of teens (at age of 14-15) making random projects for fun.
Current list of commands​The up-to-date list of commands can be found here.
Usage guide​A comprehensive usage guide can be found here.
What devices were tested?​1) SM-M205FN/DS from 2019 0x00030000 (Unknown1: 0, Unknown2: 0, Version: 3)
2) SM-G355H/DS from 2014 0x00020000 (Unknown1: 0, Unknown2: 0, Version: 2)
Frequently Asked Questions​1) A fatal error occurred. The required library something could not be found.
This is a Linux Package Mixup, use this as reference.
2) What happened to original Thor (or Hreidmar)
This is a rewrite of Thor written from scratch, so I could implement the native USB communication.
Also, the old codebase was severely flawed in my opinion. I archived it here.
Credits​TheAirBlow for Thor Flash Utility
Benjamin-Dobell for documenting much of the Odin protocol

[reserved]

real

Bro finally revived good old Thor/Hreidmar

@TheAirBlow Thx.
Didn't test it yet but just a hint:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Link leeds to wrong version acc to your post #1, or doesn't it?

bmwdroid said:
@TheAirBlow Thx.
Didn't test it yet but just a hint:
View attachment 5938745
Link leeds to wrong version acc to your post #1, or doesn't it?
Click to expand...
Click to collapse
Yeah, that was an accident. It is indeed .NET 7

hello, please help me flash and revive the Samsung a12 (125FN) device.
the fact is that I don 't have a pc (
I only have an arm7 phone )
Heimdall-frontend does not work in Linux Deploy in my device, it cannot flash the super partition.. tell me what else can be done in my situation!??)

ilshatiko1988 said:
hello, please help me flash and revive the Samsung a12 (125FN) device.
the fact is that I don 't have a pc (
I only have an arm7 phone )
Heimdall-frontend does not work in Linux Deploy in my device, it cannot flash the super partition.. tell me what else can be done in my situation!??)
Click to expand...
Click to collapse
This tool could probably be used in Termux or in a root shell if you somehow could install .NET 7 Runtime. But, it does require the phone to be rooted for Thor to be able to access the USB devices connected. And additionally, you need a (first phones USB) to (second phone's USB) cable to connect, or have some adapter to make it work.

Related

[MOD][addon.d] ADB and Fastboot Host for Android

These mods install adb and fastboot binaries for ARM processors. This enables you to use an Android device as the host machine rather than a PC or laptop to run adb and fastboot commands on a connected device. Some devices like the Nexus 7 and Nexus 5 come with adb, but not fastboot. You can check for these binaries in /system/bin/. I have made separate zips in case your device already has adb. These mods also includes addon.d scripts.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
What is addon.d?
On some ROMs, like Cyanogenmod, there are scripts in /system/addon.d that run during a ROM update or flash. They can backup and restore system apps (like Gapps), or perform many other functions. This mod includes an addon.d script, so the mod is not lost during a ROM update! If your ROM doesn't support addon.d, this mod should still flash properly, but you won't benefit from addon.d.
Tested and Confirmed to work on:
Nexus 5
Nexus 7
It should work on many devices. Let us know if it works!
Note:
You will need OTG support to get any benefit from this, so your device can act as host when another device is attached. Be sure to use the su command before adb or fastboot.
Install Instructions:
- Boot into recovery
- Flash Install zip
- Reboot
Downloads:
Install-ADB-1.0.zip
Install-Fastboot-1.0.zip
Changelog:
Code:
1.0 - 02/13/14
- Initial release
Credits and Thanks:
chamatht - fastboot binary
DISCLAIMER:
This mod involves editing system files. Use at your own risk! Also please don't forget, before you report ROM related bugs in the ROM developer thread, you should remove this mod to make sure the issue is not caused by this mod!
Recovery missing
Can you help me because my recovery mode is missing. It happend when i tried to flash clockwork recovery mode that isn't meant for my phone. Mine is a Karbonn A108. If I could only install fastboot then I could Flash my phone. When i try to get in fastboot it says fastboot is missing.. please help I'm in a crisis. :crying:
Is this safe to use in Lineage 17.1?
Is it installable using exposed framework?
Does it solve this problem:
I have a TV box Scishion V99 Hero. It's rescue Adb mode presumes a USB connection. I cannot find how to set tcpip access in rescue mode. Yet the box has only female USB ports. The big flat connector. So I can't connect it to a PC but only to my phone.
I want to use my phone as an Adb host when installing ROM into the Scishion box.

[ROM][4.4.4_r2] AOSP Kitkat for Zenfone 6

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Android Open Source Project
Android is an open source software stack created for a wide array of devices with different form factors. The primary purposes of Android are to create an open software platform available for carriers, OEMs, and developers to make their innovative ideas a reality and to introduce a successful, real-world product that improves the mobile experience for users.
NOTICE: THIS BUILD IS EXPERIMENTAL. I AM GOING TO BUILD AOSP 4.4.4_r2 WITH ZENFONE 6 DEVICE TREE.
Supported Models:
A600CG (T00G)
A601CG (Z002)
Prerequisites:
Install the Intel USB Driver and ASUS PCLink
Download all the required files
Extract the archives
Unlock your Bootloader
Installation:
Download this and extract it
Put boot and system img files into extracted folder
Enable USB Debugging and run Installer.bat
OR
Put boot and system img files into extracted folder
Run the following commands (one by one):
fastboot flash boot boot.img
fastboot flash system system.img
fastboot erase cache
fastboot erase data
fastboot erase userdata
fastboot reboot
Optional: Flash OpenGapps (via Recovery/TWRP) before the first boot.
Optional: Flash SuperSU (via Recovery/TWRP) to Root your device.
Optional: Flash Stock Boot and Relock your bootloader after flashing the ZIPs, but Stock Boot causes unusable wifi.
Bugs:
Error reading SIM Contacts
Error detecting headset
Workaround: Use headphone audio router apps
No auto mobile networking
Workaround: Set it manually from Wireless & Networks > More... > Mobile Networks > Network operators
Little delay on video play
Sensors
BlueTooth
GPS
FM Radio
Screenshot: broken preview but content is ok
Contributors:
shakalaca
I ported his AOSP 4.4 for Zenfone 5.
PLEASE: Do not comment things unrelated to this ROM, otherwise a moderator will delete your comment. You have been warned!
USING MY ROM AS BASE FOR YOUR ROM IS DENIED / REDISTRIBUTING MY ROM AT OTHER FILE HOSTING SERVICES IS DENIED / REPOSTING THIS ROM AT OTHER WEBSITES WITHOUT PROPER CREDITS, BLOATED WITH ADS OR WITH DOWNLOAD PROTECTION/REGISTER-TO-DOWNLOAD IS DENIED / MODIFYING THIS ROM IS DENIED (BUILD YOUR OWN IF YOU WANT TO MODIFY IT) / IF YOU IGNORE IT, I WILL ASK MODERATOR TO DELETE YOUR THREAD
DOWNLOAD
Screenshots
Reserved
Changelog
20170315 (Kernel Only)
LED indicator disabled
Sdcard mount fixed
20170131
Initial Release
Hi, it does mean, you can build MiUI 4.4 from source ? or it will be compatible with zf 5 to, right?
kihope12 said:
Hi, it does mean, you can build MiUI 4.4 from source ? or it will be compatible with zf 5 to, right?
Click to expand...
Click to collapse
I am just downloading patchrom files for kitkat. And yes it will be compatible with zf5 if i can patch it xd
q0kHaN said:
I am just downloading patchrom files for kitkat. And yes it will be compatible with zf5 if i can patch it xd
Click to expand...
Click to collapse
Do it man !
good work bro, thanks a lot for support and We also look forward to the Miui patch
kihope12 nin dediği gibi yap onu adamım

[WIN][TOOL]KisMth - A Tool for Android generic device

/*
* Your Warranty is already voided.
* I am not responsible for anything wrong
* you do! However you can contact me
* for any help!
*/
Click to expand...
Click to collapse
KisMth is a part of ADK which you can found it here. It is not standalone Tool.
Click to expand...
Click to collapse
Information
KisMth is a Tool which will help you to typically solve your Android Adb Problems. It is a part of ADK that means you cannot download and run it as standalone (It is an addon plugin for ADK itself).
KisMth (in hindi) means luck, i.e it depends on your device if your device is supported by KisMth. KisMth allows you to extract your partition details, fix FastBoot vendor ID problems, IMEI backup/restore, create Firmware backup, create scatter file (for mtk device), unlocks your device, and much more stuffs…
Click to expand...
Click to collapse
Snappies
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Click to expand...
Click to collapse
Features
Get Basic/Advance device Information
Find your IMEI number
See your Device Partition details/address (total 5 types)
Reboot Device into
Bootloader (FastBoot)
Recovery
Soft Reboot
Boot into safemode
Boot from Fastboot to Android
Extract device info (which also includes "dev" path, vendor ID, etc.)
Backup/Restore
IMEI information (NVRAM, NVDATA)
SDCard, Apps+Data, Contacts, Messages, Call logs, etc.
Generate a Flashable ROM Backup
Backup whole firmware
Replace SuperSU, Kingroot with Magisk
Flash Boot and Recovery images (with or without custom recovery)
Flash Images (without custom recovery)
Fix TWRP force encrypt error (due to this bug your Internal Storage or Memory card shows 0 bytes in TWRP)
Edit Build prop
Modify boot image (so when you flash this image with SP Tool, etc you can easily unlock your screen lock without root)
Create Fastboot Flashable zip
Create Odin flashable zip (for samsung devices)
Create Scatter file for any MTK device
Click to expand...
Click to collapse
Discussions, Bugs, Reports, Enhancements
User feedback is one of the most important stuff for any application to proceed. I kindly lookup on each of users feedback and try to improve the functionality of ADK. If users have to report any bugs or request any feature request, just create a regular topic in ADK Forums with proper category. You can also that forum (apart from XDA) for discussion on general topics (No sign in or registration is required, just fill your email address and start writing)
Click to expand...
Click to collapse
Download, Install and Guides
As told earlier, KisMth is a part of ADK. So first you need to install ADK which can be found here and then install this plugin.
Install this Plugin for ADK
Forum (for discussion and query)
Click to expand...
Click to collapse
XDA:DevDB Information
KisMth, Tool/Utility for all devices (see above for details)
Contributors
[email protected]
Version Information
Status: Stable
Current Stable Version: 1.0.0.0
Stable Release Date: 2018-04-19
Created 2018-06-13
Last Updated 2018-06-13
Reserved
I'll post video guides soon
Will this enable usb debuggin on a locked phone?

[TOOL][ADB][WIN]Android Partitions Backupper / Cloner

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Hi all,
wrote a Windows CMD script that backups / clones partitions of an Android device via ADB because I wasn't content with any 3rd-party APK what claims to do this job.
The backups /clones are stored on Windows computer as TAR-file/.IMG-file.
This script was
Created and tested on Genymotion with Samsung Galaxy S8 image ( Android 8.1 )
Runs on Windows versions Windows XP professional, Windows Vista, Windows 7, Windows 8.1 & Windows 10
Should work with Mediatek, Unisoc (Spreadtrum), Qualcomm etc chipset based Android phones
This script requires Android is rooted.
Example screenshots:
If you are interested in this script and in the required accompanying executables then I let you know that all got packed into a .ZIP-file what can get fetched here
Android-Partitions-Backup-Tool
MediaFire is a simple to use free service that lets you put all your photos, documents, music, and video in a single place so you can access them anywhere and share them everywhere.
www.mediafire.com
Once downloaded you extract the .ZIP-file to any location of your Windows computer, then in extracted folder run the .BAT-file housed therein.

			
				
sounds great
will try it asap
just downloading
hey dude say how come you only have 3 partitions? and one of them is cache in my pixel 5 I have like 15 partitions where is your boot vendor modem and other partitions go? I'm not saying it's a malware but your screen shots do look suspicious also if I make a clone of my data partition and a few days from now I mess up my phone and want to restore it what do I do fastboot flash data? is it even possible?
jons99 said:
hey dude say how come you only have 3 partitions? and one of them is cache in my pixel 5 I have like 15 partitions where is your boot vendor modem and other partitions go? I'm not saying it's a malware but your screen shots do look suspicious also if I make a clone of my data partition and a few days from now I mess up my phone and want to restore it what do I do fastboot flash data? is it even possible?
Click to expand...
Click to collapse
1. As mentioned tool was run on Genymotion emulator: real phones of course have a lot more partitions.
2. If you decide to create clones then the produced .IMG-files can get played back to phone by Android's dd command.
Wonder why you classify this tool as malware? Looks to me you didnt get the purpose of this tool.
jwoegerbauer said:
1. As mentioned tool was run on Genymotion emulator: real phones of course have a lot more partitions.
2. If you decide to create clones then the produced .IMG-files can get played back to phone by Android's dd command.
Wonder why you classify this tool as malware? Looks to me you didnt get the purpose of this tool.
Click to expand...
Click to collapse
I didn't say it's a malware I was just asking if it's possible to restore data that way and if yes then how

LGROMUP 1.0 - Flash LG KDZ and some helpful functions

LGROMUP 1.0 - Flash LG KDZ and some helpful functions
This is a small tool that helps you Flash KDZ easily
Base on the LGUP_Cmd tool, LGROMUP make it more easily without type command in CMD, without finding an exact COM port
Automatic select the correct port
Save KDZ history for next time flash faster
Customize the DLL file if you want
Please note: Flash KDZ by LGROMUP will make a hard reset after. Make sure to save your user data and Remove the Google account or remember it to unlock after booting up
Click to expand...
Click to collapse
And some other helpful functions:
Read phone information from Normal mode (Modem port - without adb)
Read phone information from Download mode
Automatic check phone IMEI from server to detect the exact model code and region. Get exact KDZ and download link
Reboot to System, Download mode, Power Off From Normal mode, or Download mode
Open Browser for FRP phone (Same the method of Samsung FRP bypass tool)
How to Flash KDZ:
Boot your phone to Download Mode (Hold Volume up button and connect cable)
Install LG Driver below if you are not installed it before
Open the LGROMUP tool.
Select Serial Port, DLL, KDZ file
Click Flash and wait to finish
Todo for next update:
Read information from ADB mode
Reboot from ADB, Fastboot mode
Flash KDZ keep user data
Required:
Lastest LG Driver
Microsoft .Net 4.7.2 up
Tool information:
Author: Tungtata
Language: C# .Net
Version: 1.1
Release date: Dec 19, 2021
MD5: 63e1869e0761815f8dd86dab063e0d01
Download:
Google Drive: https://drive.google.com/file/d/1kihnJtSXK7qNWP6WVTPPlZep_G2Fubb1/view?usp=sharing
Android File Host: https://www.androidfilehost.com/?fid=17825722713688253207
Changelog:
Version 1.1
Fix detect Flash error.
Fix crash bug with Ports list.
Fix wrong android version read.
Add Check information before Flash.
Add button disable drive sign. (For MTP FRP Remove)
Add Factory reset from Normal mode (Thank for unlocktool).
Click to expand...
Click to collapse
Screenshot:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Source: https://lgrom.com/blog/lgromup
Click to expand...
Click to collapse
Please note this source post link if you post it somewhere!!
Click to expand...
Click to collapse
Any ideea why it's appearing as a trojan?
The tool has a script that read information from download mode (lg.exe) it made from python may make wrong detect by some antivirus program. You can add to except or turn off antivirus. Or do not use if you do not trust it
dumitrudan608 said:
Any ideea why it's appearing as a trojan? View attachment 5731791
Click to expand...
Click to collapse

Categories

Resources