yashsingh1/xdaforums huggingface dataset:
[SuperR Kitchen] SuperR.:
Have you tried swapping the oat2dex included in the kitchen for an older release found here? It is located /kitchen/tools/smali/current/oat2dex*.jar. There is no need to rename the one you add. As long as "oat2dex" is in the file name and it is the only one in the directory, it will be used.

If the old one works better for Pre-N deodexing, I could add it to the kitchen. The latest oat2dex commit is required for N deodexing so it must be included but I don't have a good reason not to include both. I have already done this with smali/baksmali for Pre-L deodexing.

Sadly I don't have the time for testing so if you or anyone else would like to try it and provide feedback I will make the changes :)

edit: FYI, the kitchen is using oat2dex built from the latest source, not any of the releases found in the link above.
[SuperR Kitchen] :
Thank you for all your support, I'll try the older one and report back
[SuperR Kitchen] SuperR.:
v1.0.5.3

Added option to download and install the inject-sepolicy-addon in the root type menu.
[SuperR Kitchen] :
Tried swapping oat2dex for version 0.83 and it seems to have fixed my deodexing issues, I didn't try a newer version as 0.83 is the one sva deodexer was using. I don't pretend to be able to tell the differences in them but if you could add the option of an earlier oat2dex for pre n roms that would be fantastic
[SuperR Kitchen] Esgariot:
Bash on Windows Insider build 14316

Hello [MENTION=5787964]SuperR.[/MENTION] , regarding Bash on Windows (from insider build 14316)

"uname -s" returns just "Linux".

I don't know how to distinguish between running native or running on windows :<

Checking if /mnt/c exists (which is C:\ mountpoint for bash on windows)

is the only thing that comes to my mind but it's SUPER SUPER bad and usafe and cringy solution :D

But then again I suck at shell scripts so maybe you will find proper way to do it. You can ask me for command outputs if you want to.
[SuperR Kitchen] SuperR.:
Thanks for checking this. Would you mind running 2 more commands?

uname -r

Checks the kernel release, and I read Bash on Windows does not run a Linux kernel so this one might give us something useful.

uname -o

Checks the OS. I suspect this one will return GNU/Linux but it's worth a try.

Thanks
[SuperR Kitchen] Esgariot:
uname -r returns "3.4.0+"

uname -o returns "GNU/Linux"
[SuperR Kitchen] SuperR.:
Well damn. If it is not running a Linux kernel (as Microsoft says it is not), it has uname fooled lol

Can you try this one? It will return a directory listing of / which in Linux is your main partition. I am hoping / is your main windows partition and we can look for windows files or directories that would not exist in Linux.

ls /
[SuperR Kitchen] Esgariot:
sorry, they made that really look like linux :D

ls \ gives the usual

acct bin boot cache data dev etc home init lib lib64 lost+found media mnt opt proc root run sbin srv sys tmp usr var

you can find Windows' C:\ mounted as /mnt/c/<C's:root stuff>

which goes

root@localhost:~# ls /mnt/c/
ls: cannot access /mnt/c/Documents and Settings: Input/output error
ls: cannot access /mnt/c/pagefile.sys: Permission denied
ls: cannot access /mnt/c/swapfile.sys: Permission denied
adb bootmgr Config.Msi Documents and Settings Intel OneDriveTemp PerfLogs Program Files Recovery swapfile.sys tmpgfile.sys Windows Windows.old
AdwCleaner BOOTNXT Data GOG Games MSOCache pagefile.sys ProgramData Program Files (x86) $Recycle.Bin System Volume Information Users $WINDOWS.~BT $Windows.~WS
[SuperR Kitchen] SuperR.:
What about this one? If it returns "Windows" we can use it :)

find /mnt/c -name Windows 2>/dev/null

edit: or this

find /mnt/c -name Config.Msi 2>/dev/null

