yashsingh1/xdaforums huggingface dataset:
[Android] jds3118:
Unfortunately all USA s7 and s7edge phones have no way to unlock the bootloader so that's not an option and stock kernel means no root so that's not an option. I'll figure it out I'll use a different meta-data file from another zip. That I have to flash the engineering kernel and SuperSU. Thanks for the help though...
[Android] gvmiguez:
Hi Assayyed, I had to review the original Aroma because no good colors displayed during installation. It is solved by using this code

##
# Fix Colorspace Issue
#
# For device which have a problem with color ( not display the correct color )
# try to set "force_colorspace" with ini_set. It may caused by wrong framebuffer
# information that passed by kernel into framebuffer device.
#
# You can use one of following values:
# "rgba", "abgr", "argb", "bgra"
#
# NOTE: It must be in top most script, or you will got the color flicker
#
#ini_set("force_colorspace","argb");
#

On my device, S7 Edge G935F I have to use

ini_set("force_colorspace","rgba");
[Android] :
You mean to set the "ini_set" code in the top of "aroma-config"
[Android] gvmiguez:
Yes, at the top of aroma-config, this fix the color issue
[Android] :
Ok for the next release, Thanks for suggestion.
[Android] yogi_78:
Deodex

hello

i cant deodex samsung j510 fn updated build J510FNXXU1API4_J510FNODD1API4_J510FNXXU1APH1.

priv.build deodexed perfectly without any error. Don't know its firmware or kitchen error.

thank you in advance
[Android] :
If you work on android N it's not completely supported.

If you work android M and older ensure from installing the newest java version (8 works fine)
[Android] yogi_78:
j5 2016 with android M & java 7.

i will try with java 8 thank you

working with java8
[Android] Lmax579:
Hello I'm new on this, how would I be able to extract system.img?
[Android] kozmo21:
Just drop the entire ROM zip that you are wanting to work on into the "Place" folder, the Kitchen will do the work for you and do the extraction. Open Kitchen, then select 1, then choose the ROM from Place folder... when it's done, everything will be extracted into the "Work" folder... from there you can now do your editing :good:
[Android] Lmax579:
The problem is that I had to root it via adb, not recovery so Idk if I have a zip
[Android] kozmo21:
You can just hit 1 to start new project, then 1 again to pull from device.

Make sure to make a backup before you try flashing for something to fall back on... or at least have another stock ROM ready to go just in case.
[Android] Lmax579:
Now it's saying I don't have Java installed but I do, and I dont know how to mess with the system variables for java
[Android] kozmo21:
You have jdk 8 installed? Here is link for variables... https://www.java.com/en/download/help/path.xml
[Android] Lmax579:
Thanks man I appreciate it
[Android] laomms:
it's some bug about repack system.new.dat for V1.54 and V1.48

i try repack under v1.45, it's just normal.
[Android] :
Try to re-create it but don't write the size by yourself...

Leave the kitchen creates it using the auto detected size

And if you still have the error build it by writting size bigger than the detected and increase it until success (1300M, 1400M.......)
[Android] yogi_78:
help

i can't compile sstemui.apk .Is there any guide
[Android] :
1-- Ensure from installing the sources before decompiling and compiling

2-- Ensure from the android version and use the correct option for it

3-- Ensure from your edits (you could see the errors in the log after pressing enter)

4-- Attach the error log
[Android] laomms:
for V1.56, everything wok fine, thanks!!
[Android] NightShade:
hello.

How can add a custom recovery (twrp) to rom?

I have the file recovery.img to my phone and i want to add to rom.

thanks.

And thank you for your excelent work ;)
[Android] yogi_78:
Error log

Error log

Using ASSAYYED_KITCHEN_V1.54_STABLE version

thanks
[Android] :
Add the recovery.img to work folder then add this line to the updater-script (in the last) : [package_extract_file("recovery.img", "/your/device/recovery/path");]

From the error log i see there are some errors in the styles.xml file in the systemui, fix them and try again
[Android] awadh730:
Oh My God

Coooooooooooool my bro u did it :good: you immproved Deodexing android N
[Android] Duck1245:
[MENTION=6350858]ASSAYYED[/MENTION] bro I have this error. :crying: :crying:

AN ERROR HAPPENED DURING DETECT SYMLINKS
THIS HAPPENED WHEN YOU WORK ON ZIP DOESN'T CONTENT
THE [update-script] FILE OR WORK ON STOCK IMAGE
DOESN'T CONTENT LOCAL SYMLINKS, THE IS A PROBLEM
HOWEVER, WE WILL CREATE SYMLINKS FROM OUR DATABASE
AND THIS WILL TAKE A LONG TIME PLEASE WAIT...
[Android] :
What the rom you work on? (zip, tar, img.....etc)

The kitchen explained the error's reason for you so you should know the fix easily

Anyway tell me the rom type and if it is a zip send the updater-script to me
[Android] Duck1245:
Bro I'm working over a ROM Stock (.tar)

Thanks for your help
[Android] :
This never happened before... try extract system.img with boot.img and put them in place folder and try create project again from img rom OR try to use another tar rom to know if the error from kitchen or from rom itself and for more info attach a pic for the kitchen screen when finished from unpacking the rom and ask you for the kind of installer.
[Android] Duck1245:
The first time I downloaded the kitchen works well with this ROM, then stopped working, I downloaded the kitchen again and the problem persists. I do not know because it shows that error. :(
[Android] :
Try another rom to ensure from the error and upload the pic as i said before and give me a link for the rom please
[Android] Duck1245:
Bro here is the link http://www.sammobile.com/firmwares/download/97484/G900MUBS1CPI8_G900MUUB1CPC5_COO/

Here is the screenshot when try deodex.
[Android] CrisBalGreece:
Hello [MENTION=6350858]ASSAYYED[/MENTION]! After 10 successful builds with v.1.35 deside to go with 1.54 but after that i thing it's some bug about repack system.new.dat for V1.54. Tried V1.48 too

and I am taking the same. The kitchen just pass the step of creating system. dat! Below v1.45, everything works great! All so the apk tool gives me errors when trying to decompile and recompile the APKs. Maybe you know where to put the framework. recs to make it work? I thing this is the issue! One more thing. How can I make a text inside tools to make a port rom?

Thanks in advance :)
[Android] [GS]:
i cant create new project, after extract kitchen give this error: THERE IS NO PROJECT IN WORK FOLDER CREATE PROJECT FIRST
[Android] s.sunfeihu@gmail.com:
Hello buddy! I deodexed rom for the note 7 snapdragon, notification bar prompts the storage is insufficient and each restart are optimized 300+ applications! You can help me solve it, if resolved, I will donate!
[Android] mafsi:
Use .tar. If your rom is a .zip archive and inside is a .tar one, unpack it and use only .tar in place folder.
[Android] [GS]:
Look attachment pic, its tar file
[Android] [GS]:
Solved. transfero kitvhen folder from Local disc D to C
[Android] :
Errors like space happened when you use cc language on java language and as you know the deodex need java works so i think you deodexed your rom using another tool or using "oatdump" utility from the phone or somthing like that...

So maybe re-deodexing the rom using latest version of the kitchen (oat2dex) will help you (maybe) you need to try
[Android] :
I will download the rom and see.

The picture attached doesn't help me please upload the "TOOLS/tmp/deodex_log.txt" you will find it after the process finished
[Android] Duck1245:
Thanks bro, but my issue is fixed ;) :o
[Android] s.sunfeihu@gmail.com:
I have tested the latest oat2dex.jar and superr tool oatdump, the same problem!
[Android] laomms:
no sign rom menu, how can i sign a exists rom.

i just use menu 7, but can not sign other rom.
[Android] andy_zhang:
If you can increase the choice of language is good?
[Android] gvmiguez:
Hi Assayyed, I have built my rom with sucess, but for me init.d is not working. I dont use the option of init.d on the rom, I only use init.d on kernel, on kernel menu. The kitchen places the init.d folder and patch the kernel, but when I flash the rom it doesnt work. Su.d is working good.
[Android] nalas:
Amazing work [MENTION=6350858]ASSAYYED[/MENTION].

Thx to You
[Android] :
You have one solution... use v1.58 of my kitchen to deodex with latest snapshot oat2dex OR... use v1.56 of my kitchen to deodex with smali/baksmali.

If these two choices don't work i'm sorry i don't have anything more

The kitchen doesn't sign any rom except that built with it so you could simply just extract the rom then rebuild it and sign

If you mean to make the kitchen translatable this feature is hard in windows and maybe will work on it in the future

The kernel init.d doesn't support all devices or all kernels so i added two methods "su and debuggered" you can use them
[Android] Hard_Rock83:
[MENTION=6350858]ASSAYYED[/MENTION] i can tell you the latest version have some issues since i am not able to extract rom the initial step (it crashes)but version 1.1 or 1.3 works perfectly on samsung note 4 roms
[Android] :
what do you mean by "crashes"?

if you read the recent posts you can see some problems during extract the project and the solve for them like changing the kitchen's location or drive.

"issue" word without any info doesn't mean anything for me.

i need more info to know the error with screenshot please
[Android] Hard_Rock83:
ok will check that and let you know...
[Android] amieldl143:
Assayyed is there any way to add selinux permissive option when decompiling kernel and repacking. Thanks
[Android] :
What i know, you need to build the kernel from the source.
[Android] bud7dha:
[MENTION=6350858]ASSAYYED[/MENTION] That kind of warning might want to be placed on the intro page regarding stock sammy kernels. It has come up a few times on this thread.

Thanks for the great kitchen. :good: Just wish I had the skills to remove gapps from TW 6.0.1 (without destroying the rom) and replace them with microG GmsCore.
[Android] Hard_Rock83:
It was my d8sk space which causing your kitchen to crash..i ve cleandd up space and its all good now..thank u [MENTION=6350858]ASSAYYED[/MENTION] for great kitchen

---------- Post added at 04:01 PM ---------- Previous post was at 03:56 PM ----------

U need to build the kernel again from samsung source.

Open up security/selinux/Makefile from samsung extracted source and you will see a line near the top that looks like this:

EXTRA_CFLAGS += -DCONFIG_ALWAYS_ENFORCE=true

All you have to do is change true to false.

And u need to build again using toolchains..thats so simple..you can follow guide on xda..
[Android] :
Download the "full gapps package" then open it and look for each file in the package then search for the same file in the rom and remove it. BUT DON'T REMOVE ANY "lib" FILES.

And if you want the debloat option in my kitchen removes all google bloatwares and stays only on the necessary files like: play store....

If you want to use debloater use the two debloat lists "the kitchen and kushan"
[Android] bud7dha:
Thanks. I'll check out opengapps' full package; I'm mainly worried about removing core components, like GSFCore and GMSCore. I still managed to reduce my stock firmware to 130 apps with custom debloating, and the rom seems stable so far (I flashed it yesterday), although I lost carrier provided video calling - the cost of removing all of SK Telecom's bloatware. With the power saving tweaks provided in your kitchen, like JustArchi's debuggered hooks (an old fave), the variety of apps able to enforce doze immediately, and other treats out there for root and xposed, taming battery life isn't as big of an issue as it was with LP. I may not even bother with trying to incorporate microG GmsCore even though I love the idea of it and have successfully used it under CM13 in the past.

Looking in the opengapps full package, there were a few things I missed, because I wasn't sure if those apps were Google's or Samsung's: faceunlock and facedetect, for example. I just didn't want to take a chance with ending up with a broken rom. Poking around I saw a lot of ss_id files (of varying sizes) I didn't dare touch.

Anyway, great work! Your kitchen is on par with, if not better than, SuperR's.
[Android] :
What i know is removing all google files from an android rom didn't make any problems maybe just some user apps don't work.

If you want there is a good solution for you:

Install the rom that has the gapps then install "Titanium backup pro" and hit "action button then scroll to the last and press on "unistall user and system apps......"

Then it is very easy check all google apps and remove them in addition to any app you don't like, and when you finish you can pull the rom and build it
[Android] edzamber:
[MENTION=6350858]ASSAYYED[/MENTION],

Smali/Baksmali updated ;)

https://github.com/JesusFreke/smali
[Android] :
Ok thanks for info, until release the new update you can update it by yourself by replacing the new smali/baksmali to "TOOLS\apktool\baksmali_new-smali_new"
[Android] mafsi:
[MENTION=6350858]ASSAYYED[/MENTION]

I believe you have to do something to the kitchen in order to detect multiple tar.md5 files inside a .zip folder.

I downloaded a firmware for Galaxy A5 2016 and inside zip are this files:

AP_A510FXXS3BPI9_CL8208732_QB10912862_REV00_user_low_ship.tar.md5
BL_A510FXXS3BPI9_CL8208732_QB10912862_REV00_user_low_ship.tar.md5
CP_A510FXXS3BPI1_CL8208732_QB10913207_REV00_user_low_ship.tar.md5
CSC_OXX_A510FOXX3BPI1_CL9186782_QB10844155_REV00_user_low_ship.tar.md5

When creating a project Kitchen is extracting those files in Work folder but doesn't know what to do with them and display error that there is no project inside folder.

TYPE THE NAME [ENTER=SKIP]:a5 2016
EXTRACTING [SM-A510F_1_20161011151040_dd6re1vcab_fac.zip].....
THERE IS NO PROJECT IN WORK FOLDER CREATE PROJECT FIRST

this is because kitchen expect that in place folder to be a .tar file or a .zip file that contains XXXXX.img.ext4 and can not process double archive like archive.zip => xxxxxx.tar.md5 ===> xxxxx.img.ext4
[Android] Ssbroly:
Hello, I have a problem, my Roma flash but does not work. What can be the problem please? Thank you (sorry for my english)
[Android] edzamber:
Logcat ?

Without logcat we can't help... It could be bad deodex, bad kernel... A lot of things...
[Android] Ssbroly:
Hi, thank you for your answer. My kernel etc. are well! I do not know how to put a log but a partition sd not mount, in the work file, not "data", I have "meta-inf", "system" and "boot.img" .. it's ok ?

my update-script :

# AUTO GENERATED BY ASSAYYED KITCHEN

#--INFORMATION

ui_print("************************************************");

ui_print("* Installing ssbroly v1.0 ROM");

ui_print("* For s7 edge");

ui_print("* Running android marshmallow");

ui_print("* Developed by ssbroly");

ui_print("************************************************");

set_progress(0.10);

#--PREPARE DEVICE PARTITIONS

ui_print("-- Preparing device partitions");

package_extract_dir("META-INF/SCRIPTS", "/tmp");

run_program("/sbin/mount", "-t", "auto", "/system");

run_program("/sbin/mount", "-t", "auto", "/data");

delete_recursive("/system");

#--INSTALLATION

show_progress(0.7, 3541);

ui_print("-- Extracting system & data");

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

#--SYMLINKS

ui_print("-- Creating symbolic links");

set_progress(0.93);

#--PERMISSIONS

ui_print("-- Setting & fixing permissions");

set_progress(0.95);

