yashsingh1/xdaforums huggingface dataset:
[SuperR Kitchen] partcyborg:
Are the make_ext4fs changes present in the paid version? If so is there somewhere I can read to understand exactly what these changes mean? If you don't have docs that's fine just link me the relevant commit(s).

Thank you so much for providing this incredibly valuable software to the community. My soon to be released s8 (snapdragon) rom would not be happening, which would have left the entire community with nothing other than stock to run. So on behalf of the entire XDA s8 root community we appreciate it
[SuperR Kitchen] SuperR.:
The make_ext4fs Oreo changes have been in the donate version for a few weeks.

Here is the relevant commit for the make_ext4fs Oreo bringup:

https://github.com/superr/make_ext4fs/commit/bd6100829e2a9d9a8b951386cb78cc4b7a45237d

The only things updated were the file/directory permissions.
[SuperR Kitchen] ddpanku:
[MENTION=5787964]SuperR.[/MENTION] got this error while installing the binaries for the first time:

ERROR: srk_smali.zip

Can not open the file as archive
[SuperR Kitchen] Albe96:
Hey I Can't Able To Open This Menu-->
[SuperR Kitchen] ddpanku:
start with fresh SuperR after downloading the latest version i.e V 1.1.7.1
[SuperR Kitchen] Albe96:
I did again.But no luck.I can't open that menu..
[SuperR Kitchen] SuperR.:
I assume this is working for you now. Let me know if you still have issues.

Is this problem only on specific firmware or all firmware?

If it's only specific firmware, send a fast link to your firmware that does not require registration and I will take a look.

If it's all firmware, I have no idea since I can't reproduce the issue. If you continue having problems you could try Ubuntu4Kitchen.
[SuperR Kitchen] Albe96:
going to try with other firmware,will let you know the results.downloading ubuntu4kitchen too..
[SuperR Kitchen] ddpanku:
Yeah it worked fine for me.

All things were smooth and okay but when I flashed the ROM it got stuck on the boot logo.
[SuperR Kitchen] Albe96:
[MENTION=5787964]SuperR.[/MENTION] Hey Dude,I don't know why but things getting worst for me,I tried to extract another rom.zip but it says the zip has nothing to extract. . . I don't know why xD! Downloading Ubuntu4KItchen,Hope It Would work
[SuperR Kitchen] SuperR.:
You may be missing permissions. Try set_metadata perm type if you are not already using it. I am also not sure about your boot partition location. In your recovery.fstab it is listed "boot /boot" where your other partitions are listed "/dev/block/mmcblk0p6 /system". You may need to check to be sure how your boot partition should be listed in the updater-script.

It is possible the kitchen does not find what it's looking for in your zip. If it's a twrp flashable rom zip, it should be able to find what it needs. If you still have trouble after installing and running in Ubuntu4Kitchen, send a fast link to your firmware that does not require registration along with a support.zip and I will take a look.
[SuperR Kitchen] Albe96:
Yes,The ROM is My Ryzen ROM V1 Which Is TWRP Flashable.Here's The ROM Link-->https://xdaforums.com/s7-edge/development/rom-ryzen-rom-v1-0-t3667776

Installing Ubuntu4Kitchen. .
[SuperR Kitchen] SuperR.:
The kitchen is looking for a boot.img in your rom and it does not find one. You have what are presumably boot.img's in your zip but they are named differently and the kitchen has no way to know. Use standard names if you want it to be kitchen extractable.
[SuperR Kitchen] Albe96:
Hahaha.I tried! I paste one of them to the location where it should be and renamed it "boot".img which is the original name.Then archived it again and put into the work dir.But still nothing happend.Well,I've installed Ubuntu4Kitchen.I'll try out tomorrow.
[SuperR Kitchen] Albe96:
[MENTION=5787964]SuperR.[/MENTION] I've tried Ubuntu4Kitchen.But no luck... I'm freaking out now.. [emoji28]
[SuperR Kitchen] SuperR.:
I have already explained why your rom won't extract. If you are having issues with other firmware, send a fast link that does not require registration and I will take a look.
[SuperR Kitchen] mwilky:
Hey Superr, long time no speak :)

Getting the below error when trying to create a spars dat for the new oreo s8 beta.

