[Tool] Frija - Samsung firmware downloader/checker

Search This thread

Conan179

Senior Member
Apr 28, 2010
919
111
Does anyone happen to know why I haven't been able to download FW for my Fold4 EUX for months?

2023-08-31 16:58:28.2218 | INFO | ---------Info Provided--------- |
2023-08-31 16:58:28.2387 | INFO | Device Model: SM-F936B |
2023-08-31 16:58:28.2387 | INFO | Device CSC: EUX |
2023-08-31 16:58:28.2387 | INFO | Sending provided info to FOTA server to retried latest available firmware |
2023-08-31 16:58:28.4688 | INFO | ---------Retrieved info from FOTA server--------- |
2023-08-31 16:58:28.4688 | INFO | PDA: F936BXXU4DWH5 |
2023-08-31 16:58:28.4688 | INFO | CSC: F936BOXM4DWH7 |
2023-08-31 16:58:28.4688 | INFO | Phone: F936BXXU4DWH7 |
2023-08-31 16:58:28.4688 | INFO | Retrieving firmware from FUS server |
2023-08-31 16:58:35.7103 | ERROR | ---------FUS ERROR--------- |
2023-08-31 16:58:35.7119 | ERROR | FUS response status code: 400 |
 

ataman76

Senior Member
Sep 1, 2010
79
5
Is SamFirm no longer working? What should I enter in CSC in Frija to find the software for me? E.g. for the full CSC number: S901BOXM6CWH5?
 

SlackingVeteran

Senior Member
Mar 24, 2013
712
350
Hey all,
So looks like Samsung decommissioned their old auth system that Frija v1.x was using which made the app almost useless. I had Frija v2 around as beta for the longest time which was using new auth system and can download firmware just like before. Came out of woodwork today to fix some major issues with v2 and pushed the update.
@invmini has updated OP with latest version info but I will add it here as well for ease:

2.0.23262.4
• New UI
• Improved performance, better error/exception logging
• Independent of Samsung dll libraries
• Improved CRC check
• UI includes more details on Download, CRC validation and Decrypt processes
• New Fluent UI with Light/Dark and System theme support
• New Auto mode to retrieve firmware from FUS server for device connected to PC
• Frija now uses Samsung drivers instead of ADB to pull device info needed to find the firmware in Auto mode.
• Added a dialog box notifying users that firmware has been successfully downloaded.
• Mica effect on Windows 11 for both dark and light theme.
• Added many small UI improvements
• Fixes issue where Frija v1.4.4 can no longer download any firmware

I do not expect this to be as stable as v1.4.4. If you run into any issues please feel free to let me know.
 

adfree

Senior Member
Jun 14, 2008
10,549
6,129
Samsung Galaxy Watch 4
Samsung Galaxy S22
First attempt I have unpacked and taken name from Zip for path...

Code:
2023-09-19 07:02:22.7572 | ERROR | Exception occured while connecting to Frija database | Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: <. Path '', line 0, position 0.
   at Newtonsoft.Json.JsonTextReader.ParseValue()
   at Newtonsoft.Json.JsonTextReader.Read()
   at Newtonsoft.Json.JsonReader.ReadAndMoveToContent()
   at Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
   at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
   at Newtonsoft.Json.JsonSerializer.Deserialize(JsonReader reader, Type objectType)
   at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
   at Frija.Backend.Helper.FrijaAPI.DBGet(String path)
2023-09-19 07:02:22.8522 | ERROR | Unhandled Exception Occured | System.NullReferenceException: Object reference not set to an instance of an object.
   at Frija.App.‬‌‍‪‏‫‫‏‎‬‎‭‏‎‌‏‭‎‍‮‮‮‫‏‮()
   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__139_0(Object state)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

For second attempt i have renamed into easier folder name... then Frija runs

Best Regards
 

SlackingVeteran

Senior Member
Mar 24, 2013
712
350
First attempt I have unpacked and taken name from Zip for path...

