yashsingh1/xdaforums huggingface dataset:
[G4 Android Development] steadfasterX:
so...

next build is on the way. I feel it is a RC release and hope it works as it should.

Changes:

Complete overworked FIsH to be as easy portable as possible. I included the first porting instructions as well for the upcoming porting guide.

There are also many optimizations within the FIsH itself which should ensure that everything works as it should.

upgraded busybox to it's latest version

and last but not least I was able to compile a TWRP version compatible with LL and so with this FIsH. That means TWRP 3.1 !

build a new kernel which includes a kernel patch I need later for efidroid but thats another story ;)

The testers are informed and I hope that all goes well so I can release it public soon.

stay tuned

sfX
[G4 Android Development] TheMadScientist:
just like previous releases seems like it works as it should. like he posted do have to manually mount system partition oh well not a big deal.

but backup and restore usb otg works i did click at first of twrp to modify system

not to keep read only and upon reboot i did not install none of the twrp apps it wanted me too
[G4 Android Development] Aaahh:
Nicely done, what process did you hook it into?

---------- Post added at 02:31 PM ---------- Previous post was at 02:27 PM ----------

If you dump the partition with the vendor stuff on it from a new rom (not the vendor partition, can't remember what it was called, the partition with winevine and stuff) (might be called tz.) then you can remap a marshmallow or nougat rom to use them without having to upgrade from LL base, you need a lot of system storage tho, not sure how much

If u are confused by my bad directions and want to countine just dump all the partitions and find the one with winevine and other files
[G4 Android Development] steadfasterX:
Ohm what? The partition you mean is modem. It will be mounted as firmware and contains the stuff u mentioned. But I don't know what exactly you're trying to tell me :eek: do you talk about installing another ROM like nougat? Thats on the way and not too far away :cool: I want to use FIsH to boot into efidroid then I can boot whatever I want.

The system partition will be just needed as the jumping step for FIsH nothing more nothing less.

The cool thing with efidroid is that you specify image files for firmware etc then you could even use different firmware partitions for different ROMs. It is a really nice approach and imho much better then multirom (multirom will be my fallback option if I cant get efidroid running through the way I need it for FIsH) because you do not need to patch a kernel or ROM to make it boot. Dont get me wrong multirom is great but I like the idea of efidroid.

I have already an efidroid build ready thx to [MENTION=5646556]J0SH1X[/MENTION] but I first want to finish this job here ;)

Then releasing the FIsH porting guide with all the details about it and then fixing the sdcard issue in efidroid and as the finals step then cooking efidroid-in-FIsH. Thats my current master plan. :cool:

.

.
[G4 Android Development] Aaahh:
heHaven't ard of efidroid but dumping that firmware partition

From official marshmallow and then adding that folder to path (making sure you don't mount that partition) and then you can have another marshmallow rom running in place of LL. Tearing down init is easy with true root, a custom updater-binary could be used to add compability

But you say you have efi working so ?
[G4 Android Development] steadfasterX:
good to know :) but yes with efidroid not required.. :D
[G4 Android Development] TheMadScientist:
my intern storage sits usaully at 17 to 19 gb free and i keep a 32 gb samsung evo class 10 card inside sittin at roughly 25 gb free surely those would be enough
[G4 Android Development] steadfasterX:
TWRP-in-FIsH finally released :victory:

Known issues (may never get fixed)

Due to the fact that TWRPinFIsH is a brutal hijack of the booting process several things may not work as expected.

This will normally not harm anything but you have to know about.

ZIP / ROM flashing:

omg really? DON'T TOUCH BOOT / RECOVERY. And you be safe.

When you try to install a ROM it will modify at least BOOT. That means soft-brick!

When you try to install a custom Kernel.. omg really? It will definitively SOFT-BRICK! Maybe you should read the limitations again?? :p

When you try to install a ZIP like xposed, supersu, Vipermod and others ensure that those are not modifying BOOT or RECOVERY partitions. For those mentioned it would be very unlikely but who knows.

SYSTEM partition:

when you boot into TWRPinFIsH you may see an error message regarding the fact that /system cannot be mounted.

you can mount /system manually without a problem - BUT - it will work only if you do NOT select "mount system read-only". It has to be unchecked to work.

after you have mounted /system manually and you want to take a backup you may see "0 bytes". Just press refresh and the size will be updated. If not: Do you have mounted it correctly (see above).

FIRMWARE partition:

cannot be mounted - even not manually. You have to live with it.

Double Tap to wakeup:

This cannot work due to the nature of this hijack. You have to live with it.