should return Config.Msi or similar.
[SuperR Kitchen] Esgariot:
root@localhost:/usr/lib/jvm/jdk1.8.0_45/jre# find /mnt/c/ -name Windows 2>/dev/null
/mnt/c/$WINDOWS.~BT/Work/1/Windows
/mnt/c/ProgramData/Microsoft/Windows
/mnt/c/Users/Default/AppData/Local/Microsoft/Windows
/mnt/c/Users/Default/AppData/Roaming/Microsoft/Windows
/mnt/c/Users/Default.migrated/AppData/Local/Microsoft/Windows
/mnt/c/Users/Default.migrated/AppData/Roaming/Microsoft/Windows
/mnt/c/Users/esgar/AppData/Local/lxss/rootfs/usr/share/perl/5.18.2/ExtUtils/CBuilder/Platform/Windows
/mnt/c/Windows

I removed couple of my user entries

By the way Bash for Windows root can be found in

%LOCALAPPDATA%\lxss
C:\Users\esgar\AppData\Local\lxss\

and Bash for Windows .exe resides in

C:\Windows\System32\bash.exe
[SuperR Kitchen] SuperR.:
ok here is one more. We are getting somewhere. Thanks for your help with this :)

I think this will end up being the final command and should return "Windows"

find /mnt/c -name Windows -maxdepth 1 2>/dev/null | grep -m 1 -o Windows

I also need to know if you can run native Linux binaries. If you can open bash in the kitchen tools directory and run the following it would be very helpful:

./7z --help

If you get the 7zip help text, I guess I will assume you can use the binaries in the kitchen for now until we come across a problem. Thanks again :)
[SuperR Kitchen] SuperR.:
v1.0.5.4

Pre-N deodexing with oat2dex method will now use oat2dex v0.8.3.

Initial test for Bash on Ubuntu on Windows.

Updated 7-zip to latest version.

NOTE: The Pre-N oat2dex is located /kitchen/tools/smali/old/oat2dex-0.8.3.jar. If you want to swap different versions, make sure there is only one oat2dex.jar in that directory and make sure oat2dex is in the filename somewhere. If anyone finds that other versions work better than 0.8.3, please let me know. Thanks

NOTE2: I am pretty sure you will not be able to sign zips or deodex roms using Bash on Ubuntu on Windows. According to this article here on xda, "Several necessary packages (such as OpenJDK 7) would not properly install".
[SuperR Kitchen] boostermbkking:
I have some apps FC if I deodex my rom with smali/baksmali, how I can fix?

My phone is g935f s7 edge international, with android 6.0.1.

If I use oat2... Mode there are unable to deodex apk... How I can deodex this app in other way?

Thanks to all
[SuperR Kitchen] Tkkg1994:
Same for me. Use another deodexer. This one here is for N-preview and has some issues with MM

Sent with my Nova powered SM-G901F
[SuperR Kitchen] SuperR.:
What kitchen version are you using?

This is not only for N Preview. If you use the newest kitchen v1.0.5.4, it should work better. I just changed the oat2dex version and [MENTION=1097804]sawdoctor[/MENTION] reported it fixed his M deodex issues.
[SuperR Kitchen] boostermbkking:
I use the latest version of kitchen, If I use smali/baksmali it work but some apps have FC, if I use oat2dex the kitchen is unable to deodex.

I use latest ubuntu x64 and latest kitchen v1. 0.5.4 with 64bit file
[SuperR Kitchen] Tkkg1994:
If I were you I would make this options in deodex: oat2dex with smali/baksmali as backup (MM), oat2dex with smali/baksmali as backup (N-Preview) and smali/baksmali

that would be the best solution I think
[SuperR Kitchen] SuperR.:
I see the problem with oat2dex method in the latest kitchen. Just a mistake on my end. Will fix and push an update asap. I don't think we need the extra option since I am going to use the older oat2dex for everything before N.
[SuperR Kitchen] SuperR.:
v1.0.5.5

Fixed .win000 type backup not extracting.

