yashsingh1/xdaforums huggingface dataset:
[G4 Android Development] sdembiske:
Here you go ...

Here you go: adb pull /tmp/recovery.log while still in TWRP immediately after restore complete.

Link: https://www.dropbox.com/s/6pr0bfgfq...WRP recovery file - adb pull in TWRP.log?dl=0

As well after reboot: copying file directly in TWRP Recovery and posting the whole file:

Link: https://www.dropbox.com/s/1z4a89r1l...ery file - from SD card after reboot.log?dl=0

Interesting development: Link2SD Plus did not throw up any error about 2nd partition not being mounted at boot after restoring and rebooting.

PS: I would appreciate it if you would consider a mention in your OP about AntaresOne power menu app working for us - he was the only one to step up to the plate and do us a good turn and it does work like a charm. Not one of the advanced power menu apps I tried (there were many) worked or their developers responded to a request for the feature to be included.

Thank you again,

S.
[G4 Android Development] steadfasterX:
Thx. Sure I will add it asap!
[G4 Android Development] sdembiske:
Thanks re: ... and ... With respect to Link2SD Plus ...

Thanks re: the mention in your OP about AntaresOne's power menu app - I appreciate it and I know he will as well

... and ... With respect to Link2SD Plus ... I'm wondering if the issue was triggered doing that particular backup as it did occur after rebooting before doing the recovery from that backup - i.e., the recovery may have simply been a reflection of that initial backup?

Over the next bit, I will do another backup and see if it recurs on reboot and then do a recovery from that backup.

From my point of view, so far, I have found your Version 3 Beta 4 to be the most stable for me, for whatever reason but perhaps because no system mounting had to be remembered in the backup, making it more foolproof?

Regards,

S.

Addendum

:

Did another backup and restore from that backup with no issues recurring with V3 Beta5. I did, however, make sure the system partition was mounted manually before doing the restore. Not sure why the Link2SD Plus 2nd partition mount failed in the first instance. I noticed this time that all the ticked partitions in both backup and restore were retained from the last use, so I think it may be important to make sure all partitions are ticked on first use and the system partition is mounted manually

before

doing a restore ... ?

All good.

S.
[G4 Android Development] TheMadScientist:
Hey man. I just got a chance to dl fwul and run it for the first time. Mad props man. Its beutiful. Lol. Perfection at its best.

Is there a way to install it as dual boot with windows.

I mean install so its not live from usb. My machine is tempramental sometimes booting from usbs and a pain to get into boot options.
[G4 Android Development] steadfasterX:
See issue 1:

https://github.com/Carbon-Fusion/build_fwul/issues/1

Thx for trying FWUL ;)

.
[G4 Android Development] alitavas:
Testing A.R.I.S.E v.2.94

Installing Latest FIsH on my H818P (CAMUIX Rom)

Reboot to recovery

Wipe cache,data,internal storage,dalvic cache

Installing A.R.I.S.E:

Aroma installer started

I choosed all option exept selinux and music fx

When install process complated, reboot your phone

Am3d Eq, Viper4arise, Viper4Android Xhifi, Esira installed successfully (Sony enhancement, Dolby atmos are not installed because of incompatibility with heavy modified rom)

Edit: I will try latest version as soon as possible

Sent from my LG G4
[G4 Android Development] steadfasterX:
sorry that it was taken so long but its added now (and I will add it asap to the main FIsH thread as well) :p

Many thanks for your feedback!! I add it to the list :)

.
[G4 Android Development] steadfasterX:
Announcement: v3-beta5 = v3 final release

TWRP-in-FIsH-v3_LGG4_LL

Released: 2017-04-16

Download: here

Changelog: on github

Summary:

Big

speed improvements

adding model detection as property (ro.product.detection -> should be "success")

fixing unify detection

adding all known devices to unification

- these both above will fix issues where your device was not detected correctly in TWRP and fails to install a ZIP which requires this!

Installer:

./install.sh --check will give you the option to check if TWRP-in-FIsH works for your or not - without changing anything on your device.
[G4 Android Development] alitavas:
Installing new Android O emoji package...

Successfully??

Rom:Camuix 4

Keyboard: Xperia Keyboard

Android 5.1.1

H818P

Thank you steadfasterX

Sent from my LG G4
[G4 Android Development] re_di:
Hi, I followed this thread and I have TWRP on my Lg G4 818p. Now is the question- will I have softbricked phone after flashing Magisk from thread https://xdaforums.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445 ?

