yashsingh1/xdaforums huggingface dataset:
[G4 Android Development] kessaras:
If you want to be up to date and because we now work for Oreo stuff and stead will also soon enable and fix encryption for O, you should better use the sfx server and do the updates manually.

The official will never be ahead of the unofficial.

The reason is because we first update locally, test, update again, test, fix stuff and we later push to update the official. The official can't be faster than the local one.

So forget the app and use the forum and the sfx server. Or just wait xD
[G4 Android Development] tokschi:
Ok, ok. I sent you a PM.

In Lineage I found the folder which TWRP mounts as media under

/mnt/expand/[Long_UID]/media/0

further folders next to it are

/mnt/expand/[Long_UID]/media/obb

/mnt/expand/[Long_UID]/media/TWRP

I cannot access them all. It seems that I have no propper rights.
[G4 Android Development] steadfasterX:
Thx for the logs.

The folder usually gets mounted on /sdcard/<sdcardUID>/ or /storage in android and you may need root to access the TWRP folder in LOS.
[G4 Android Development] tokschi:
Ok, that could have been obvious to me. But what's with the opposite way? Where do I find my true media in TWRP. When playing with encryption I used to make a TWRP backup and pulled it together with the whole media via adp onto the pc. As i didn't crosscheck it, I missed the true media the last time :(
[G4 Android Development] steadfasterX:
/data/media/0 is linked to /sdcard in TWRP.
[G4 Android Development] tmihai20:
[MENTION=7048105]kenfalco_14[/MENTION]: we should continue the discussion here

He has erased all partitions, recovery included, and he has now issues writing TWRP. I suggested him to follow the steps in the official TWRP G4 page.

Since you said you can use adb, I suggest you to flash recovery like this:

adb flash recovery twrp.img
[G4 Android Development] steadfasterX:
You have nougat bootloader stack.

Read the OP! There is no way to use fastboot boot anymore. It's all written..

If you can't see the device in fastboot mode use FWUL for this.
[G4 Android Development] tmihai20:
It may be my fault, it has been so long since I flashed TWRP from scratch that I thought fastboot would still be available. I guess using adb flash should also work, right?
[G4 Android Development] steadfasterX:
Nope. There is no adb flash.
[G4 Android Development] kenfalco_14:
Thank you. But I don't remember what means OP or FWUL. Could you paste some link.

Thank you again.
[G4 Android Development] steadfasterX:
OP = (see 2nd there) https://www.urbandictionary.com/define.php?term=op&defid=5393886

FWUL = https://bit.do/FWULatXDA
[G4 Android Development] kenfalco_14:
I used linux ubuntu for this. Win7 doesn't work.
[G4 Android Development] steadfasterX:
FWUL is completely pre configured. Do you have the correct udev rules? No? You don't know? Use FWUL or ensure to have everything configured correctly on your own. It's not just to install adb on Linux.. That's why FWUL exists..

and pls paste the output of

lsusb

while device is connected in fastboot.
[G4 Android Development] kenfalco_14:
I made lsusb and I had this. My G4 is linked.

Blsusb

Bus 002 Device 004: ID 093a:2510 Pixart Imaging, Inc. Optical Mouse

Bus 002 Device 003: ID 1004:633e LG Electronics, Inc. G2 Android Phone [MTP mode]

Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub

Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 001 Device 004: ID 0bda:0139 Realtek Semiconductor Corp. RTS5139 Card Reader Controller

Bus 001 Device 003: ID 058f:a014 Alcor Micro Corp. Asus Integrated Webcam

Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

paolo@paolo:~$ fastboot reboot bootloader

< waiting for device >

in fastboot mode

paolo@paolo:~$ lsusb

Bus 002 Device 004: ID 093a:2510 Pixart Imaging, Inc. Optical Mouse

Bus 002 Device 007: ID 18d1:d00d Google Inc.

Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub

Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 001 Device 004: ID 0bda:0139 Realtek Semiconductor Corp. RTS5139 Card Reader Controller

Bus 001 Device 003: ID 058f:a014 Alcor Micro Corp. Asus Integrated Webcam

Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

no trace of the terminal.

---------- Post added at 07:13 PM ---------- Previous post was at 07:09 PM ----------

[/COLOR]I tried fwul in a virtual machine on win7, but win7 doesn't recognize the phone. It's frustrating.
[G4 Android Development] steadfasterX:
adb reboot bootloader

when in fastboot:

fastboot devices

If that shows nothing use

sudo fastboot devices

(not needed on FWUL)

When you run FWUL in win7 you have to boot into fastboot (adb reboot bootloader) then

open the menu in the VirtualBox window and attach the USB device. You don't need any drivers on windows to pass through the USB device.
[G4 Android Development] Headlamp:
I get the error message Failed to unmount '/data'.

cant install new roms an other stuff because icant see any files. i try to wipe data and repair data using e2fsck.

im on preview 93_n

ok with older version 3.1.1-0 it works
[G4 Android Development] steadfasterX:
No log no help.
[G4 Android Development] delunanico:
"No Command" with adb comand for the twrp, how do I resolve?

mod edit: please don't quote entire OP

I have a problem with the twrp with nougat v29 rom installed, with the fastboot command doesn't work, also with the adb reboot recovery (it gives me back "no command") doesn't work, with the physical key neither, how do i resolve? thx everyone.

p.s. my first post and sorry for my bad english!!
[G4 Android Development] steadfasterX:
What fastboot command does not work? What's the error? More details.

It seems you have not installed TWRP. Read the first post for the correct guide to install TWRP on nougat.
[G4 Android Development] kessaras:
deleted. wrong quote.

[MENTION=5707285]BogdanBodo[/MENTION] read op instructions what they say about N bootloader.

[MENTION=7499807]delunanico[/MENTION] don't quote the OP. if you read xda rules , you must not quote the OP.

Plus that you propably didn't read it. Both of you.

Which fastboot command doesn't work ? fastboot boot ? read instructions again and again.
[G4 Android Development] BogdanBodo:
Thanks a lot, it worked
[G4 Android Development] ThePiGuy:
Hi [MENTION=5545101]steadfasterX[/MENTION],

I have been trying to backup my stock LG G4 through TWRP so I can restore to it should I want/need to, but unfortunately my System Image backup fails every time once it gets most of the way through.

I'm not sure if this is anything that I'm doing wrong as I'm new to this, so I was wondering if you have any suggestions.

Thanks

By the way, my recovery.log ends with

Backing up System Image...

I:Reading '/dev/block/mmcblk0p47', writing '/external_sd/TWRP/BACKUPS/LGH815xxxxxxxx/2018-01-29--10-09-21_MRA58K/system_image.emmc.win'

Truncating string cache entries.

Truncating string cache entries.

Truncating string cache entries.

Truncating string cache entries.

Truncating string cache entries.

Truncating string cache entries.

Truncating string cache entries.

Truncating string cache entries.

Truncating string cache entries.

Truncating string cache entries.

Truncating string cache entries.

Truncating string cache entries.

Truncating string cache entries.

Truncating string cache entries.

Truncating string cache entries.

Truncating string cache entries.

Truncating string cache entries.

I:Error writing destination fd (No such file or directory)

Backup Failed. Cleaning Backup Folder.

I:Copying file /tmp/recovery.log to /external_sd/TWRP/BACKUPS/LGH815xxxxxxxx/2018-01-29--10-09-21_MRA58K/recovery.log

EDIT: Don't worry - turns out my SD card needed exFAT to be able to cope with the massive System Image file
[G4 Android Development] kessaras:
share the whole log.

showing an error is not what he needs. he also needs to see why
[G4 Android Development] ThePiGuy:
Thanks for the reply. I have just discovered that my System Image was exceeding the limit of the FAT32 filesystem (very slightly over 4GB), and that was causing the issue. Reformatting my SD card as exFAT fixed it
[G4 Android Development] gioxoid:
where is this official release? absent on official website, latest is 3.1.1 June

---------- Post added at 04:32 PM ---------- Previous post was at 04:29 PM ----------

V 3.2.1 preview 93, it has a problem in mounting internal sdcard. Empty drive.
[G4 Android Development] kessaras:
why ? if it sais official it will be more "satisfying" ? its the same man behind official and unofficial.

and latest with internal disk is fine. we all use it , we would have report it and he would have fixed it already.

internal sd is part of data partition. saying that you got no sdcard , its like saying you got no data partition.

look in /data/media/0. see ? thats internal sd card there
[G4 Android Development] gioxoid:
Here https://eu.dl.twrp.me/g4 no "official" 3.2

Regarding data partition I have a red warning that data partition cannot be mounted because resource it's busy.
[G4 Android Development] steadfasterX:
3.2 has been removed due to issues. Use the unofficial ones.

Regarding your issue: no log no cookies
[G4 Android Development] gioxoid:
Thanks for this clarification. Probably I recognized that the problem with mounting data partition and sdcard direct access is only related to USB connection to a PC. Unplugging the USB it works regularly.
[G4 Android Development] kessaras:
nah its nothing. its mounting fine. ignore the stupid

by the way , does it lag , even a little ?

dont you have a fps drop in twrp ?
[G4 Android Development] gioxoid:
wilco.

TWRP lag? No, I can't note anything like that with respect to "old" builds on MM
[G4 Android Development] kessaras:
well , mine on N bootloader and ever since i flashed v29a lags. and it lags a lot.

i dont understand why...

fps has a 250ms latency
[G4 Android Development] Headlamp:
https://www.xup.in/dl,69623365/recovery.log/

I habe this mounting error too. Last Version which works correct is 78.
[G4 Android Development] kenfalco_14:
Hello, I would ask how could I flash the twrp.img. I am using fwul but bash told me that no such file or directory. I cannot make cd lg h815. I put tge file in the external sd.

Thanks in advance
[G4 Android Development] kenfalco_14:
I did very easywith fwul.

Many Thanks
[G4 Android Development] Lurensu:
It lags a lot on my device as well (N bootloader).

---------- Post added at 11:18 AM ---------- Previous post was at 11:16 AM ----------

Yes sometimes I experience this issue too (can't see internal sdcard and can't connect to a PC).

The next time it happens I'll grab a log.
[G4 Android Development] Minto107:
Yeah mine lags a lot, but on G4 it always did for me. On my brother's G3 TWRP works so smooth

Sent from Galaxy Tab A10 with 7300 battery ;)))
[G4 Android Development] kessaras:
"it always did" and we forget about it ? we got to trace the problem
[G4 Android Development] steadfasterX:
The lag started for [MENTION=5461026]kessaras[/MENTION] after flashing the nougat bootloader.

