[Tool] Frija - Samsung firmware downloader/checker

Search This thread

AnonVendetta

Senior Member
Apr 29, 2016
1,644
599
Technically all the core features besides the UI on Frija v2.x is made such that it could be run on Linux. Though everyone has their own definition of running it in linux, does one need a CLI or fully fledged Desktop app on linux is different story which is why I never perused it.
After more tests, I have succeeded in running Frija on a recent version of Ubuntu LTS, and downloading works too. I didnt let the DL finish due to being concerned about using too much of my hotspot/tethering allotment. It was able to fetch the latest firmware for my tablet, select a folder to save to, and begin downloading. I also verified that the file exists in the location I selected. So I'd say that the core functionality and the GUI *APPEAR* to be fully functional. Need more testing to be sure.And I'd like to write a short guide.

Briefly, you need to install WINE and winetricks. At first I got alot of errors about .NET Framework, and Visual C redists, which I eventually managed to install, after a few hrs of trying. And I also got an error from Themida about globalutil.dll not being found. After I got all the needed dependencies installed, Frija started working without issues.

I've attached a screenshot as proof.

Edit: After clicking the Paypal donate button, it opens the Firefox Web browser. But when I go back to the Frija window, it is not responding and I'm given the options to either wait, or kill the task. Continually clicking "wait" just brings up the same message again and again, so killing it is the only viable option. Frija can be restarted just fine. I think it's better to keep the Frija window in focus/on top when downloading, to reduce the possibility of instability. In other words, don't switch to other windows if you don't have to.

This could be specific to Ubuntu, or hardware related, or just a quirk of running Frija on an OS it wasn't designed for. I don't think it's a big deal, as long as downloading works.

