yashsingh1/xdaforums huggingface dataset:
[SuperR Kitchen] Techguy777:
What new systems and repos are you talking about that block permissive? I might be way off here but you think I'm going to try to build a kernel with permissive and put it online in a repo like GitHub for the world to see? Not me man Even if I ever build anything I'm never going to put it online for public it would be personal use. I might if I could start really getting good but man I hate Linux or Ubuntu I tried going to Ubuntu 14 to be on the one open source Google uses my wifi chip is the new ac9560 with Bluetooth 5 and it doesn't work and I spent about 4 hours trying to install drivers and can't I don't know how anyone can remember everything you have done or do in Ubuntu it's a zoo of files and numbers everything takes 10 steps to install you need 10 more things first lol . I'm not giving up but I'm going to 18 or back to 16.
[SuperR Kitchen] ashyx:
It's been this way since Android 5.

A pain but possible, just a case of patching the selinux c source files.
[SuperR Kitchen] Techguy777:
Just to help I just installed Ubuntu 18.04 LTS and I extracted the kitchen zip and it wouldn't work. I wasn't sure if I was supposed to type a command or what. I know there used to be. However it wouldn't work ran from folder terminal. So It turns out I needed to install Python 2.7 along with 3.6 that I already had. I'm sure you guys already know this but I'm putting it out there for any noobs that are stuck and can't find answer to why.
[SuperR Kitchen] vignesh95:
Unable to execute superR in google cloud platform

Hi [MENTION=718594]super[/MENTION]R

Iam unable to execute SuperR in google cloud platform.

The VM instance is using ubuntu 18.04.01.

Please advise ?

The below is the error that i get.

------------------------------------------------------------
SuperR's Kitchen Free
by SuperR
------------------------------------------------------------

Choose language:

1) english_srk.py
q = Quit

Make your selection:
Traceback (most recent call last):
File "superr.py", line 36, in <module>
File "mainsrk.py", line 6730, in mainsrk.superr
File "srktools.py", line 239, in srktools.getconf
File "srktools.py", line 13, in srktools.appendf
PermissionError: [Errno 13] Permission denied: '/home/vigneshkrissh95/superr/tools/srk.conf'
[31120] Failed to execute script superr

Press "q" to Quit, or "r" to Restart
[SuperR Kitchen] SuperR.:
Apparently your user does not have write permissions in the kitchen directory. There is nothing I can do about Google cloud platform write permissions.
[SuperR Kitchen] SuperR.:
v1.2.0.8

Changes:

Fixed crash if a file does not exist when validating kitchen files.

Fixed deleting projects from the main menu.

Fixed crash if smali.zip does not download properly.

Create new apk including the deodexed classes if apk does not exist when deodexing.

Added screen_clear config option that will use either no screen clearing, or tput clear.

Removed use_tput config option in favor of the new screen_clear config option.

Automatically fix geometry errors in ext4 img files during extraction.

Fixed Samsung devices pulling img files from the device through adb (hopefully).

Fixed lag during extraction after entering your rom name and after choosing the perm type.

Fixed kitchen updater for future updates.

Many other small fixes.

Screen Clearing

If you do nothing, the default is ascii escape codes that clear the screen. This has been the default since v1.2.0.0. The Bash version uses tput clear. If you are not having screen clearing issues, it is recommended that you do nothing.

In kitchen/tools/srk.conf, you can add a line to change the screen clearing behavior:

Use "tput clear"

screen_clear=1

Do not clear the screen at all and display a new page below the old page

screen_clear=None

"use_tput=1" is no longer available, as "screen_clear=1" does the same thing.

