yashsingh1/xdaforums huggingface dataset:
[G4 Android Development] pvineeth97:
Actually this isn't a new idea! Ramdisk hijack was already done before for Sony phones.
[G4 Android Development] g_ding84:
No it's not a new idea but it's the first for LG G4. And thankful that someone brought it to us.
[G4 Android Development] pvineeth97:
I know its good! But I dont like its limitations. Its easy to soft brick the phone.
[G4 Android Development] g_ding84:
Yes we have to be very careful. My G4 was passed down to my daughter. So worst case is I reflash with LG UP.

I'm back rocking my OG Nexus. Lol
[G4 Android Development] steadfasterX:
Really. You should READ. At least the credits. But also why FIsH DIFFERS. And I never said that hijacking is my idea. hijacking can not be found on sony only. And I gave credits to all those bringing the idea of hijack Im aware of. I also said if I miss one to mention tell me who and with a link. Your blaming is neither helpful or given any link to who I forgot to mention.

.
[G4 Android Development] steadfasterX:
Because of....?

There is always a chance to soft brick even when you root your device actually. If you don't like the limitations you don't have to use it. Do you own this device actually?

.
[G4 Android Development] rakshikashyap:
No he doesn't.....
[G4 Android Development] pvineeth97:
You don't need to answer for me. Thanks.

---------- Post added at 10:14 PM ---------- Previous post was at 10:12 PM ----------

Limitations like no "Install a custom Kernel", "Install a custom recovery" and "Known issues (may never get fixed)" - "ZIP / ROM flashing", "Installing more than 1 ZIP at a time ".
[G4 Android Development] steadfasterX:
Yea.. I would like to solve those but see booting TWRP was a kind of proof of concept. A first step on the journey if u like. Having TWRP is nice ok but what I really wanna achieve is providing custom ROMs for those.

This will solve almost all limitations. The zip issue is another thing and does not affect all devices. Maybe when I find time..

.
[G4 Android Development] TheMadScientist:
Less limitations than flashfire. Which dont get me wrong is a wonderful peace of software. Which it states as u open it. Not tested on lg. Twrp unlike flashfire if u brick u can still boot to twrp and do a restore. Flashfire the system had to boot to restore.

So flashfire was good. Which we all with root have had on non bootloader unlocked devices. Now twrp which is in many ways better. More stable.
[G4 Android Development] daiskun:
with this method can i install systemless root and systemless xposed?

nvm i answered myself, you cant as it modifies boot image
[G4 Android Development] steadfasterX:
Great ;)

.
[G4 Android Development] sdembiske:
Restore problem with new version

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.

Partitions mounted prior to backup: System, Data, Cache, Micro SDCard (unable to mount Firmware and USB OTG).

Ideas?

Thanks, S.
[G4 Android Development] steadfasterX:
Yes system has to be mounted before backup and before restore as well.

I need the recovery log and the fish log from TWRP in order to check it..

.
[G4 Android Development] sdembiske:
No logs found - perhaps because of re-installing stock, re-flashing rooted image and then re-installing TWRP-in-FisH? On the 2nd re-install I was lucky to get back into LGUP, it wouldn't recognize the model or indicate it was connected even. When I did finally get it re-connected and restored to stock, my com port was no longer 5 but 4 when I re-installed the rooted image which threw me off a bit as it had been always 5 in very prior re-install.
[G4 Android Development] sdembiske:
I should have specified that the logs weren't found using your two commands, so I pulled and copied them manually but unfortunately they are too large to post to https://paste.omnirom.org - can I get them to you as text attachments, somehow?

Thank you, S
[G4 Android Development] CygnusBlack:
https://pastebin.com
[G4 Android Development] sdembiske:
Thanks ...

Thanks ... will give it a shot.
[G4 Android Development] steadfasterX:
Do you have a GitHub account? Then use gist

Otherwise filedropper.com
[G4 Android Development] sdembiske:
Files sent by omnirom.org and Dropbox links

Thanks. Sent links to FisH logs using omnirom.org and TWRP recovery file using Dropbox. If that doesn't work, I do have a GitHub account and could try using gist (never had to use it).

S.

Addendum:

Also sent by Gist - it worked really well.
[G4 Android Development] steadfasterX:
yea github gist is great for such big logs.. ;)

thx i will look into this.

I think i found an issue already but the logs are from backup only correct?

I dont want u to make a restore though because when it soft bricks you have to reinstall that all again.. i will try to setup this asap but that can take some time.. im very busy atm with the efidroid port..

