yashsingh1/xdaforums huggingface dataset:
[SuperR Kitchen] starbucks2010:
Have you tried to shorten the path? Just a wild guess.
[SuperR Kitchen] JochenP:
exacly that what i have seen in my various installations - if i remember correctly :silly: there was a problem with my user rights or/and JRE.

Please try first to uninstall and reinstall java (8 Runtime and Policy Tool ) - error messages are raining for me :(

and you can test an old superr (or comment ROOT-test line 6518 and 6519 on v.1.0.3.7 - i hear SuperR crying :cool:) WITH superSU as root and test if these errors occours

my path is as long as yours - i believe it is not a problem

i hope this helps
[SuperR Kitchen] asc1977:
Reinstall and install java without problems and will not work again. I am so sad now. Why kitchen not work
[SuperR Kitchen] JochenP:
I am sure, you have also checked main.log? If there is still a java problem then java writes a large number of errormessages in this log.
[SuperR Kitchen] bcrichster:
Are you using gitclone to install kitchen or downloading the zip?. I use gitclone without flaws

Blissin' the LP on my Warp Sync N9515
[SuperR Kitchen] asc1977:
I found error. I have to install java 7 additional to java8. Then try with a new kitchen download and it works because download new depencies. Dont know why with java 8 alone not work. Main thing is it work now
[SuperR Kitchen] fitosanitarium:
Partitions size in bytes

Hi ! How can I get the size of system partition in bytes?
[SuperR Kitchen] SuperR.:
You are probably better off letting the kitchen do it via adb or let the kitchen get it from an existing system.img for your device. You can also look for a device tree for your device and get it from there. Otherwise, Google can help you figure it out with a quick search :)
[SuperR Kitchen] fitosanitarium:
I have a Nexus 7 2013..when i use adb partition detection from your kitchen the resulting zip rom occupies few Mb... No luck with the others detection methods too
[SuperR Kitchen] SuperR.:
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 880803840

Found in the Nexus 7 2013 device tree as mentioned in my previous post.
[SuperR Kitchen] Sectoras:
deleted
[SuperR Kitchen] Dior DNA:
I run v1.0.3.7 on gentoo linux and get

"the kitchen should not be run as root "

v1.0.1.9 however did not have such limitation.

When did this change get introduced and what is the reason behind it?

Thanks
[SuperR Kitchen] Captain_Throwback:
Please search before posting.

I found this post by searching the thread (using Tapatalk, no less) on the term "run kitchen as root."
[SuperR Kitchen] SuperR.:
There is no reason to run the kitchen as root. Run as a normal user and the Kitchen will ask for your sudo password when elevated privileges are required.

The reason is that some things will not work properly when run as root and some things require root. Not running as root is the only way to satisfy both requirements.
[SuperR Kitchen] Dior DNA:
Thanks for explanation !

I had searched for it but had not found....
[SuperR Kitchen] fitosanitarium:
[MENTION=718594]super[/MENTION]R

If you extract kitchen's zip in a folder with spaces in it's name (e.g: xxx yyy)... then superr script won't work!
[SuperR Kitchen] SuperR.:
Linux terminal is not a fan of spaces in file names or directory names. It is good practice to get out of the habit of using spaces. I use _ instead of spaces without exception. I could wrap every command in quotes within the kitchen to get around this, but I would rather educate than work around. I have already worked around the possibility of someone using spaces in project names, rom names, and everything else a user may type into the kitchen by automatically replacing typed spaces with _.

To summarize, don't run the kitchen (or any other script for that matter) in a path that contains spaces :)

edit: to add a bit more info, you can use periods (.) as separators in Linux without issue. Unlike Windows, Linux does not care about periods or extensions. For example, thisisatest.zip, thisisatest, and this.is.a.test are all recognized as zip files in Linux (assuming they are in fact zip files of course).
[SuperR Kitchen] jinconstantine:
Working in Ubuntu 14.04 LTS

[MENTION=718594]super[/MENTION]R

Managed to get it working with Ubuntu 14.04 LTS :D