Built oat2dex v0.8.6 from source rather than using pre-built v0.8.3 from repo.

Fixed oat2dex method for pre-N roms (pre meaning before, not preview).

NOTE: I was getting some errors with oat2dex v0.8.3 on Samsung gs6 M rom, and I do not get errors with oat2dex v0.8.6. Let me know if you have problems with this change. I am trying to get this issue sorted out, thanks for your patience. Keep in mind, you can always swap the oat2dex.jar in the /kitchen/tools/smali/old directory for use with all roms before N. Just remember to only have one in the directory at a time, and to make sure the file name contains the word oat2dex.
[SuperR Kitchen] Esgariot:
[MENTION=5787964]SuperR.[/MENTION]

running 7z --help:

root@localhost:~/SuperR_Kitchen/tools# ./7z --help
bash: ./7z: cannot execute binary file: Exec format error
root@localhost:~/SuperR_Kitchen/tools# uname -a
Linux localhost 3.4.0+ #1 PREEMPT Thu Aug 1 17:06:05 CST 2013 x86_64 x86_64 x86_64 GNU/Linux
root@localhost:~/SuperR_Kitchen/tools# arch
x86_64
root@localhost:~/SuperR_Kitchen/tools# file 7z
7z: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.0.30, stripped
root@localhost:~/SuperR_Kitchen/tools#

Regarding testing if Bash on Windows: you could check this

https://github.com/Microsoft/BashOnWindows/issues/10#issuecomment-206752130

There also seems to be a java runtime problem, couldn't get it to work. Tried with dpkg and from source, will try again in few days.
[SuperR Kitchen] mwilky:
[MENTION=5787964]SuperR.[/MENTION]

Dont think the version of oat2dex pre-N (0.8.3) works nicely with new samsung marshmallow files, literally skips through them all at super speed.

the newest oat2dex works but some apps force close, nothing down to you, i think the certain files just don't play nice. Only on the newest samsung release (april release),on the previous build oat2dex 0.8.6 worked flawlessly

I'm testing a few different things now, will keep you up to date.
[SuperR Kitchen] bcrichster:
Slammin'!

Sent from my Gummy Sync N9515
[SuperR Kitchen] SuperR.:
I fixed the skipping at super speed problem in the latest kitchen. I broke it in the last release.

The newest kitchen (v1.0.5.5) has oat2dex v0.8.6 which will be used for all roms prior to N. Let me know how it goes, and thanks for testing :)
[SuperR Kitchen] mwilky:
Will do, i'll deodex with latest oat2dex now let you know how it goes
[SuperR Kitchen] mwilky:
Deodexing just fine now with oat2dex, not tested whether the force closes are gone yet but like i said before, this isn't down to your kitchen.

Once again thanks for your efforts bud

[MENTION=5787964]SuperR.[/MENTION] whats your hangouts bud, be easier than clogging up your thread
[SuperR Kitchen] boostermbkking:
I try to deodex the last firmware of s7 edge with oat2dex and the kitchen 1.0.5.5 work without problem, but the rom goes bootloop and don't work, now I try to deodex with smali/baksmali if work!
[SuperR Kitchen] mwilky:
Yep theres a problem, im just waiting to speak to super, dont bother with smali/baksmali you get app force closes, looks like samsung apps require oat2dex
[SuperR Kitchen] SuperR.:
You can find me on IRC. Freenode #superr. Not always there but I am now :)
[SuperR Kitchen] anttaz:
functioning well
[SuperR Kitchen] bishop0114:
I have a Verizon Note 3, running rooted, stock Lollipop. I have made backups of the boot and system partition, using Flashfire. In Flashfire, there are 3 options for file formats. I have tried normal compression (lz4 files), raw (dat files) and high compression (gz files).

I have also tried pulling the image from the phone as a booted to android but get errors.

Is there a way to use the backups from Flashfire with SuperR?
[SuperR Kitchen] SuperR.:
I should be able to add support for at least gz. If you send the backup I will have a look.
[SuperR Kitchen] Er. Aditya:
hey bro wassup ,

i am trying to remove few files via custom bloat

system/media/audio/alarms/notificationsHarp_glissando.ogg*

system/sipdb/sz_PL.zip*

but its not working i guess , anything i am doing wrong ?
[SuperR Kitchen] bishop0114:
That would be great. I will send you a link to the backups in all 3 formats.
[SuperR Kitchen] SuperR.:
If you are just trying to remove individual files, it should be like this:

system/media/audio/alarms/notificationsHarp_glissando.ogg
system/sipdb/sz_PL.zip

If there are many variations of the thing you are trying to remove, this will work:

system/media/audio/alarms/notificationsHarp*.ogg
system/sipdb/sz_*

The first one will only remove the files listed.

The second one will remove things named:

system/media/audio/alarms/notificationsHarp_glissando.ogg

system/media/audio/alarms/notificationsHarp-blahblah.ogg

system/sipdb/sz_PL.zip

system/sipdb/sz_blahblah.ogg

etc.
[SuperR Kitchen] jazzespresso:
I upgraded to latest version, after upgrade, Superr asking me:

Missing Dependency

Lz4

Would like to install now? Y/N... I say Y, but nothing, something flashes so quick (did not see detail error) then comes back to the same screen Missing Dependency

and yes i did search this forum. I even upgrade my Ubuntu, still no working.

any idea?

Please do NOT recommend me to uinstall Ubuntu (I am running VirtualBox VM on Windows 10), and then re-install, then superr...as it makes no-sense at all after just simple upgrading Superr's Kitchen.
[SuperR Kitchen] SuperR.:
v0.9.0.9

Changes:

Some bug fixes and improvements to the extract script.

Added dependencies I forgot about.
[SuperR Kitchen] ferbulous:
I changed to 64 bit ubuntu and I'm able to install lib32.

Now I can generate he zip file without any issues. Looks like I'm definitely ditching the 32bit system now.
[SuperR Kitchen] bcrichster:
Been considering that, myself. BUT.. I deodexed ur ROM with a 32 bit Linux Mint system.. 64 bit processor tho, you?
[SuperR Kitchen] stamilselvan:
I am trying to create a custom rom for “Huawei Mediapad T1 8.0”. I just need a flashable rom from the stock system.img and boot.img.

I am using “dell Inspiron 15r n5010” model computer with 4gb ram and 500 gb harddisk, dual booting windows 7 with linux mint rafaela.

Version of super kitchen is 0.9.0.4. version of android 4.3 (emui 1.6)

I extracted system, boot, recovery from device using the super kitchen by options 1 and 4.

After the extraction i checked out the options and at some point kitchen wanted me to choose from set_meta or set_perm, i chose set_meta but it said that my kernel doesnt support the set_meta type and chose set_perm by default.

Using the kitchen, I debloated the firmware.

Then built the fullrom zip.

I tried to flash using TWRP recovery, but it doesnot allow me and said , “This rom is for 'msm8610' devices, This is a 'mediapadt1'”. I thought to delete that line from updater script. But didnot delete because, that may need some changes in other files too.

I think that buildprop product name is differing from recovery product name.

I have attached files i was using,, I am new to linux and also android rom building..

Help me..
[SuperR Kitchen] bcrichster:
Update to latest version and try again..? I'm running same dualboot system you are (diff PC) :cool: He's made many changes since earlier this week to encompass more devices
[SuperR Kitchen] dkionline:
Huawei is little complicated to build roms, can you upload the firmware?

Gesendet von meinem D6503 mit Tapatalk
[SuperR Kitchen] SuperR.:
Take a look at this post

http://xdaforums.com/showpost.php?p=63088636&postcount=234
[SuperR Kitchen] mcqaissi:
I try build for s3 i9300 with system.img boot.img and zip file

always I have