Download:

Go to the OP and check the download section.

Please also check the confirmed device list !!! -> if your device is missing there let me know your results of the installation and I will add you to the list.

THANKS

Last but not least I really wanna say thx to the testers! Especially [MENTION=5759239]TheMadScientist420[/MENTION] for his

heavy

testing in the private beta but of course also to all the other testers: [MENTION=5937299]the_naxhoo[/MENTION], [MENTION=4976963]SimoxTav[/MENTION], [MENTION=1258758]ReeS86[/MENTION] and [MENTION=1718061]uio88[/MENTION].

All your help and feedback was warmly welcomed and appreciated - many thanks! :highfive: :good: :fingers-crossed: :victory:

@ all: have a nive weekend and happy FIsHing! ;)

thx

sfX

.
[G4 Android Development] g_ding84:
I got it installed and able to boot into TWRP on VS986 (Verizon LG G4) can mount system manually. Wipe cache and dalvik cache. Testing on installing Viper4Android and Xposed zips. Will report back.

Script was very easy to use and install. TY very much
[G4 Android Development] TheMadScientist:
Noticed u made a comment about double tap to wake not working. It is on my device quite well
[G4 Android Development] steadfasterX:
thx for testing and reporting!

Really? you can wake up the device in TWRP with double tap? Which version do you use the RC or the final?
[G4 Android Development] TheMadScientist:
Oh not in twrp. In os i can

On further note i owed a g2 and g3 with twrp and dttw didnt work in them either if i remember correctly. That is normal. I know the tap to wake code is in the kernel but i dont think it gets loaded til the system is up since it relies on the prox sensor and a couple other things

---------- Post added at 05:43 PM ---------- Previous post was at 05:41 PM ----------

I had a sprint user try to dg today and hardbricked. Even though i have a in depth thread of which firmwares can and cant be dged.

People will never learn or listen
[G4 Android Development] steadfasterX:
I only mention this because I added that feature in the current OFFICIAL twrp for UNLOCKED devices ;) It really works well there :D but not here as it is a hijack.

@ ALL:

I have added another list for your testing experiences. If you like tell me what you tried to flash and the result.

Here is the current list: LINK

Would be nice to see that list filled with some "confirmed to work" ;)

.
[G4 Android Development] TheMadScientist:
I flashed viper and it works.
[G4 Android Development] steadfasterX:
great! what version?
[G4 Android Development] TheMadScientist:
loil i have to check when i get home

run out to stock up on more nyquil
[G4 Android Development] g_ding84:
Quick report, Viper4Android and Xposed zips do flash.....Just do one at a time so to manually mount /system. After each zip /system is unmounted.
[G4 Android Development] uio88:
Thanks to you for your very important work! Now we will wait the efidroid, for booting nougat before LG :D
[G4 Android Development] steadfasterX:
Many thanks for your report!

Can you just tell what versions of both do you flashed?
[G4 Android Development] onotor:
Is there a way to install it on windows without FWUL? is it gonna be revealed???
[G4 Android Development] steadfasterX:
Install FWUL in virtualbox. I released a new FWUL version yesterday which fully supports VirtualBox.

My priorities are now switching to efidroid-in-FIsH . maybe i will release a windows installer afterwards.. Maybe not.. Dunno atm. Sorry.

.
[G4 Android Development] g_ding84:
Viper4Android 5.4 stock zip with Dolby Atmos link : https://xdaforums.com/nexus-6/themes-apps/viper4android-t2952137

Xposed version 87 (SDK 21)
[G4 Android Development] medo18:
Dear [MENTION=5545101]steadfasterX[/MENTION]

Please can I install this patch by Ubuntu ?

Thank you very much for your effort.
[G4 Android Development] steadfasterX:
Sure any Linux will work. Just follow the installation guide.

.
[G4 Android Development] g_ding84:
Ubuntu, Lubunt or Linux mint will work. Make sure to install adb and fastboot.
[G4 Android Development] TheMadScientist:
I used ubuntu for all of this.
[G4 Android Development] alitavas:
Hmm TNX for your hard works

Could explain how did you do that?

I mean installing adb on Ubuntu

Sent from my LG G4
[G4 Android Development] Jwtiyar:
sudo apt-get install android-tools-adb & android-tools-fastboot
[G4 Android Development] jal3223:
[LOCKED][G4][TWRP][UNOFFICIAL] TWRP-in-FIsH for all locked G4 devices

