yashsingh1/xdaforums huggingface dataset:
[SuperR Kitchen] SuperR.:
I don't understand the problem. Error message? support.zip? Firmware link?

Have you checked if these files are in fact missing? I bet they are.

/home/foo/Build/superrs-kitchen/tools/linux_tools/aapt

/home/foo/Build/superrs-kitchen/tools/linux_tools/7z

Seems like the binaries are not being installed properly or not at all for some reason. No clue why. You can download and install them manually.

Download the binaries zip from here.

Delete the directory /home/foo/Build/superrs-kitchen/tools/linux_tools

extract the contents of the zip into /home/foo/Build/superrs-kitchen/tools/

Try again

You should end up with the missing files (along with others) in the location where the log says they are missing from.

I have no idea why they are not installing properly for only you, but once the binaries are in the right place things should work much better.
[SuperR Kitchen] SuperR.:
As stated in the OP, this kitchen is written in Bash. No clue about zsh as I only test in Bash.

The issues you are having seem to only be happening to you. Perhaps you should try Bash.

edit: in this step:

Choose partition detection method for system

1) Device through adb shell

2) Project directory (BETA): system

3) Enter manually

4) system.img

I always use option #4 if available. The kitchen may have issues finding the correct info using ADB.
[SuperR Kitchen] DoR3M3:
[MENTION=5787964]SuperR.[/MENTION]

SORRY I wasn't paying attention, these are 32 bit binaries, I'm not running multilib...

I found aapt 64bit; (apktool_2.3.3.jar)

https://github.com/iBotPeaches/Apktool/releases

I found zipalign from Ubuntu bionic;

https://packages.ubuntu.com/bionic/amd64/zipalign/download

7z & 7z.so I had on my box, to use instead...

I need a 64bit bootimg and possibly zipalign, not sure that Ubuntu one is good.

Now I've finally reached the end! LOL, but when I try to sign the zip it just spits out;

Error

Something went wrong with the signing

Press ENTER to return to ROM Tools menu

But there's no error messages in any of the logs, is there any file that will tell me why it won't sign the zip?

BIG Thanks :)
[SuperR Kitchen] SuperR.:
Here you go :)
[SuperR Kitchen] DoR3M3:
Now I've finally reached the end! LOL, but when I try to sign the zip it just spits out;

Error

Something went wrong with the signing

Press ENTER to return to ROM Tools menu

But there's no error messages in any of the logs, is there any file that will tell me why it won't sign the zip?

Not sure, maybe it's because the zipalign, is there a 64bit version I can get too?

Since I can't sign the zips, maybe I'm missing a dependency like the libsepol1... hmm

Thanks again...

P.S. While working on this, when I deodex the images I'm getting this in the deodex.log

[ERROR] [11934] 2018/08/28 17:29:28 (vdex_backend_v10.c:455 vdex_process_v10) Unexpected checksum (bba2157e vs c4a00e82) - failed to unquicken Dex file

[ERROR] [11934] 2018/08/28 17:29:28 (vdexExtractor.c:269 main) Failed to process Dex files - skipping 'services.vdex'

[ERROR] [12022] 2018/08/28 17:29:28 (vdex_backend_v10.c:455 vdex_process_v10) Unexpected checksum (54dd737f vs e375e4f6) - failed to unquicken Dex file

[ERROR] [12022] 2018/08/28 17:29:28 (vdexExtractor.c:269 main) Failed to process Dex files - skipping 'wifi-service.vdex'
[SuperR Kitchen] aer0zer0:
Use option 4, it's the only one that builds right (system image and vendor image)
[SuperR Kitchen] DoR3M3:
[MENTION=5447216]aer0zer0[/MENTION] you mean these steps?

Choose partition detection method for system

1) Device through adb shell

2) Project directory (BETA): system

3) Enter manually

4) system.img

Make your selection: 4

Choose partition detection method for vendor

1) Device through adb shell

2) Project directory (BETA): vendor

3) Enter manually

