# TizenBrew Welcome to TizenBrew! TizenBrew is a way to experience modded websites (like [TizenTube](https://github.com/reisxd/TizenTube)) and you can install newer apps without having to deal with Tizen Studio multiple times. TizenBrew is a modular system, meaning you can install new modded websites and apps without having to mess with Tizen Studio. ## Installation To install TizenBrew, you need to have a Samsung TV (Tizen) device that has at least Tizen 3.0 (2017 or newer). There are four ways to install TizenBrew. ### PREFERRED: Using TizenBrew Installer This is the easiest method and works on every Samsung TV released since 2017. #### 1. Set the Host PC IP Address to your PCs IP 1. Open **Apps** or **App Settings** on your Samsung TV. 2. In the **Apps** panel, enter `12345` using your remote control or the on-screen keypad. 3. A *Developer Mode* configuration popup will appear: - Switch **Developer mode** to **On**. - Under **Host PC IP**, enter your PCs IP. 4. Click **OK**. 5. Reboot your TV. For more details, see [Step 1 here under “Connecting the TV and SDK”](https://developer.samsung.com/smarttv/develop/getting-started/using-sdk/tv-device.html#Connecting-the-TV-and-SDK). #### 2. Download and run TizenBrew Installer Desktop on your PC 1. Download the [latest executable file for your OS](https://github.com/reisxd/TizenBrewInstaller/releases/latest) from the TizenBrewInstaller repository. 2. Run the executable If you're on macOS or Linux, you may need to run the file from the terminal and may need to run `chmod +x tizenbrew-installer-os-arch` #### 3. Install TizenBrew 1. Click **Install TizenBrew** to install TizenBrew. > **Note:** If you're on **Tizen 7 or above**, you’ll be prompted to sign in to your Samsung account. Follow the on-screen instructions to create a Samsung certificate. > Did you know that you can install other apps (such as Jellyfin, Moonlight, etc.) from TizenBrew Installer? All you need is either the GitHub repository (in the format of `user/repo` or WGT/TPK file (TV version of TizenBrew Installer only, you can install it from TizenBrew Installer Desktop.) ## Other Installation Methods ### Using USB Demo Package This method is now deprecated as USB Demo Packages cannot be made anymore due to Samsung shutting down the service. ### Using The Command Line 1. Install Tizen Studio by following the instructions [here](https://developer.samsung.com/smarttv/develop/getting-started/setting-up-sdk/installing-tv-sdk.html). 2. Connect to your TV using this [guide](https://developer.samsung.com/smarttv/develop/getting-started/using-sdk/tv-device.html). 3. Download the latest TizenBrew Widget from the [releases page](https://github.com/reisxd/TizenBrew/releases). 4. Check if the TV is connected by running: ```bash sdb devices ``` Note that sdb is in `C:\tizen-studio\tools` on Windows and in `~/tizen-studio/tools` on Linux. 5. Install the TizenBrew Widget by running: ```bash tizen install -n path/to/TizenBrewStandalone.wgt ``` Note that tizen is in `C:\tizen-studio\tools\ide\bin` on Windows and in `~/tizen-studio/tools/ide/bin` on Linux. 6. Set the Host PC IP address to `127.0.0.1` by following [this](https://developer.samsung.com/smarttv/develop/getting-started/using-sdk/tv-device.html#Connecting-the-TV-and-SDK) 7. You can now launch the TizenBrew app on your TV. ## Resigning TizenBrew To resign TizenBrew, you need to have Tizen Studio installed on your system. You can install Tizen Studio from [here](https://developer.samsung.com/smarttv/develop/getting-started/setting-up-sdk/installing-tv-sdk.html). You also need to have a Samsung certificate. First connect to your TV by following [this](https://developer.samsung.com/smarttv/develop/getting-started/using-sdk/tv-device.html). You can create a Samsung certificate by following [this](https://developer.samsung.com/smarttv/develop/getting-started/setting-up-sdk/creating-certificates.html). You'll also need to have the TizenBrew package. You can download the TizenBrew package from the [releases page](https://github.com/reisxd/TizenBrew/releases/latest). After you have all the requirements, you can resign TizenBrew by following these steps: 1. Run the following command to resign TizenBrew: ```bash tizen package -t wgt -s -o ./resigned -- path/to/TizenBrewStandalone.wgt # Example # tizen package -t wgt -s MyProfile -o ./resigned -- path/to/TizenBrewStandalone.wgt ``` Note that tizen is in `C:\tizen-studio\tools\ide\bin` on Windows and in `~/tizen-studio/tools/ide/bin` on Linux. 2. Install the resigned TizenBrew by running: ```bash tizen install -n ./resigned/TizenBrewStandalone.wgt ``` 3. Set the Host PC IP address to `127.0.0.1` by following [this](https://developer.samsung.com/smarttv/develop/getting-started/using-sdk/tv-device.html#Connecting-the-TV-and-SDK) 4. You can now launch the TizenBrew app on your TV. ## Rebuilding TizenBrew To rebuild TizenBrew, you need to have Node.js installed on your system. You can install Node.js from [here](https://nodejs.org/). You also need to have Tizen Studio installed on your system. You can install Tizen Studio from [here](https://developer.samsung.com/smarttv/develop/getting-started/setting-up-sdk/installing-tv-sdk.html). 1. Download the source code from the [releases page](https://github.com/reisxd/TizenBrew/releases/latest) (zip file) or clone the repository by running: ```bash git clone https://github.com/reisxd/TizenBrew.git ``` 2. Open up the `tizenbrew-app/TizenBrew/service-nextgen/service` folder in a terminal and run: ```bash npm install npx @vercel/ncc build index.js ``` 3. Open up the `tizenbrew-app/TizenBrew/tizenbrew-ui` folder in a terminal and run: ```bash npm install --force npm run build ``` 4. Open up Certificate Manager by going to `Tools > Certificate Manager` and create a new Samsung certificate. See [this](https://developer.samsung.com/smarttv/develop/getting-started/setting-up-sdk/creating-certificates.html) for more information. 5. Change the Host PC IP address to your PCs IP by following [this](https://developer.samsung.com/smarttv/develop/getting-started/using-sdk/tv-device.html#Connecting-the-TV-and-SDK) 6. Open up the `tizenbrew-app/TizenBrew` folder in a terminal and run: ```bash sdb connect tizen build-web -e ".*" -e "node_modules/*" -e "package*.json" -e "yarn.lock" tizen package -t wgt -o ./release -- .buildResult tizen install -n ./release/TizenBrewStandalone.wgt ``` Note that tizen is in `C:\tizen-studio\tools\ide\bin` on Windows and in `~/tizen-studio/tools/ide/bin` on Linux. Add it to your PATH or run it using `C:\tizen-studio\tools\ide\bin\tizen` on Windows and `~/tizen-studio/tools/ide/bin/tizen` on Linux. sdb is in `C:\tizen-studio\tools` on Windows and in `~/tizen-studio/tools` on Linux. Do the same for sdb as you did for tizen. 7. Change the Host PC IP address to `127.0.0.1` by following [this](https://developer.samsung.com/smarttv/develop/getting-started/using-sdk/tv-device.html#Connecting-the-TV-and-SDK) 8. You can now launch the TizenBrew app on your TV.