There is no need for a restart. After saving srk.conf with the new line, the change will be seen immediately.
[SuperR Kitchen] Techguy777:
[MENTION=718594]super[/MENTION]R I see you worked on the LG tribute LS 660. I have that phone and I've been running monstros rom I know it's outdated but I like tweaking it for kicks. I did try CM 12 along time ago and I would have been nice but it lagged terrible. My questions are is the software under your Android file host for the LG tribute it's e2nas stock zv5 or is it LG ultimate 2 like some files say? I was going to try to run CM 12 through your kitchen and see if it wouldn't work better. I also wonder how did you guys make CM 12 or twrp because I can't find source codes. I think it would be great phone to start with because it's KitKat and not very advanced. I would like to update twrp on it and get cm12 running smoothly to use magisk for modules.
[SuperR Kitchen] bcrichster:
...LG Realm (Boost Mobile)??
[SuperR Kitchen] Techguy777:
LG realm? As a question I'm thinking that e2nas files are for the LG tribute or ls 660 American phone or it's also the f60 I believe in Canada. I don't know if your saying it's the LG realm because using s question mark makes me think your ask me if I have the LG realm. I would like to know how developers get the stuff to build roms if there's no source code. It seems to me that they would reverse engineer the stock firmware if they can get it and that's what I want to do is figure out how to take firmware already built and make it different like adding permissive to a kernel or something. Something a little more than adding root and BusyBox although that very useful. If there's a way to make a system image backup without root and unlocked bootloader to. It's easy to figure out something with root or make backups but if you need to make the boot Img before you get root so you can root it that would be great. With mtk devices you can I used wwr tool and made my own firmware and use magisk to patch boot to get root then I used a twrp Porter and my stock recovery I pulled off to make a twrp and I still have a locked bootloader and it all worked great backups work to. Because really flashing custom firmware requires an unlocked bootloader if I had the same code or whatever it is that the company has you could add it to your firmware and it would be like stock. The way I understand it if I'm wrong feel free to explain more. Or not it's off topic but I would love to know how to get things done without root or unlocked bootloader cause that means it's not possible if the company doesn't let you unlock bootloader which means they allow us root. Meaning the day they say no it's no more root for us.
[SuperR Kitchen] bcrichster:
I was asking about whether the device in question is the LG Realm. All the mfgrs open source is the kernel, which is actually critical.. The device tree is created thru trial&error, using similar device trees to the one you're trying to create. And the vendor blobs are pulled from the actual device via the extract-files.sh file provided in CM/Los repos
[SuperR Kitchen] Techguy777:
Ok thanks the device is the LG tribute ls660 model the first edition tribute. Or it's also the same exact phone as the LG f60 as it's sold in Canada. It has so limited space less than a gig so you have to use links2sd to have apps but once you do that the phone actually isn't to bad it'll play bully of the SD card. I'll tell you this KitKat is the best Android version for development or messing around with to me. Its so easy I didn't have voicemail in monstros rom so I made a twrp flashable zip with the Sprint voicemail app off app mirror now it's got voicemail to. I really do wish that cm12 would run better or someone could make a Android go rom Oreo for it.
[SuperR Kitchen] Austcool:
[MENTION=9180355]Techguy777[/MENTION] I'm working tonight on a kernel build for the SM-T350 it's going to be a optional selinux just like ASOP roms but for ****sung's stock crap. I will provide a patch I found for the cmdline if you desire full permissive boot tho ;) I also figured out the Bluetooth not staying enabled across reboots and will provide a flashable patch for that and as soon as I figure out the wifi not remembering passwords on reboot I will provide a patch for that too! :)
[SuperR Kitchen] kevintm78:
For the passwords being remembered you can add ro.securestorage.support=false to the default.prop or it also works if added/changed in the build.prop. I usually just add it to the default.prop unless you plan on switching kernels.

The kitchen plug-in same_extras has an option to add it to your default.prop and I think there's a plug-in for the build.prop too but I can't remember what it's called.
[SuperR Kitchen] SuperR.:
v1.2.0.9

Changes:

Fixed pulling img files from device while booted to rooted Android.

Fixed building zip files with parenthesis in name.