set_metadata_recursive("/system", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");

set_metadata("/system/xbin/dexdump", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");

#--KERNEL

package_extract_file("boot.img", "/tmp/boot.img");

ui_print("-- Flashing kernel image");

set_progress(0.99);

set_metadata("/tmp/flash_kernel.sh", "uid", 0, "gid", 0, "mode", 0777);

run_program("/tmp/flash_kernel.sh");

#--CUSTOM SCRIPTS

ui_print("-- Running rom configuration");

set_metadata("/tmp/tune2fs", "uid", 0, "gid", 0, "mode", 0777);

set_metadata("/tmp/ext4.sh", "uid", 0, "gid", 0, "mode", 0777);

run_program("/tmp/ext4.sh");

#--FINISH

ui_print("-- Finishing installation");

set_progress(1.00);

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

ui_print("Installation completed successfully");

I delete "database" and "symlinks " because the comment has long caracters.
[Android] swick1981:
Hey All,

I'm REALLY sorry to bug you with a VERY stupid question... But, here goes! heh

I absolutely love this program, it is utterly amazing (AND SIMPLE)! Thank you SO MUCH for this awesome addition to XDA!

Anyway, I have a Galazxy S7 and am modding the stock firmware to my own "liking", of sorts. However, when I'm finished with modding, I get option to create the file as a tarball, zip, raw, or dat file. However, the issue I'm running into is that the system partition is 5.2gb (approx) but the system files I've received from the modding program are 2.7GB and it doesn't allow me to change the partition size. So, I was hoping someone could help me out and tell me how I should setup. Further. I can't install via odin because of the locked bootloader (I THINK) as I keep getting security errors and such. But, I can use flashfire though I'm concerned on flashing something that is 2.7gb when I need it to be 5.2-ish GB for the system partition size. Could anyone help me out and let me know what I should do?

Thanks & Sorry to trouble ya'll!

Swick
[Android] :
This is easy to deal with, just extract [system.img & boot.img] from [AP_****.tar.md5] file and [cache.img] from [CSC_****_tar.md5] and put them in PLACE folder.

Anyway i will add support for that in next release

Please give me some information like: android version, rom type, error status, boot or not, error message, build method, device model and what edits you made? with a screenshot for the error if possible

If you build using [dat or raw] methods the kitchen will detect the valid system folder size not your device system partition but you can write the size manually (in your status write: 5324M) because the [make_ext4fs] tool doesn't work with "." or "," and you have another choice to allow the kitchen to detect the size automatically from the device.

and if you build using [tar] method you need to enable [Unlock OEM......] option in developer options

All these options are work fine and tested
[Android] Ssbroly:
hi ASSAYYED I Android 6.0.1 (the latest), be the flash goes well, but on reboot, nothing has changed, and so if I add too much option in the kitchen, There are " 6 error ". notepad ++ is set yet ..

my script:

#--INFORMATION

ui_print("INSTALLATION ROM SSBROLY");

#--PREPARE DEVICE PARTITIONS

ui_print("-- Préparation des partitions");

package_extract_dir("META-INF/SCRIPTS", "/tmp");

run_program("/sbin/mount", "-t", "auto", "/system");

run_program("/sbin/mount", "-t", "auto", "/data");

delete_recursive("/system");

ui_print("-- Running rom configuration");

set_metadata("/tmp/tune2fs", "uid", 0, "gid", 0, "mode", 0777);

set_metadata("/tmp/ext4.sh", "uid", 0, "gid", 0, "mode", 0777);

run_program("/tmp/ext4.sh");

ui_print("-- Sauvegarde du dossier "EFS"");

set_metadata("/tmp/efs_backup.sh", "uid", 0, "gid", 0, "mode", 0777);

run_program("/tmp/efs_backup.sh");

#--INSTALLATION

ui_print("-- Installation des fichiers");

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

#--SYMLINKS

ui_print("-- Création des raccourcis");

symlink("/su/bin/su", "/system/xbin/su");

set_metadata("/system/xbin/dexdump", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");

#--KERNEL

package_extract_file("boot.img", "/tmp/boot.img");

ui_print("-- Flashage du kernel");

set_metadata("/tmp/flash_kernel.sh", "uid", 0, "gid", 0, "mode", 0777);

run_program("/tmp/flash_kernel.sh");

#--CUSTOM SCRIPTS

ui_print("-- Installation des polices");

package_extract_dir("META-INF/ADD-ONS/SamsungSans_V6", "/tmp/SamsungSans_V6");

run_program("/sbin/busybox", "unzip", "/tmp/SamsungSans_V6/SamsungSans_V6.zip", "META-INF/com/google/android/*", "-d", "/tmp/SamsungSans_V6");

run_program("/sbin/busybox", "sh", "/tmp/SamsungSans_V6/META-INF/com/google/android/update-binary", "dummy", "1", "/tmp/SamsungSans_V6/SamsungSans_V6.zip");

delete_recursive("/tmp/SamsungSans_V6");

#--FINISH

ui_print("-- Fin de l'installation...");

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

ui_print("Installation de la ROM finie!");

i delete "simlinks" and "set_metadata" so my comment is added
[Android] shrayanshy:
Can extract boot.IMG?
[Android] :
ReBuild the rom from the stock without any edits to ensure the errors from the editing or not

Yes
[Android] Er. Aditya:
amazing work mate , huge thanks just tested 2 methods

1. pulling system via adb and that works flawless 6.0.1

but when i use tar in place folder it dsnt extracts it properly

shows me this error

CONVERTING SPARSE [system.img.ext4] TO RAW [system.img].....

EXTRACTING FILES FROM [system.img]

CLEANING UP WORK FOLDER

THERE IS NO PROJECT IN WORK FOLDER CREATE PROJECT FIRST

though is creates a folder called tmp regardless of what name i give for project
[Android] pendor24:
Hello

no space in the project name. Example: toto_tutu (correct)

toto tutu (incorrect)
[Android] Ssbroly:
Even with rom stock , change anything. Just deodexing the ROM and zilalign apk. Put error 6. My project is name "ssbroly". No space in name.

This straight is normal ?

run_program("/sbin/mount", "-t", "auto", "/data")
[Android] swick1981:
Hey [MENTION=6350858]ASSAYYED[/MENTION],

Thanks for the quick reply! I've been modding roms for a VERY LONG time, but never anything like this, so I'm wet behind the ears as they say - a newbie (or a blissfully ignorant idiot) - when it comes to this stuff! Just so you know you're dealing with a moron... LoL

I'm really sorry but this is confusing -

After I've modded & made my choices, I make the flash file. ODIN does NOT work on the verizon S7, so I have to use flashfire (from what little i understand and what I've seen when trying to flash a file through odin - I get dm-verity error...) SO... I can't do a tarball file, but I can do zip, dat, or raw. However, the system tries to "auto detect the partition size from the kernel, boot, or system img file and it always comes up with 2.7gb. BUT... when it auto detects the partition size from my phone, I get the correct system partition size of 5.2gb+.

Is there a file format I can use that will allow me to flash without changing ANY partition size, etc? I can only use flashfire, so I don't really know what the best way to go about this is!

(Or if anyone else may have an idea, I'd be grateful!) :)

EDIT: One other thing - can anyone tell me if I can edit the KERNEL on the S7? Can I do ANY edits at all without tripping dm-verity? My understanding is I can't, but... Just thought I'd ask! (THANKS!)

Again, thanks and sorry for being such a pain in the arse newbie!

Swick
[Android] Ssbroly:
okay, I'll try that ... my rom is "AP_G935FXXS1BPJ1", There are "boot.img", "syetme.img" and "recovery.img". It is normal that he did there's no partition "sd" with the folders "download", "android", "playlist" and "dcim" once the ROM is built ? thank's
[Android] :
Yes you can edit it easily

You need system.img & boot.img from "AP....." file and cache.img from "CSC......" file
[Android] :
You have some suggestions:

1-- change the kitchen location

2-- check you tar file if it able to open by 7zip

3-- check you hard disk drive if it has a good free space (some recent posts show this problem from the limited space on the hard disk)

4-- try another tar file

it it normal but need ";" in the last

rebuild it without anything even the deodex and test
[Android] orgulloso4202:
How can I get the system to support ext4 file system on an microSD card?