Code:
2023-09-19 07:02:22.7572 | ERROR | Exception occured while connecting to Frija database | Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: <. Path '', line 0, position 0.
   at Newtonsoft.Json.JsonTextReader.ParseValue()
   at Newtonsoft.Json.JsonTextReader.Read()
   at Newtonsoft.Json.JsonReader.ReadAndMoveToContent()
   at Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
   at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
   at Newtonsoft.Json.JsonSerializer.Deserialize(JsonReader reader, Type objectType)
   at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
   at Frija.Backend.Helper.FrijaAPI.DBGet(String path)
2023-09-19 07:02:22.8522 | ERROR | Unhandled Exception Occured | System.NullReferenceException: Object reference not set to an instance of an object.
   at Frija.App.‬‌‍‪‏‫‫‏‎‬‎‭‏‎‌‏‭‎‍‮‮‮‫‏‮()
   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__139_0(Object state)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

For second attempt i have renamed into easier folder name... then Frija runs

Best Regards
That error looks like db server returned a html response instead of json, thanks for the call stack!
 
  • Like
Reactions: adfree

yoseth

Member
Aug 4, 2010
44
10
Any reason for using that particular net core 3.1 (3.1.21)? 3.1.32 works for me, which is the last supported version with security updates.
And why net core 3.1? Microsoft says the LTS net core 6 is backwards compatible with 3.1, but I tried net core 6, frija didn't work.
As 3.1 is out of support, isn't it better to go more modern version for bugs/security?
 
Last edited:

SlackingVeteran

Senior Member
Mar 24, 2013
712
350
Any reason for using that particular net core 3.1 (3.1.21)? 3.1.32 works for me, which is the last supported version with security updates.
And why net core 3.1? Microsoft says the LTS net core 6 is backwards compatible with 3.1, but I tried net core 6, frija didn't work.
As 3.1 is out of support, isn't it better to go more modern version for bugs/security?
3.1 because thats what was latest at the time I started working on it, January 2020. I want to update it to latest but there are couple things I use that does not support anything newer than 3.1. Will have to find a way to remove those pieces and upgrading isn't as easy as just switching the framework. I haven't done any major fixes or updates to 2.0 since 2021, hence the reason of using 3.1. I only came out of woodwork yesterday to push 2.0 to public release after fixing couple things because 1.4.4 was completely useless to download anything
 
  • Like
Reactions: adfree

Normusmaxamus

Senior Member
Apr 14, 2016
113
50
Samsung Galaxy S23 Ultra
Hey all,
So looks like Samsung decommissioned their old auth system that Frija v1.x was using which made the app almost useless. I had Frija v2 around as beta for the longest time which was using new auth system and can download firmware just like before. Came out of woodwork today to fix some major issues with v2 and pushed the update.
@invmini has updated OP with latest version info but I will add it here as well for ease:

2.0.23262.4
• New UI
• Improved performance, better error/exception logging
• Independent of Samsung dll libraries
• Improved CRC check
• UI includes more details on Download, CRC validation and Decrypt processes
• New Fluent UI with Light/Dark and System theme support
• New Auto mode to retrieve firmware from FUS server for device connected to PC
• Frija now uses Samsung drivers instead of ADB to pull device info needed to find the firmware in Auto mode.
• Added a dialog box notifying users that firmware has been successfully downloaded.
• Mica effect on Windows 11 for both dark and light theme.
• Added many small UI improvements
• Fixes issue where Frija v1.4.4 can no longer download any firmware

I do not expect this to be as stable as v1.4.4. If you run into any issues please feel free to let me know.
Great update, works flawless. Many thanks. S23 Ultra user.
 

serg9911

New member
Feb 8, 2019
2
1
@SlackingVeteran

How does the new authorization system differ from the old one? Where can I read or view the sources? Can you send examples in a private message if this is not public information? Thank you for your answers.
 
Is it still not possible to download Watch firmware using Frija? like SM-R8xxx

@SlackingVeteran