I found there warning: "Magisk modifies boot image and add files to /data and /cache"

and here: "DON'T TOUCH BOOT / RECOVERY. And you be safe."

It looks like "no way to have magisk on locked device", but hopefully I am wrong :)
[G4 Android Development] steadfasterX:
yes. no magisk!

you found already everything and it is right.

.
[G4 Android Development] stillsober:
How do you flash a custom ROM with a locked bootloader?
[G4 Android Development] steadfasterX:
Read the OP. Especially limitations!

.
[G4 Android Development] stillsober:
I've read the first post, thanks steadfasterX/OP. Since I didn't unlock bootloader from LG when other people said they could (SEA variant- now cannot unlock anymore)

You are a lifesaver :)

>>>Rom:Camuix 4

what I want to know is how he has a custom ROM. he has a locked bootloader!!! https://xdaforums.com/g4/development/locked-twrpinfish-locked-g4-devices-t3573048/post72351570

Can you use some custom with locked SEA H815? v20e which ROMs? downloading http://storagecow.eu/index.php?dir=Xda/LG+G4/H815/ SEA I hope I'm in the right direction
[G4 Android Development] steadfasterX:
Hm no.

This is taken from the OP:

So as you have to stay LL to have root and so using TWRP.. You can use LL based ROMs only. So no way for MM atm. I hope to bring efidroid or multi rom in place but that's a tough challenge and consumes some time.

Same goes for camuix which is a stock based afaik.

So the easiest way is to ask any of those stock based ROM creators of they could offer a ZIP without touching the boot image.

.
[G4 Android Development] stillsober:
thank you. understood
[G4 Android Development] shane87:
Tested TWRP-in-FIsH on LG G4 H810 AT&T version with rooted 10o software, install success, booted into TWRP now, all seems to be working great. Many thanks to all involved in this project!

[Update]

Just finished full backup of /boot, /recovery, /system, /data, and /cache, all successful. Now to test xposed...

[/Update]

[Update2]

Install Xposed v87 SDk22, everything working great, Xposed Installer app showing Xposed v87 active!

[Update2]
[G4 Android Development] stillsober:
What ROM is everyone using with this? I have a h815 SEA variant

edit: questions 2, I downgrade to v10b but for some reason don't have recovery?? (only get the dead droid logo with the red triangle when I try to adb reboot recovery, when I try to volume down+power=nothing, normal boot)
[G4 Android Development] steadfasterX:
I assume the SEA variant cannot be unlocked?

I'm not sure if you're aware that there are 2 versions of TWRP: one for devices which can be unlocked like 811 and 815 international and this one here for devices which cannot be unlocked coming with several limitations.

you should read the OP very very carefully again when you have a locked device and want to use TWRP-in-FIsH.

When you have an unlocked device you should go to the official TWRP thread and read the OP again especially the guide how to install it correctly.

.
[G4 Android Development] stillsober:
>cannot be unlocked

correct, SEA is locked bootloader

am on v10b firmware atm, and for some reason it doesn't have a recovery. I need to get root somehow, not sure how without a recovery
[G4 Android Development] shane87:
You will have to find a root method for your device that does not require recovery. On the H810 that I have, I used a guide that provided a root injected system partition and used download mode to flash the system partition. I would suggest looking in the LG G4 Android Development forum and the LG G4 General forum. There are several excellent guides available, though I am not sure which, of any, would apply to your G4 variant.
[G4 Android Development] Minto107:
ALL G4 CAN be rooted on Lollipop but only those with bootloader unlocked can be rooted on Marshmallow and Nougat(coming soon hahahahaha). Just find correct Lollipop ROM for ur G4 SEA, flash it, root it and u're good to go ;)
[G4 Android Development] Rohiet:
So this simply means LG G4 with marshmallow cannot be rooted
[G4 Android Development] stillsober:
does this mean I should look for the custom ROM first before rooting? Does root stay if I flash a new ROM?
[G4 Android Development] Spookymyo:
You can't root MM but you can downgrade to LP and then root.
[G4 Android Development] Rohiet:
What is method for downgrading android for LG G4 H818N?.......i have tried almost all methods but thats not working for me
[G4 Android Development] sdembiske:
Have you ...

Have you ... checked out this link?: https://xdaforums.com/showpost.php?p=62075670&postcount=381

Also refer to **G4 DUAL SIM models - H818P / H818N (UPDATED W/ ROOT + XPOSED works!) ** at:

https://xdaforums.com/g4/general/lg-g4-dual-sim-models-h818p-h818n-t3115759
[G4 Android Development] Rohiet:
I have successfully downgrade my LG G4 to LL.but now what method should i follow for rooting my device??mine is indian Variant [H818N v-10f]

---------- Post added at 07:22 AM ---------- Previous post was at 07:12 AM ----------

thanks for the help.....i checked the link u have given....but as i mention my device is [LG G4 H818N v10f] root img for my device is not available.is that ok of i use root img of v10c or 10d for 10f..?

Is it safe??
[G4 Android Development] sdembiske:
As a general rule ...

Addendum

: This a copy from the first link I gave you:

H818N - v10f

https://goo.gl/zQFv9N

I suspect you misread it or simply missed it.

... lower versions do not have the latest security or bug fixes so there is some risk there from that point of view.

If it's a concern, your best bet, although it entails a bit more effort, would be to use the following method to root the version you're using now:

Root ANY LG G4 Variant 100% Success Directives | Root Injection | Less Bricks at https://xdaforums.com/g4/general/lg-g4-100-root-success-directives-root-t3180586.

Then you can proceed with your TWRP-in-FisH install.
[G4 Android Development] Rohiet:
The file you gave from that link simply give error 404...that is some kind of joke...

Seems like i have to follow root injection method
[G4 Android Development] Syntist:
Its Working on LG G4 F500L Korean Variant!! Now waiting for Efidroid in Fish :D
[G4 Android Development] Spookymyo:
https://xdaforums.com/g4/general/lg-g4-100-root-success-directives-root-t3180586

Try that link.

It's a bit lengthy but the process well work because it injects root into your own stock image.
[G4 Android Development] BIG_BADASS:
Actually, H815 EUR has unlockable bootloader... you have to look at the country code on the box...

See this:

https://xdaforums.com/g4/general/unlock-list-lg-g4-variants-unlocked-t3262621

Not even some of the International ones are unlockable...
[G4 Android Development] steadfasterX:
The guy has a locked one. Not everyone out there WANT to unlock ;)

Thats what the post should tell .
[G4 Android Development] Minto107:
True ;) when EFIdroid will work in FISH I'll buy some huge SD and relock bootloader ;)
[G4 Android Development] sdembiske:
If I want to permanently and officially (with a permanent record) void my warranty, I would worry about not having an unlockable bootloader right off the bat. Two of my devices have unlocked bootloaders, one of which has the best custom rom , IMO, (CyanogenMod based) installed on it and frankly doesn't perform as well as I would like as the processor simply doesn't have the horsepower to power it adequately and the rom developer is no longer updating it and anything better is unavailable as the device is outdated. The other device has a stock rom and anything that I wanted or felt I needed to "customize" it I have been able to do through XPOSED. It still works brilliantly as it was ahead of its time in the processor horsepower it packed for the price. My LG H812 has a locked bootloader with TWRP-in-FiSH installed as well as XPOSED. Any customization I want or felt I needed has been done and there is no record of my warranty being void, anywhere and I'm not screwing around with things that don't work on a custom rom AND I can backup and restore my phone completely because of steadfaster's excellent effort, all with a 32gb SD card. All but a very few custom roms, IMO, are not worth the code they're written with because of the bugs, things not working, not being updated etc., etc.

---------- Post added at 01:23 AM ---------- Previous post was at 01:03 AM ----------

You have had some of your previous posts cleaned by a moderator I believe because of wasted space, inaccurate information and potentially very damaging advice. You seem not to have gotten the message - there is absolutely no need to to put the whole OP section in that you have here. You could have avoided this post entirely if you'd actually read it and in any event, deleted enough to highlight the misread/misunderstood point you failed to make.
[G4 Android Development] ReeS86:
Hey I had a look through the bash script to install this and it seems like it would be simple to modify the script to run directly on the phone in a terminal rather than through ADB by modifying some of the commands and commenting out the portions that check for ADB server. Has anybody attempted this yet?
[G4 Android Development] steadfasterX:
yes its possible and feel free to adapt and share ;) btw an app would be amazing ;)

.
[G4 Android Development] steadfasterX:
Pre-Announcement

I was a little bit frustrated about the efidroid tests (mainly bootloop issues which occurs even on my unlocked device) so to get my motivation back I decided to release a fresh TWRP-in-FIsH version based on the new TWRP v3.1.1

It already boots and besides other enhancements coming with a new FIsH framework it also has a new optional method to backup /system as an IMAGE which should be an absolut bulletproof variant for those worrying about the usual backup method ;)

stay tuned - TWRP-in-FIsH v4 will arrive

soon

;)

OT:

As a result of no answers from the efidroid devs to my questions and no help from test-users (having unlocked devices) in the G4 community I decided to stop the efidroid in FIsH approach - at least for the moment.

Instead I will go for

multirom

now in the hope it may work better and besides that it supports many more devices then efidroid (which can handle qcom devs only)

stay tuned - it will arrive - when it is ready ;)

Update:

Finally I received an answer about the bootloop debugging in efidroid: they are doing a complete rewrite of efidroid atm. This rewrite will it make first possible to debug those issues.. So they are working on it but as this sounds like it requires a long time I still will go on with multirom while keeping an eye on the efidroid development process..

.
[G4 Android Development] TheMadScientist:
As always mines not my eryday driver so i will always offer mine up for testing bricks or not im not worried. Lol gamestop offered me 10 dollars american yesterday for my highly damaged g4 that turns on. Im surprised lol. But i decided to keep it
[G4 Android Development] TheMadScientist:
Hey man i want to apologize for bein loud with u a while back. Sometimes i can be hard headed and take crap to seriously. We got off on the wrong foot. And now as time goes on i see u know more than some here
[G4 Android Development] sdembiske:
No need to apologize, I was a little stressed and too curt so my apologies to you as well.
[G4 Android Development] steadfasterX:
the best way to achieve this would be if you check if the installer is running within Android and then behave different from if not.

That way we would have 1 installer only for both situation which is more future proof. If you want to do this go over here: https://tinyurl.com/FISHatXDA and doing the update as a pull request on github would be perfect as well.

.
[G4 Android Development] steadfasterX:
PRE-Release of TWRP-in-FIsH v4

This version is based on/includes:

FIsH v3.0: changelog (click)

LL and FIsH optimized device tree: changelog (click)

TWRP v3.1.1: changelog (click)

Summary:

Everything

is better now ;)

(.... TWRP updated, many FIsH improvements, added an option to backup /system as image,... read the above changelogs!)

I have nothing else tested than booting and creating a system image backup.

That's why I do

not

release it

officially / as stable

atm.

[MENTION=5759239]TheMadScientist420[/MENTION] and all others wanting to test: Be careful and let us know how it goes. :highfive: :fingers-crossed:

Please find the new pre-release version attached to this post. You have to rename the file extension to ".tar.gz" sorry for this but XDA is crazy about uploading a tar.gz file.. :confused: :eek:

Once I received feedback of at least backup & restore I will make it official so testing that first would be nice (both the new image system backup & restore and the usual system backup & restore).

Update:

I am very sorry but with the help of [MENTION=6302635]sdembiske[/MENTION] and [MENTION=1258758]ReeS86[/MENTION] we found a restore bug within this version!

The backup function is still working fine but do not try to use the restore function in this version!

Because of this and to avoid any trouble I removed the pre-release! This will be fixed a s a p and sorry for any inconvenience

.

Update-2:

A new pre-version has been released which is fixing the restore issue.

Check it out here: https://xdaforums.com/showpost.php?p=72724292&postcount=315.

.
[G4 Android Development] sdembiske:
Bad News and Good News: H812

Bad News: Backing Up System Image failed at 70% before cleaning up the Backup Folder. Failed with the following error: I:Error writing destination fd (No such file or directory)

Good News: No soft brick and was able to reboot into android. Tried backing up twice with the same result and with the second effort, most apps disappeared on first boot after BUT on a re-boot, they were all back.

NB: SD card is formatted FAT32 and ext4 with 15.38GB and 292MB free, respectively. Saving backups to SD card.

FiSH and TWRP Recovery logs Link: https://gist.github.com/sdembis/79b4db35e5b02c9212817f79ede22f04
[G4 Android Development] steadfasterX:
MANY thx for testing. Just a quick question before looking into the logs (thx again for providing them as well):

Where exactly do you copy the image backup? On the fat32 partition or ext4 partition of the sdcard?

EDIT:

If you backup to the fat32 partition its clear y it failed. fat32 has a size limit for single files at 4GB. You have to either format that partition to exfat or using ext2,3,4 for backing up images..

.
[G4 Android Development] sdembiske:
Backup is set to Micro SDCard - it should be saving to the FAT32 partition - never had a problem with it before with previous versions of TWRP-in-FiSH or with TWRP on other phones. The 4GB size limit with FAT32 crossed my mind as well - that's why I mentioned the SD card formatting. The system image is 4284 MB so I suspect you're right.