executing updater binary in zip

any help please
[SuperR Kitchen] dkionline:
Parse dat is out of date, whats your recovery version?

Gesendet von meinem D6503 mit Tapatalk
[SuperR Kitchen] mcqaissi:
I'm using twrp_2.8.7.0_I9300
[SuperR Kitchen] dkionline:
ok, then you should use set metadata or set perm to be on the right way.
[SuperR Kitchen] mcqaissi:
I was tried metadata

now I trying perm
[SuperR Kitchen] bcrichster:
Sparse DAT out of date? Not understanding... I thought that was new..
[SuperR Kitchen] SuperR.:
It seems that most of the people reporting problems are using Samsung devices. Is there something special that needs to be done for these devices? If so, it will never be fixed unless I am told what it is. I have absolutely no experience with Samsung devices and I don't have one for testing.

I am happy to make any changes to the kitchen to make it work for more devices but I need help from those who know and understand the devices that are not currently working. Thanks :)
[SuperR Kitchen] mcqaissi:
for me I try every things in this kitchen

with Samsung s3 i9300

I think the kitchen can't update the binary_update

no busyboox
[SuperR Kitchen] SuperR.:
v0.9.1.0

Changes:

Updated root removal to include newest Kingroot

Fixed a couple typos

Updated the README.md
[SuperR Kitchen] Androidwizzard:
For older firmware and especially S3 I9300 ArchiKitchen is better.
[SuperR Kitchen] SuperR.:
What is different so I can make the changes?
[SuperR Kitchen] Androidwizzard:
Latest firmware for S3 is JB 4.3 and JustArchi started his kitchen (afaik) from and on S3.
[SuperR Kitchen] mcqaissi:
I think its miss busybox
[SuperR Kitchen] SuperR.:
Just install the liblz4-tool package and you should be good. No clue why you got errors.

Why would I tell you to re-install Ubuntu? This is not Windows lol
[SuperR Kitchen] jazzespresso:
not that I did not do my homework or search here and Google'ed...

I have no idea why it does not, something probably missing no idea...still troubleshooting...a bit frustrating...I may revert it back previous working version of Superr Kitchen

sudo apt-get update

sudo apt-get install liblz4-tool

XXXX@XXX-ubuntu01:~$ sudo apt-get install liblz4-tool

Reading package lists... Done

Building dependency tree

Reading state information... Done

You might want to run 'apt-get -f install' to correct these:

The following packages have unmet dependencies:

liblz4-tool : Depends: liblz4-1 (= 0.0~r122-2) but it is not going to be installed

libx32stdc++6 : Depends: gcc-4.9-base (= 4.9.2-10ubuntu13) but 4.9.3-0ubuntu4 is to be installed

E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

OK. I spent several hours to figure out this...still could not..so I am taking break on this...in case someone has idea, let me know...By the way, I am on Ubuntu 14.04 TLS
[SuperR Kitchen] SuperR.:
You can remove lz4 from the dependencies file located /kitchen/tools/dependencies. As long as you don't try to unpack lz4 compressed ramdisks you will be fine without it :)
[SuperR Kitchen] jazzespresso:
ohhh...cool I will try..I really don't care compressed ramdisks :p
[SuperR Kitchen] osm0sis:
Loving this bash on Windows stuff. :D

What does the output of "set" look like? $TERM or $SHELL might be useful, though finding Windows in /mnt seems pretty surefire. :good:

Edit: Oh, P.S. [MENTION=5787964]SuperR.[/MENTION] I updated busybox to 1.24.2 awhile back if it hasn't been brought to your attention already. :)
[SuperR Kitchen] Er. Aditya:
i just tried this

system/media/audio/alarms/notificationsHarp_glissando.ogg
system/sipdb/sz_PL.zip

but looks like kitchen dsnt removes the desrcibed files
[SuperR Kitchen] SuperR.:
Are you adding the lines to /kitchen/tools/root/bloat_custom ?