.
[G4 Android Development] sdembiske:
Thank you ...

Thanks again steadfasterX. I appreciate how busy you must be and appreciate the importance you're attaching to the efidroid port - looking forward to it as I'm sure many are or will soon be when they know of it. I have used TWRP for many years, love it and never had an issue so I'm looking forward as to what you think the issue is. I'm not sure about the logs - I provided what was there in TWRP in the backup that I believe failed and took the FisH logs out of the phone using X-plore file manager and copying the files after doing the restore.

Best, S.
[G4 Android Development] Jwtiyar:
can root MM on 818p with this method?
[G4 Android Development] TheMadScientist:
no u have to have root to install it please read o.p.
[G4 Android Development] guillefs:
only for android Lolipop and ROM lolipop ?
[G4 Android Development] TheMadScientist:
Yes
[G4 Android Development] Jwtiyar:
i think i did it five times , so if its just lollipop then make no difference cauz we have root instruction without using this method on lollipop .
[G4 Android Development] steadfasterX:
Do you have a bootloader unlocked device?

If the answer is YES: you don't need it

Do you have a bootloader locked device and want TWRP?

If the answer to BOTH is YES. you need it. you can't install TWRP on a locked device.. up to now. FIsH allows you to do so.

If your question is: Can this ENABLE root for my device?

NO! you actually NEED root to activate TWRP for your device with this method.

.
[G4 Android Development] TheMadScientist:
This is for flashing files not rooting devices
[G4 Android Development] Fobos531:
Would it be possible to make a flashable stock MM ROM and then root it using TWRP (I guess it shouldn't use the system-less method in that case)?
[G4 Android Development] LaughingCarrot:
That would require modifying the kernel, which would set off secure boot. Gotta wait for efidroid port.
[G4 Android Development] Fobos531:
I guess there's no other method of root on MM other than systemless root?
[G4 Android Development] LaughingCarrot:
Oh no you can root by modifying the kernel as long as you have an unlocked bootloader. It's the same way with systemless root as well. The idea is that when efidroid is ported, it would let you flash anything you want. For example, an entirely different ROM with it's own bootloader partition which would effectively replace whatever locked bootloader you had entirely.
[G4 Android Development] sumitverma1:
Waiting for efidroid.......
[G4 Android Development] Alextrophysics:
Canada LG G4 variant owner

Someone sent me the link to this page and my surprise to know that people working on a possibility to "hack" the boot-loader exist! Thank you so much for this and I hope you'll be able to do it!!!! Go Go Go we beleive in you :D Waiting for efidroid with impatience :D
[G4 Android Development] sdembiske:
That someone ...

That someone ... was me.

HINT: A simple click on the Thanks button below the original post is always appreciated ... eh?

S.
[G4 Android Development] sdembiske:
Recovery success ... !!!

steadfasterX: TWRP-in-FIsH-v3-BETA1_LGG4_LL version did the trick. Install, backup AND successful Recovery went smoothly with no issues. You are the "Man/Person" of the hour. Thank you again, your input, helpfulness and great contribution to the AS-YET-UNWASHED LOCKED LG4 Bootloader congregation is/will be very much appreciated.

Best, S.
[G4 Android Development] TheMadScientist:
Just wait til efidroid ported in. Then we got custom roms
[G4 Android Development] sdembiske:
This I know ...

This I know ... but ... no sense having the ability to install a custom rom without the ability to restore a prior back-up when that custom rom doesn't do the job for you. Need a good foundation in place before building the new house, eh? steadfasterX's latest TWRP-in-FIsH-v3-BETA1_LGG4_LL version has provided that foundation for my locked H812 with a successful complete restore, whereas two prior versions had not.

Now .. I can look and move forward when the efidroid port lands. Suspect it will be like a stampede of buffalo ...

Cheers. S.
[G4 Android Development] TheMadScientist:
Oh yea it will be.

Imagine how i felt just testing it out. I was testing and flashing loads of files. Restores. Backups. And unlike. Flashfire which the sys has to be booted or has to even boot up to restore. If u soft brick. With this just restore what ever u were doing. In this cSe mostly system partition. But dont have to restore stock. Flash rooted rom dd style log in google download flashfire then restore. Minor tweaks that softbricked. Could take hours to restore. Now mere minutes
[G4 Android Development] sdembiske:
Individuals like you ...

Individuals like you ...pave the way with some risk taking (even if self-medicated while sick as a dog, eh?), to the benefit of the wider community.

Two thumbs up .... S.
[G4 Android Development] TheMadScientist:
risk is the only way sometimes i do like i said i dont try to bull crap with any one.

phones are a complete hobby of mine. i am in no way a dev.

ive learned from trial and error .

and a great big thanks to the wonderful google search bar

i am prominent localy for reapairs on many electronic devices i did my crap in school gots me diploma.

im a mechanic by day.gots me diploma . will never get stoned while working on a vehicle. i dont doubt myself but i keep work and play seperate. dont ever wanta question myself of after working on a vehicle and the customer has left with it. Did i tighten this up or put fluids in that? i will not risk someones safety over my having fun.

a husband and a father of three 2 girls and a helion boy. i almost own my own mini mansion lol. 6 br 150 year old house for the most part my bills are paid might be late but paid but then last im a smoker been raised around it all my life didnt start til i was 16 or 17 and ive never stolen to feed my habit

i normally grow my own to elimante buying it from the street and i make my own eddibles and butters

lol
[G4 Android Development] steadfasterX:
Great to hear that ;)