Unexpected argument: system/
make_ext4fs_64 [ -l <len> ] [ -j <journal size> ] [ -b <block_size> ]
[ -g <blocks per group> ] [ -i <inodes> ] [ -I <inode size> ]
[ -L <label> ] [ -f ] [ -a <android mountpoint> ]
[ -S file_contexts ] [ -C fs_config ] [ -T timestamp ]
[ -z | -s ] [ -w ] [ -c ] [ -J ] [ -v ] [ -B <block_list_file> ]
[ -X fs_config (Xtra fs_config will be used in addition to the default android fs props) ]
[ Note: all 'capabilities' will be removed from all other files not explicitly specified ]
<filename> [<directory>]
[SuperR Kitchen] SuperR.:
Hey mwilky :) I am not able to reproduce the error with Nexus 6P 8.0 or 8.1 beta, which are the only Oreo firmware I have laying around. If you send me a link to the s8 Oreo beta I will take a look.
[SuperR Kitchen] mwilky:
to be fair mate i'm getting it on other bases, is there anything i should check my end?
[SuperR Kitchen] Albe96:
Mistake.It did extract but I can't able to open that option which I showed in screenshot.. that's the actual problem.
[SuperR Kitchen] SuperR.:
v1.1.7.2 (Free Bash version)

Changes:

Code cleanup/restructure.

New kitchen launcher with quit and restart options.

Fixed init.d and insecure boot on root owned ramdisk.

Fixed two boot messages that were not showing up.

Updated SuperSU to v2.82 SR5.

Updated Busybox installer by [MENTION=4544860]osm0sis[/MENTION] to latest version.

New update-binary for use in all perm types, patched and compiled by [MENTION=1162986]Captain_Throwback[/MENTION].

Updated smali, baksmali, and oat2dex to the latest commits.

Fixed SuperSU.zip download not working since their SSL cert expired.

NOTE: You should reset your tools (Misc Tools > Reset all tools) after this update finishes and the kitchen restarts.
[SuperR Kitchen] Albe96:
Thanks for this.Will try it out if it solves the problem...
[SuperR Kitchen] Kaiyum:
Hey Superr! Im having trouble all the time with the kitchen..Im sure i must be doing something wrong but i cant figure out what...

What Kitchen version? : 1.1.7.2

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

What device are you working on (make/model)? : Samsung J3 2016 (j3xnlte)

What was the source you started from (system.img, system.ext4.tar, rom.zip, etc.) : system.img + boot.img (Original from Samsung .tar)

What Android version? : 5.1.1

What perm method (set_perm, set_metadata, sparse_dat, raw_img)? : (When i got there without errors) raw_img

What did you do after extracting and before building? : *

Were there errors on the screen if you scroll up in the terminal? : No time to see them / zip.log was empty after building.

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. : was not created

EDIT :

the "build flashable boot" does not create a zip in the project dir - the insecure patching and init.d support passed (without me having checked via flashing yet).

I DO have jdk8

I DO have a non root user running the kitchen

I DO have %wheel running the kitchen

I have latest Arch Linux distro
[SuperR Kitchen] ddpanku:
Got this error:

Installing binaries ...

unzip: cannot find or open srk_linux_tools.zip, srk_linux_tools.zip.zip or srk_linux_tools.zip.ZIP.
[SuperR Kitchen] SuperR.:
I only test in 64-bit Ubuntu 16.04. You may be missing something I am not aware of in Arch Linux. You could try Ubuntu4Kitchen which is set up specifically for running the kitchen. Otherwise, maybe some other Arch Linux users can help you.

I am not able to reproduce this error. Try a fresh clone. Around 250 people have installed the new version so if the tools download was broken I am sure others would have mentioned it as well.
[SuperR Kitchen] Albe96:
Anyway.You call it an error? Are you connected to internet?
[SuperR Kitchen] Kaiyum:
I will switch to the donate repo and retry everything on Arch before deleting 46hours of work to get it to install on a 1pc-2hdd-2OS setup ;)
[SuperR Kitchen] Tkkg1994:
Hey dear [MENTION=5787964]SuperR.[/MENTION]

First off, thanks very much for your kitchen update, it's awesome as always!

This report goes more or less to [MENTION=1162986]Captain_Throwback[/MENTION] since it's about the new binary included in your kitchen.

After testing this binary I got following error:

sysutil: mmap(-911029153, R, PRIVATE, 4, 0) failed: Out of memory
sysutil: Map of '/sdcard/***.zip' failed
failed to map package /sdcard/***.zip

The same zip file, old binary, works 100% perfect.

Yes my file is quite big, around 3.4GB but it normally works awesome. Also the aroma installer even supports up to 4.0GB

Plus yes, my devices has around 50GB of free space, so this can't be the problem either :D

Thanks for looking into this and thanks as well to both of you for your contributions! :good:
[SuperR Kitchen] SuperR.:
Thanks for the report. [MENTION=1162986]Captain_Throwback[/MENTION] is already working on a new update-binary. He will be posting it in the donate thread when it's ready for testing. For now, you can swap it out with one that works for you before building. Sorry for the inconvenience :)
[SuperR Kitchen] levanhau03:
[MENTION=5787964]SuperR.[/MENTION] i rebuild .new.dat for mi5x , but after flashrom some file erro

gps : not work

thememanager : white screen , not work

google play : not work

please fix for work , thanks you
[SuperR Kitchen] KingOfMezi:
Use This, Ami Me It Works Like A Charm On Android 7 New.data

ui_print("|===================================|");

ui_print("| Instalando Custom Rom... |");

ui_print("| Espera Porfavor.... |");

ifelse(is_mounted("/system"), unmount("/system"));

#SYSTEM

block_image_update("/dev/block/platform/hi_mci.0/by-name/system", package_extract_file("system.transfer.list"), "system.new.dat", "system.patch.dat");

mount("ext4", "EMMC", "/dev/block/platform/hi_mci.0/by-name/system", "/system");

package_extract_dir("system", "/system");

ifelse(is_mounted("/system"), unmount("/system"));
[SuperR Kitchen] levanhau03:
i think not scrips , i used scrips
[SuperR Kitchen] SuperR.:
v1.1.7.3 (Free Bash version)

Changes:

Fixed E:unknown command [] at the end of flashing due to tabs in the updater-script (thanks [MENTION=2605798]nkk71[/MENTION] for finding the solution).

Removed getcap and bc dependencies.

Added python2 and python3 dependencies.

Replaced oat2dex latest commit with latest release.

edit: I should mention that your updater-script will not be fixed automatically. New projects will have the fix applied. I suggest extracting fresh if possible/easy. If not, then you can open 00_project_files and delete all files with assert in the name. Then change perm types to something else, then back to what you want. That should sort it out.
[SuperR Kitchen] levanhau03:
[MENTION=5787964]SuperR.[/MENTION]

i build .new.dat , worked but not all

chplay not work ( white screen , pic 3 )

weather not work ( gps fail )

please help me
[SuperR Kitchen] SuperR.:
You are probably missing permissions due to make_ext4fs only setting AOSP permissions. You should try set_metadata.

If you want perfect sparse_dat roms, the donate kitchen has advanced features to allow creating a system.img with permissions from the original system.img you extract. This will build a perfect sparse_dat rom :)
[SuperR Kitchen] levanhau03:
i want donate for you , but I do not use a visa, I have to do to get credit for you
[SuperR Kitchen] bcrichster:
A prepaid credit card (can be gotten in most stores) should work fine. I don't use bank accounts so it works wonderfully and never have to worry about ppl getting into your bank since the only money on that prepaid card is what you intentionally placed on its account
[SuperR Kitchen] levanhau03:
i helped send paypal for him :)

now wait him add acount for me , thanks
[SuperR Kitchen] Albe96:
It seems like I've to do it too in some months.My previous card has been expired.I'm waiting for new..
[SuperR Kitchen] SuperR.:
v1.1.7.4 (Free Bash version)

Changes:

New update-binary compiled by [MENTION=2605798]nkk71[/MENTION] to hopefully fix all update-binary errors/issues.

Removed extra mount command in sparse_dat updater-script (thanks [MENTION=3844620]firefds[/MENTION]).
[SuperR Kitchen] djb77:
Device info for hero2lte (Samsung Galaxy S7 Edge)
[SuperR Kitchen] fitosanitarium:
Supersu zip

[MENTION=718594]super[/MENTION]R

With kitchen v 1.1.7.4 Supersu zip in /superrs-kitchen/tools/root/root_zips folder is only 59 KB... I guess something is wrong with it!
[SuperR Kitchen] djb77:
Here's a few more:

- dreamlte (Samsung Galaxy S8)

- dream2lte (Samsung Galaxy S8+)

- gracelte (Samsung Galaxy Note 8)

:)
[SuperR Kitchen] Albe96:
what are these man?
[SuperR Kitchen] SuperR.:
I am not able to reproduce this. Just did a fresh clone and SuperSU.zip is 6.9MB. Try doing "Misc Tools > Reset all tools"

Device files for the kitchen database. kitchen/tools/devices/
[SuperR Kitchen] djb77:
More device info for the kitchen
[SuperR Kitchen] Albe96:
Good Job Bro!
[SuperR Kitchen] SuperR.:
v1.1.7.5 (Free Bash version)

Changes:

Improved on-device by-name detection in configure.sh by testing the path for system and boot.

Fixed /data not flashing in sparse_dat roms if set_metadata is chosen for /data.

Added Free to the banner.

Added devices: Aqua Air, dream2lte, dreamlte, gracelte, hero2lte, marlin, mido.
[SuperR Kitchen] 曦颜XY:
Hey.my friend,I updated the Chinese translation file just now.Address is my Github,you know:github.com/waitlan. Thanks.:D
[SuperR Kitchen] kleidione:
I want the donation version how do I do it?
[SuperR Kitchen] kleidione:
I'm having this error while trying to open the donation version.

kleidione@CASA:~/kitchen$ ./superr

Traceback (most recent call last):

File "./superr", line 11, in <module>

from srktools import getChar

File "/home/kleidione/kitchen/tools/source/srktools.py", line 9, in <module>

import readline

ModuleNotFoundError: No module named 'readline'

kleidione@CASA:~/kitchen$
[SuperR Kitchen] Fatic:
nice app. we can use this app on windows. with VirtualBox, Putty and linux Debian. follow this tutorial https://www.youtube.com/watch?v=ktedmhWHz2M source https://xdaforums.com/showthread.php?t=2597220
[SuperR Kitchen] ezio84:
Hi!

I'm trying to extract and deodex Angler 8.1.0 system.img with latest Kitchen 1.1.7.5.

Apk extractions went well, but i got errors when deodexing.

So, following this Lineage commit: https://review.lineageos.org/#/c/198090/

i built latest smali and backsmali source from the official github adding all available open pull requests, including the one linked in the commit, and tried to use them with the Kitchen.

Now i get this error for each apk:

... Deodexing CarrierDefaultApp

basename: operando "manifest" in più
Try 'basename --help' for more information.
nessun attributo manifest principale in /home/ezio/Android/SuperRs_Kitchen_v1.1.7.5/tools/smali/current/baksmali-2.2.2-3b37c7cc.jar
nessun attributo manifest principale in /home/ezio/Android/SuperRs_Kitchen_v1.1.7.5/tools/smali/current/smali-2.2.2-3b37c7cc.jar
Unable to add '/home/ezio/Android/SuperRs_Kitchen_v1.1.7.5/superr_angler/system/app/CarrierDefaultApp/oat/arm64/classes*.dex' to '/home/ezio/Android/SuperRs_Kitchen_v1.1.7.5/superr_angler/system/app/CarrierDefaultApp/CarrierDefaultApp.apk': file not found

Any clue on this? Still a smali/backsmali issue?

Thanks.

PS: i've attached to this post the latest smali jar i built.
[SuperR Kitchen] SuperR.:
No clue at all. I have not even looked at 8.1 firmware yet.
[SuperR Kitchen] ezio84:
Maybe infos here can add some light:

https://github.com/anestisb/android-prepare-vendor/issues/110
[SuperR Kitchen] ezio84:
PS: i've noticed that updated smali and backsmali jar i built are missing some stuff in their META-INF folder (even the manifest file is missing a main class line), so i guess that's why i got that "no main manifest attribute" error when deodexing with the Kitchen.
[SuperR Kitchen] NYCHitman1:
Any plans to do so?
[SuperR Kitchen] SuperR.:
The kitchen uses smali/baksmali to deodex, not oatdump as mentioned here. See below for more about 8.1 deodexing

Yes. Just downloaded the firmware. It appears smali/baksmali needs an update for 8.1. I ran this command on an odex file that should list the classes present but instead I get an error:

$ java -jar baksmali-2.2.2-948c0205.jar list dex BasicDreams.odex
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1889910856
at org.jf.dexlib2.dexbacked.BaseDexBuffer.readSmallUint(BaseDexBuffer.java:53)
at org.jf.dexlib2.dexbacked.OatFile$DexEntryIterator.next(OatFile.java:579)
at org.jf.dexlib2.dexbacked.OatFile$DexEntryIterator.next(OatFile.java:570)
at com.google.common.collect.TransformedIterator.next(TransformedIterator.java:48)
at org.jf.baksmali.ListDexCommand.run(ListDexCommand.java:98)
at org.jf.baksmali.ListCommand.run(ListCommand.java:83)
at org.jf.baksmali.Main.main(Main.java:102)

Until smali/baksmali is updated, 8.1 deodexing will not work.
[SuperR Kitchen] ezio84:
That ArrayIndexOutOfBoundsException is fixed with the jar files attached to my previous post, but sadly they still give the missing manifest error. I think i missed something when building them but don't know what eheh.
[SuperR Kitchen] SuperR.:
v1.1.7.6 (Free Bash version)

Changes:

Added support for extracting more Moto firmware.

Added support for fixing Moto system.img with additional superblock.
[SuperR Kitchen] ale8530:
[MENTION=5787964]SuperR.[/MENTION] Meanwhile, thanks for the huge contribution you give to the community, but I would like to know kindly if there is a program in your tool that fixes this problem.

Without this software-->https://github.com/topjohnwu/Magisk...84109259bfbb20ea80/scripts/boot_patch.sh#L144 if not possible start rom OREO, you have an tool who can solve this problem?

The magiskboot program can not be used in the linux environment, so know if you have an alternative.
[SuperR Kitchen] SuperR.:
No. However, magiskboot can be compiled for Linux by someone more experienced in C than myself.
[SuperR Kitchen] ale8530:
Ok thanks :)
[SuperR Kitchen] ale8530:
[MENTION=5787964]SuperR.[/MENTION]

Do you make any fixes for the dm-verity OREO?
[SuperR Kitchen] SuperR.:
v1.1.7.7 (Free Bash version)

Changes:

Added support for removing dm-verity from dtb.
[SuperR Kitchen] SuperR.:
v1.1.7.8 (Free Bash version)

Changes:

Updated checksum for Android Image Kitchen v3.0 by [MENTION=4544860]osm0sis[/MENTION].

Fixed dm-verity status display if fstab exists but dm-verity is in the dtb.

Fixed fstab detection.

Fixed default.prop detection when default.prop is a symlink to /system/etc/prop.default.
[SuperR Kitchen] mattlowry:
im trying to build a rom out of the tmobile Moto z2 force. When extracting the system sparse chunks it always errors out saying "There was a problem extracting your rom" I checked the logs and it says that it doesnt think my firmware is a moto firmware. This device uses the A/B partitioning system so i am wondering if that is why? There are 2 sets of sparsechunks for the system.

im using the ubuntu4kitchen, latest udate to kitchen, moto firmware, android 7.1
[SuperR Kitchen] SuperR.:
Confirmed. It appears the one we want is system.img and not system_b.img. Right now it is combining system.img and system_b.img creating an unusable img. It's true that it does not require the moto fix, even when unsparsed correctly so the message about not being a moto img is correct. However, my use of the word firmware in that message is incorrect lol. Do we need to deal with system_b.img in the kitchen at all?
[SuperR Kitchen] mattlowry:
im not sure. i tried removing the system_b.img from the zip and running again but got the same message
[SuperR Kitchen] SuperR.:
v1.1.7.9 (Free Bash version)

Changes:

Fixed ownership of fstab and default.prop/prop.default when they are changed and exist outside the boot.img.

Fixed extracting Moto firmware that includes system_b.img.

Fixed extracting Moto firmware that uses sparsechunks and standard ext4.

[MENTION=4366343]mattlowry[/MENTION] - Fixed :) For now we are ignoring system_b.img. Let me know if this proves incorrect.
[SuperR Kitchen] mattlowry:
Thanks I will give it a try in the morning !
[SuperR Kitchen] SuperR.:
v1.1.8.0 (Free Bash version)

Changes:

Fixed removing flags following verify when removing dm-verity.

Call /sbin/unzip instead of busybox unzip when installing SuperSU and Busybox.

Happy Holidays!!!
[SuperR Kitchen] ydd0ras:
Hello guys. I am a newbie in terms deodexing and similar actions (but not a newbie in terms other stuff). I have tried this tool tonight, but don't know if i was successful. On the initial setup after the fist reboot i wasn't able to establish any connection.

I am using an Xiaomi Mi A1 with A/B partition system. My intention is to make an deodexed Oreo without Google apps (from a sparse format).

Does someone tried this tool with similar device?

Many thanks!
[SuperR Kitchen] Mennpiko:
I installed the rom but it tells me that when I started in the pixel 2xl , I did not touch anything of the kernel, what could be the error ?, thanks.
[SuperR Kitchen] SuperR.:
I am not sure about deodexing Oreo, but A/B partitions should work properly.

Remove dm-verity from the boot/recovery tools menu, then build and test again.
[SuperR Kitchen] SpyrosMLG:
hello.i am a noob in terms of rom development and things like that(also i do not know any programming language).Will i be able to succesfully use the programm with the help of some tutorials and guides that i found(one of them is this:https://xdaforums.com/showthread.php?t=1661770 )?

thanks in advance
[SuperR Kitchen] shoey63:
Of course! Extract your firmware, make your modifications in system and/or boot, then create a zip. [emoji41]

Edit: That old guide you linked may not be relevant to the latest firmwares.
[SuperR Kitchen] SpyrosMLG:
Okay.Thank you for your information.I will find an updated quide and I will try my best. thank you
[SuperR Kitchen] SpyrosMLG:
i am using kali linux and i tried to install kitchen.but when i download it asks me to download lzop and when i press yes it ask me to restart and then i tells me that i have t download lzop again(please help me im a noob :( )
[SuperR Kitchen] SuperR.:
Kali Linux is not Debian based, so the kitchen package installer will not work. Use whatever package manager Kali uses to install any dependencies the kitchen says you need and you should be good.
[SuperR Kitchen] SpyrosMLG:
well i changed from kali linux to ubuntu(because it is better for noobs) but i still cannot download python 2.i tried to nstall it from the site but it did not work.any ideas what i am doing wrong?
[SuperR Kitchen] SuperR.:
Python2 is already installed in Ubuntu.

If you are looking for an easy way to get this running, why not try Ubuntu4Kitchen?
[SuperR Kitchen] SpyrosMLG:
Okay I will use the ubuntu4kitchen but I still can't understand why it was asking to download puthon2 if it was pre installed.Anyway thanks for your help
[SuperR Kitchen] bcrichster:
Try Linux Mint.. [emoji41] Maybe Mint4Kitchen..??
[SuperR Kitchen] SuperR.:
Mint4Kitchen has not been posted yet due to somebody (not to point fingers... but YOU) not sending that list of extra packages they want included :p
[SuperR Kitchen] kirkalldritt:
noob here too, I'm going to give it a try on my linux box!
[SuperR Kitchen] bcrichster:
Oh crap, I feel ridiculous. [emoji41] I'm gonna get on it right now

[MENTION=5787964]SuperR.[/MENTION]:

List sent on Hangouts
[SuperR Kitchen] ydd0ras:
Thanks SuperR, i think this is complicated for an older guy like me (man of fifty or more :D). I have tried it several times:

- extracted stuff from a system.img

- deodexed the ROM

- and finally repacked to system.img

After flashing the device won't boot. I think, i have so much to learn and start from scratch.

Maybe you can give me a tip someday. Here is the ROM i would like to deodex:

https://xdaforums.com/mi-a1/development/tool-aosp-8-0-ql1515-dec-8-2017-t3722184

Thx

Cheers!