Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
New installation/flashing method: CWM/TWRP flashable zips #109
I'm working on implementing support for creating android recovery-flashable zips in pmbootstrap.
There are several reasons, why this would be useful, these are the ones, I find the most important.
There's a file in android update zips called update-binary, what gets executed by the recovery with superuser permissions. I've realized, we can put a simple shell script in the place of that binary, so there's no need to compile that from the android sources.
The zip will contain the whole rootfs unencrypted, and the dynamic binaries necessary for encryption/installation.
When we'll have a touch-friendly framebuffer input method (see #59), that is going to be used to input the password.
There are two commands/options/arguments I plan to add to pmbootstrap:
I've made some progress with the installer script, it is now able to install the rootfs to the system partition, and handle full disk encryption.
You can find the scripts here.
The most important files:
Instructions for creating a flashable zip for your device:
@ollieparanoid about the issue on Matrix:
He also suggested using a chroot.
Sounds good! A few recommendations:
What exactly would the new commands do?
We have a
I'm considering to have a command like
@ata2001 Hello, I tried this to create ZIP for i9100 but it failed for me:
(026297) [00:25:15] (buildroot_armhf) create recovery zip
Is there something that I can do to make it work?
I am interested in it because I thought I might flash FACTORYFS (SYSTEM) with this ZIP from TWRP as flashing with heimdall does not work for me...