FORUMS

Plugin Descriptions (Donate Version)

2,429 posts
Thanks Meter: 8,506
 
By SuperR., Recognized Developer on 28th April 2017, 03:12 PM
Thread Closed Email Thread
Plugin Installation:
  1. Open the Plugin Manager
  2. Choose Install a Plugin
  3. Choose the plugin you want to install
  4. Choose Run a Plugin
  5. Choose the Plugin you want to run
  6. Enjoy!
NOTE: The usage instructions in each plugin description below assume you have already installed it. When the instructions end, that's when you run the plugin from the plugin manager.


SuperR's Kitchen Plugin Descriptions

SuperR Maintained Plugins:

add_placeholder
  • Only for system-as-root devices
  • Adds placeholder files to all empty directories in your project

add_remove_files
  • Add all apk files from a directory
  • Choose apk to import
  • Choose directory structure to import
  • Delete files from your ROM based on directory structure
NOTE: To use "Choose directory structure to import" and "Delete files from your ROM based on directory structure", your directory must be set up as the following example:
Code:
your_directory_name/system/anything_you_want
your_directory_name/vendor/anything_you_want
your_directory_name/cache/anything_you_want
your_directory_name/hidden/anything_you_want
your_directory_name/boot.img
The above is only an example. You can add anything you want as long as there is a "system" directory inside another directory. When choosing the directory, choose your_directory_name instead of system or it won't work. Think of the directory structure exactly like the kitchen project directory. When you import directory structure, your directory will be copied into your project directory and files will be overwritten if they already exist. When you remove a directory structure, you will choose your_directory_name again and the plugin will remove the same files it finds from your project directory.

amlogic_unpack
  • Unpack Amlogic firmware img

apktools
  • Choose an apk from your current rom directory.
  • Decompile the apk.
  • Build apk.
  • Sign apk with 3 options (use signapk.jar, copy original META-INF to new apk, or copy new classes.dex and resources.arsc to original apk).
  • Move apk back to where it came from.
  • Patch smali using .ptch files
  • Delete META-INF from all apk files
  • Delete SEC-INF from all apk files
  • Separate lib directory from all apk files
  • Zipalign apk files

aroma_install
  • Install Aroma in your existing ROM.
  • Create aroma-config using a menu.
  • Choose apk files to add to the option menu.
Usage:
  1. Extract your ROM normally using ONLY set_metadata or set_perm.

autorom_config
  • Creates an AutoROM config file to automate the extraction process and many other tasks.
  • Currently supports perm type, vendor.img, rom name, custom signature, deodexing, root, su.d, and Busybox

buildprop_add
  • Adds lines from a file to build.prop.

concatimg
  • Combines partition_*.img files into a single img file

custom_zip
  • Create a flashable zip of one or more image files as long as you know the partition name where it should be flashed.
  • Create a flashable patch zip from directories that have matching fs_config and file_contexts3 files
  • Convert updater-script to update-binary script for use in the mods_install plugin
Usage:
  1. Copy the partition images and/or directories you want in the zip into a new directory in your project.
  2. In the kitchen main menu, choose Plugin Manager > Run a plugin > custom_zip
  3. Choose the new directory from the list.
  4. For img files in by-name devices, type the partition name from your device where it should be flashed (ex. aboot)
  5. For img files in mmcblk devices, choose your block from the list (add it to the device superr_mmc file if needed first).

decrypt_htc
  • Decrypt ruu.exe and ruu.zip files stored in your current project directory.
  • Extract system.img & boot.img to the current project directory for extraction.

Usage:
  1. Copy ruu.exe or ruu.zip to current project directory (ruu.zip must be named exactly ruu.zip).

ext4_build
  • Allows rebuilding ext4 img files that have been extracted by the kitchen even if there is not a complete ROM in the project.

gapps
  • Downloads and includes Open Gapps in your ROM.
  • Choice of aroma, super, stock, full, mini, micro, nano, or pico
  • Detects Android version and architecture from ROM to download the latest available version for your device.
  • If there is no ROM, it will allow you to choose Android version and architecture.
  • Remove gapps if it already exists.

gen_set_metadata
  • Generates set_metadata lines for every file in project directories that have matching fs_config and file_contexts3 files.

lg_tools
  • Unpack LG kdz files
  • Removes rctd, ccmd, and triton from LG boot.img.

mods_install
  • Add any flashable zip to your ROM that uses an update-binary script instead of a updater-script
  • Remove mods
  • Shows the kitchen added mods you currently have installed

ozip_decrypt
  • Decrypt firmware.ozip files

payload_dump
  • Unpack payload.bin firmware

rockchip_unpack
  • Unpack Rockchip firmware img files

samsung_tools
  • Asks one-by-one if you want to add ro.config.tima=0, ro.config.knox=0, ro.securestorage.knox=false, ro.securestorage.support=false, ro.security.mdpp.ux=Disabled, and wlan.wfd.hdcp=disabled to ramdisk default.prop
  • Create tar.md5 from all img, mbn, ext4, and bin files in your ROM directory.
  • Create tar.md5 from all the above except system.img, system.img.ext4, boot.img, and recovery.img
  • Decode OMC/CSC
  • Deodex patch for Android 8.1+
  • Pack *_new.img files to lz4

sepolicy_injector
  • Converts sepolicy denials into allow rules, and optionally patches seplicy with the new rules.
  • Paste a denial
  • Read denials from 00_project_files/logcat.log

unsign_mtk_img
  • Removes MTK signature from img files

updateapp
  • Extract firmware.zip that contains UPDATE.APP
  • Extract img files from UPDATE.APP

Usage:
  1. Place a firmware.zip or UPDATE.APP in your rom directory.

xiaomi_patch
  • Patches several things in Xiaomi firmware.

Usage:
  1. Extract your firmware with the kitchen, then run the plugin.


User Contributed Plugins:

None
The Following 9 Users Say Thank You to SuperR. For This Useful Post: [ View ]
15th April 2020, 05:16 AM |#2  
SuperR.'s Avatar
OP Recognized Developer
Invisible
Thanks Meter: 8,506
 
Donate to Me
More
Custom Plugins

The donate version has plugin support. This means you can integrate your own script into the kitchen. Each plugin must have its own directory inside the kitchen plugin directory, and it must be named the same as the plugin script.

Examples:
/kitchen/tools/plugins/example_python/example_python.py (Windows, Linux, Mac)
/kitchen/tools/plugins/example_bash/example_bash.sh (Linux, Mac)
/kitchen/tools/plugins/example_batch/example_batch.bat (Windows)

You can check the example plugins in the kitchen for more details and use them as templates for your own plugin.

There are 3 variables set in the example plugin to take note of:

bd = /path/to/kitchen
rd = /path/to/kitchen/superr_projectname
plugdir = /path/to/kitchen/tools/plugins/pluginname

NOTE: If you would like to contribute a plugin, please PM a link to the plugin for review.
Thread Closed Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes