[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] nicholaschum:
Building with SuperR Kitchen for your own stock region ROM

If you're interested in creating your own flashable ZIP based on a ROM, I will be listing the full instructions on how to get your own stock ROM up and running.

I will be building the latest XXU builds as soon as they drop.

Please do not PM me, instead, post in the thread for people to learn.

Prerequisites:

- Your device MUST be of the Exynos variant, with an available TWRP on the device. If you have a Qualcomm device, close this window now!

- You must have a Linux environment. I know [MENTION=5787964]SuperR.[/MENTION]'s kitchen works on Windows using Cygwin, but as an AOSP developer, I work with Linux to build stuff!

- Sudo account

- Collect and utilize as much wits as you can!

- I will be doing all of this from the command line using SSH, no GUI for this!

1) Download the latest SuperR kitchen here: https://xdaforums.com/apps/superr-kitchen/kitchen-superr-s-kitchen-v1-1-50-v2-1-6-t3597434

by doing this (press enter after each line in this code block):

curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
sudo apt-get install git-lfs
git lfs install
git config --global credential.helper cache
cd ~/
git clone https://bitbucket.org/superr/superrs-kitchen.git
cd superrs-kitchen
./superr

The first time running the kitchen, you may need to install dependencies. It should automatically install all dependencies for you, but if it keeps asking you to install the same dependencies, you should install them using

sudo apt-get packageName

.

After all dependencies are installed, press 1 to create a new project, and name it whatever you want. In this example I will name it STOCK.

Press Q once the project is created (quits SuperR kitchen)

2) Download your Samsung stock firmware. There are two main sites nowadays to get Samsung stock firmwares from, including Updato and Sammobile.

Updato: http://updato.com/firmware-archive-select-model?q=SM-G955F&rpp=15&order=date&dir=desc&exact=1

Sammobile: https://www.sammobile.com/firmwares/galaxy-s8/SM-G955F/

You will need to get the firmware on your Linux box, or from Updato, right click Download (the orange button) and click Copy Link.

If you are planning to download from the SSH box, do:

cd ~/superr-kitchen/superr_STOCK && wget link_of_updato

3) Your firmware file is now ready to be loaded up into the kitchen. So do:

./superr

Then click 4 to extract for a new ROM, then click "y"

4) When it asks you whether you want to include cache.img, it doesn't really matter if you do or don't. Click "y" and include it in the ROM.

5) It will then ask you to type a name for your output ZIP

6) If it asks you where to locate the partition info from, pick the entry that is recommended, which takes the partition from system.img and recovery.img (Detect by-name from boot/recovery images (recommended))

So simply click 1.

7) Finally, we must set the perm type/archive type of your images. Click 1 for set_metadata (KitKat+)

NOTE: I have tried using Sparse dat for Korean 955N image - which working at a cost of all Google apps crashing/not responding, but doing so on the 955F ZIP will completely break and cause it to get stuck in TWRP trying to flash. set_metadata is the most stable.

8) You can now fiddle with the ROM! It is highly recommended to replace the stock kernel with [MENTION=6371894]jesec[/MENTION]'s kernel, but make sure you extract his other folders from his ZIP into your working directory (~/superr-kitchen/superr_STOCK/system/*) or you won't boot! You can either opt for this, or just flash the kernel ZIP to retain support from Jesse (this is what I picked for CeX).

Key configurations (the options I picked for CeX):

->7) Boot/Recovery Tools

- Unpack boot.img

- Type 5 and disable forceencrypt

- Type 1 and pack boot.img

->8) ROM Tools Menu

- Asserts Menu (if you're trying to do 955N ROM)

- Add/Remove Device (dream2lte) <- change from dream2lteks or any other model, since TWRP only recognizes dream2lte.

->6) Debloat Menu

- Custom Debloat

- ~/superr-kitchen/tools/root/bloat_custom must be edited to contain these entries (nano ~/superr-kitchen/tools/root/bloat_custom to edit the file):

system/app/Facebook_stub*
system/app/MSSkype_stub*
system/app/SecureFolderSetupPage*
system/priv-app/OneDrive_Samsung_v2*
system/priv-app/SecureFolder*
system/priv-app/SamsungPass_1.1*
system/priv-app/Excel_SamsungStub*
system/priv-app/PowerPoint_SamsungStub*
system/priv-app/Word_SamsungStub*
system/container*

- Remove Samsung Knox

9) You can make external edits by placing files in ~/superr-kitchen/superr_STOCK/system, or do whatever you want with the APKs

10) Let's start building!

If you left the window, all you have to do is do:

./superr
8
7
1

This will get you to the ROM zip building screen.

If the kitchen asks if you would like to convert the updater-script to an updater-binary, do it. Now give it some time to build. Usually my computer takes 2-3 minutes.

11) Finally, you can decide whether you want to sign the ZIP or not. Personally, I do not sign my ZIPs.

If you decide to skip signing, you're done! Just type "n" on your keyboard and click "q" to quit the kitchen. Your new ZIP is located in ~/superr-kitchen/superr_STOCK/STOCK_BASED_ROM.zip

You can either move this to your h5ai server, like I do at http://download.projektsubstratum.com/, or you could use transfer.sh here:

curl --upload-file ./STOCK_BASED_ROM.zip https://transfer.sh/STOCK_BASED_ROM.zip

You could also move it to AndroidFileHost using FTP, if you have a developer account.

This may take a while for the upload to complete, but once it is done, you are ready to flash the four ZIPs:

The ROM

A custom kernel

The CSC utility flasher

Magisk (for SafetyNet)

12) Congratulations, you're done!