Can you confirm that? I mean does it lag less on older bootloader stacks?

For me it lags a bit only when I unlock it but the rest is smooth. I'm on MM bootloader stack though.
[G4 Android Development] Minto107:
When I first flashed TWRP, back on 2/27/17(I flashed latest build, I believe it was beta4 or something, it was unified 815/811) mine was already lagging. Every version I flashed later, was and is lagging. I thought it's normal on G4 lol that's why I never mentioned that as its not a big deal tbh. Previously I had v20g-EUR-XXX(for UK) bootloader
[G4 Android Development] steadfasterX:
Interesting. So we have me where it does not lag or just a bit. We have kessaras where it lags after flashing nougat and you where it had always lagged.. That's weird..

I put it on the to-do list and thx for reporting
[G4 Android Development] SeewolfPK:
How to fix default recovery filename? On my device it started with 2015-01-06...

Oreo-ROM kessaras
[G4 Android Development] steadfasterX:
no log no cookie

.
[G4 Android Development] SeewolfPK:
here it is
[G4 Android Development] steadfasterX:
Please re-try with the brand new:

twrp-3.2.1-PREVIEW-96_g4_N.img

Oreo had moved the binaries to /vendor and from PREVIEW-96 on TWRP will detect the binaries more foolproof (regardless if you use LP, MM, N or O) :highfive:

keep in mind that you need to boot once to Android after flashing.

Then reboot to TWRP and if the time is still

not

correct grab the recovery log again

(hint: pls use a pastebin service like the one in my signature or mentioned in the FAQ #4 A. ZIP is only required if a logfile is too large for a pastebin service)

thanks
[G4 Android Development] SeewolfPK:
Wonderfull, it works :good:
[G4 Android Development] DarrenNewsgroup:
No OS Installed!

I flashed the 3.2.1-PREVIEW-96_g4_N and now when I reboot to system I get a "Confirm Action" and "No OS Installed! Are you sure you wish to reboot?"

I "Swipe to reboot" and it boots back into my normal ROM ( Imperium ROM v14.2 - https://xdaforums.com/g4/development/rom-imperium-rom-g4-v1-0-t3312337)

I am guessing the message is erroneous? I have pasted the logs "dmesg.log" (here https://paste.omnirom.org/view/b6be8e8b) and "recovery.log" (here https://paste.omnirom.org/view/1ce3dd38). I hope I have included the correct information.

Thanks

Darren
[G4 Android Development] Lurensu:
Same here (actually at the third attempt it stopped saying that)
[G4 Android Development] DosenHatti:
Same here LG G4 815 Cypher AOSP

recovery log: https://paste.omnirom.org/view/56e78cc0

Dmesg:

https://paste.omnirom.org/view/0a1d13fa

Gesendet von meinem LG-H815 mit Tapatalk
[G4 Android Development] steadfasterX:
yes found the reason. there is an issue for the system mount. Will be fixed soon.. System should be fully available and the message should stop from appearing when you mount system manually in the mount menu before the reboot.
[G4 Android Development] DarrenNewsgroup:
Thanks. I did actually try doing MOUNT then SYSTEM but that didn't seem to make a difference. I could test that again if needed.

So the 2 log files were OK? I used a slightly different technique to your instructions....

In TWRP click Advanced then click Add Kernel log then click Copy Log, then reboot to System them once in the ROM copy the 2 files /sdcard/dmesg.log and /sdcard/recovery.log to my PC (I used FTP wirelessly but you could use any file transfer method). The point is that I didn't need to hook my phone to a PC whilst in TWRP; I could do it at a later more convenient time.

Now if there is an OMNIROM type website that can upload a file rather than copy/paste the log file contents then we wouldn't even need to use the PC; it could all be done from the phone. I tried opening the log file on my phone in my ROM using a text editor and then use SELECT ALL then COPY then tried pasting it into the OMNIROM website but the COPY had truncated some of the text, hence why a file upload would be more useful.

Darren
[G4 Android Development] kessaras:
pastebin
[G4 Android Development] steadfasterX:
For dmesg use zip and attach to a post. Dmesg is only needed when I tell you.

For recovery log use pastebin hastebin or whatever.

I understand you want it convenient but using zip always makes it inconvenient for ME. Up to you but don't expect I read it as fast as I can do for a regular pastebin.
[G4 Android Development] RoboSK:
Hi [MENTION=5545101]steadfasterX[/MENTION]

i have strange problem with restore, after restore backup is done then AOSCP/CypherOS boot ok, APP started (notification) but my PIN is not accepted - log attached - last TWRP official "twrp-3.1.1-1-g4.img" but i have same problem with

twrp-3.2.1-PREVIEW-??_g4_N.img - i not remeber what exact but i test 2 version (78 / 93 ?)

today problem is with AOSCP/CypherOS from 2018-02-01 but previous problems is with older version too

OS used some days, today reboot, PIN accepted, reboot to recovery, all wipe, install another OS,...,all wipe, restore Boot+System+Data+Cache = problem

in AOSCP/CypherOS i have PIN protection + some VPN account + BT watch smart unlock

12MB log = no pastebin

AOSCP/CypherOS = Android 7.x

thanks
[G4 Android Development] kessaras:
gatekeeper will never accept a pin from a restore.

thats all.

go into twrp and delete all files in /data/system related to gatekeeper and locksettings. reboot and set your pin again.
[G4 Android Development] ThePiGuy:
I have suddenly started getting an error 255 when trying to backup my phone. It happened on the version of TWRP before the latest beta (it hasn't done in the past) and it also happened on the latest beta.

The error says "createTarFork() process ended with ERROR: 255"

The log is attached below
[G4 Android Development] steadfasterX:
yes that seems to be related to:

could you pls test if PREVIEW 97 fixes your issues?

.
[G4 Android Development] ThePiGuy:
Is there any way to get a backup, as this happens every time I try to create a backup so I can never complete one?
[G4 Android Development] steadfasterX:
if all goes well build

97 (or any higher)

will arrive in ~20 minutes. try that one and report if it works

.
[G4 Android Development] ThePiGuy:
Since posting this, I have looked on the internet and apparently a corrupted file can cause the issue, so I reinstalled stock LG software with LG Bridge (Update Error Recovery), and then reinstalled TWRP, which has solved my issue (backup is now working perfectly)
[G4 Android Development] DosenHatti:
Still issues with system partition. AOSP Cypher for LG4 by kessaras.

https://paste.omnirom.org/view/3667e5ff

Gesendet von meinem LG-H815 mit Tapatalk
[G4 Android Development] steadfasterX:
actually there are 2 issues about /system. the first one should be fixed now and should let you mount manually again. Can you confirm this?

.
[G4 Android Development] DosenHatti:
Could mount manually. Still message 'no system installed' when rebooting to system. Even after mounting. Btw 'firmware' was also not mounted. Will the issues with 'system' have any impacts when flashing new ROMs?

Gesendet von meinem LG-H815 mit Tapatalk
[G4 Android Development] SeewolfPK:
I can manually mount system. After that i have to refresh sizes because systemsize is 0

First reboot to system: there is no system but i can reboot.

Again going to twrp and start system: no error message
[G4 Android Development] DosenHatti:
Same behaviour here. After refresh no error booting to system. Log will follow

Gesendet von meinem LG-H815 mit Tapatalk

---------- Post added at 01:24 PM ---------- Previous post was at 01:14 PM ----------

https://paste.omnirom.org/view/cbd41510

Gesendet von meinem LG-H815 mit Tapatalk
[G4 Android Development] street_android:
I am coming from a stock MM rom and yesterday i installed through twrp the nougat stock 29.a rom by kessaras. I am having trouble to reinstall twrp. I follow these steps exactly:

This how to is for the Nougat bootloader:

I said you need an unlocked device. So ensure you have it unlocked and OEM unlocking option is enabled (see screenshot)

Connect an USB cable and get ADB running (READ the FAQ!! or the general guide above)

Boot into Android and then type on your PC to reboot into fastboot mode:

adb reboot bootloader

Type on your PC:

fastboot flash recovery twrp.img

(replace twrp.img with the real file name you downloaded)

It is highly recommended to verify your TWRP installation by booting into Android now:

fastboot reboot

Then execute: adb reboot recovery

...and i end up with the green android and no command screen. Could you give me some help?
[G4 Android Development] kessaras:
a command to wipe is being left half way. flash official recovery reboot and then again reboot to bootloader and flash fastboot flash twrp recovery just like you did and fastboot reboot.

**EDIT:

there r other ways too to fix that, but me i just go with that way , its faster and can't confuse anyone.
[G4 Android Development] street_android:
What do u mean by "flash official recovery" could you be more specific? I havent customised the phone for two years due to avoid losing the two year warranty and i feel again new to this.

edit: do u mean i have to facory reset my phone again?
[G4 Android Development] kessaras:
official i mean stock LG one. sorry. typed fast.

Its in sfx download server. where you found the nougat v29 full rom, next to it is the extracted folder. in there you will see a recovery.bin. rename to recovery.img and flash it in bootloader just like you flash twrp rec.

reboot to rom, reboot again. reboot to bootloader and flash twrp this time.
[G4 Android Development] street_android:
Unfortunately the problem still remains.:(

No recovery,no root. Is there a safe way to roll back to stock mm without bricking my phone?
[G4 Android Development] kessaras:
SALT.

so you dont know what to do , so you give up ?

its harder to give up and go back and its easier to flash twrp.

find SALT and whatever you need ask steadfasterX there.
[G4 Android Development] ThePiGuy:
Are you rebooting into the main system before booting into recovery (only a thought - sorry if this was obvious). If so, then your ROM could be wiping away TWRP, as TWRP hasn't had a chance to patch your ROM to prevent it being overwritten.

If you are, then you need to flash TWRP when your device is in bootloader, and then do "fastboot reboot" and use the key combo to boot immediately into recovery. From there, you need to ensure the system partition is mounted, and not mounted as read only
[G4 Android Development] steadfasterX:
Ok flash as described in the OP with fastboot mode and afterwards take out the battery and use the key combination to open the factory reset page and walk through it to boot into TWRP

If that worked go into the reboot menu and choose reboot to recovery again so TWRP should boot up once again

Now all should be in place and TWRP should resist even booting into Android
[G4 Android Development] street_android:
You are the man! Many thanks!!!:good:
[G4 Android Development] F1r3byte:
Need Help ! TWRP not installing.

hello everybody

I need some help here, if anyone can help with this...

I had v20i [MM] on my LG G4 H815, and I installed twrp successfully and flashed V29a [N], which removes twrp !

every attempt of trying to reinstall twrp has failed ! I only end up erasing everything on my device.

I followed this guide, but it is not working.

Here is what I did in detail:

adb reboot bootloader

fastboot flash recovery twrp.img

it outputs this:

target reported max download size of 536870912 bytes

sending 'recovery' (33980 KB)...

OKAY [ 1.214s]

writing 'recovery'...

OKAY [ 0.391s]

finished. total time: 1.605s

which makes it seem like it was successful, but then I do:

fastboot reboot

and shutdown my device and boot into recovery, but twrp is not there. I just erases everything when I press yes twice.

sorry for not providing any logs, but I can't provide any useful logs since I can't even boot into the twrp recovery.

Any help would be greatly appreciated.

I'd also like to note that my device is not rooted, however the bootloader is unlocked.

I need twrp so I can root it and make some customizations.
[G4 Android Development] ThePiGuy:
Not sure if fastboot boot works on v29a firmware, but it does on v20.

Try flashing twrp using the normal commands, and then perform fastboot boot [twrp name].IMG. (without booting back into your os first)

Hopefully you will boot into TWRP, from which you can make sure system is mounted and not read only. Then, go back to the main screen and select reboot --> recovery. If all goes to plan, it will boot to TWRP, and should be installed
[G4 Android Development] steadfasterX:
Read the guide on the OP carefully! Ensure you read the nougat way!