Friday, 29 July 2016

[Linux] Lightning Converter - Easily create a flashable ZIP from device via ADB



Just a simple script made to do 2 things -

Features
  • Create flashable ZIP from a system.img/system.img.ext4 and boot.img

  • Create flashable ZIP from device dump via ADB


Prerequisites
  • A Linux computer (preferably with an Ubuntu/Debian-based OS)

  • Ubuntu running in Virtualbox will work if you want

  • Both "zip" and "adb" binaries installed (the script shows you how if you don't have it already)

  • A brain (or part of one)


Installation/Usage

To install:


Code:


git clone https://github.com/Lightn1ng/lightningconverter.git

To use:


Code:


cd lightningconverter
sudo bash lightningconverter.sh


Thanks

@SuperR. - 2 lines of code for the device by-name detection
@JustArchi - 1 line of code for the sparse image detection



No comments:

Post a Comment