If you are adding the lines to the correct file, does the option in the debloat menu say "Bloated"? Do you get any errors if you scroll up in the terminal? I just tested it again and it works without issue.
[SuperR Kitchen] Er. Aditya:
Yes bro i added in custom bloat and after i run it says debloates...but when i check under rom files > debloated files > i dont see those files

Do you thing i am using it on vm makes any difference
[SuperR Kitchen] SuperR.:
I don't think a vm would make a difference but native Linux is always the best option and the only thing I test on.

1. Does the Debloat menu say "2) Custom Debloat (CURRENT: Bloated)" after you add the lines?

2. Does the Debloat menu say "2) Custom Debloat (CURRENT: Debloated)" after you run it?

3. Are the files still in the rom system directory after running the custom debloat option?

4. Do you get any errors if you scroll up in the terminal?
[SuperR Kitchen] Er. Aditya:
I dont have linux installed...trying the bash on windows i was using ubuntu 15.10 before that
[SuperR Kitchen] SuperR.:
Good luck with Bash on Ubuntu on Windows. Let me know how it goes. I have no idea if anything will work at all.

FYI, I can't help further if you don't answer my questions :p
[SuperR Kitchen] Er. Aditya:
starting isnt gone good , i have no idea where exactly it cloned kitchen :P

root@localhost:~# git clone https://bitbucket.org/superr/superrs-kitchen.git

edit : lol atleast it started

[/IMG]

and bro i answered few questions

1. Does the Debloat menu say "2) Custom Debloat (CURRENT: Bloated)" after you add the lines?

2. Does the Debloat menu say "2) Custom Debloat (CURRENT: Debloated)" after you run it?

Yes it does says debloated

3. Are the files still in the rom system directory after running the custom debloat option?

Strangely the files remain in system / rom directory

4. Do you get any errors if you scroll up in the terminal?

no errors weree shown too

edit 2 : has anyone got kitchen working on windows bash ?
[SuperR Kitchen] SuperR.:
Please try this test version attached with Bash on Ubuntu on Windows. It is only the superr file, so just replace the one that is there now. It should not ask you about java again, and you will not be able to deodex or sign zips. This is not an issue with the kitchen, it is because so far you can't install java in Bash on Ubutnu on Windows. Hopefully the other things will work and hopefully Windows will fix this java issue in the future.

Regarding the bloat_custom issue, please try again with the new script attached here. I changed one parameter that may help in diagnosing the issue. Please also choose "5) Refresh Bloat Status" after it says it is debloated and see if it changes to bloated. I am having trouble understanding how all the things you have said are possible lol
[SuperR Kitchen] Er. Aditya:
lol il keep trying i know fault is at my end and bro the file you sent gave me this error

bash: /root/superrs-kitchen/./superr: Input/output error

edit :

i also get these errors
[SuperR Kitchen] SuperR.:
You are not running the kitchen properly. Do this instead:

cd superrs-kitchen
./superr
[SuperR Kitchen] Er. Aditya:
This definately corrected the errors but the one you sent for windows test shows input output error

edit : bro this time it showed these dependencies missing

when i tried to install them
[SuperR Kitchen] SuperR.:
My guess is that since it is extracted in windows, the permissions are messed up. Make sure it is executable, no clue how to do that in Windows. Maybe you can do it in bash..

cd superrs-kitchen
chmod +x superr
./superr

edit: seems it does not like the exec command
[SuperR Kitchen] osm0sis:
Hey, can you answer this? Thanks.
[SuperR Kitchen] SuperR.:
It seems Bash on Ubuntu on Windows does not like the exec command. Let's try without it using the test script below and see what happens.

You will need to figure out how to install all the dependencies it says you are missing if you get that screen again and the kitchen does not install them. From what I read standard apt-get install should work, and that is what the kitchen does so I have no clue about that part.

Let me know how this version goes. It will also remove at least one dependency from your list (7z).