Giter VIP home page Giter VIP logo

samfirm.js's Introduction

SamFirm.js

A streaming downloader, decryptor and extractor of Samsung firmware.

Getting started

Pre-Requisites

  1. Install NodeJS version Current.

Run

sudo npm i -g samfirm and then samfirm.

Or npx samfirm.

Or build from source.

Build

  1. git clone https://github.com/jesec/samfirm.js.git
  2. npm install
  3. npm run build

Example

> samfirm -m SM-F916N -r KOO

  Model: SM-F916N
  Region: KOO

  Latest version:
    PDA: F916NTBU1ATJC
    CSC: F916NOKT1ATJC
    MODEM: F916NKSU1ATJ7

  OS: Q(Android 10)
  Filename: SM-F916N_10_20201028094404_saezf08xjk_fac.zip.enc4
  Size: 5669940496 bytes
  Logic Value: 611oq0u820f7uv34
  Description:
    • SIM Tray 제거시 가이드 팝업 적용
    • 충전 동작 관련 안정화 코드 적용
    • 단말 동작 관련 안정화 코드 적용
    • 단말 보안 관련 안정화 코드 적용

    https://doc.samsungmobile.com/SM-F916N/KOO/doc.html

/home/jc/samfirmjs/SM-F916N_KOO/
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0% | 41774309/5669940496 | BL_F916NTBU1ATJC_C...

License

Copyright (C) 2020 Jesse Chan <[email protected]>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>.

samfirm.js's People

Contributors

jesec avatar luk1337 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

samfirm.js's Issues

TypeError: Cannot read properties of undefined (reading 'BINARY_BYTE_SIZE')

@jesec @luk1337

Input:

samfirm -m SM-N910C -r XEO

Output:

  Model: SM-N910C
  Region: XEO

  Latest version:
    PDA: N910CXXU2DVH2
    CSC: N910COXA2DVH2
    MODEM: N910CXXU2DVH2
C:\Users\x\AppData\Roaming\npm\node_modules\samfirm\dist\index.js:11590
            binaryByteSize: parsedInfo.FUSMsg.FUSBody.Put.BINARY_BYTE_SIZE.Data,
                                                          ^

TypeError: Cannot read properties of undefined (reading 'BINARY_BYTE_SIZE')
    at C:\Users\x\AppData\Roaming\npm\node_modules\samfirm\dist\index.js:11590:59
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async main (C:\Users\x\AppData\Roaming\npm\node_modules\samfirm\dist\index.js:11575:135)

Node.js v19.3.0

How to fix it?

Unexpected Token Error

/usr/local/lib/node_modules/samfirm/dist/index.js:11557
            ?.find((cookie) => cookie.startsWith("JSESSIONID"))
             ^

SyntaxError: Unexpected token '.'
    at wrapSafe (internal/modules/cjs/loader.js:915:16)
    at Module._compile (internal/modules/cjs/loader.js:963:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)
    at internal/main/run_main_module.js:17:47

  1. Tried npm run build as in the instructions AND npm i -g samfirm
  2. Also Tried wget https://github.com/jesec/samfirm.js/archive/refs/tags/v0.2.0.zip && unzip v0*.zip && cd v0* && npm i && npm run build && npm start

Nothing works... same err

Greetz

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.