So is this basically no different than using Flashfire? What are the advantages?
[G4 Android Development] onotor:
As described, FIsH can boot anything(efidroid, twrp etc).. And this is just chapter one which helps you to get TWRP access on a locked device..
[G4 Android Development] fates13:
Also flashfire has problems flashing stuff like viper4android because it doesn't run the full installation process. This one will
[G4 Android Development] alitavas:
I tried that but failed ?

It says not found

Sent from my LG G4
[G4 Android Development] Spookymyo:
Can this make full nandroid backups?
[G4 Android Development] ReeS86:
One note for those that don't normally use linux. I had to change the USB mode from MTP to PTP to have my device seen by ADB. Also you have to unlock the screen and accept the security dialog that pops up on the phone.
[G4 Android Development] steadfasterX:
Some others replied already but let me add one more: did you ever tried to restore the system partition with flashfire? It will fail.

What Ubuntu version?

Sure. The only issue left is that the firmware partition can not be mounted and therefore not be backuped. That one can be restored manually if required though..
[G4 Android Development] medo18:
I'm trying to install but the problem is your version is 5.1.1 and you must have 5.1.

I will flash 5.1, then we will see.
[G4 Android Development] alitavas:
Ubuntu 16.10 & Ubuntu 14.10

I temporary boot them with USB drive

Maybe i will install them with virtual box

Sent from my LG G4
[G4 Android Development] TheMadScientist:
I like flashfire. But half time it force closes. Dont flash. If i brick then i have to tot back stock reroot install then restore. Yea its kinda like usin flashfire. But in my opinion twrp is better even in current state.

---------- Post added at 03:55 PM ---------- Previous post was at 03:54 PM ----------

Use firefox look up adb and fastboot for ubuntu. It failed for me too
[G4 Android Development] steadfasterX:
5.1.1 should work fine das well. What is the error message? Cipy and paste the whole output of the Installation.

Download FWUL v1.1 and use it in virtualbox. It has everything on board ready to use.
[G4 Android Development] medo18:
Please find below, thank you.

Android Debug Bridge version 1.0.32

############# checking Android version

error: device not found

ERROR! You have Android running but 5.1 is required. FIsH will not be able to boot! ABORTED.

Just wait I'll inform you another massage.

Android Debug Bridge version 1.0.32

############# checking Android version

-> Matching required Android version: 5.1

############# checking SuperSU version

-> Matching required SuperSU version: 279

############# temporary disable SELinux

-> command ended successfully (err=0)

SELinux mode: Permissive

############# cleaning

-> command ended successfully (err=0)

############# creating temporary directory

-> command ended successfully (err=0)

-> command ended successfully (err=0)

############# pushing files

5055 KB/s (1107664 bytes in 0.213s)

7049 KB/s (6438876 bytes in 0.892s)

497 KB/s (21823 bytes in 0.042s)

63 KB/s (2645 bytes in 0.040s)

0 KB/s (13 bytes in 0.040s)

-> command ended successfully (err=0)

############# remount /system

############# injecting the FIsH

-> command ended successfully (err=0)

############# remount /system RO again

ALL DONE! Reboot and enjoy the FIsH.

Get support on IRC:

Install HexChat (https://hexchat.github.io) -> channel #Carbon-user on freenode

or

Open: http://webchat.freenode.net/?channels=Carbon-user

Done thank you very much :)
[G4 Android Development] steadfasterX:
You do not need to do this!!! This is NOT necessary. FIsH will do this for you. You just have to CHECK if you can set it MANUALLY nothing more nothing less.

The first message says it cannot find your device. It is the message before which was the reason.

But now it is working for you good :)

Happy FIsHing ;)
[G4 Android Development] g_ding84:
You either have to manually add the repository or type this in terminal

sudo apt-get install adb && sudo apt-get install fastboot -y

It will install adb and fastboot. Also you can use adb globally from terminal without having to navigate to that folder.
[G4 Android Development] TheMadScientist:
All but modem firmware and must mount system
[G4 Android Development] sdembiske:
Interesting thought but perhaps wrong? SuperSU version 2.79 installed
[G4 Android Development] steadfasterX:
Does it work for you now?

If so send me your fish log pls:

boot into TWRP

adb shell "cat /cache/fish/fish.log"

or when it does not work for you while in running Android:

adb shell getprop ro.build.version.release

adb shell getprop ro.com.google.gmsversion

adb shell getprop ro.build.date

adb shell getprop ro.build.fingerprint

