Home

Awesome

Flashize

Turn Shell Scripts Into Flashable Android Recovery Zips

Features

<br>

Usage: FLASHIZE

Flashize (2016-04-06)

Converts a shell script to a flashable Android recovery zip.

flashize <input-script> [<output-zip> [<runtime-logfile>]]

Reads the script from standard input if <input-script> is a dash (-).

Names the output zipfile based on <input-script> if <output-zip> is null or a dash.

Can create a logfile on the device at runtime, according to the value of <runtime-logfile>:

This setting can be overridden by creating a '/tmp/flashize-log' file on the target device:

Script debugging modes are enabled by creating dummy files on the target device:

<br>

Usage: FLASHIZE-EXT

Flashize-Ext (2016-04-06)

Converts a shell script to a flashable Android recovery zip. The resulting flashable zip automatically extracts the full content of the zipfile before invoking the script. This tool is compatible with Busybox and Toybox.

flashize-ext <input-script> [<input-zip> [<output-zip> [<runtime-logfile> [<dest-dir>]]]]

Reads the script from standard input if <input-script> is a dash (-).

Names the output zipfile based on <input-script> if <output-zip> is null or a dash.

Can create a logfile on the device at runtime, according to the value of <runtime-logfile>:

This setting can be overridden by creating a '/tmp/flashize-log' file on the target device:

Extracts files to <dest-dir> or to '/tmp/flashize' if <dest-dir> is null or a dash.

Script debugging modes are enabled by creating dummy files on the target device:

<br>

Usage: FLASHIZE-EBB

Flashize-EBB (2016-04-06)

Converts a shell script to a flashable Android recovery zip. The resulting flashable zip can automatically extract resources bundled within the zipfile before invoking the script. This tool is incompatible with Toybox due to shortcomings of its 'unzip' command, and requires Busybox instead. Thus the Toybox-based CyanogenMod 13 recovery is not supported.

flashize-ebb <input-script> <input-zip> <output-zip> <runtime-logfile> <src-dir> <dest-dir> [<extra-src-spec>...]

Reads the script from standard input if <input-script> is a dash (-).

Names the output zipfile based on <input-script> if <output-zip> is null or a dash.

Can create a logfile on the device at runtime, according to the value of <runtime-logfile>:

This setting can be overridden by creating a '/tmp/flashize-log' file on the target device:

Extracts files from the zip at runtime, according to the value of <src-dir>:

Script debugging modes are enabled by creating dummy files on the target device:

<br>

Usage: FLASHIZE-ENV

Flashize-Env (2016-04-06)

Converts a shell script to a flashable Android recovery zip. The resulting flashable zip can temporarily add binaries to or otherwise alter the runtime environment offered by the recovery before invoking the script.

flashize-env <input-script> [<env-spec> [<output-zip> [<runtime-logfile>]]]

Reads the script from standard input if <input-script> is a dash (-).

Can temporarily alter the runtime environment, according to the value of <env-spec>:

Names the output zipfile based on <input-script> if <output-zip> is null or a dash.

Can create a logfile on the device at runtime, according to the value of <runtime-logfile>:

This setting can be overridden by creating a '/tmp/flashize-log' file on the target device:

Script debugging modes are enabled by creating dummy files on the target device: