[SuperR Kitchen] SuperR.:
Troubleshooting/FAQ:

When asking for help, please provide as much of the following info as possible so I can help as easily as possible. I am a busy person and would prefer not to ask all of these questions every time someone has a problem. Thank you for understanding.

What Kitchen version?

What environment are you running the kitchen in (OS, 32/64-bit, cygwin, Bash on Windows, etc.)?

What device are you working on (make/model)?

What was the source you started from (system.img, system.ext4.tar, rom.zip, etc.)

What Android version?

What perm method (set_perm, set_metadata, sparse_dat, raw_img)?

What did you do after extracting and before building?

Were there errors on the screen if you scroll up in the terminal?

Send a recovery.log after flashing if you have problems flashing the ROM.

Send a link that does not require registration to the files you started with (nandroid, system.img, boot.img, etc)

Use the support option in the Misc Tools menu and attach the support.zip to your post.

Ubuntu4Kitchen

An Ubuntu 16.04 distro with all the things you need to get the kitchen working easily.

Visit the dedicated thread here

Language Files (translations)

English - Default/Included in the kitchen

Download additional language files here

Once the language zip has been downloaded, extract to /kitchen/tools/language and restart the kitchen.

Does this kitchen support Windows CYGWIN?

CYGWIN is not supported and will not work. Try the donate kitchen for Windows, Linux, and Mac.

WSL (Bash on Ubuntu on Windows)

WSL is not supported in the free kitchen and will not work. Try the donate kitchen for Windows, Linux, and Mac.

Which perm type should I choose?

Here is a very brief summary of set_perm, set_metadata, sparse_dat, and raw_img.

set_perm : The oldest of the 4. Sets file/directory permissions when flashing a rom. Not recommended for KitKat and above.

set_metadata: Also sets file/directory permissions when flashing a rom, but also adds file contexts. It was introduced with selinux in KitKat. Recommended for KitKat and above.

sparse_dat: The newest of the 4, and only works on Lollipop +. The permissions, symlinks, and file contexts are all added inside a sparse image. A sparse image is an image with a more efficient space usage. Only for Lollipop and above. The free kitchen uses AOSP permissions/capabilities when building system.img. If your device requires different permissions, this method will not work for you in the free kitchen.

raw_img: This is literally raw images that are flashed to your device. The permissions, symlinks, and file contexts are all added inside the raw image. Works for all Android versions. The free kitchen uses AOSP permissions/capabilities when building system.img. If your device requires different permissions, this method will not work for you in the free kitchen.

Flashing error:

This package is for "xxxxx" devices; this is a "yyyyy"

The problem is the asserts and it is easy to fix. In the kitchen menu, go to ROM Tools > Asserts > Add/Remove device asserts. At the bottom it will say "xxxxx". Edit the line to say "xxxxx,yyyyy" and press enter. Build your rom again and flash.

Why is my ROM zip so small?

blkdiscard failed: Invalid argument

These are generally due to the partition size detection method. You need the correct partition size for ALL partitions you are creating sparse dat and raw_img images for. The kitchen will ask for each one that is included in your rom when you choose to build the full rom zip. If none of the provided auto-detect methods work, you will need to find the partition size on your own and enter it manually in the kitchen.

Root problems?

You can replace the SuperSU.zip and Magisk.zip in the kitchen with any flashable SuperSU/Magisk version you want. It is located in kitchen/tools/root/root_zips. Delete the one that is there (if it exists) and add yours. Then, unroot, re-root and your replacement will be used.

Auto check for updates when kitchen starts

To enable the auto update check, go to "Check for updates" in the main menu. After it checks, you will be asked if you want to enable it.

I added root and busybox but there is no su or busybox in my project. Why?

The kitchen does not add Busybox or SuperSU/Magisk files to the project. Instead it adds flashable zips inside the rom.zip. There are many variables to deal with (Android version, device architecture, manufacturer, system/systemless, etc.). Flashing the zips with the rom accounts for all of these variables and there is no reason to re-invent the wheel.

Debloat and custom debloat

There are 2 options in the debloat menu (besides knox which is self explanatory):

1) Debloat ROM

This option removes all files included in the kitchens standard bloat list file - /kitchen/tools/root/bloat

2) Custom Debloat

This option removes all files included in the bloat_custom file - /kitchen/tools/root/bloat_custom OR kitchen/superr_project/00_project_files/bloat_custom

This file is empty by default and is there for you to add whatever you want to remove. You can either add everything you want to remove and use only option 2, or you can add new files here and use option 1 and 2.

I suggest you take a look at /kitchen/tools/root/bloat to see the format of the listed bloat files. Use the same format for the bloat_custom file.

When you use either option, the files are not deleted. Instead they are moved to the 00_project_files directory in case you want to restore them later.

Deodexing

Deodexing Samsung roms may or may not work. If your rom does not boot after deodexing, try it without. If it works and you must deodex your rom, try a different tool. I hear svadev deodex tool works well for Samsung roms.

boot.img errors

If the kitchen gives you errors about unpacking boot.img, there is a good chance I will not be able to help. I suggest you figure out how to unpack it using Linux commands/binaries and let me know how you did it. You may also find a tutorial about how to unpack your boot.img. If so, please send a link. It does not help me to know another tool works. I need the commands/binaries used in order to update the kitchen.

Feel free to upload your boot.img AND the build.prop from the same rom so I can check to see if I can fix it. I will ignore you if you don't upload both mentioned files :)