4) vendor.img

q = Quit

Make your selection: 4

[MENTION=5787964]SuperR.[/MENTION] hmm maybe I found out the problem for signing the zip?

~/Build/superrs-kitchen/tools/signapk > java -jar signapk.jar testkey.x509.pem testkey.pk8 /home/foo/Build/superrs-kitchen/superr_Essential/Oreo-8.1.0-Dex.zip Oreo.zip

Exception in thread "main" java.lang.NoClassDefFoundError: sun/misc/BASE64Encoder

at com.android.signapk.SignApk.addDigestsToManifest(SignApk.java:182)

at com.android.signapk.SignApk.main(SignApk.java:468)

Caused by: java.lang.ClassNotFoundException: sun.misc.BASE64Encoder

at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582)

at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:190)

at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)

... 2 more

Hmm this is Java 10, I'll downgrade to 8 and see how that goes...

YES, Java 10 is the problem for signing the zip jre-8u181-linux-x64 worked! ;)

Oreo-8.1.0-Dex-signed.zip has been created. Enjoy!

Press ENTER to return to ROM Tools menu

So last thing! How do I know if zipalign worked? Because I saw the words "cannot" flying past the screen, and it happened so fast, made me feel like it didn't work properly. I still need a 64bit zipalign, if you have one?
[SuperR Kitchen] Fantasymerlin:
Permissions in created system.img (raw ext4)

Hello,

I tried Superr in Ubunto and created a system.img. I set superr with "set-perm" and tried to set in the data file to get the right permission.

I tried to set with root and with su user manually to set the permissions.

In ext4_unpacker I look at a old original image for the Permissions. For example the directories are set to ---rwxrwxr-x (775) and files to ---rw-rw-r-- (664).

My created has get other permissions. I look at the same way and see directories at ---rwxr-xr-x and files at ---rw-r--r--.

I had changed and changed but everytime the permissions are exactly the same. I don´t find the reason.

How I can set the permissions that I get the same as the original or isn´t this important for flashing? I don´t know if this possible with other permissions that after flashing all will work fine.

Thanks for help and informations
[SuperR Kitchen] SuperR.:
Moved your post to the free kitchen thread as that is what I assume you are using.

The free kitchen uses make_ext4fs to build ext4 img files. make_ext4fs creates these images with a standard set of permissions built into the binary appropriate for AOSP. If you want to change the permissions used, you can modify the source code to set different permissions and compile a new binary.

The donate kitchen generates ext4 img files with identical permissions, contexts, and capabilities compared to the original ext4 img file you extracted.

Sorry, somehow I missed the red text. I am using dark theme and the red does not stand out so much.

I have attached 64-bit zipalign :)
[SuperR Kitchen] bcrichster:
The donate version of SuperR's Kitchen is well worth the donation
[SuperR Kitchen] Fantasymerlin:
How and where I have to donate for the Kitchen?

Is it possible with paypal?
[SuperR Kitchen] Sands207:
[MENTION=5787964]SuperR.[/MENTION] i dont have my dev machine at the moment but i do have a pc using FWUL (arch) do you think i would still be able to use the donate kitchen? I'm just wondering about any missing dependencies, i just dont have any other choice or option right now. I hope your well man
[SuperR Kitchen] bcrichster:
Yes, look in OP (1st post) of this thread. Alternative donate link there too
[SuperR Kitchen] SuperR.:
The donate kitchen should run in FWUL as long as it is 64-bit and can run Java (JRE) version 8+. However, I have not tested so I can't say for sure. The donate kitchen has almost no external dependencies besides the JRE :)
[SuperR Kitchen] DoR3M3:
[MENTION=5787964]SuperR.[/MENTION] thanks!

Now I'm trying to figure out the differences of a deodx with Kitchen VS these VDEX & ODEX methods;

https://gitlab.com/Nanolx/NanoDroid/blob/master/doc/DeodexServices.md

Have you seen these before?