Added dead project message when choosing SuperSU root method and ask for confirmation.

Moved Magisk to option 1 in the root menu.

Added suggestion to change USB mode on device from charging to file transfer (MTP) if stuck when pulling img files from Android.
[SuperR Kitchen] shahabkhan99:
[MENTION=5787964]SuperR.[/MENTION] thanks for free version ... I am using UbuntuKitchen work great and i successfully build a rom from a custom rom Android Pie and flashed and work great
[SuperR Kitchen] Techguy777:
Nice right on I'm actually working on trying to figure out how to pull the vendor and proprietary blobs on that tablet right now to make roms. I finally made a couple of roms I started out with lollipop for Nexus 6 just to learn then I went and finished lineage 15.1 Oreo , and resremix Oreo for Shamu yesterday the lineage is working great right now I have not learned how to pick source codes and features yet but I'll get it.
[SuperR Kitchen] Austcool:
I didn't have to learn/patch c files for permissive I simply edit the kconfigs then build with it optional and if needed totally disabled I patch then cmdline it seems to work fine that way.
[SuperR Kitchen] its_sachin_jangir:
Syntex error in linux
[SuperR Kitchen] its_sachin_jangir:
Bro am not able to run free Linux version of superrs kitchen
[SuperR Kitchen] SuperR.:
You have not provided any information to help you. It's like saying "I can't drive my car" to a mechanic :p

What error are you getting exactly (copy/paste it) ?

What is the architecture of your PC (32/64 bit) ?

What OS are you running (distro and version)?

What steps can I take to reproduce the issue ?
[SuperR Kitchen] its_sachin_jangir:
Loading...

Tools/source/superr : 1: tools/source/superr: syntax error : word unexpected (expecting ")")

Distro-ubuntu 16.04 Lts

Architecture- 32bit
[SuperR Kitchen] SuperR.:
32-bit is the problem. Kitchen v1.2.0.0+ require 64-bit Linux.

If you do not have access to a 64-bit PC, you can use the unsupported Bash version (v1.1.9.5) found on the downloads page linked in the OP.
[SuperR Kitchen] its_sachin_jangir:
[/COLOR]

Older version supports oreo ROM or not and new version work on Ubuntu 18.04 Lts 64 bit
[SuperR Kitchen] SuperR.:
v1.1.9.5 and below are not supported at all. I will not be fixing issues or adding new features to v1.1.9.5.

However, Oreo functionality is included in v1.1.9.5. Pie is not.

v1.2.0.0+ will work on 64-bit Linux, including Ubuntu 18.04 LTS.
[SuperR Kitchen] K3V1991:
------------------------------------------------------------

SuperR's Kitchen Free

by SuperR

------------------------------------------------------------

Downloading/Installing now ...

Traceback (most recent call last):

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

File "mainsrk.py", line 34, in mainsrk.superr

File "<string>", line 6915, in superr

File "<string>", line 4302, in get_tools

File "<string>", line 597, in zipu2

File "zipfile.py", line 1009, in __init__

FileNotFoundError: [Errno 2] No such file or directory: 'devices.zip'

[22800] Failed to execute script superr

Press "q" to Quit, or "r" to Restart

Edit: Now it works
[SuperR Kitchen] master_lie:
I have the same thing, it produces the same errors and does nothing.
[SuperR Kitchen] Miustone:
Can't use this link http://sr-code.com/next/srkfree nor connect with free Ubuntu 4 Kitchen. Was about to donate for the Windows version but would like to test it for My Pixel 2 XL needs before. Would like to get it work. Thanks in advance [MENTION=5787964]SuperR.[/MENTION]

Message i get from the Link:

<?php

// Include the DirectoryLister class
require_once('resources/DirectoryLister.php');

// Initialize the DirectoryLister object
$lister = new DirectoryLister();

// Restrict access to current directory
ini_set('open_basedir', getcwd());