One Problem though :(

What are the common ways on how to get bytes information for system and data? :confused:

I hope you can help me cause i don't have the two devices that im trying to port ........... :fingers-crossed:

Thanks again and more Power!!! :laugh::D:o:)

P.S.

And also just to let you know i used complete TWRP backup files (not-zipped)for my Base ROM and i used SP Flash Tool Dump (zipped) for my Port ROM

WARNING:

If you Choose "enter manually" and did not put any number and hit enter, it will say does not have enough memory :rolleyes:
[SuperR Kitchen] SuperR.:
v1.0.3.8

Changes:

Add mkbootimg.exe symlink to mtk-tools directory if using cygwin.

Improve java version detection.

Added check for spaces in the kitchen path and give error message if any exist.

Added check to make sure partition size is not empty when choosing to enter it manually.

Added check to make sure by-name is not empty when choosing to enter it manually.
[SuperR Kitchen] bcrichster:
SuperR slammin'!

Sent from my Gummy N9515
[SuperR Kitchen] robsonsilva:
[MENTION=5787964]SuperR.[/MENTION] I love your kitchen and also linux. Could you tell me how do I change the id of the rom? When I create the zip changes to build with your kitchen.
[SuperR Kitchen] jbfountain:
If you donate $50 to SuperR then you will get the ability to change the name.

Just kidding of course. I couldn't resist.

I just started using SuperR's Kitchen, so I can't help you. I am so impressed with this tool that I'm going to donate to him even though I haven't built anything yet.

Thank you so much [MENTION=5787964]SuperR.[/MENTION]

Edit: 5UG14199VB1386057 there you go.

Using XDA to unleash the power of Android on my S6 Edge Plus & HTC One M9
[SuperR Kitchen] bcrichster:
[MENTION=5787964]SuperR.[/MENTION] Where IS your donations link?!
[SuperR Kitchen] jbfountain:
I couldn't find it either on my phone. I even went to his profile. I had to use my computer, and there it was. There's a Donate to Me button in the OP. It's strange that you can't see it from the mobile app.

Using XDA to unleash the power of Android on my S6 Edge Plus & HTC One M9
[SuperR Kitchen] robsonsilva:
Thank you. Surely he deserves donations is the best tool I've seen. I'm moving to another city now to university but so stabilize I will make my donation. Sorry for the noob question but change it on the script? You also know when to say why debloat I say you're busy (terminal)?
[SuperR Kitchen] andy_zhang:
I Very like superrs tool,can you add repack &unpack system.new. dat ？

vs985 China user
[SuperR Kitchen] andii_nr:
[MENTION=5787964]SuperR.[/MENTION] thanks Sir for your tools .. I use for deodex lollipop with terminal emulator android :D
[SuperR Kitchen] fitosanitarium:
Deodexing causes force closes on first boot!

[MENTION=718594]super[/MENTION]r

I've used both deodex methods...but no luck, on first boot, where it asks for wifi connection datas : Unfortunately google play services has stopped!

kitchen 1.0.3.8

Arch linux (openjdk 7 installed)

Motorola Nexus 6

working on system.img boot.img from 6.0.1 factory images mmb29v (latest)

sparse_dat permissions

Later I'll post logs and more if you want

P.S: If I don't deodex the rom everything is just fine

Thanks for your good work
[SuperR Kitchen] dkionline:
Cant unpack TWRP backups.
[SuperR Kitchen] SuperR.:
It already does

I had no idea it worked in terminal emulator :)

There is not much I can do about deodex issues. You can scroll up and check for errors, and look in the deodex.log for errors. Once you find them, you can open an issue with oat2dex or smali github (depending on the method you chose). The next version will have the newest versions of both which may help.

Please upload the TWRP backup you are having trouble with and I will take a look.
[SuperR Kitchen] dkionline:
Heres the Backup. https://mega.nz/#!jhB2nISZ!1m5aDHgQ2JgJryeYninPpZ6RLF1Owlzn29n-KSD4db0
[SuperR Kitchen] SuperR.:
The problem is that system_img.emmc.win is a system.img, not a tar file like standard TWRP backups. Rename it to system.img and extract that instead. I will add a check for this type of file in the next release.