I will release it to the public asap..

Thanks for your testing!!!

If you still remember the beta tester URL do not hesitate to try the newest beta mentioned above as well ;) would be great to have another test result for the new beta!

.
[G4 Android Development] TheMadScientist:
i still got it

and i restored my g4 stock though i was loaner for someone so i gotta reinstall twrp anyways do it tonight when i get off work
[G4 Android Development] sdembiske:
Any time steadfasterX, happy to do it.

Cheers, S.
[G4 Android Development] steadfasterX:
EXPERIMENTAL VERSION RELEASE:

I release this new version which SHOULD fix the backup & restore issues.

Use it with care.

Restoring may still soft-brick your device!

Do not use it when you do not want to take this risk!

PLEASE REPORT BACK!!!

Besides that I've merged with the latest FIsH sources which gaves some more improvements... (details will be released when going public)

YES I HAVE UNDERSTOOD THE RISK! AND YES I'M STILL CRAZY ENOUGH TO CONTINUE!

Download

.
[G4 Android Development] sdembiske:
Two restores done with no issues... !

steadfasterx: Did the 2nd restore and let the TWRP screen fade out to lock and left it for about 6 or 7 minutes - It woke right up with a brief power press, no problem at all - the restore had completed in 409 seconds. One thing I noticed: I forgot to mount system manually before restoring (I had mounted the system partition before the backup that I restored was done) but because it all went smoothly without issues, I presume you have put in a safeguard that mounts the system partition automatically when the restore process is started or it is simply not necessary if the system partition was mounted before the backup was taken? If the latter is the case, then a simple red text warning on the Backup screen "Do not proceed if you have not mounted the system partition manually beforehand" would help clue one in ... ?

High Five ... S.
[G4 Android Development] ergo911:
On flex 2 mounting manually is not needed, can you try backup without mounting system?
[G4 Android Development] sdembiske:
Backup without mounting the system parition ... Hmm ...?

Thinking this through a little, if it has worked for you on your Flex 2, then:

1). The system partition is actually being mounted automatically on the backup and the check mark on the partition is simply not displaying.

- possible

- The normal TWRP default is for the system to be backed up with the check mark already present on the backup screen.

2). If the system partition is not being mounted automatically in the backup process, then it is simply not required for the restore.

- doubtful

I would like some further input and or confirmation on this before proceeding.

Thanks,

S.
[G4 Android Development] steadfasterX:
When TWRP is booted do nothing but exec this on your pc:

adb shell mount

Paste the output here. This is just for me to see if system is mounted (which then means it is his a display issue) or not.

Tbh mounting system before doing a backup / restore shouldn't be necessary but as FIsH shakes the whole world and puzzle it together again it may explains why it was needed.

The newest beta above contains the bugfix for restoring but also a lot of FIsH improvements and one of it especially for /system handling.

It seems now TWRP-in-FIsH behaves the same way like normal TWRP when it comes to backup/restore or better at least when it comes to mounting. That means TWRP will mount when necessary.

.
[G4 Android Development] sdembiske:
adb shell mount command output, as requested.

Here you go steadfasterX:

rootfs on / type rootfs (rw,relatime)

tmpfs on /dev type tmpfs (rw,seclabel,nosuid,relatime,size=1424512k,nr_inodes=356128,mode=755)

/dev/block/bootdevice/by-name/cache on /cache type ext4 (rw,seclabel,nosuid,nodev,noatime,noauto_da_alloc,errors=continue,data=ordered)

tmpfs on /dev type tmpfs (rw,seclabel,nosuid,relatime,size=1430656k,nr_inodes=357664,mode=755)

devpts on /dev/pts type devpts (rw,seclabel,relatime,mode=600)

proc on /proc type proc (rw,relatime)

sysfs on /sys type sysfs (rw,seclabel,relatime)

selinuxfs on /sys/fs/selinux type selinuxfs (rw,relatime)

tmpfs on /tmp type tmpfs (rw,seclabel,relatime,size=1430656k,nr_inodes=357664)

pstore on /sys/fs/pstore type pstore (rw,relatime)

adb on /dev/usb-ffs/adb type functionfs (rw,relatime)

adb on /dev/usb-ffs/adb type functionfs (rw,relatime)

/dev/block/mmcblk0p55 on /data type ext4 (rw,seclabel,relatime,noauto_da_alloc,resuid=1000,errors=continue,data=ordered)

/dev/block/mmcblk0p55 on /sdcard type ext4 (rw,seclabel,relatime,noauto_da_alloc,resuid=1000,errors=continue,data=ordered)

/dev/block/mmcblk1p1 on /external_sd type vfat (rw,relatime,fmask=0000,dmask=0000,allow_utime=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)

Thanks, S.

Addendum

:

Given my system partition is as follows:

lrwxrwxrwx root root 2015-01-18 08:15 system -> /dev/block/mmcblk0p53

Am I correct in assuming it is not mounted ... ?
[G4 Android Development] steadfasterX:
Correct. But it SHOULD not matter. To find out if or not please boot into twrp again and then without explicitly mounting system go to the backup screen. What size is displayed on system? Without pressing refresh sizes!

.
[G4 Android Development] sdembiske:
0 MB displayed on backup screen for system size

O MB displayed for system size without explicitly mounting the system partition or pressing refresh sizes.
[G4 Android Development] mateus.sc:
I think i'm in love with OP's brain .. is this wrong? ??
[G4 Android Development] steadfasterX:
thx

ok... do nothing as usual and even if the size is 0 bytes create a test backup only for /system.

Get the recovery log ! and paste it as usual and gimme the link

:eek:
[G4 Android Development] fates13:
v2 worked perfectly with Verizon G4 but v3_Beta1 shows the LG screen again after the screen goes dark + red LED then goes to a dead Android symbol.
[G4 Android Development] steadfasterX:
1. Try to go into TWRP

2. After it failed boot into Android

3. Then connect your device with your PC

4. on your PC:

adb shell

su

cat /cache/fish/fish.log.old

5. copy the whole output and paste it at http://paste.omnirom.org . after you pasted it there u will see the

URL

which I need.

thx.
[G4 Android Development] sdembiske:
TWRP recovery file, system only link posted

Done. Pasted to GIST, link posted to FreenodeWebchat.
[G4 Android Development] fates13:
https://paste.omnirom.org/view/14b5ca0c
[G4 Android Development] steadfasterX:
Hm. Have you seen the dead android while you tried this?

Does it boot into Android afterwards or do you have to pull out the battery?

If it directly boots into android please use the following guide (step 4 changed slightly)

1. Try to go into TWRP

2. After it failed boot into Android

3. Then connect your device with your PC

4. on your PC:

adb shell

su

cat /cache/fish/fish.log

5. copy the whole output and paste it at http://paste.omnirom.org . after you pasted it there u will see the

URL

which I need.
[G4 Android Development] fates13:
The device doesn't show up on ADB while it's on the dead android. Have to pull battery or volume down + power reset to boot normally again.

edit: actually let it sit on the dead android for like 1-2 minutes and it rebooted itself.

edit2: i was able to pull a new log that might be more useful https://paste.omnirom.org/view/4dfb257d
[G4 Android Development] steadfasterX:
yea that log is better.. :D

could u pls try the following version?

--> https://www.androidfilehost.com/?fid=673368273298945919

Thx. There are errors that /system cannot be mounted but.. it seems it backups /system fine because you see all subfolders getting backuped plus the size at the end is correct..

so it should work just fine... A test restore would be required to say for sure.... so if you want to take the risk.. ;)

.
[G4 Android Development] ReeS86:
I just tried the version linked above and I'm getting about 15 seconds with the red LED lit and then reboot into dead android screen too. It seems to have cleared my cache too when I rebooted into Android after battery pull I'm at the optimising apps screen. I'll pull a log later when my phone is up and running and I've got a chance to.
[G4 Android Development] steadfasterX:
Could you use the latest beta and replace the fishfood.gz with the one working for you?

[MENTION=6260190]fates13[/MENTION]

Could you try the same? I believe the fishfood is rotten...

.
[G4 Android Development] sdembiske:
Successful restore without mounting the system partition before backup and restore!

Done. Successful restore without mounting the system partition before backup and the restore.

I'm a calculated risk taker steadfasterX and your analysis increased the odds IMO in my favour enough to warrant taking the risk. Thank you again for your help and great work. Soul is assuaged. LOL

Cheers, S.
[G4 Android Development] steadfasterX:
Cool

Could you try the latest beta without modifications if it boots for you?!

.
[G4 Android Development] sdembiske:
By without modifications ... do u mean ...

By without modifications ... do u mean ... not replacing the fishfood.gz with the one working for me or ... ?

Before I try ... Have the two individuals having these issues been able to get back into TWRP ... ?

Thanks, S.
[G4 Android Development] ReeS86:
I was able to get back into TWRP by re-installing version 2.0 of FIsH. I've tried installing version 3 beta 2 by replacing fishfood from both ver 2.0 and ver 1.0 and neither of them boot for me. Each time just wait for the phone to reboot itself or pull battery with no damage to Android - it boots normal as long as I don't press volume down.
[G4 Android Development] steadfasterX:
Yea you should not replace it like the others. I'm wondering why it works for me and not for them.. If it fails for you just install the version which worked for you again..

.
[G4 Android Development] steadfasterX:
That helps much thx. Interesting though..

And it indicates that FIsH is the reason and not the FIsHFOOD..

.
[Galaxy S6 Q&A, Help & Troubleshooting] dasbiz:
Hello,

I was wanting to update to Nougat and was wondering how I can revert back to stock kernel unless I can just uninstall XPosed, Unroot then OTA Update which would then just replace my custom kernel with the stock Nougat kernel? Anyways any help would be appreciated or is it better just to flash the firmware in ODIN?
[Galaxy S6 Q&A, Help & Troubleshooting] forumber2:
You have to use Odin to update it anyway, there is no other way to do that.
[Galaxy S6 Q&A, Help & Troubleshooting] dasbiz:
Ahh ok, thank you :)

Quick question, do you know somewhere where I can find the firmware not capped at a low download speed?
[Galaxy S6 Q&A, Help & Troubleshooting] forumber2:
What is your phone model?
[Galaxy S6 Q&A, Help & Troubleshooting] dasbiz:
SM-G920F
[Galaxy S6 Q&A, Help & Troubleshooting] forumber2:
Download and run this;

https://xdaforums.com/attachment.php?attachmentid=3803841&d=1467715462

When you open the program, type the values given here;

Model: SM-G920F

Region: XEF

Auto: Selected

Manual: Unselected

Binary Nature: Unselected

Check CRC32: Selected

Decrypt automatically: Selected

When you write and select options given above, press "Check Update" and then press "Download" to download factory firmware for your device.

Once the download has been finished, extract the zip file that you've downloaded via SamFirm.

After unzip it, download and run this;

https://xdaforums.com/attachment.php?attachmentid=3804544&d=1467772303

When you open it, press AP and select file which from downloaded (from Samfirm) and extacted zip folder.

When you set the file to Odin, connect your phone to your PC in download mode and click "Start" on Odin.
[Galaxy S6 Q&A, Help & Troubleshooting] dasbiz:
Hi again :),

Just tried doing the flash but it fails consistently a few seconds in after 'hidden.img', I have tried the fix people suggest (however I assume it is only for people who get the fail at the end) by flashing 'hidden.img.tar' however all it does is bootloop to my recovery. Was wondering how I can get my phone back in working order?
[Galaxy S6 Q&A, Help & Troubleshooting] shiko2007:
try after flashing hiddien. tar to make factory reset and wipe cash pro. it will solve your problrm

---------- Post added at 12:39 AM ---------- Previous post was at 12:37 AM ----------

if it is not working with you also try to install another firmware i suggest sammobile to download from it
[Galaxy S6 Q&A, Help & Troubleshooting] dasbiz:
Got this sorted out, had the hidden.img fail early on so I just followed this guide on youtube ( https://www.youtube.com/watch?v=2uTHilnRsWw ) and it fixed it (Not sure if flashing just hidden.img before following that guide helped, it might have but idk) but anyhow thanks for offering assistance dude :)