// Return file hash
if (isset($_GET['hash'])) {

// Get file hash array and JSON encode it
$hashes = $lister->getFileHash($_GET['hash']);
$data = json_encode($hashes);

// Return the data
die($data);

}

if (isset($_GET['zip'])) {

$dirArray = $lister->zipDirectory($_GET['zip']);

} else {

// Initialize the directory array
if (isset($_GET['dir'])) {
$dirArray = $lister->listDirectory($_GET['dir']);
} else {
$dirArray = $lister->listDirectory('.');
}

// Define theme path
if (!defined('THEMEPATH')) {
define('THEMEPATH', $lister->getThemePath());
}

// Set path to theme index
$themeIndex = $lister->getThemePath(true) . '/index.php';

// Initialize the theme
if (file_exists($themeIndex)) {
include($themeIndex);
} else {
die('ERROR: Failed to initialize theme');
}

}

Ubuntu 4 Kitchen allows Me to login with Donate Version but the free option just shows no internet connection while evrything else works with my LAN
[SuperR Kitchen] SuperR.:
There have been some server issues the last couple days. It should be slowly coming back online now. It could take more time to propagate to your area. Sorry for the inconvenience.
[SuperR Kitchen] lijianjunyonghu:
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd7 in position 0: invalid continuation byte

[3864] Failed to execute script superr

Multiple system.img

---------- Post added at 08:56 AM ---------- Previous post was at 08:55 AM ----------

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd7 in position 0: invalid continuation byte

[3864] Failed to execute script superr

Multiple system.img
[SuperR Kitchen] SuperR.:
If you send a fast link to your firmware that does not require registration I will take a look.
[SuperR Kitchen] lijianjunyonghu:
https://mega.nz/?fbclid=IwAR20CUr_t...mynmKHD0YMQ#F!ndhjkT5T!TZ2Gy-HJhJLO_j_GpaNf4A

L78011_CN_OPEN_USER_Q00016.0_O_ZUI_3.9.200_ST_180721_qpst.zip
[SuperR Kitchen] Miustone:
Hey SuperR.

Everything is working fine now. But i face issues with getting a Pie Stock ROM for the Pixel 2 XL based on Googles Factory Images. The first Problem is that the Mount Points in the Updater Script are not set right (configure script) which i fixed manually. The other Issue is that i was never able to boot one of the ZIPs i created. Is there a Problem with Pixel Devices and Google System/Vendor/Boot Images or with Treble A/B Devices in general?

I would really like to bring Stock to all Pixel Devices and to donate for Your Tool for that Needs. But i'm still not sure if it ever will be possible to realize that on our Devices...

BR
[SuperR Kitchen] SuperR.:
If you are using the donate kitchen, you can use the concatimg plugin. If you are using the free kitchen, you can use the binary and instructions found in this post. Make sure to extract rawprogram0_safe_data.xml from your firmware into the same directory as the system_*.img files.

Unfortunately I do not have a Pixel device so I really don't know if there is anything special required. dm-verity is a usual suspect so make sure you disable that at least. I also suggest raw_img perm type as it will ensure the file permissions, capabilities, and contexts are the same as the original. It is possible to build a stock ROM for the Pixel devices but without the device I won't be able to help much. Let me know if you figure out the issue.

Can you explain how you fixed configure.sh to work with your device? Thanks.
[SuperR Kitchen] Miustone:
Ok, i will give it some more tries with different Options. I wasn't able to fix the configure script, but i managed to insert the right paths on the updater script itself. It was:

mount("ext4","EMMC","/dev/block/platform/soc/1da4000.ufshc/by-name/system_a","/system");

mount("ext4","EMMC","/dev/block/platform/soc/1da4000.ufshc/by-name/vendor_a","/vendor");

mount("ext4","EMMC","/dev/block/platform/soc/1da4000.ufshc/by-name/userdata","/data");