edit: You will have a problem getting the by-name directory from the boot.img as well. I have no idea how to unpack it since it is not the same as the other Sony kernel.elf files I have seen before. If you figure out how to unpack it, please let me know so I can add it to the kitchen. Thanks
[SuperR Kitchen] andii_nr:
[MENTION=5787964]SuperR.[/MENTION] where I can contact you sir ? I need help about this tools
[SuperR Kitchen] starbucks2010:
[MENTION=5787964]SuperR.[/MENTION] I tried to deodex an MM rom for S6 E+ but the tool couldn't unpack my system.img taken out of the original .tar file. Once a did simg2img on that system.img the tool was able to continue (option 4). Is it the regular behavior or I did something wrong?

Thank you.
[SuperR Kitchen] SuperR.:
You can contact me in this thread :)

It is not standard behavior. It is strange actually, because the kitchen uses simg2img before doing anything else to the system.img. If it is already raw simg2img fails and the kitchen moves on to unpack it. If it is sparse, it will convert it to raw and then unpack it. If you send me a link to the original firmware I will take a look.
[SuperR Kitchen] andii_nr:
OK sir . but sorry sir I modify your script for work with android bcz I don't have PC . can you test it sir ?
[SuperR Kitchen] starbucks2010:
Here is the link

Thank you.
[SuperR Kitchen] dkionline:
i can unpack system with linux reader and kernel should be a boot.img. Only official builds have kernel.elf, all test or concept have boot.img.
[SuperR Kitchen] SuperR.:
I am not ready at this time to support the kitchen using Android Terminal Emulator. Feel free to post your changes or do a pull request, but I may not do anything with it at least for a while.

This link is taking a very long time to download. I will take a look when it completes.

As I said before, the kitchen will unpack the system without issues if you rename the file to system.img. I am not sure what to tell you about boot. The kitchen will not unpack it using the standard boot.img method or the kernel.elf method. If you figure out how to unpack boot using Linux please let me know.
[SuperR Kitchen] andii_nr:
Thanks a lot Sir. do I get permission to make a few changes?
[SuperR Kitchen] SuperR.:
You can make any changes you want to your copy of the kitchen. If you get everything working, send a pull request on Bitbucket so I can review it.
[SuperR Kitchen] bcrichster:
This is seeming very promising and I'm excited that this could be done. I thought once before about the possibility of this becoming a reality since I used to do almost all Theming/Modz on my device from my device. [emoji41] It'd be a trip if the Android side worked better than the Cygwin everyone supposedly loves so much, Lmao. [emoji23] Props as well to [MENTION=6532371]andii_nr[/MENTION] if he gets it kicking.
[SuperR Kitchen] andy_zhang:
ERROR:

There was a problem unpacking your boot.img.

Press ENTER to continue

bootimg address

http://pan.baidu.com/s/1geebiCz
[SuperR Kitchen] jinconstantine:
Feature Request

I think there is 1 more feature that will put this powerful application to GREATNESS!!!!!:o:o:o:o

Generate correct Updater-script and Update-Binary and Sign ROM ZIP separately at will

Does not actually have to build the ROM ZIP for us.................... just have to give us the correct updater-script, update-binary and correct signature of "ROM-ZIP" >>>>>>>>>>>>>>>> to be extracted in a single Folder for example :) :D:D

Requirements:

Android Phone with ROOTED STOCK ROM to be USB connected to SuperRs Kitchen using PC or Linux :silly::silly:

PS.

an option where in we can choose not to Zip-Align if ROM's not yet De-odexed

Thanks Again More Power:good::good::good:
[SuperR Kitchen] SuperR.:
The kitchen already uses the only methods I know of to unpack boot.img. If you figure out how to unpack yours, please let me know and I will try to add it to the kitchen.

As far as I can tell, the only thing you mentioned that the kitchen does not already do is have an option to sign a rom zip without building a rom. I will add this feature to the next version.
[SuperR Kitchen] andy_zhang:
I can unpack & repack my boot with using the Android.Image.Kitchen.v2.4-Win32.zip.