On the Essential PH-1 you have both vdex and odex files so you follow the VDEX method and it's very simple, and all you change is the services.jar...

So I'm trying to figure out any PROS/CONS to both methods, if you could share anything on this?

Thanks
[SuperR Kitchen] Sands207:
Excellent, I'll try it in a bit and report back. Thanks again ?
[SuperR Kitchen] weakNPCdotCom:
could try bbqlinux
[SuperR Kitchen] djb77:
[MENTION=5787964]SuperR.[/MENTION]

I've notice an issue with your boot patching tools trying to patch sepolicy.

Up until about July, there's hasn't been an issue with patching sepolicy from Samsung-based boot.img files.

After August it doesn't seem to be able to patch it, it's saying it's already done or can't be done.

I've attached a few different versions of sepolicy, hopefully it helps:

- sepolicy from ERG2 (which was the last version able to be patched, included both patched and unpatched)

- sepolicy from ERI1 (latest sepolicy for Galaxy S7)

- build.prop from ERI1 (just in case)

Hopefully this can help. I'm assuming maybe the patcher needs an update.
[SuperR Kitchen] Sakura:
Hello

I try it for ROM Note 4 N910F with firmware N910FXXU1DRF1_N910FOXA1DRF1_N910FXXS1DQA1_HOME.tar and LinuxMint 18.3 cinnamon

It's the first for me.

I have :

not included cache.img

included SuperSu, BusyBox

Changed updarer Script YES

no odexed and no deodexed

zip création

installation in my phone with TWRP and wipe cache dalvik and wipe data

Installation stop after Settings permissions. impossible to continue installation, phone blocked

Please can you tell me what I have forgotten to do ?

Thank you for your help
[SuperR Kitchen] baloo30310:
Hi [MENTION=5629059]Sakura[/MENTION] possible it's a permission problem

Envoyé de mon SM-N950F en utilisant Tapatalk
[SuperR Kitchen] Sakura:
Yes I think but I don't know how I must do for change permissions.

Can you help me ?

Thank you
[SuperR Kitchen] shadow25:
Hi, need help.

Why I can't see the smali folder when decompile with apktool? Before, I deodex the ROM with this tool and use oat2dex 0.86 and 0.88 but nothing change, same result. Anyone can help me?
[SuperR Kitchen] Sakura:
Hello,

Is it possible To suppress applications with free kitchen ?

If yes can you tell me how I must do ?

Thank you for your help.
[SuperR Kitchen] bcrichster:
Suppress how?
[SuperR Kitchen] Sakura:
I want try to do a rom light with mini applications installed. I prefear choice my applications.

I want suppress : facebook, instagram, evernote, fliboard and other. I don't use and When they are in system after it's difficult to suppress
[SuperR Kitchen] bcrichster:
Oh, no problem. Just remove the apps and rebuild ROM zip
[SuperR Kitchen] Sakura:
Yes but How remove the apps ?

I don'know

Thank's for your help !
[SuperR Kitchen] bcrichster:
Go to Settings/apps or Settings/priv-app and right-click - delete
[SuperR Kitchen] Sakura:
the applications : facebook, instagram sind in the rom inside the system and I can't suppress with setting just stopp or desactived !!:crying:

I should like remove with the free kitchen, is it possible or not ?

if yes with kitchen hows I must do ?

Thank's !
[SuperR Kitchen] Sands207:
The process is the same in the donate or free kitchen! like he said delete the apps you no longer need and build from there. Dont stress! ?
[SuperR Kitchen] Sakura:
yes, but you do not tell me how to do it! I did not find how to add or remove apps. what section in kitchen ?

I tried debloat? is this the process? a long process is displayed, unfortunately no explanation after to say add or delete.

Sorry I'm new to this process and it's not easy. I do not want to lose my phone and I want to learn :)

