GameTheory- / jodin3

Jodin3 is Odin that works on Linux & Mac for flashing Samsung devices.
74 stars 16 forks source link

Can't execute binary file (MacOS 13.3.1 Ventura) #2

Open basicallyar opened 1 year ago

basicallyar commented 1 year ago

Result of Terminal:

MacBook-Air:~ macbook$ /Users/macbook/Downloads/Jodin3/JOdin3CASUAL ; exit; -bash: /Users/macbook/Downloads/Jodin3/JOdin3CASUAL: cannot execute binary file logout

Saving session... ...copying shared history... ...saving history...truncating history files... ...completed. Deleting expired sessions...15 completed.

[Process Ended]

What should I do?

Dima-369 commented 1 year ago

I saw the same error.

I fixed it with those steps on macOS 13.3.1:

Run app/JOdin3CASUAL.jar like this:

java -jar JOdin3CASUAL.jar

If this fails like this:

Error: Could not find or load main class com.casual_dev.jodin.JOdinMain
Caused by: java.lang.NoClassDefFoundError: javafx/application/Application

Then JavaFX is missing from Java. Install it like this:

$ brew tap bell-sw/liberica
$ brew install --cask liberica-jdk20-full

After LibericaJDK is installed, use that java version to launch the jar like this:

$ /Library/Java/JavaVirtualMachines/liberica-jdk-20-full.jdk/Contents/Home/bin/java -jar JOdin3CASUAL.jar

Then it should hopefully look like this:

image

LambdaMisc commented 11 months ago

May I ask how you installed heimdall in Ventura? I'm trying to use jodin in Big Sur but heimdall (apparently) can't run on Big Sur.

Screen Shot 2023-07-27 at 7 55 46 PM Screen Shot 2023-07-27 at 8 00 18 PM Screen Shot 2023-07-27 at 8 00 49 PM
Dima-369 commented 11 months ago

May I ask how you installed heimdall in Ventura? I'm trying to use jodin in Big Sur but heimdall (apparently) can't run on Big Sur.

According to my notes (I hope they are up to date), I used https://androidfilehost.com/?w=files&flid=304516 with the Heimdall-macOS-master-012220.dmg file.

I also tried the suite you linked (under https://glassechidna.com.au/heimdall/#downloads) and I saw the same error.

LambdaMisc commented 11 months ago

Odd, probably a problem with my Mac, but all I get is a blank icon and a non-working applications alias. Also gives me an error when I try to launch it.

Screen Shot 2023-07-28 at 12 49 32 AM Screen Shot 2023-07-28 at 12 49 49 AM Screen Shot 2023-07-28 at 12 50 00 AM
Dima-369 commented 11 months ago

That's all fine, you only need the heimdall CLI executable. Drag/move it into /usr/local/bin/ (not the frontend) and check if you can access heimdall in the terminal

image

If yes, then JODIN3 will find it as well and you can start.

LambdaMisc commented 11 months ago

Cool, worked! Thank you. One more question, though. I'm a bit of a noob with this. What is the equivalent of the AP button in Jodin? (Heres some screenshots about what I mean) <img width="526" alt="Screen Shot 2023-07-28 at 1 29 46 AM" src="https://github.com/GameTheory-/jodin3/assets/115120346/fdc536d0-d39

Screen Shot 2023-07-28 at 1 30 28 AM

3-495b-b4b1-2dfca533a5e4">

LambdaMisc commented 11 months ago

Ope, GitHub broke. here's the screenshot of jodin.

Screen Shot 2023-07-28 at 1 32 51 AM
LambdaMisc commented 11 months ago

I'm assuming PDA, because of the order, but it just didn't't sound right. Is it PDA?

Dima-369 commented 11 months ago

I'm assuming PDA, because of the order, but it just didn't't sound right. Is it PDA?

Correct, see https://android.stackexchange.com/a/179248

And your screenshot is still missing ;)

Dima-369 commented 11 months ago

And good luck flashing 😄 You should be very close!

LambdaMisc commented 11 months ago

oops, huh. But thanks for telling me!

LambdaMisc commented 11 months ago

Awe man, it's so close but when it restarts after it obtains the pit, the phone doesn't register until I restart jodin. (after which it removes the pit file's directory.)

LambdaMisc commented 11 months ago

Man, this is driving me crazy. It successfully obtains the pit, but after the phone restarts, JOdin won't detect it!

Dima-369 commented 11 months ago

Oh, I feel you. I had the exact same issue 😅

Checking over my notes, I think I did not use jodin3 at all in the end, but just used heimdall entirely in the terminal. Since jodin3 just wraps it for our usecase. Check some guides on how to flash it that way.

The only thing I have written down is this, but double check that please.

heimdall flash --RECOVERY recovery.img --no-reboot
LambdaMisc commented 11 months ago

Man, that works, but not quite. I got a similar error when using regular odin3 on pc, but basically the flash instantly fails. What could be the problem?

Here's the log. https://pastebin.com/6jjy2vs9

Dima-369 commented 11 months ago

Puh sorry, no idea. That's all the info I can provide you here - I don't think I had an error like that. Good luck 🥲

LambdaMisc commented 11 months ago

Oh, wait. Do I have to wipe the data first? I'm installing onto a note 3