http://xdaforums.com/showthread.php?p=36067074

Sir, you can test it.

vs985 China user
[SuperR Kitchen] SuperR.:
The link you sent for your boot.img is not working. Please send a different link and include your build.prop.
[SuperR Kitchen] andy_zhang:
I will send screenshot in night.

vs985 China user
[SuperR Kitchen] fitosanitarium:
debloat_custom message

[MENTION=718594]super[/MENTION]r

When I run custom debloat:

Removing bloat ...

mv: cannot move '/home/archibald/Chef_Central/SuperRs_Kitchen_v1.0.3.8/superr_shamu/.' to '/home/archibald/Chef_Central/SuperRs_Kitchen_v1.0.3.8/superr_shamu/00_project_files/debloated_files/./.': Device or resource busy

and then:

Bloat has been moved to:

/home/archibald/Chef_Central/SuperRs_Kitchen_v1.0.3.8/superr_shamu/00_project_files/debloated_files

and it says BLOATED in red

But the bloated has been removed!

Thanks
[SuperR Kitchen] JochenP:
MISSING DEPENDENCY:

You need at least Java 7 to use this kitchen.

I have tested v1.0.3.8 today but it is looping within depency-test of "openjdk-7-jre" (OpenJDK Java 7 Runtime is installed in Ubuntu-Software-center)

regards
[SuperR Kitchen] andy_zhang:
Boot and build

http://pan.baidu.com/share/link?shareid=3152468233&uk=4164162834

vs985 China user
[SuperR Kitchen] andy_zhang:
I used this tool, is ok, too.

http://xdaforums.com/showthread.php?p=49187736

vs985 China user
[SuperR Kitchen] SuperR.:
Looks like there is probably a mistake in your bloat_custom file. Take a look at the bloat file in the same directory for reference. If you can't get it working, paste the contents of your bloat_custom file.

I am not able to reproduce this issue and I am also using openjdk-7-jre. This must be a local issue since you are the only one that has mentioned it. Sorry I am not able to help more.

This link also does not work. Please upload to dropbox or google drive. I need your build.prop, the actual file from the same system as the boot.img, not a screenshot of windows cmd.exe.

If you are using cygwin to run the kitchen that may be causing your issue. I have not tested it and will not test it. I have no idea if anything works with cygwin. There has not been any feedback about it at all.

This download took 13 hours to complete and was corrupt once finished. I give up on it. If you upload it to a better server such as dropbox or google drive I will check it out for you.
[SuperR Kitchen] yy1:
Hallo,

i have problem with boot and recovery.iomg

The Error-message here:

"There was a problem unpacking your boot..img." --> in Boot.img Menu

Either your kernel does not support selinux, or the kitchen can't find what it needs. If you are sure your device supports selinux, you can copy the file_contexts file from the ramdisk to your 00_project_files directory to use this feature." --> in Build menu

Here the boot.img and recovery.img for download and test.

The Rom is the Stockrom Samsung Galaxy Xcover3 Germany.
[SuperR Kitchen] andy_zhang:
No cygwin , I only say my boot is used this tool to unbacked.but, I test this tool ( http://xdaforums.com/show...php?p=49187736 ),run well in my boot.

My boot and build address

https://mega.nz/#F!4tBkgCKB!XE64zrPJWNUvbBFVLKJROg

@ SuperR.

vs985 China user
[SuperR Kitchen] starbucks2010:
Here is the Mega link,

Thank you.

PS. You have disabled PM?
[SuperR Kitchen] SuperR.:
v1.0.3.9

Changes:

Updated smali/backsmali.

Updated oat2dex.

Updated mkbootimg/unpackbootimg from [MENTION=4544860]osm0sis[/MENTION] source.

Added support for extracting TWRP system_img.emmc.win files.

Added option in Build Menu to sign existing rom zip.
[SuperR Kitchen] andy_zhang:
Have Solved my boot unpack? ,I will test.

vs985 China user
[SuperR Kitchen] SuperR.:
I tried it and also had a problem. I am not sure why it won't unpack using the standard methods. If you find out how to do it in Linux terminal please let me know.

I did not have any issues extracting this image. The kitchen converted from sparse to raw and then extracted. Not sure what is going on, sorry.

Yes I disabled PM. Too many people messaging me about support. This is the best place to get support :)

