yashsingh1/xdaforums huggingface dataset:
[Galaxy S I9000 Android Development] _behrooz_:
Hello

i use ubuntu 14.04 . i want flash stock rom on Galay S4 mini dous GT-I9192 with heimdall in command line mod . i download last stock rom for my phone from www.sammobile.com/firmwares . i extract rom it contine these file

vox@vox-Lenovo-G500:~/Documents/I9192XXUAMF9_I9192OJVAMF3_I9192XXUAMF9_HOME$ ls
boot.img cache.img.ext4 hidden.img.ext4 NON-HLOS.bin persist.img.ext4 recovery.img system.img.ext4 tz.mbn

now i how flash this rom ? what's command ?

thanks

sorry for English .
[Galaxy S I9000 Android Development] 4-2ndtwin:
If u r using Windows, you must have the Microsoft Visual C++ 2012 redistributables installed on your system.
[Galaxy S I9000 Android Development] rjh1:
Sorry, I forgot to say I installed the visual c++ files multiple times. Still doesn't work

Rick
[Galaxy S I9000 Android Development] Toni5830:
I can't get heimdall 1.4 to work, here a log

sh-3.2# heimdall print-pit --verbose --stdout-errors

Heimdall v1.4.0

Copyright (c) 2010-2013, Benjamin Dobell, Glass Echidna

http://www.glassechidna.com.au/

This software is provided free of charge. Copying and redistribution is

encouraged.

If you appreciate this software and you would like to support future

development please consider donating:

http://www.glassechidna.com.au/donate/

Initialising connection...

Detecting device...

libusbx: error [submit_control_transfer] control request failed: no async port has been opened for interface

libusbx: error [submit_control_transfer] control request failed: no async port has been opened for interface

libusbx: error [submit_control_transfer] control request failed: no async port has been opened for interface

length: 18

device class: 2

S/N: 3

VID:PID: 04E8:685D

bcdDevice: 0100

iMan:iProd:iSer: 1:2:3

nb confs: 1

interface[0].altsetting[0]: num endpoints = 1

Class.SubClass.Protocol: 02.02.01

endpoint[0].address: 83

max packet size: 0010

polling interval: 09

interface[1].altsetting[0]: num endpoints = 2

Class.SubClass.Protocol: 0A.00.00

endpoint[0].address: 81

max packet size: 0200

polling interval: 00

endpoint[1].address: 02

max packet size: 0200

polling interval: 00

Claiming interface...

libusbx: error [darwin_claim_interface] USBInterfaceOpen: another process has device opened for exclusive access

ERROR: Claiming interface failed!

ERROR: Claiming interface failed!

sh-3.2#

other info: heimdall-frontend 1.4.0, Mac OSX 10.9, samsung kyes is installed... do you need anything else?

Thank you
[Galaxy S I9000 Android Development] DerRomtester:
You have to install libusbx.
[Galaxy S I9000 Android Development] Toni5830:
The problem was Samsung Kies, after uninstalling it heimdall started working.. well, not really: I tried flashing a kernel (just a kernel, not whole rom package) and, even if it gave no error, it flashed nothing :/

Heimdall v1.4.0

Copyright (c) 2010-2013, Benjamin Dobell, Glass Echidna
http://www.glassechidna.com.au/

This software is provided free of charge. Copying and redistribution is
encouraged.

If you appreciate this software and you would like to support future
development please consider donating:
http://www.glassechidna.com.au/donate/

Initialising connection...
Detecting device...
Claiming interface...
Setting up interface...

Beginning session...
Releasing device interface...

and nothing happens..

and I really can't build any Heimdall Firmware Package, I always get this error:

Failed to create temporary file:

[white here: app doesn't display any error]
[Galaxy S I9000 Android Development] darangel212:
Download Mode

Dear,

My device cannot enter into Download Mode. Any help???

Battery is full and device is hard bricked I think.
[Galaxy S I9000 Android Development] BabelDev:
Hi there, when using Heimdall I am getting following error "ERROR: Claiming interface failed!". The phone is soft bricked and can only run in download mode. I also already uninstalled Kies. Any clue whats going wrong here? Thanks
[Galaxy S I9000 Android Development] philow:
Check for remnants of the samsung drivers or other USB driver that could cause grief with Heimdall:

kextstat | grep -v apple

If there are any Samsung drivers do what is necessary below:

sudo kextunload -b com.devguru.driver.SamsungComposite
sudo kextunload -b com.devguru.driver.SamsungMTP
sudo kextunload -b com.devguru.driver.SamsungACMControl
sudo kextunload -b com.devguru.driver.SamsungACMData

If that does not help look and see if there are any other USB Drivers that are non-Apple.

With that said is it common knowledge here that Heimdall does not work on KitKat Devices? I have been trying to use it on my T-Mo Galaxy S5 to get my PIT and I get an error that it cannot send an EOF.

ERROR: Failed to send request to end PIT file transfer!
[Galaxy S I9000 Android Development] _behrooz_:
Which way is better ? Command mod or ugi ? Is guide for full flash rom on samsung phone ?
[Galaxy S I9000 Android Development] ErikMunoz:
Hello guys, have you tried to flash a galaxy s5 with heimdall?
[Galaxy S I9000 Android Development] dracinn:
Heimdall still doesn't work even with 2010 redistributable.
[Galaxy S I9000 Android Development] CTH-EVO:
NO. I haven't been able to get it to work on the Samsung Galaxy S5 (G900P). :(

I'm using version 1.40 on a Linux (Debian) box.

--Chris
[Galaxy S I9000 Android Development] sergiuniculescu:
I got this error when I try to download the .pit file:

Any ideas?

The device I try to root it's a Tab3 7.0 SM-T211 with Android 4.1.2
[Galaxy S I9000 Android Development] riahc3:
Tried running this on XP x86. Gave a error all the time.

And YES, I installed the Microsoft Visual C++ 2010 runtimes...
[Galaxy S I9000 Android Development] asim.sidz:
i thought Heimdall was for cross-platforming. Windows has Odin for this. Why are you trying this?
[Galaxy S I9000 Android Development] Umeaboy:
You do it the wrong way.

First flash the insecure cfroot kernel to root your device and THEN flash the img with Heimdall to get TWRP recovery.

1. Enable Developer Settings by tapping Version 7 times under Settings ->About phone (or About tablet).

2. Go to Settings ->Developer Settings and turn on USB-debugging, but make sure that the device is not mounted in the computer.

3. Download http://download.chainfire.eu/354/CF-Root1/CF-Auto-Root-hltetmo-hltetmo-smn900t.zip?retrieve_file=1 with the device to the External SD-card.

4. Reboot into recovery. Usually Power-button and Volume up, but it depends on the device.

5. Use the menu to install the above mentioned zip-file and wait.

6. Reboot.

7. Verify that it's in fact rooted by installing the Root Checker app. Answer YES to the prompt.

8. Now you may flash the Recovery image with Heimdall in Download Mode.

Done!
[Galaxy S I9000 Android Development] bleggy:
I'm attempting to repartition my i777 Samsung GS2 following this guide: http://xdaforums.com/galaxy-s2-att/general/guide-partition-i777-phone-data-storage-t2839161

I am using Heimdall 1.4.0 on Ubuntu.

How would I flash the .pit file referenced in that thread? I have tried the following command without success:

sudo heimdall flash --repartition --pit <file name>.pit

What would be the proper command?
[Galaxy S I9000 Android Development] AdamOutler:
You never flash only a pit. Also, you need to mention your device because not all devices are supported.
[Galaxy S I9000 Android Development] Szarko:
S5

I have a S5.

Has anyone gotten heimdall to work with flashing to S5 yet?

I am on a Mac, and always used heimdall with no issues on my S4.
[Galaxy S I9000 Android Development] www.rzr.online.fr:
what about tizen z1 support ?

http://xdaforums.com/showpost.php?p=59815595&postcount=114
[Galaxy S I9000 Android Development] sharingan:
Will this work on my exynos galaxy s5 sm g 900h
[Galaxy S I9000 Android Development] Umeaboy:
Try it and see. Enable USB-debugging and do not Mount the SD-card and make sure that ADB identifies your device and you should be fine.
[Galaxy S I9000 Android Development] emremutlu:
Heimdall v1.4.0

Copyright (c) 2010-2013, Benjamin Dobell, Glass Echidna
http://www.glassechidna.com.au/

This software is provided free of charge. Copying and redistribution is
encouraged.

If you appreciate this software and you would like to support future
development please consider donating:
http://www.glassechidna.com.au/donate/

Initialising connection...
Detecting device...
Claiming interface...
Setting up interface...

Beginning session...
Releasing device interface...

And nothing happens.... It just stops there. Any ideas?

Kies is not installed and im running on win10
[Galaxy S I9000 Android Development] althafvly:
RUN as adminstrator. Or change compatibility to win 7 or xp
[Galaxy S I9000 Android Development] uudruid74:
Is Galaxy Tab 4 8.0 not supported?? Do I really have to find a Windows machine to flash this? I just need to restore to stock
[Galaxy S I9000 Android Development] tetakpatak:
I tought Heimdall development is dead since few years. You are here in a wrong thread, Galaxy S1 phone....

It is so stupid that Samsung doesn't provide bootloader mode, where one could simply use fastboot like on most of other devices.

Maybe you can find a deodexed stock as flashable zip, flash the stock recovery with terminal and do full unroot with SuperSU app.

tetakpatalked from 1+One
[Galaxy S I9000 Android Development] uudruid74:
Apologies for being in wrong thread. Googled Heimdall. Odin isn't working either. My phone is a 1+1 like yours and I don't have these problems. This tab's bootloader can not be unlocked, you can't flash custom recovery, and tweaking anything with root can cause it to detect your change and soft brick which is where I'm at.

Thanks anyway. Looks like the issue may not have been Heimdall. I dunno

More about me at https://eddon.systems
[Galaxy S I9000 Android Development] user822:
Hi.

I have a super-beginner-question, but could not find anything on Google.

I want to help a friend go from official firmware to Cyanogenmod and was worried about userdata security.

Do Samsung devices have some kind of bootloader lock, like fastboot, that wipes the userdata when flashing a recovery with heimdall for the very first time?

And if not, is encryption the only way to keep the userdata save from potential thieves, both on stock and a custom rom? Or, to ask the other way round, is stock firmware just as insecure as a custom rom without encryption.

I don't want to open a security problem, like for example flashing a fastboot device would have, when unlocking the bootloader and not encrypting

Thanks for your help
[Galaxy S I9000 Android Development] tetakpatak:
Nope, all data like should remain there, except if it is a device made for U S carriers like Verizon or AT&T.

But the international models should be fine.

Exactly

tetakpatalked from N7100
[Galaxy S I9000 Android Development] Agnellus:
My Odin does not seem to recognize my device so can I use heimdall ?
[Galaxy S I9000 Android Development] gc2712:
I had a similar issue where Odin failed and used Heimdall in Linux mint successfully. Maybe try a different USB cable too. I found Odin quite flaky to use and Heimdall just worked. I used Linux to avoid all the nonsense getting device drivers that work properly in Windows.
[Galaxy S I9000 Android Development] tzh2231:
Guys I am trying to put twrp on my D710 (Sprint S2) using heimdall after odin gave me all kinds of errors, I got success with heimdall, however after reboot it still shows stock recovery. The phone is current running stock 4.1.2, any idea what is wrong and how to fix?

One article I saw explained you need to use --no-reboot, but that did not help in my case.

Here is a sample command I used:

heimdall flash --RECOVERY philz_touch_6.19.3-d710.zip --no-reboot

I tried to use extracted recovery.img instead of zip, same result.

Command ran fine without any error:

Uploading RECOVERY

100%

RECOVERY upload successful

Ending session...

Releasing device interface...
[Galaxy S I9000 Android Development] Kurajmo:
Any update? I really need this stuff for flashing o linux. I have Galaxy Ace 2 and linux puppy slacko
[Galaxy S I9000 Android Development] moseso:
I downloaded Heimdall 1.4.0 today for use on my Mac. The installer warned me that it is not compatible with my version of OSX. I backed up and tried it anyway. The installer then reported a failure to install.

iMac 27" Mid 2011 --- OS 10.11.6.

I'm stuck. I have a new Galaxy Tab A that I'd like to root. Where do I go from here?
[Galaxy S I9000 Android Development] Umeaboy:
If I'm not misstaken it's been reported here already: https://github.com/Benjamin-Dobell/Heimdall/issues/291

You could always try to compile Heimdall for your OSX version.

The current Heimdall version only supports up to a certain OSX version I think.

As an alternative you could make a virtual machine in Virtualbox and install Heimdall in Windows. Check that you can see connected USB devices before trying to use Heimdall in your VM thou.
[Galaxy S I9000 Android Development] baltics:
Deleted
[Galaxy S I9000 Android Development] iLoveMuffinz:
Can I use this to root modern day phones? Like S6 or S7
[Galaxy S I9000 Android Development] capt_planit:
Thanks [MENTION=2710388]Benjamin Dobell[/MENTION] for this tool. As referenced in this issue here there are problems building 1.4.2 with older systems. You will need to edit BridgeManager.cpp with enum libusb_log_level as per that discussion. Additionally, depending on your version of cmake you may encounter -lPRIVATE errors as disscussed here. Since I'm building on a 800 mHz Acer Travelmate from 2003 under Puppy (Slacko) Linux my upgrade options are limited. I removed lPrivate from CMakeLists.txt. Horrible, I know, but it did build. Thanks for the new heimdall. c_p
[Galaxy S I9000 Android Development] alexmcrae:
hello, thank you for support mac os x. but not working high sierra.
[Galaxy S I9000 Android Development] islandman75:
used your tool with success on my S4-i9505... now I got trouble with new device, Huawei P9 lite, have you ever heard anyone who used heimdall with another device apart Samsung?

Cheers
[Galaxy S I9000 Android Development] U03A6:
Trouble with Galaxy S5

I've want to flash my SM-G00F with heimdall. I tried the Debian Sid package heimdall-flash and the download from the website. Both didn't work, with the same errors. I tried 3 different USB-cables and all USB-ports my laptop has.

I always get the following error:

sudo heimdall print-pit
Heimdall v1.4.1

Copyright (c) 2010-2014 Benjamin Dobell, Glass Echidna
[Link withheld]
This software is provided free of charge. Copying and redistribution is
encouraged.

If you appreciate this software and you would like to support future
development please consider donating:
[Link withheld]

Initialising connection...
Detecting device...
Claiming interface...
Setting up interface...

Initialising protocol...
Protocol initialisation successful.

Beginning session...

Some devices may take up to 2 minutes to respond.
Please be patient!

Session begun.

Downloading device's PIT file...
ERROR: Failed to send request to end PIT file transfer!
ERROR: Failed to download PIT file!
Ending session...
ERROR: Failed to send end session packet!
Releasing device interface...

Anyone any idea how to resolve this? Thanks in advance!
[Galaxy S I9000 Android Development] juniorhxcx:
Could I use this version v1.4.0 on a Galaxy J5 (SM-J500M) without problem?
[Galaxy S I9000 Android Development] Umeaboy:
If you have downloaded the right rom for that device I don't see any risk.

Are we talking about flashing stock or custom rom?
[Galaxy S I9000 Android Development] juniorhxcx:
Very Thanks

I will flashing Stock Rom
[Galaxy S I9000 Android Development] gian20:
I have problems with SM-J510FN (samsung galaxy j5 2016)
[Galaxy S I9000 Android Development] LinuxPusher:
Bookmarked
[Galaxy S I9000 Android Development] AndyShaytan:
Does anyone have any experience using Heimdall to flash TWRP on a Samsung J320FN? I don't want to use Odin for security concerns.

Also, the Zadig driver executable file gets reported as being infected with a Trojan virus when scanned through VirusTotal. Is it developed by Heimdall devs so that the situation can be clarified, or can I not install/run it?
[Galaxy S I9000 Android Development] tetakpatak:
Heimdall is AMAIK abbandoned project, done in the age of Galaxy S1

Of course, you can try if it works on a newer Samsung device, on your own risk.

Odin is ceirtanly more secure.

tetakpatalked from my A0001-bacon
[Galaxy S I9000 Android Development] dorianpb:
Is it possible to read a partition with heimdall?
[Galaxy S I9000 Android Development] :
Where can I download the latest version? It's 1.4.2 I believe, according to GitHub, but it's only source that's available there.
[Galaxy S I9000 Android Development] mdew:
S5 problems solved with Heimdall 1.4.2

I've a Samsung S5 G900F

Your post is long time ago. However, have you ever tried Heimdall 1.4.2? It worked fine for me.

--mdew
[Galaxy S I9000 Android Development] breversa:
I've built Heimdall 1.4.2 from source for Linux.

The binaries (heimdall, and heimdall-frontend) are available here :

https://androidfilehost.com/?fid=1899786940962573381
[Galaxy S I9000 Android Development] :
Looks like Heimdall is abandoned.
[Galaxy S I9000 Android Development] ashutoshvashist:
need support for MacOS catalina 10.15.4

good evening

hey I tried to install Heimdall suit 1.4.0 Mac on my macOS Catalina 10.15.4 and its not able to work as it is not supporting Catalina 10.15.4 yet.

any info about the upcoming version?

thanks for your work.

regards
[Galaxy S I9000 Android Development] baddoor:
similar problem here

that said my original problem is that i wanted to give my kid my phone. So i removed all accounts and deleted most apps i can (bare in mind it was rooted without a new ROM, just greenify/adaway/kernelMx stuff...

When done i booted the phone and got stuck at a hard brick.

only thing i can do is reboot into Download mode and Jodin/heimdall connects and thats it

whenever i load the firmware files and start , i get the "A corrupted file was detected. In order to continue, you must select a valid Odin File" (PIT file already obtained)

im trying to use either Heimdall or Jodin for my mac ... on Heimdall i'm having the installation compatibility issue , and Jodin running into the "A corrupted file was detected. In order to continue, you must select a valid Odin File" issue
[Galaxy S I9000 Android Development] net10441g:
I tried heimdall, and it WON'T EVEN IMPORT A ROM PACKAGE!!

What on earth is up with that??? I tried to import a rom package for flashing, but it in the osx file browser window,the rom zip package was gray and unselectable, SAME HAPPENED WHEN I CHANGED THE EXTENSION TO .TAR.

please help me!!
[Galaxy S I9000 Android Development] DavidxxxD:
You have to decompress the zip first, inside are .tar.md5 files, rename those to .tar.
[Galaxy S I9000 Android Development] net10441g:
i tried it. heimdall is still an a**hole

all the button options are gray.

https://youtu.be/7FNDcqU9ars proof of heimdall being a ****.
[Galaxy S I9000 Android Development] starbright_:
As my Odin under Windows fail (probably USB issue) I want to try heimdall. Also Linux is my standard OS. But at heimdal-frontend the "create package" is greyed out? (1.4.2 Ubuntu version). Are there any precondition that I miss?

I would create a new package with just replacing Samsung BL by TWRP. Does this work?

Edit: Solved

I found it by myself: Just start in the tab before, load the pit and add partition by partition. Then you can go to the create tab.
[Galaxy S I9000 Android Development] ildar_prophet:
Greetings!

1. Is Heimdall good with bootloaders? Are there successful cases around?

2. There's a known problem that older bootloader is not flashed over the newer one by Odin. Is it the same with Heimdall?

thanks!

P.S. IMHO having a chat room somewhere in Gitter or Matrix or Libera.Chat wouldn't hurt.
[Galaxy S I9000 Android Development] Umeaboy:
1. Depends on the device in question how successful it is.

I think you should refer to any custom rom's download section to see.

2. Yes, because some vendors don't allow to downgrade. Once you update to a newer version of Android than what was shipped on the device you also install a patch that disables downgrades forever. That is unless you can connect to the bootloader via UART and dump it.
[Galaxy S I9000 Android Development] ildar_prophet:
I presumed the check is either in BL or in Odin. So you confirmed the worst.

that's interesting. Did see UART in service guides and schematics. Let's look again.

Thanks!
[Galaxy S I9000 Android Development] jbarcus81:
Using Windows 11 and a Samsung Galaxy Tab S Lite Wifi --

Can someone point me in the right direction here with flashing the custom recovery? I've read the guides and my tablet shows up in device manager as a modem. I use the command

heimdall flash --RECOVERY <recovery_filename>.img --no-reboot and it tells me

Initialising connection...

Detecting device...

libusbx: error [init_device] device '\\.\USB#VID_1532&PID_0099&MI_03#6&D4B940D&0&0003' is no longer connected!

ERROR: Failed to access device. libusb error: -12
[Galaxy S I9000 Android Development] breversa:
I guess you've just stepped into Windows' USB drivers hell.

You may want to try to remove existing USB drivers for you phone (using e.g. Ghostbuter: https://www.majorgeeks.com/files/details/ghostbuster.html) then reinstall another USB driver (e.g. Zadig: https://zadig.akeo.ie/).

Good luck! :)
[Galaxy S I9000 Android Development] jbarcus81:
Just tried this and no matter what I do when I put the tablet into download mode, it's installed as a Samsung Modem. Heimdall still flakes out on me.. Ugh!
[Galaxy S I9000 Android Development] breversa:
Then do yourself a favor and use Linux instead of Windows.

@steadfasterX created FWUL for that purpose: https://xdaforums.com/t/live-iso-fw...-installation-and-driver-issues-v3-2.3526755/
[Galaxy S I9000 Android Development] jbarcus81:
Oh, this is beautiful!
[Galaxy S I9000 Android Development] sgf483:
Hi, I would like to flash the stock rom like 2.3 or something like that using heimdall and pit512 . I downloaded a stock rom from SamFw and extracted the content. But there are only 7 files.

- boot.bin

- cache.rfs

- factoryfs.rfs

- modem.bin

- param.lfs

- Sbl.bin

- zImage

What about efs, recovery, dbdatafs? I flashed only the 7 files without error, but after that the device boots with some errors, I could clear cache etc. and now the phone boots without errors but the starting animation is a never ending loop and doesn't start.

What is the right approach to get stock rom using Heimdall?

EDIT:

I was able to go to stock with Heimdall. I downloaded rom Android 2.3.6 (GT_I9000_XWJW5_XXJW4_OXXJVC_Sbl) from this post https://xdaforums.com/t/rom-bugless-6-0-1-full-advance-6-0-1-for-i9000.3277051/page-30#post-81616963 I do not know what the origin of this data is. Download at your own risk.

After extracting there are 8 files, not 7. Is SamFW bull**** for roms? I don't know. The additional file was dbdata.rfs.

The mapping between partition and files is straight forward but this time I didn't select sbl. Instead of this I mapped sbl2 to Sbl.bin because in this post there is also only SBL2 mentioned https://xdaforums.com/t/guide-fix-g...-internal-sd-etc.2247484/page-2#post-54540069 Don't know how important this is.

Now the phone boots with fresh 2.3.6 custom rom.
[Galaxy S I9000 Android Development] devrieshh:
Is there a system file in it?
[Galaxy S I9000 Android Development] sadskull:
Same issue here but works well as root
[Galaxy S I9000 Android Development] CornholioGSM:
Hello,

i have special question.

Is possible to use command for read device info (model/imei/serial...) and for factory reset?

I want to made simple .bat with these command + with automatic creating log to text file.

This is possible with another phones in fastboot...but will this be possible on samsung in download mode?

thx
[Galaxy S I9000 Android Development] ildar_prophet:
1st I don't believe you can read IMEI with fastboot.

I guess you can make device go for factory reset through Odin/Heimdall. But reading the above data... I don't think so.

BTW Samsung bootloader allows reading near to nothing, only writing. And that's for security reasons, I guess.