How does the new authorization system differ from the old one? Where can I read or view the sources? Can you send examples in a private message if this is not public information? Thank you for your answers.
I would like to know more about this as well
 

Top Liked Posts

  • There are no posts matching your filters.
  • 3
    So Frija 2.0 has launched, so please everyone update frija to the latest version as there improvements added including a new UI, performance updates and more
    3
    Hey all,
    So looks like Samsung decommissioned their old auth system that Frija v1.x was using which made the app almost useless. I had Frija v2 around as beta for the longest time which was using new auth system and can download firmware just like before. Came out of woodwork today to fix some major issues with v2 and pushed the update.
    @invmini has updated OP with latest version info but I will add it here as well for ease:

    2.0.23262.4
    • New UI
    • Improved performance, better error/exception logging
    • Independent of Samsung dll libraries
    • Improved CRC check
    • UI includes more details on Download, CRC validation and Decrypt processes
    • New Fluent UI with Light/Dark and System theme support
    • New Auto mode to retrieve firmware from FUS server for device connected to PC
    • Frija now uses Samsung drivers instead of ADB to pull device info needed to find the firmware in Auto mode.
    • Added a dialog box notifying users that firmware has been successfully downloaded.
    • Mica effect on Windows 11 for both dark and light theme.
    • Added many small UI improvements
    • Fixes issue where Frija v1.4.4 can no longer download any firmware

    I do not expect this to be as stable as v1.4.4. If you run into any issues please feel free to let me know.
    1
    Hi, hello me out here folks, as i haven't flashed in a good while. I have an unlocked fold 4(5.1 on my device) and I'd like to flash the tmobile variant of 5.1.1. I can do this correct? From what i remember, I thought that I could/ can?

    Thank you much in advance!
    If the model number of your device is F936U1, then yes
    1
    Oh. Nice.

    New Version.

    Thank you.


    Best Regards
    1
    First attempt I have unpacked and taken name from Zip for path...

    Code:
    2023-09-19 07:02:22.7572 | ERROR | Exception occured while connecting to Frija database | Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: <. Path '', line 0, position 0.
       at Newtonsoft.Json.JsonTextReader.ParseValue()
       at Newtonsoft.Json.JsonTextReader.Read()
       at Newtonsoft.Json.JsonReader.ReadAndMoveToContent()
       at Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter)
       at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
       at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
       at Newtonsoft.Json.JsonSerializer.Deserialize(JsonReader reader, Type objectType)
       at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
       at Frija.Backend.Helper.FrijaAPI.DBGet(String path)
    2023-09-19 07:02:22.8522 | ERROR | Unhandled Exception Occured | System.NullReferenceException: Object reference not set to an instance of an object.
       at Frija.App.‬‌‍‪‏‫‫‏‎‬‎‭‏‎‌‏‭‎‍‮‮‮‫‏‮()
       at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__139_0(Object state)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

    For second attempt i have renamed into easier folder name... then Frija runs

    Best Regards
    That error looks like db server returned a html response instead of json, thanks for the call stack!
  • 306
    * * * PLEASE UNDERSTAND WHAT YOU ARE INSTALLING TO YOUR DEVICES AT ALL TIMES AND ME AND THE DEVELOPER ARE NOT RESPONSIBLE FOR ANY SORT OF DAMAGE TO YOUR DEVICE * * *


    Hey Guys :)

    Frija is a new tool (successor of now depreciated tool SamFirm) which allows users to download latest firmware for their device which can be flashed with Odin.
    Frija can download Firmware for any Samsung Devices at High Speed.
    Auto mode detects any Samsung Phone Model and CSC and finds all the required information directly from Samsung Server.
    Frija downloads firmware directly from Samsung FUS (Firmware Update Server) without any third party websites being involved. It can pause/resume firmware downloads, even after network interruption, or app restart (if download was interrupted).
    Frija comes with built in Support form, through which you can reach out to developer about any issues or bugs. Frija has built in App Updater, whenever new release of Frija is available users will be able to update to latest version of the app.
    Frija does not have any Background or Startup services, which some users might be concerned about.
    It also comes with Night theme, for those who prefer Night Mode on the app

    unknown.png

    unknown.png

    unknown.png


    Fun fact about Frija: Frija is named after wife of Odin who can see future (In Norse Mythology) can download latest firmwares which can be flashed using Odin which uses Heimdall (A protocol that connects to a mobile device over USB) and Loke (low-level software running on the device). It kinda added a missing piece to the naming convention Samsung has.

    This tool was created by wssyncmldm with contribution from CrazyApe and eragon5779. Devs receive all the support message directly and they are actively working on the app to fix any bugs or issue. :p

    Updates:
    NOTE: Auto Update has bug in version 1.1.1 and will need to manually update by using the new zip file posted today


    Changelog:

    1.1.2
    • Improved firmware search.
    • Fixed issue where firmware was not available for valid Device and CSC.
    • Updated some message strings displayed to user

    1.3.0
    • Fixed decryption issue of enc2 type encrypted firmware
    • Auto updater finally fixed, will not require downloading update manually after this update

    1.4.1
    • Added error message if Microsoft Redist packages are missing
    • New Settings option
    • Removed support message feature and added new Issue Tracker URL
    • Overall UI improvement
    • Added setting to disable CRC check

    1.4.2
    • Improved Firmware search method
    • Added support for Dual Sim model
    • Added Frija sage number in About Page
    • Load Samsung dll libraries in efficient way
    • Fixed sub text for on/off in Settings Page

    1.4.3
    • Fixed firmware lookup and download issue

    1.4.4
    • Fixed an issue where if firmware paused and resumed after downloading more than 1.9 GB failed to download complete firmware
    • Added invite link to Frija Discord

    2.0
    • New UI
    • Improved performance, better error/exception logging
    • Independent of Samsung dll libraries
    • Improved CRC check
    • UI includes more details on Download, CRC validation and Decrypt processes
    • New Fluent UI with Light/Dark and System theme support
    • New Auto mode to retrieve firmware from FUS server for device connected to PC
    • Frija now uses Samsung drivers instead of ADB to pull device info needed to find the firmware in Auto mode.
    • Added a dialog box notifying users that firmware has been successfully downloaded.
    • Mica effect on Windows 11 for both dark and light theme.
    • Added many small UI improvements
    • Fixes issue where Frija v1.4.4 can no longer download any firmware

    You can find the download for Frija here.
    10
    For now the software is for Windows only. As for now the developer doesn't have any plans to release the code to the public.

    That's sad to hear. I''m not willing to setup a windows installation somewhere just to run some closed source code. Opening the source would make it possible for others to port the code to linux or at least have a look at it and audit it. Not only for security concerns but also to hunt bugs and report them. I'm really uncomfortable running closed source software from a random guy on some random internet forum.
    6
    Will there be a linux build or is it windows only?
    Also it would be nice to have the sources available to audit the code and make sure it does no nasty stuff. ;)
    5
    Same. That's why I'm here. I've used it in the past with no problems, but showed up as a virus yesterday. I wonder what's up, back to using SamFirm for now.

    Pretty nasty too if you look up what that virus does too, I'm staying clear, I'm only here because I returned a UK S10 plus exynos which I had beta 10 on in favour of a G9750 China with Qualcomm and now the members app is not giving me the Android 10 beta notice even though it's supposed to be available for this model.

    New version 1.4.2 is out and your virus issue should be gone with new update/release. OP will be updated when @invmini is online
    You can download it form here: https://github.com/wssyncmldm/frija/releases/download/v1.4.2/Frija-v1.4.2.zip

    v1.4.2 Update Notes:
    Code:
    • Improved Firmware search method
    • Added support for Dual Sim model
    • Added Frija sage number in About Page
    • Load Samsung dll libraries in efficient way
    • Fixed sub text for on/off in Settings Page