While that only mounts the A Parts of Treble Devices. The Boot Image uses the same Way of Mounting.
[SuperR Kitchen] lijianjunyonghu:
thank
[SuperR Kitchen] BORETS24:
Somebody can explain where is this download option for this plugin? I search by all utility but no success.... Or inject-sepolicy-addon not available for 8.1.0 ROM therefore not showing in menu? I have 1.2.0.9 version on Ubuntu 18.10.

P.S. Oh, I see, it shows when install SuperSU only.... Really sorry that no similar plugin for patching precompiled_sepolicy, I need to add few rules into stock ROM sepolicy.

Thanks for great utility!
[SuperR Kitchen] SuperR.:
There is a plugin for the donate kitchen, sepolicy_injector, that does exactly this :)
[SuperR Kitchen] BORETS24:
I want to add one more information: sepolicy Oreo patch NOT fix lagging with deodex stock ROM on Asus Zenfone Max Pro M1 ZB602KL... Patch work, I see that patched /vendor/etc/selinux/precompiled_sepolicy, nonplat_sepolicy.cil and /system/etc/selinux/plat_sepolicy.cil, but lagging with launch apps and animation still stay. When I set selinux permissive, I like do it manually, simple create script with echo 0>/sys/fs/selinux/enforce and put to /data/adb/service.d for early autostart via Magisk 18.1, then lags gone. I suppose, in current Oreo patch is not enough something for Asus Zenfone Max Pro M1 stock ROM sepolicy for fix lags? Can you add it in Oreo patch? How can I find what need for fix for help to you? I do not know what I need to find in logcat...
[SuperR Kitchen] SuperR.:
I don't know either.

However, in the donate kitchen sepolicy_injector plugin you do not need to know. Grab a logcat and redirect it to a file, place the file in your project, and choose to patch all denials. The plugin will automatically find the denials and add allow rules to your sepolicy. If you prefer, you can also have it ask on every denial if you want to allow it.
[SuperR Kitchen] HemanthJabalpuri:
[MENTION=5787964]SuperR.[/MENTION]

Can you please add support for unpacking ROM zips having firmware packed in a format with .pac extention....

https://github.com/divinebird/pacextractor and develop the code too...

There are many android mobiles having Spreadtrum chipset have this type of firmwares https://en.m.wikipedia.org/wiki/Spreadtrum
[SuperR Kitchen] SuperR.:
If you send a fast link to a .pac based firmware that does not require registration I will take a look.
[SuperR Kitchen] HemanthJabalpuri:
Thanks...

Here I am linking a firmware of my mobile Lava A72 (Indian Brand) https://xdaforums.com/android/help/recovery-lava-a72-s205-t3823309

Link for speadtrum packing and unpacking :- https://www.aryk.tech/2016/12/how-to-create-or-make-pac-file-for.html?m=1

Mediafire link:- http://www.mediafire.com/file/o3bojglhe66626j/Lava_A72_S205_20161001.zip
[SuperR Kitchen] SuperR.:
v1.2.1.0

Changes:

Update individual tools that have changed instead of downloading the entire tools zip each time a binary is updated.

Added support for extracting firmware with SpreadTrum pac files.

Try all downloads 5 times before giving up, with hope that AIK downloads will work better.

Reset All Tools is now more like refresh all tools, meaning we compare the checksums and replace only if they do not match.

Fixed crash when extracting zip files with spaces in the file name.

Log img file creation in img_build.log instead of main.log.

Refactored code to use a color dictionary instead of an import.

Strip trailing spaces and line endings from each line in bloat_custom before searching.

NOTE: I am not sure if the kitchen updater will work this time. If not, do a fresh install instead. The updater will work for the next update.
[SuperR Kitchen] HemanthJabalpuri:
Can you please add this point to Features section...

*Extract and create ROM from....
[SuperR Kitchen] bcrichster:
There's already an extraction option in existence..
[SuperR Kitchen] HemanthJabalpuri:
Sorry...It is not about in Kitchen options...

