Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Lanchon/Flashize
Turn Shell Scripts Into Flashable Android Recovery Zips
https://github.com/Lanchon/Flashize
Last synced: 15 days ago
JSON representation
Turn Shell Scripts Into Flashable Android Recovery Zips
- Host: GitHub
- URL: https://github.com/Lanchon/Flashize
- Owner: Lanchon
- Created: 2016-03-19T17:48:50.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-06-03T10:16:17.000Z (over 7 years ago)
- Last Synced: 2024-08-01T05:24:10.980Z (3 months ago)
- Language: Shell
- Homepage:
- Size: 25.8 MB
- Stars: 27
- Watchers: 8
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: licenses/runtime-LGPLv3.txt
Awesome Lists containing this project
README
## Flashize
### Turn Shell Scripts Into Flashable Android Recovery Zips#### Features
- Automatically convert shell scripts to flashable zips with a single command.
- Don't mess with `ui_print` crap: standard output and error streams will work just fine.
- Can add binaries to or otherwise alter the runtime environment offered by the recovery.
- Flip Toybox the bird: includes ready-to-go Busybox binaries for various architectures.
(Binaries borrowed from [busybox.net](https://www.busybox.net).)
- Can automatically extract resources from the zipfile before invoking the script.
- Can automatically create a logfile of the output of the script.
- Displays (and possibly logs) the script exit code and reports it back to recovery.
- The script receives the path of the zipfile being flashed as its first parameter.
(Other parameters reserved for future use.)
- Supports various debugging modes for runtime script tracing.
- Flashize requires Bash shell. It is developed and tested under Linux.
- Flashize is free software published under GPL and LGPL version 3 and later licenses.
#### Usage: FLASHIZE
Flashize (2016-04-06)
Converts a shell script to a flashable Android recovery zip.
`flashize [ []]`
Reads the script from standard input if `` is a dash (-).
Names the output zipfile based on `` if `` is null or a dash.
Can create a logfile on the device at runtime, according to the value of ``:
- The absolute path of the logfile to be created.
- A relative path or filename to be interpreted against the path of the zipfile being run.
- A colon (:) to use the pathname of the zipfile being run with a '.log' extension.
- Null or a dash to disable logging.This setting can be overridden by creating a '/tmp/flashize-log' file on the target device:
- If the file is empty then enable logging to '/tmp/flashize.log'.
- Otherwise override the value of `` with the contents of the file.Script debugging modes are enabled by creating dummy files on the target device:
- Create '/tmp/flashize-debug' to trace the user-supplied script.
#### 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 [ [ [ []]]]`
Reads the script from standard input if `` is a dash (-).
Names the output zipfile based on `` if `` is null or a dash.
Can create a logfile on the device at runtime, according to the value of ``:
- The absolute path of the logfile to be created.
- A relative path or filename to be interpreted against the path of the zipfile being run.
- A colon (:) to use the pathname of the zipfile being run with a '.log' extension.
- Null or a dash to disable logging.This setting can be overridden by creating a '/tmp/flashize-log' file on the target device:
- If the file is empty then enable logging to '/tmp/flashize.log'.
- Otherwise override the value of `` with the contents of the file.Extracts files to `` or to '/tmp/flashize' if `` is null or a dash.
Script debugging modes are enabled by creating dummy files on the target device:
- Create '/tmp/flashize-ext-debug' to trace the user-supplied script.
- Create '/tmp/flashize-debug' to trace file extraction.
#### 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 [...]`
Reads the script from standard input if `` is a dash (-).
Names the output zipfile based on `` if `` is null or a dash.
Can create a logfile on the device at runtime, according to the value of ``:
- The absolute path of the logfile to be created.
- A relative path or filename to be interpreted against the path of the zipfile being run.
- A colon (:) to use the pathname of the zipfile being run with a '.log' extension.
- Null or a dash to disable logging.This setting can be overridden by creating a '/tmp/flashize-log' file on the target device:
- If the file is empty then enable logging to '/tmp/flashize.log'.
- Otherwise override the value of `` with the contents of the file.Extracts files from the zip at runtime, according to the value of ``:
- Null or a dash: changes to `` and extracts files matching `` there.
- A path within the zip: changes to ``/``, wipes its contents and extracts
`` there. Also extracts files matching `` to ``.Script debugging modes are enabled by creating dummy files on the target device:
- Create '/tmp/flashize-ebb-debug' to trace the user-supplied script.
- Create '/tmp/flashize-debug' to trace resource extraction.
#### 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 [ [ []]]`
Reads the script from standard input if `` is a dash (-).
Can temporarily alter the runtime environment, according to the value of ``:
- The name (without extension) of a configuration provided in Flashize's 'env' directory.
- The path of a user-provided zipfile containing the environment configuration.Names the output zipfile based on `` if `` is null or a dash.
Can create a logfile on the device at runtime, according to the value of ``:
- The absolute path of the logfile to be created.
- A relative path or filename to be interpreted against the path of the zipfile being run.
- A colon (:) to use the pathname of the zipfile being run with a '.log' extension.
- Null or a dash to disable logging.This setting can be overridden by creating a '/tmp/flashize-log' file on the target device:
- If the file is empty then enable logging to '/tmp/flashize.log'.
- Otherwise override the value of `` with the contents of the file.Script debugging modes are enabled by creating dummy files on the target device:
- Create '/tmp/flashize-env-debug' to trace the user-supplied script.
- Create '/tmp/flashize-ext-debug' to trace environment setup.
- Create '/tmp/flashize-debug' to trace file extraction.