Thank you for your help and your patience :good:
[SuperR Kitchen] Sands207:
Debloating is one way to do it but in some cases i just open my file manager and go to my working folder inside of my SuperR kitchen folder and go to either system/apps or system/priv-apps and manually delete bloatware like Facebook etc... just be careful not to delete apps that your android depends on to run. You can manually edit your debloat list also using a text editor. Are you on windows, linux or mac?
[SuperR Kitchen] narshi shukla:
You just need to manually delete apps inside system/apps or system/priv-app and system/date-app if any.

If you don't know if a app is important or not just use rom in your device and grab a complete list of apps, it's package names and decide what apps that can be removed. For this u can use various apps and methods, google it.

After deleting all these just build rom using kitchen and flash.
[SuperR Kitchen] Sakura:
I was not sure I could do that and I thought a process in kitchen.

Thank you very much I will try and I hope to succeed in building my rom :)
[SuperR Kitchen] Mixterix Se7en:
Work in archlinux/archlabs?
[SuperR Kitchen] Sakura:
Hello

When I finish my rom build and want to install it with TWRP.

I have to do:

wipe dalvik

wipe cahe or more ?

to avoid problems with the installation.

Is it possible to lose efs and have a problem partition ?

I have read to internet something : Can you tell me what is dm-verity ? It is for the new phone not for Note 4 - N910F ?

Thank you !
[SuperR Kitchen] niaboc79:
hi all,

Anybody has been able to deodex android P?

No luck with Xperia XZ3 :(
[SuperR Kitchen] SuperR.:
It should, but you may need to manually install some dependencies. It will tell you what you are missing if anything.

Normally when you flash a new ROM, you want to wipe data.

I am not familiar with efs.

dm-verity checks if your firmware has been modified from the original. The kitchen will tell you if it is enabled after unpacking your boot.img. It is a good idea to disable it when building custom ROM or it will probably not boot.

Android P deodex is currently not supported in the free kitchen. I will add support when I get more time. The donate kitchen has Pie deodex support right now :)
[SuperR Kitchen] niaboc79:
Thanks

I just sent your a donation ;)
[SuperR Kitchen] Sakura:
I tried again but when I start the installation it does not end. My phone is stuck for a long time. (I see settings permissions....) I do not understand why.

I do in the kitchen

1 copy firmware 6.01 DRF1 in kitchen project

extract for New project

name

files from cache.img ? y/n yes

name zip

which perm you want

1 Metadata

Rom Tools Menu

Root

1 root/unroot

1 let supersu decide

return

2 Busybox

Add to the Rom Yes

6 Debloat Rom

7 Build Menu

installation with twrp : wipe cache dalvik, data, cache.

What I have forgotten ?

Thank you for your help.
[SuperR Kitchen] bcrichster:
Try using raw.img or sparse_dat permissions..??
[SuperR Kitchen] Sakura:
Yes I have tried and not work !

with sparse dat binaries script error 7

and I have forgotten with raw.

Nothing work :crying:

The firmware that I want use is android 6.01. N910FXXU1DRF1_N910FOXA1DRF1_N910FXXS1DQA1_HOME.tar.md5
[SuperR Kitchen] SuperR.:
I am confused. You posted on the donate kitchen thread a while ago and said you made a mistake and you are running the free kitchen. Now you post on the free kitchen thread and say you have done 2 things that do not exist in the free kitchen:

Personnalisation ro.build.display.id

updater-cript to a update_binary yes

Which kitchen are you running and what version?
[SuperR Kitchen] Sakura:
I watched a youtube video Oreo Rom and took notes and mixed with mine. that's why I noticed with? and that I did not find in my kitchen. Sorry. Photo of my kitchen. Sorry I have the LinuxMint with free kitchen. free current 1.1.9.5

Boot Recovery

I must open or not ? inside

3 dm-verity (enable/disable) ?

4 forceenscript (enable/disable) ?

screens free Kitchen

[IMG="Kitchen free"]https://i45.servimg.com/u/f45/19/68/44/32/sans_t14.png[/IMG]
[IMG="2"]https://i45.servimg.com/u/f45/19/68/44/32/sans_t17.png[/IMG]
[IMG="root menu"]https://i45.servimg.com/u/f45/19/68/44/32/sans_t16.png[/IMG]
[IMG="Tools Menu"]https://i45.servimg.com/u/f45/19/68/44/32/tools_12.png[/IMG]

I have other screen

Sorry for my english.

1 copy firmware 6.01 DRF1 in my project

extract for New project

name

files from cache.img ? y/n yes

name zip

which perm you want

1 Metadata

Rom Tools Menu

Root

1 root/unroot

1 let supersu decide

return

2 Busybox

Add to the Rom Yes

6 Debloat Rom

7 Build Menu
[SuperR Kitchen] studywes:
Hi everybody!

How can i launch superr .zip with Ubuntu?

Thank you for help

---------- Post added at 11:32 AM ---------- Previous post was at 11:32 AM ----------

Hi everybody!

How can i launch superr .zip with Ubuntu?

Thank you for help
[SuperR Kitchen] Sands207:
download the kitchen of your choice and then extract it to a convenient place in your file system, open the folder and then right click and select open in terminal and type ./superr and follow the directions. Make sure you have an active internet connection first so you can grab whatever dependencies you may need.
[SuperR Kitchen] sashokmc:
Hello. I have rom Oreo 8.1.

Cannot unpack img.lz4 files. kitchen project didn't see files.

---------- Post added at 01:53 PM ---------- Previous post was at 01:53 PM ----------

Hello. I have rom Oreo 8.1.

Cannot unpack img.lz4 files. kitchen project didn't see files.
[SuperR Kitchen] SuperR.:
The kitchen will take care of the img.lz4 files if you let it extract the full firmware.zip. Do not manually extract anything and it will work.
[SuperR Kitchen] russel5:
[MENTION=5787964]SuperR.[/MENTION] bro, pls update your free kitchen

Since latest vdexextractor have new output name of file, we cant normal deodex firmware.

You not update your kitchen soo long...
[SuperR Kitchen] SuperR.:
You are absolutely right, my apologies. I have recently decided to abandon the Bash kitchen. Sorry everyone, I simply do not have time to maintain two completely different code bases. The donate kitchen is always my priority.

Do not worry :) I am working on a new free Linux kitchen using the donate kitchen as the code base. Instead of writing everything in 2 different programming languages, I can merge the changes from one to the other. This will help keep the free kitchen up to date.

Besides losing support for 32-bit Linux, the new free kitchen will have nearly identical features and usage compared to the current free kitchen. There will not be an upgrade path from free to donate as they are separate applications with separate feature sets. However, new free kitchen projects will be compatible with the donate kitchen if/when someone wants to upgrade.

Once the new free kitchen is released you will gain support for the new vdexExtractor naming scheme, Android Pie deodex, and all the latest fixes from the donate kitchen (too many to name). Additionally, the new free kitchen will only depend on 64-bit Linux, Python3.5+, and Java8+. No other dependencies. This makes installation and troubleshooting on different Linux systems much easier.

My goals here are to provide a better free kitchen and make everything less time consuming for myself. I believe these changes will accomplish both of these goals. Sorry to leave you all without an update for so long. Coming soon ...
[SuperR Kitchen] ErbDroid:
This sounds like a great move overall mate.

But could you leave the final 32 bit builds link up in OP please?

I unfortunately only have a 32 bit system!
[SuperR Kitchen] SuperR.:
I will leave the Bash kitchen up for anyone that wants to continue using it :)

The problem with the kitchen and 32-bit Linux is that Google is dropping support for it nearly everywhere. Right now for example, there is no way to deodex Android Pie on 32-bit Linux. This is because the compact_dex_converter binary can only be compiled within AOSP 9 which requires 64-bit Linux. This means I am no longer able to provide the full kitchen experience on 32-bit Linux systems. Seeing as 64-bit processors entered the consumer market 15 years ago, I will follow Google's (and many others) lead and drop 32-bit Linux support. Sorry for the inconvenience.