Edit: Here's a video link too. It's not edited in any way (I don't know how to do that anyway), just a simple screen recording. I probably could have made it shorter by speeding up the downloading part, but whatever. There's no ads.

Frija on Ubuntu LTS Via WINE
 

Attachments

  • Frija_On_Ubuntu_LTS_Via_WINE.png
    Frija_On_Ubuntu_LTS_Via_WINE.png
    1.8 MB · Views: 114
Last edited:

fil3s

Senior Member
Aug 30, 2014
1,710
508
44
bendigo
mobiledevices11.blogspot.com

You'll need ms redistributables 2008 & 2010



Note the 2010 SP1 doesn't seem to work but I used the version above ^
 

AnonVendetta

Senior Member
Apr 29, 2016
1,644
599
After more tests, I have succeeded in running Frija on a recent version of Ubuntu LTS, and downloading works too. I didnt let the DL finish due to being concerned about using too much of my hotspot/tethering allotment. It was able to fetch the latest firmware for my tablet, select a folder to save to, and begin downloading. I also verified that the file exists in the location I selected. So I'd say that the core functionality and the GUI *APPEAR* to be fully functional. Need more testing to be sure.And I'd like to write a short guide.

Briefly, you need to install WINE and winetricks. At first I got alot of errors about .NET Framework, and Visual C redists, which I eventually managed to install, after a few hrs of trying. And I also got an error from Themida about globalutil.dll not being found. After I got all the needed dependencies installed, Frija started working without issues.

I've attached a screenshot as proof.

Edit: After clicking the Paypal donate button, it opens the Firefox Web browser. But when I go back to the Frija window, it is not responding and I'm given the options to either wait, or kill the task. Continually clicking "wait" just brings up the same message again and again, so killing it is the only viable option. Frija can be restarted just fine. I think it's better to keep the Frija window in focus/on top when downloading, to reduce the possibility of instability. In other words, don't switch to other windows if you don't have to.

This could be specific to Ubuntu, or hardware related, or just a quirk of running Frija on an OS it wasn't designed for. I don't think it's a big deal, as long as downloading works.

Edit: Here's a video link too. It's not edited in any way (I don't know how to do that anyway), just a simple screen recording. I probably could have made it shorter by speeding up the downloading part, but whatever. There's no ads.

Frija on Ubuntu LTS Via WINE
@SlackingVeteran: I have posted a follow-up video, showing the how-to of getting Frija to run in Linux. The previous video was just a demo to show that it works, without instructions. It is about 30 mins long, a bit too long if you ask me, but I'm new to creating videos and have very little editing experience. It's just a straight-up unedited screen recording.

It took me awhile and alot of fails to get this right. As it turns out, installing the official .Net Frameworks within wine is a huge pain, and is time-consuming. So I opted to use Wine Mono instead, an open source replacement for .Net Framework. Your program works great with it.

I cover running Frija in both 32 and 64 bit wine prefixes, just to ensure that the largest # of wine/winetricks combos are accounted for, since there are different distros out there, and different versions of these softwares. More and more distros are defaulting to creating 64 bit wine prefixes, so I figured it would be better to cover both.

I have also tested in Manjaro and Fedora, even though the video was created in Ubuntu LTS.

It may even be possible to run Frija on other OSes like Mac OS X, FreeBSD, etc. These OSes also have wine available to them. I don't have a Mac to test, so I'll never know unless someone tries and reports back.

It's also possible to back up the prefixes, once they are created and working. Just compress the top level prefix directory into a zip/tar/etc file. These can be restored later, so as not to repeat steps. And should be transferrable across distros, as long as they have wine/winetricks installed.

I've also briefly covered how to run Windows in a virtual machine within Linux, so that firmware flashing can be done without rebooting the entire PC into a real Windows install.

It seems that YT is cutting off the ends of some of my URLs, until my verification is complete. Currently they are unclickable. Hopefully they will be clickable within the next day or 2, but for now some of them will go to invalid locations.

The links I've used are:

Frija:

Wine Mono installer main downloads page:

Wine Mono v8.0.0 installer:

Visual C 2008 (32 and 64 bit):

Visual C 2010 (32 and 64 bit):

Tutorial for running Windows within VirtualBox, so that you can use Odin to flash firmwares:

I noticed that the original post of the thread isnt by you, but I'm guessing it's an alt account. I was hoping to get the OP updated with links to my video, so that Linux/Mac users can prominently see them.

@invmini: I'd appreciate it if you would do this, please (updating the 1st post). Assuming that you and @SlackingVeteran are different users. Feel free to test my instructions if you wish, I think it will work for you too.

How-to video/instructions:

Edit: It seems that Frija runs fine on Ubuntu LTS. And also on Manjaro/Fedora on my gaming laptop. But On an older Dell XPS ultrabook, Frija wont launch on either Fedora or Manjaro, despite using the same steps that worked. I think it's because this laptop has a crappy graphics chip and cant handle high end graphics stuff, it can't do gaming. I see lots of errors in the terminal log that are graphics-related, when trying to launch Frija. Which makes me suspicious that it's a graphics driver issue, or the lack of the appropriate driver being installed/available for use. I'm confident that my steps are correct, since it works in 3 distros on 1 PC, but not in any distros on another PC.

Edit #2: If Frija looks frozen when you run it, just be patient and wait. This happened to me several times when Frija was decrypting firmwares. Decrypting uses alot of system resources.
 
Last edited:

Maq47

Member
Apr 25, 2020
17
0
Hey, my firmware is not available via Frija nor SamFW. It's T510XXXU1ASCC. Any idea where I can acquire this firmware? I want to spoof a firmware being valid via PIT file (I know what I'm doing, the partitions are nearly identical, the only difference is the CSC being XXU), but I cannot find this firmware ANYWHERE online except those Arabic sites where you can 'purchase' firmwares, and lord knows if they are trustworthy or safe.
 

iBowToAndroid

Account currently disabled
Nov 9, 2010
5,869
1
1,840
Twin Cities MN
Hey, my firmware is not available via Frija nor SamFW. It's T510XXXU1ASCC. Any idea where I can acquire this firmware? I want to spoof a firmware being valid via PIT file (I know what I'm doing, the partitions are nearly identical, the only difference is the CSC being XXU), but I cannot find this firmware ANYWHERE online except those Arabic sites where you can 'purchase' firmwares, and lord knows if they are trustworthy or safe.
My Samsung firmware source can get me the version ending in SCE, but he doesn't have SCC
 

Maq47

Member
Apr 25, 2020
17
0
My Samsung firmware source can get me the version ending in SCE, but he doesn't have SCC
Hmmm, that may actually be a valid update to my tablet, as far as I know, the last digit is merely a build ID's subversion, correct? Maybe this update will contain an actual Knox app where I can legitimately disable Knox and flash a stock firmware without needing to spoof. It's a chance I'm honestly willing to take, to be honest.
 

