Skip to content

Download a Kernel source from Samsung OSRC, directly from your Terminal.

License

Notifications You must be signed in to change notification settings

hendramanudinata03/osrc_download

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

osrc_download

Most of the time it's frustating that we need to download a releases from Samsung OSRC, especially Kernel sources. And if we have a server that we build the source on, we need to upload it into there first. What a time-wasting, right?

Well, this script solves it! With this script, you can download the release directly from your Terminal! No need to download-reupload anymore. Just run, choose the release, and download 😎

Installation

First, we need to install Python 3, PIP, and Git in order to run the script.

For example, for Debian-based Linux distribution:

# apt install python3 python3-pip git -y

Then, clone the repository:

$ git clone https://github.com/hendramanudinata03/osrc_download.git
Cloning into 'osrc_download'...
...
$ cd osrc_download/

Before running the script for the first time, please install required dependencies:

$ pip install -r requirements.txt

Now you can run the script:

$ python osrc_download.py

It will ask you to choose device model and the specific source you want to download. Soon after that, the download will start. Enjoy some snacks or a coffee, because it will take some time.

TODOs

  • Allow uninteractive usage, useful for automation processes (e.g. CI)
  • Require user to choose download directory and/or target file name

Credits

@fourkbomb for his Gist and @Linux4 for his SamsungFirmwareBot component. Really, thank you for the references!

About

Download a Kernel source from Samsung OSRC, directly from your Terminal.

Resources

License

Stars

Watchers

Forks

Languages