Perhaps this would be a good time to consider a new (or newer used) PC? Anything with a 64-bit processor will work :)
[SuperR Kitchen] Cheemaa:
If you want I can link you my laptop. I got it for really cheap and it's a i3 a with a SSD and it runs amazing fast. I replaced DVD drive with a DVD to HDD converter and put a 1tb hard drive in there for storage. And I love my laptop to death[emoji23]
[SuperR Kitchen] ErbDroid:
As I said I totally agree with your move! It REALLY is time to get a new PC! My other devices are up to date (and all 64 bit! Lol) just the final (and expensive!) Device to change now ....a PC!

I'm not worried about pie just yet I still work on nougat (I love it!) and Oreo.

Thank you a lot mate for your time, It is appreciated a lot by me and all the others here!

And once I'm sorted with new hardware I shall grab a donators copy of the kitchen for it too!
[SuperR Kitchen] SuperR.:
v1.2.0.0

Changes:

Complete rewrite of the Free kitchen.

Code based on the Donate kitchen.

Dropped support for 32-bit Linux.

Android Pie deodex support.

Latest vdexExtractor.

Magisk root option.

Many, many more fixes and improvements.

NOTES:

There is no update path from Bash version, a fresh install is required.

The kitchen is no longer hosted on Bitbucket.

Enjoy :)

EDIT: OP updated :)
[SuperR Kitchen] celrau:
Hi, are projects from previous version compatible with 1.2, can I just move them over?
[SuperR Kitchen] celrau:
I never really understood how am I supposed to populate /data/app with applications, just putting apks there doesn't seem to do it, if someone can provide some details, please.
[SuperR Kitchen] studywes:
Hi,

I am trying to extract the last Note 9 firmware RJ4 and i have an error message, 'nothing to extrat in the zip file. All is ok with other rom like RH6 or RJ1 but with the last i have error!Maybe someone can help me?

I have the 1.1.9.5 version!

Edit: i tried the 1.2.0.0 version and i have this error:

Extracting images ...

Traceback (most recent call last):

File "superr.py", line 6880, in <module>

File "superr.py", line 3279, in extract_new

File "srktools.py", line 503, in tarlist

File "tarfile.py", line 1423, in __init__

FileNotFoundError: [Errno 2] No such file or directory: 'AP_N960FXXS2ARJ4_CL14366801_QB20086888_REV00_user_low_ship_meta.tar.md5'

[2113] Failed to execute script superr

Thank you for help
[SuperR Kitchen] SuperR.:
You can move the project over, but you should extract your firmware again. The project file format has changed.

Add /data/app support from the extra directory menu. Add the apk to the new data/app directory in your project. For example, if you have FakeApp.apk, you would add it to project/data/app/FakeApp/FakeApp.apk

v1.1.9.5 is no longer supported.

If you send a fast link to your firmware that does not require registration, I will take a look at extracting it in v1.2.0.0.
[SuperR Kitchen] celrau:
Thanks SuperR.
[SuperR Kitchen] studywes:
Hi Superr,

!Here the last stock firmware samsung for galaxy Note 9!

Thanks a lot for help :fingers-crossed:
[SuperR Kitchen] SuperR.:
The problem is caused by spaces in the file name. Remove them and problem solved. I will look into why this happens, but for now this is an easy fix :)
[SuperR Kitchen] ShevT:
The screen does not redraw. Overlay output. There are no problems with version 1.1.9.5

Ubuntu 18.04.
[SuperR Kitchen] studywes:
Hi superr

Thank you for help!It work very well now... i learn something new today.

Thx for all
[SuperR Kitchen] SuperR.:
I am running Ubuntu 18.04, and the screen does not overlap. What terminal are you using? If not gnome-terminal (default), will you try it there? 1.1.9.5 and 1.2.0.0 are completely separate code bases so their issues are not related.
[SuperR Kitchen] ShevT:
Sorry. Kubuntu 18.04 & Konsole