iBowToAndroid

Account currently disabled
Nov 9, 2010
5,869
1
1,840
Twin Cities MN
Hmmm, that may actually be a valid update to my tablet, as far as I know, the last digit is merely a build ID's subversion, correct? Maybe this update will contain an actual Knox app where I can legitimately disable Knox and flash a stock firmware without needing to spoof. It's a chance I'm honestly willing to take, to be honest.
Correct, subversion. Since they both end in SCx, they were both compiled in March 2019. SCE would just be 2 "subversions" after SCC
 

Maq47

Member
Apr 25, 2020
17
0
Correct, subversion. Since they both end in SCx, they were both compiled in March 2019. SCE would just be 2 "subversions" after SCC
Okay, then may I please know how to acquire this firmware? If I'm required to pay, I will gladly fork over any amount less than $20, although I'll need to wait until the 22nd to actually pay it. I see that you have a 'source' for these firmwares, so it is unlikely that these 'services' are free, so name a reasonable price if it is indeed not free.
 

iBowToAndroid

Account currently disabled
Nov 9, 2010
5,869
1
1,840
Twin Cities MN
Okay, then may I please know how to acquire this firmware? If I'm required to pay, I will gladly fork over any amount less than $20, although I'll need to wait until the 22nd to actually pay it. I see that you have a 'source' for these firmwares, so it is unlikely that these 'services' are free, so name a reasonable price if it is indeed not free.
Public discussion of paid services is frowned upon, so I'll DM you
 

lupin57

Senior Member
Oct 7, 2010
644
218
Somewhere in France
It don't work with EUX CSC. When you fix it?
Sure ... EUX isn't a CSC !
U have to choose one of those below ... sorry for the french at the beginning !
EUX - L'Europe dans l'Espace économique européen - EEE et l'indicatif du pays
BTB BTE BTU EVR MET H3G 3IE O2U VDI VOD DBT XEF PHE PLS PRT TPH ITV PHN LUX ATO SFR MEO OMN HUI XEC DRE MOB ATL TCL VD2 VDF AMO FTM NEE SEB HTS XEO ROM BGL XEH XGREZ ORX OX VDC VDH OU SIO COA COS CRO DCO DNL DTM MAX TMH TMS TMZ TNL TPL BOG MOT O2C SIM TIM VIP SMP TSI
 

locarno

Senior Member
May 10, 2012
255
15
Sure ... EUX isn't a CSC !
U have to choose one of those below ... sorry for the french at the beginning !
EUX - L'Europe dans l'Espace économique européen - EEE et l'indicatif du pays
BTB BTE BTU EVR MET H3G 3IE O2U VDI VOD DBT XEF PHE PLS PRT TPH ITV PHN LUX ATO SFR MEO OMN HUI XEC DRE MOB ATL TCL VD2 VDF AMO FTM NEE SEB HTS XEO ROM BGL XEH XGREZ ORX OX VDC VDH OU SIO COA COS CRO DCO DNL DTM MAX TMH TMS TMZ TNL TPL BOG MOT O2C SIM TIM VIP SMP TSI

Still don't work. It says Unable to find firmware for SM-S908B/DBT
 

Just Call Me Lucifer

Senior Member
May 12, 2009
238
131
Nijmegen
Same issue. searching for S22+ SM-S906B/EUX gives error 102. It used to work untill about 2 months ago. Oh, and EUX is absolutely the correct CSC for S22 and S23 series in the European Union region.
 
  • Like
Reactions: mk2soldier

iBowToAndroid

Account currently disabled
Nov 9, 2010
5,869
1
1,840
Twin Cities MN
Same issue. searching for S22+ SM-S906B/EUX gives error 102. It used to work untill about 2 months ago. Oh, and EUX is absolutely the correct CSC for S22 and S23 series in the European Union region.
But EUX can't currently be pulled for some reason

DBT is not a valid CSC.

Valid CSCs for pulling from Frija (apparently with the exception of EUX) can be found here:

 
  • Like
Reactions: mk2soldier

Top Liked Posts

  • There are no posts matching your filters.
  • 4
    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
    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!
    1
    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
  • 307
    * * * 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