thx
[G4 Android Development] sdembiske:
I'll let you know once I get that far. Just getting all the ducks in a row first. Will start install process tomorrow most likely. Had to clear up the SELinux permission issue first.
[G4 Android Development] steadfasterX:
The getprop commands should be done without installing the FIsH ;) I just wanna check what exact version is reported on your device because you experience such issues..

.
[G4 Android Development] steadfasterX:
Another day - Another device ;) thx @KnightOdin

List of confirmed devices (as of 2017-03-21)

If you own a device missing on this list - let me know and I will add it here.

H815 International - unlocked (Thanks [MENTION=5545101]steadfasterX[/MENTION] yea its mine and i have no locked device to test with ;) That's why i needed ur help. but i test with PURE stock and without touching the boot chain so its similar to locked devices.)

H812 - locked (Thanks [MENTION=1258758]ReeS86[/MENTION])

H815 EUR - locked (Thanks [MENTION=1718061]uio88[/MENTION])

H815P - locked (Thanks [MENTION=3281285]KnightOdin[/MENTION])

H815T - locked (Thanks [MENTION=5937299]the_naxhoo[/MENTION])

H818P - locked (Thanks [MENTION=4976963]SimoxTav[/MENTION])

LS991 Sprint - locked (Thanks [MENTION=5759239]TheMadScientist420[/MENTION])

VS986 - locked (Thanks [MENTION=4644109]g_ding84[/MENTION])

List of confirmed flashing experiences (as of 2017-03-21)

If you tested a ZIP missing or unknown on this list - let me know and I will add/update it here. Write the exact version tested would be helpful as well.

Xposed -

confirmed to work

(tested: Xposed version 87 (SDK 21). THANKS for your report [MENTION=4644109]g_ding84[/MENTION], [MENTION=5937299]the_naxhoo[/MENTION], [MENTION=3281285]KnightOdin[/MENTION])

Viper4Android -

confirmed to work

(tested: Viper4Android 5.4 stock zip with Dolby Atmos. THANKS for your report [MENTION=4644109]g_ding84[/MENTION] , [MENTION=5937299]the_naxhoo[/MENTION])

SuperSU - unknown

ANY OTHER ZIP - unknown ----> Please report back if you have flashed one missing here :)
[G4 Android Development] niftium:
H810 user here, watching this thread carefully. I'm going to watch this from the sidelines for now since this is my daily. But if efidroid + fish bears fruit (and if the 50-hour weeks and two toddlers allow me), I might find myself chiming in. I've sprinkled some thanks throughout the thread - good stuff.
[G4 Android Development] sdembiske:
getprop.ro command results - done

Done - uploaded to https://paste.omnirom.org and pasted the link in the IRC channel

S.
[G4 Android Development] steadfasterX:
ok. saw this in IRC.

Well there are users having older LL and even newer and even the same build then yours and it works for them..

what exactly happens when you try to set to permissive?
[G4 Android Development] sdembiske:
Permission denied or not available

I'm wondering now if I missed directing when in adb shell to SU and that was the reason, I was getting the issues. Entirely possible that was the cause but will have to test it out i.e., may have been my own dumb mistake by not reading the commands carefully and fully.

Correction: Universal init.d app not required. It was my dumb mistake by not directing to SU when in adb shell as near as I can ascertain after deleting the app. Sorry for any confusion. Manure happens.

Regards, S.
[G4 Android Development] g_ding84:
[MENTION=5545101]steadfasterX[/MENTION] SuperSu version 2.79 stable flashes fine. As it's 5.1 it will install as system and not patch the boot.img.
[G4 Android Development] steadfasterX:
:laugh: we are all humans aren't we ;)

Thx for giving feedback :highfive:

Perfect. That was expected but I had no proof for it yet :highfive:

Thx for givin feedback! :victory:

.
[G4 Android Development] sdembiske:
Thanks - Had to switch to PTP mode as well

Would have been pulling out my hair even more if hadn't run across your post here - only thing that ended up working for me as well in VirtualBox with Ubuntu installed. Installing the drivers on the PC when it popped up on the phone screen also seemed to be necessary as well as accepting the security dialog connection popup you mentioned.

Cheers, S.

---------- Post added 23rd March 2017 at 12:08 AM ---------- Previous post was 22nd March 2017 at 11:55 PM ----------

Well after the "I can't believe I did that" SELinux permissions dumb mistake and getting the device recognized finally in ADB devices in VirtualBox (Ubuntu installed), SUCCESS! Installed quickly with no errors and booted successfully into TWRP (first backup done with no problems) and rebooted back up no problem. Thanks for all your patience and all the thought and work you put into this. Very much appreciated. Thanks as well to ReeS86 for his PTP post to get the device recognized in VirtualBox and paving the way for the H812 owners.

Best Regards,

S.
[G4 Android Development] steadfasterX:
Report and feedback like this will help other people very much thanks again! I have updated the installer for next version and it will be more robust and having a hint regarding the ptp mode as well.

This is btw not a problem for a special model it has to be done for all g4 devices afaik.

Regarding your driver problems that's why I recommend FWUL ;)

Btw the new version will check for every Lollipop version now otherwise the installer on camuix for example would fail.. Thx [MENTION=5178091]alitavas[/MENTION]

.
[G4 Android Development] sdembiske:
Great

I put a heads-up to everyone on [Canadian Guide] - Complete Source for the LG G4 H812. Linux VM/Root/Tools&Files at https://xdaforums.com/g4/general/canadian-guide-complete-source-lg-g4-t3212449 (see post #1309) to check out your work here. What would be very cool would to be able to re-boot into TWRP-in-FisH from an extended power menu - don't know if it's possible, but one can dream, eh? Thanks, again.

S.
[G4 Android Development] steadfasterX:
well absolute no problem... :)

I have implemented this already (the part required in FIsH).. !!! ;) (never said this yet though.. :silly: )

the only thing required is that the power menu will write the file /cache/recovery/boot

This will be checked by FIsH already and when it is there (content doesnt matter it just has to exist) it will autoboot into TWRP..

without any key press needed.

I saw other hijacks using the same way to do this so I decided to handle this as well and so it is in FIsH.

tbh I havent checked for an app writing this file yet maybe an advanced power menu will just do exactly this (writing the file)

if u find an app which writes this file lemme know ;)

e.g. a script would do (like this: http://smanager.wikidot.com -> reboot Srecovery would do this)

you can test it easily while in running Android:

adb shell "su -c touch /cache/recovery/boot"

reboot and u will see TWRP..

EDIT: Sorry forget to add the su part...

.
[G4 Android Development] ReeS86:
I've installed the new beta and it installs perfectly and boots as expected. I didn't have a chance to backup or restore but I can report that mounting of Firmware and System work and can also mount system as read only now.
[G4 Android Development] steadfasterX:
yea I found out that mounting firmware isn't working when the device has a /cust partition (it seems).

but.. that /system is mounting now read-only .. well this was not expected :D lol..

Could u do me a favor and send me the fish log (while in TWRP: adb shell cat /cache/fish/fish.log )?

thx for reporting!!

.
[G4 Android Development] Newmak:
I've already installed it. It works fine on H815P.
[G4 Android Development] steadfasterX:
thx to all ! Of course as well to those who send me the feedback as PM ;)

I removed the BETA state for the 2.0 and replaced the download with one without a BETA flag.

Nothing of the implementation has changed I removed the busybox only but this get auto-downloaded for you when installing.

.
[G4 Android Development] Velkyrix:
Works great on H815L! Got some mods running without any problem :)
[G4 Android Development] sdembiske:
No luck with an extended power menu that will work ...

Thank you for this. I've had no luck finding an extended power menu app that will enable reboot into your TWRP version. Closest seems to be a reboot into the dead android robot screen, necessitating a battery removal before powering back up. If you or anyone else comes across one or can construct one, would appreciate a heads-up and link. With TWRP-in-FIsH-v2.0-BETA1_LGG4_LL installed with one of the power menu apps, a backup stalled at 51% so I had to cancel the back-up and remove the app.

Your adb shell "su -c touch /cache/recovery/boot" worked a charm.

Best, S.

---------- Post added at 07:42 PM ---------- Previous post was at 07:30 PM ----------

The install went easily and quickly but backup seems to take a longer time now to complete. Unlike ReeS86, I was unable to mount system as read only and definitely could not mount firmware. As mentioned above, one of the extended power menu apps I installed, seemed to create an issue with the first back up I tried and stalled out at 51%, needing to be cancelled. With the app removed, the next backup worked but took two times before it mounted the system for backup - it was done manually prior.

Haven't tried a restore as yet, want to run another backup or two before I do to see if any issues presenting or recurring.

Thanks,

S

Restore failed twice. Problem seems to be on the System partition. I'm assuming the partition has to be mounted manually before both backing up and restoring. Not sure why the problem is arising but both times ended up going back to stock, re-installing the rooted image, etc., to start the whole process again. Getting a little nervous about trying any more restores. Any suggestions/inputs as to exact steps those who have restored with no problem would be appreciated.