The card is only 32GB - I will try formatting it to exFAT but I'm not sure whether it will create other issues with the card not being bigger than 32GB.
[G4 Android Development] steadfasterX:
well you may never backed-up as IMAGE before then. that issue is known when doing image backups or at least I have seen it sometimes. not many ppl do so because an usual backup is for 99% of the humans out there enough. just for TWRP in FIsH it makes sense to really use it.. The solution was always to use exfat or another file system.

exfat is the extended version of fat32 so fully compatible. u can use it on a 1 GB card or a 512 TB (!) card they will all work with exfat. I see no reason for any issues regarding that :)

.
[G4 Android Development] sdembiske:
Great - Thanks. Will proceed later today and report back after backing up and trying the restore. So when doing the restore, is the system image backup restored as well and also, can just the system image be used to flash back from stock in the event of a soft brick, using the usual method to install a rooted image?
[G4 Android Development] steadfasterX:
you normally need only to use one of the system backup methods. Either the usual backup as before or the image backup. But I would recommend to use both.

doing a backup / restore of system as image (which is a dd copy of the system partition) and a usual backup/restore of the system should both result in the same working restore.

hm i m not sure if I got u sorry...

lets assume you try to restore the system image backup and it works but fails to boot (and so not TWRP-in-FIsH) .

-> u need to reflash the KDZ then.. Once you've done that you have root and re-install TWRP-in-FIsH as well to get to your backups again.

.
[G4 Android Development] sdembiske:
Understood on the different backups and restores. In the case of a soft brick, I understand about needing to re-flash the stock KDZ and a rooted image and re-installing TWRP-in-FiSH, but in the case where the TWRP-in-FiSH system image restore does boot successfully, could you not, in the event of a later soft brick flash resulting for some other reason, flash the working system image backup over the re-installed stock kdz, as it is a rooted image already and would it not then restore the TWRP-in-FiSH as well? Just trying to clarify. Thanks.
[G4 Android Development] steadfasterX:
hehehe.. well the problem is that FIsH requires root to run. so u cant have TWRP without a rooted system image..

well there could be an option .. even for MM (!) based devices which cannot downgrade to LL to boot FIsH!!!!!! This is the next thing after looking into multirom in FIsH..

I haven't really looked into it but a friend made a sdcard unbrick method based on FIsH. It could boot TWRP in FIsH in case of a soft-bricked device but as said I havent had the time to do this.

If anyone want to help in that.. go over to IRC channel #Carbon-Fusion (howto is in the OP) and ask for BigCountry907

.
[G4 Android Development] sdembiske:
I'm referring to 'flashing' a successful system image restore by installing by the Step 3 ->Root method in hackarchive's https://xdaforums.com/g4/general/lg-g4-100-root-success-directives-root-t3180586, not through TWRP.
[G4 Android Development] steadfasterX:
oooh.. yes that should work! :) nice finding ;) didnt even thought about it..

ofc that would require that you put the backed up image to your PC but yes .. would be nice to have that tested as well ;)

.
[G4 Android Development] sdembiske:
Great!!! That's what I was hoping - I should have been more clear to begin with. Now, that's a great reason to re-format my SD card and get to the point where a successful backup and restore of the system image is in the bag, so to speak. Thanks for your patience in this.
[G4 Android Development] steadfasterX:
Wassup? you don't tested it yet?! :crying: ;)

What's wrong? :laugh:

.
[G4 Android Development] alitavas:
Trying something different?

Upgrading from Camuix4 to Satan v1

Copy Satan system.img to internal storage

Reboot into recovery

Open Terminal Emulator in FIsH TWRP

Installing Satan v1 using some commands(see screenshot)

Wipe cache & dalvic cache

Installing supersu v 27.9 r3

Installing ARISE sound System

Installing Xposed

Installing Android O emojis

Reboot!!!

Everything works well without loosing data??

Note:I didn't use latest FIsH

Thanks a lot SteadfasterX

Sent from my LG G4
[G4 Android Development] TheMadScientist:
my battery finnally kicked the bucket im waiting on one to come in lol i thought i finally got a bootloop and technicly i did. i put a sammy battery in her and she boooted up

i put g4 on charge and shes at 100% in like 30 min and still wont boot

my battery is rite at 2 years old

new one should be in in a few days lol