[G4 Android Development] steadfasterX:
As already said I worked on a rewrite of FIsH to fix several things like the issues when installing and while still keeping portability in mind wide areas of FIsH.

All this is required to the public generic release of FIsH for all devices so as a result of this you can profit from it directly ;)

btw the release of the generic FIsH is very near.. I even written 4 pages of stuff around it but i need some more free time to re-read and publish it..

The main parts of that job are finished now and so I want to release a new TWRP-in-FIsH version for you which has some enhancements inside.

Here comes the Changelog for TWRP-in-FIsH-v2.0-BETA1_LGG4_LL

(as far as im able to remember.. i have changed so many things inside..)

TWRP-in-FIsH now has a meaningful package name (TWRP-in-FIsH-v2.0-BETA1_LGG4_LL.tgz) which reflects all required information

The installer is checking for the SDK level now instead of the Android release version! This means ANY Lollipop version will work without modifications of the installer

new: completely overworked WIDE parts of FIsH

In order to be more easy portable all variables users may need to adjust are moved to FIsH.porting

while FIsH.me contains global variables for FIsH a user/dev normally would

NOT

change.

The log has been enriched with some more useful information

The stopping of android services is now more aggressive

Apropos aggressive: now we use fuser to kill ALL processes before trying to unmount a disk (excluding init and ourself)

Another porting stuff was added: we extract the FISHFOOD but WITHOUT a possibly existing file </init>. When you prepare your own ramdisk it may or may not contain a file /init but we do not want to overwrite the current running /init by just cpio yet.

The reason is: it makes a difference in the Linux world to use cp or mv or cpio > to overwrite!

The short version: using mv is the best choice here. So we extract first without /init (if there is one) and then extract /init ONLY but to a different directory. Afterwards we use mv to overwrite the current /init with either an extracted /init or your own init name configured by the new FOODBIN variable.

Unfortunately this has not that positive effect I hoped but I leave it there because it is the way it should be done nevertheless.

Now FIsH also:

- checks the exec bit before it tries to start it! Im still thinking of adding a reboot if not.. but this could cause bootloops.. on the other hand doing nothing will leave the device in a unusuable state.. well it should more or less never happen though but.. :P

- save the current SELinux mode

- trying to restore the saved SELinux mode when something goes wrong (at the end this will make no sense but it doesnt hurt)

- umounts when a mount point is mounted ONLY

Besides that FIsH now comes with callmeFIsH - a caller script which gets executed at very first.

The only task callmeFIsH has is to prepare the whole FIsH to get started out of /system and then starting FIsH from /res. After this it immediately exists to not keep open tasks on /system.

Also new are some parts of the installer e.g. starting adb server first and then wait for a connected device before continue the installation.

The installer is keeping track of an older FIsH install and removes the previous one before as well

The installer also now giving a hint that you may have to change to PTP mode on your G4 to get detected

For completeness: Same TWRP version inside so nothing changed here..

BUT !

As you can see I have changed many parts of FIsH which also means: IT WILL BE RELEASED CLEARLY STATED AS A

BETA

first. I feel save enough through my heavy testing to push it public instead of making it a private beta but again: BIG CHANGES MADE SO.. but what Im talking about.. there is always a risk even when 100 times tested so no guarantees etc.

MAKE A BACKUP. Do not use until u have a full backup of all your data including ur internal storage (keep in mind this will NEVER get backuped by TWRP --> read this (written by me btw... lol) )

During these changes I have renamed the package folder from openFIsH to

android_FIsH

. Please keep this in mind when you extract the FIsH ;)

So after you extract the BETA package you have to do

"cd

android_FIsH

"

instead.

Let me know your results and happy FIsHing!

.