Probably not. What I said above applies to you too. Not sure what is going on.
[SuperR Kitchen] andy_zhang:
Thax,just same

vs985 China user
[SuperR Kitchen] starbucks2010:
But, you copied only system.img and boot.img or you copied the entire .tar file into the project_name folder?

Thank you.
[SuperR Kitchen] SuperR.:
I manually extracted system.img and boot.img into the project directory. Then I chose option 4 to extract for new rom. I selected system.img and had no issues at all.
[SuperR Kitchen] asc1977:
Same was for me. Installed new ubuntu. Installed java 7 and 8 and tried v1.0.3.8 and get also that looping. I tried with v1.0.3.7 and it works and installed all. Must be a bug in v1.0.3.8
[SuperR Kitchen] jinconstantine:
Thanks for the reply will be looking forward to it!!!,,, by the way where do you get your database for producing the updater-script needed for building the rom cause i think it will be beneficial if we can help you with that in anyway possible ;) ;) ;)

like maybe by sending you some working updater-script or maybe by attaching our build.prop or my be a way you can get android phones info when we connect our device to SuperRs Kitchen :good::good:

PS. One thing i forgot to mention is that when you build the rom its not interactive..........

i can't remember if it says that it is deodexing the rom before it zipaligns it, i remember that it only says that it is zip aligning it though :confused:

---------- Post added at 09:02 AM ---------- Previous post was at 08:44 AM ----------

Hi Master SuperRs !!!

One Minor Change i think would be needed

Its when the Kitchen needs ROOT Permission to process something (eg. extract info from usb connected android) it will ask you to root it

I think that's good and all right...

but i guess it would be more appropriate if it will say "Verifying if Device is Rooted" rather than saying "Rooting your Device now or Root your Device Now?"

cause the thing is my ROM is already ROOTED :)

PS. One more thing a Power Feature i think will be good for this, add an Option to change the BusyBox and SuperSU Zip,,,

cause i like using Beta version of chainfire SuperSU (BETA-SuperSU-v2.68-20160228150503.zip) and

BusyBox by Stericsson (BusyBox-v1.24.1-Stericson.zip)

Thanks again and more Power this is number ONE Kitchen of all time :D

---------- Post added at 09:24 AM ---------- Previous post was at 09:02 AM ----------

@SuperR.

Is it just me or the system.img gets bigger size when you use the option " Build system.img feature"

Does it matter if it gets bigger or is it totally irrelevant??

https://github.com/EpicAOSP/make_ext4

---------- Post added at 09:35 AM ---------- Previous post was at 09:24 AM ----------

I'm glad you did add the check option here... i encountered this once whe i accidentally pressed on enter without entering anything. :)

hope you can also add a caption (eg. 512mb or 1234678) if it includes mb or just numbers or if its supposed to be in bytes or what :)

More Power again!!!!

A Million Thanks for SuperRs Kitchen number ONE!!!!

---------- Post added at 09:44 AM ---------- Previous post was at 09:35 AM ----------

I TRIED THIS AS WELL AND FAILED!!!

If it will be of any help the boot.img extracted the zimage kernel (not in package format) then it failed to extract ramdisk because it is not in gzip format ;)

I haven't tried it yet but in Linux you may:

lzma -dc ../boot.img-ramdisk.gz | cpio -i

lzma -t boot.img-ramdisk.gz

xz -t boot.img-ramdisk.gz

But i think what really matters is the format of your ramdisk and to verify that in linux:

file <ramdiskfilename>

I forgot to say the problem with this method would be how would you pack it back after successfully extracting it..

I hope this one helps :D
[SuperR Kitchen] Maw2607:
And same for me on archLinux.

V1.0.3.7 ok, v1.0.3.8 java 7 error.