I wanted to add pac extraction ability feature in 2nd post of this thread....
[SuperR Kitchen] SuperR.:
Features are actually in the 3rd post. I have added the information there :)
[SuperR Kitchen] DragonFire1024:
Thank you for this multi-tool and the continued development of it. Thanks to it, I was finally able to deodex a stock Amazon Fire 7 rom, root it, add busy box and flash it all in one zip. And it worked! The best part was not having to write the script. Now it's time to asses the true power/potential of this multi tool.
[SuperR Kitchen] bcrichster:
You've barely begun.. Go for the donate version to access all them plugins and extras, it's very worth it.
[SuperR Kitchen] DragonFire1024:
It's already on the shopping list.
[SuperR Kitchen] geiti94:
booted for me on the Galaxy A50 with ASC1 firmware. i try tomorrow on my S10+ too
[SuperR Kitchen] acyber.xyz:
I keep getting a error 4 in twrp when i try to flash the rom ive made in SuperR kitchen. Tried with different base roms and also the original installer_script and i still get the same error. All im trying to do it add a few more apps and a different boot animation to the custom rom.

Does anyone know how to fix this error

Im running the latest SuperR Kitchen on Ubuntu Linux 18.04
[SuperR Kitchen] Er. Aditya:
how about getting recovery log and sending here ?
[SuperR Kitchen] acyber.xyz:
I get this is in the logs

zip does not contain selinux file_contexts file in its root

then straight after that it goes to

updater process ended with signal 4

I've also replaced the updater_script with the base rom original and it doesnt work. However the base rom installs fine so its something in the kitchen when modifying the rom
[SuperR Kitchen] DragonFire1024:
Two tablets down. Also have Successfully rooted stock amazon firmware for the Amazon HD 10 suez with this tool. I thank you again for this tool and I can't wait to purchase it this weekend. This will provide an invaluable service to the members of the Amazon tablet community. We're freshly unlocked and can't wait to see what we can do now.
[SuperR Kitchen] _that:
Signal 4 is significantly different from Error 4. Signal 4 means "illegal instruction" and usually occurs if your update-binary is not compatible with your CPU.
[SuperR Kitchen] acyber.xyz:
I have managed to fix those issues in the update-binary, but now i get a "Location argument to mount() can't be empty"

"Updater process ended with ERROR 7"

I have tried removing the #assert in the updater-script but thats not fixed it. Here is a copy of the updater script.

The updater-script was generated by android kitchen

heres a link to it on pastebin - https :// pastebin.c om/fP7giA45

(please remove the spaces in the url. my account is still to new to post urls)
[SuperR Kitchen] DragonFire1024:
So everything works on our Amazon Fire HD 10. But we can't log into wifi networks unless we use a static IP. I'm at a loss as to why.
[SuperR Kitchen] DragonFire1024:
All the drivers appear to be in place as well as the firmware. Very odd.
[SuperR Kitchen] SuperR.:
What perm type are you are using? Unless you are working on a Nexus/Pixel device, I suggest using set_metadata in the free kitchen. On the other hand, I suggest sparse_dat or raw_img for all devices in the donate kitchen.
[SuperR Kitchen] DragonFire1024:
Unfortunately we are limited to sparse_dat on the Amazon HD 10 for now. It's the only build type that will flash the system partition. We also can't flash a modified system.img. It has to be an img pulled from the device and unaltered thereafter, or a stock img. It has to be a zip because Amazon changes the extension to a .bin ugh. If I recall correctly, I wasn't using the metadata perm, because previous attempts at getting a proper script with meta as perm, have failed. However I haven't tried it with this tool. Funny you mention Nexus. The system.img for the Amazon tablets is the Nexus line. I believe all fireOS (anything below fireOS 6.x.x.x) is currently based off LVY48F or within one or two increments +/- (lollipop mr1, r1)