I don't try on v1.0.3.9.
[SuperR Kitchen] JochenP:
since v1.0.3.8 depencies-check changes - i worked around and commented out line 6678 (exit - v1.0.3.9) .

Kitchen checks only at first run for depencies and works for me perfectly.

Please SuperR, take a further look at this ...grep "java version"... - it does not find openjdk-7-jre.

Thank you
[SuperR Kitchen] SuperR.:
For those of you having issues with the java dependency, please run the following in terminal and paste your output:

java -version

I get the following on my machine:

java version "1.7.0_95"
OpenJDK Runtime Environment (IcedTea 2.6.4) (7u95-2.6.4-0ubuntu0.15.04.1)
OpenJDK 64-Bit Server VM (build 24.95-b01, mixed mode)

Thanks
[SuperR Kitchen] JochenP:
java -version output:

openjdk version "1.8.0_66-internal"

OpenJDK Runtime Environment (build 1.8.0_66-internal-b17)

OpenJDK 64-Bit Server VM (build 25.66-b17, mixed mode)

okay, but i have installed also java 7 - this would be ignored and that is the/my problem
[SuperR Kitchen] fhem:
run folowing:

sudo update-alternatives --config javac

i get this

There are 2 choices for the alternative javac (providing /usr/bin/javac).

Selection Path Priority Status
------------------------------------------------------------
* 0 /usr/lib/jvm/java-7-openjdk-amd64/bin/javac 1071 auto mode
1 /usr/lib/jvm/java-7-openjdk-amd64/bin/javac 1071 manual mode
2 /usr/lib/jvm/java-8-openjdk-amd64/bin/javac 1069 manual mode

Press enter to keep the current choice[*], or type selection number:

You can see I have 7 chosen as auto mode.
[SuperR Kitchen] SuperR.:
v1.0.4.0

Changes:

Added support for extracting system.img and boot.img from Samsung firmware zips that include a tar.md5 file.

Added support for lz4 compressed ramdisk.

Hopefully fixed java dependency issue when using openjdk on newer OS versions.

[MENTION=6542293]andy_zhang[/MENTION] - This should fix your boot.img issues
[SuperR Kitchen] JochenP:
Great - java-depencies-problem is gone with last kitchen!

Big thanks
[SuperR Kitchen] andy_zhang:
Thank you. I will test.

vs985 China user
[SuperR Kitchen] Maw2607:
For me too with last v1.0.4.0 everything is ok, the java dependency issue is resolve.

Thanks again for your support and give this kitchen the last up to date files

PS: For info my openjdk version is "1.8.0_74" on my archlinux 64Bits.
[SuperR Kitchen] manojpy:
I am getting dependency error inspite of all dependencies showing updated and choosing y

View attachment 3683509

Is there something to correct this? Any help would be appreciated.
[SuperR Kitchen] SuperR.:
After saying yes to install the dependencies, if there is still a problem building it will ask you if you want to install the binaries. Say yes again and you should be good.
[SuperR Kitchen] jinconstantine:
Do me a favor and do this first before installing SuperRs Kitchen

Type in terminal:

sudo apt-get install gawk lzop bison gperf build-essential zlib1g-dev zlib1g-dev:i386 g++-multilib libxml2-utils bzip2 libbz2-dev libbz2-1.0 libghc-bzlib-dev libsepol1-dev dpkg-dev make

Thats already in the troubleshooting section first page please read

And after that type in terminal:

sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get dist-upgrade -y

Then type in terminal:

sudo apt-get -f install && sudo apt-get autoremove && sudo apt-get -y autoclean && sudo apt-get -y clean

Then install The GREAT SuperRs Kitchen!!! :):o:D

Please Read and do a little research before complaining and lets help our Master SuperR. :D:o:D

Cheers!!!:laugh::laugh::laugh:
[SuperR Kitchen] manojpy:
Thanks. Have used Superr for a long time with out issues and flashed roms successfully on N6 and with all the above dependencies installed. Suddenly faced this problem after updating to 1.0.3.9. Hence wanted some guidance.