yashsingh1/xdaforums huggingface dataset:
[G4 Android Development] Th3_uN1Qu3:
I'll just leave it be then, might even root it. Going to get the new battery and back cover tomorrow.

Btw, i managed to drop the darn thing on pavement last night while walking to the bus after a night out at the club. The cover and the battery popped off but there was no damage to the phone. And it had no protection at all - I took off the glass screen protector that it had on when I bought it, because it was already cracked. If this were a Samsung, i'd probably be looking at smashed glass right now (and if this were my Lumia 930, i would probably have been looking at a hole in the pavement :D). I guess the curved shape and the slightly raised edge of the frame do a good job of protecting the screen.

I'm liking this phone a lot, actually. This Nougat stock ROM is great, it's got Swype/Swiftkey functionality built into the stock keyboard, there's a built-in remote control app with no nags and no ads that works great with my LG plasma, the camera has a great manual mode, and it has one of the best stock themes I have seen on any phone, as a matter of fact, i spent about 1 hour looking for themes and only found one that's even close to the quality of the stock (bright) one, this one's a dark theme, called "midnight". I find the experience of the LG G4 similar to Sony mobiles, the extra stuff baked into the ROM is actually useful and does not get into the way, vs Samsung where the first thing I do when I touch a stock one is "how do I turn all this crap off???".

If it weren't for the screen retention issues and that CPU being a ticking time bomb, I would have probably held onto it. But I basically got this to replace my Lumia 930 which started having microphone issues, however, while preparing the battery to use for testing this phone, I stumbled upon parts for the Lumia and got the microphones replaced, so that's all good now.

Thank you once again, you have done a great service to the community.
[G4 Android Development] whitewolf1608:
After uploading this ROM - u can not enter into the TWRP Recovery from the Volume Down + Power combination. The command line also does not go from the command fastboot boot lgg4-twrp.img enter recovery.

I also have a problem with downloading the recovery TWRP by the official TWRP application - which is available in the Google Play store.

https://photos.app.goo.gl/V8iUN8gWFoPTjxoh8

https://photos.app.goo.gl/MpY9m4mTZUSpw8J37

https://photos.app.goo.gl/P4SHJ6zP8gwNt85C9

https://photos.app.goo.gl/ToTjkrBMnDXrgJuD7

https://photos.app.goo.gl/XEwNuVdL9DmXw63z7

https://photos.app.goo.gl/MgaoKjaVHQpZvsgr6

https://photos.app.goo.gl/X8ppmSz2yXSB4wgHA

https://photos.app.goo.gl/5YGfjN62r8Gokzp96

https://photos.app.goo.gl/Qz35sWmDqZMH4Zu97

https://photos.app.goo.gl/BD7dyx9pJy3FLRJQA

https://photos.app.goo.gl/Rc6WepPMKJ2GzgLx7

Why do I write root access required since I uploaded the zip package Magisk Mask 17.1 after the Rom flashing?

I am asking very kindly what to do - because it looks like it

I do not have Root permission on this Android, and I can not run - just like it

should come in recovery Power + Volume Down Recovery TWRP.

As described above, after uploading this ROM I can not enter the recovery TWRP.

Is the author of this Rom in this forum and can say why after

uploading Rom you can not enter into recovery with the Power and Volume Down keys?

The second question is why I do not have access to Root - since I was flashing right after

Romie a pack of Zip Magisk Mask?

Download Mode starts but why does the recovery mode not run on this Rom?

Above are all the screenshots that I have made presenting the problems, please, the author for detailed reading of the post and all screenshots. And here I put a link to the movie from trying to enter TWRP Recovery by combining the Power and Volume Down buttons.

I expect a quick and factual response to my post.

Regardless, whitewolf1608
[G4 Android Development] Znuff:
Can you flash this as an upgrade without unlocking the bootloader? After I changed the mobo on the phone, I didn't bother unlocking it, and I really don't want to restore all my files (unless something goes terribly wrong).

So the question is:

1) Can I flash this without unlocking?

2) Is this a direct upgrade? (ie: keeps my data)
[G4 Android Development] kessaras:
1. no

2. yes

It is very dangerous to flash it without unlocking. Possible from LP where you can root without unlocking and then using flashfire to flash the partitions.

Chances to brick it permanently are high.
[G4 Android Development] Feduz:
installed via twrp, but stuck in lg logo! what can i do?? please..
[G4 Android Development] whitewolf1608:
It looks like your smartphone has hung up. Do you currently have access to recovery TWRP from the level of combination of Power and Volume buttons down?

---------- Post added at 01:34 AM ---------- Previous post was at 01:24 AM ----------

In recovery TWRP as you come in, clear three partitions: Cachce & Art Dalvik, Cachce and date - in recovery TWRP you go into advanced cleaning and in your tab you will find these options.

If there is a problem with starting the recovery of TWRP for some reason - there is still a chance to try to remove the batteries for 2 - 5 minutes of time to reset the electronics in the smartphone..

As these methods do not work, the LGUP tool and uploading via the firmware download mode remain.
[G4 Android Development] iannisb:
i actually succed to instal USU BUT SIM doesnt work

i have this message as the android boots : current version is not available for user cant find matched cust for NTCODE=[FFFFFF,57]

my device is recognized as ls991 after fwul/salt unlock
[G4 Android Development] kessaras:
try flashing a different cust partition then from a h815 firmware. Only the cust.

cust wont damage anything , it just has carrier information, apns, ads by carriers , etc

EDIT:

And because you may ask how, usually thats what comes next,

extract only cust from the firmware and flash it in twrp.

Open terminal adb shell and use dd if=path to cust image of=/dev/blah blah blah/bootdevice/path to cust partition.

what is that ?

i said cust from firmware. where is firmware ? on the sfx download server inside stock folder http://droid.binbash.it:8008/stock/LG/h815/

where else ?

here https://www.androidfilehost.com/?w=files&flid=194933

it also has an "old" folder where it has the MM firmware.

You simply extract cust.img or cust.bin and flash it with the terminal command.

Aaaaaaand where is all these infos ??? Guess............ in the OP....... where you see firmware.

And whats next ??? clicking on the links and folders, etc , navigate in the download servers......

EDIT:

And as i said its not dangerous. just experiment until you flash a cust that works. we dont have the same device so i don't know which one will work.
[G4 Android Development] iannisb:
By flashing you mean delete the one on the device and replace with another cust file?

I found this , you think it would work ? https://xdaforums.com/showpost.php?p=63138128&postcount=33

---------- Post added at 09:04 PM ---------- Previous post was at 08:37 PM ----------

thanks im working on it!
[G4 Android Development] iannisb:
Root>stock>LG>h81520p>h815_20p_FULL_single-partitions.7z>cust.image 256.0 MiB

Is this what i am supposed to be looking for?

https://androidfilehost.com/?w=files&flid=194933 >LG-H815_29a_Modem_and_Bootloader.zip (i download and extracted modem.bin,META-INF,bootloader)

I flashed through fastboot the FFFFFF,57 message is now gone but i still have no SIM service signal etc

Thanks for your time
[G4 Android Development] Dark_Assi7:
Can I lock the bootloader after install it? Or is something that is important to let unlocked?
[G4 Android Development] TrueFaith:
So when i want keep unlocked BL and TWRP i should flash v29a_keepsTWRP-LAF? I need nougat bootloader for this v30 port

https://xdaforums.com/g4/development/rom-h-rom-v30-port-t3672567
[G4 Android Development] herveonex:
ok dev , Thanks for my old G4 !

cm13----Nougat stock
[G4 Android Development] adelpozoman:
it is a silly question but, what ARB has the Steadfaster version? I am on MM ARB=0, its gonna change if I update using that zip?
[G4 Android Development] kessaras:
If you need only the bootloader then just flash the bootloader only. The keep laf will also work for you. Laf partition of MM is useful in sfx SALT.

It doesn't change
[G4 Android Development] adelpozoman:
thanks buddy
[G4 Android Development] adelpozoman:
Thanks, did a backup with SALT and flashed today the keep bootloader one, works flawlessly! Sadly it gave CTS certification error, so then tried the full .zip image. Then again CTS error and needed to adb reboot bootloader and then fastboot flash twrp.img. But thats another thing, thanks for the rom!
[G4 Android Development] obvious:
I know this will have been covered but a quick search wasn't fruitful.

I've flashed LG-H815_Official_v29A_keepsTWRP-LAF.zip by [MENTION=5545101]steadfasterX[/MENTION] and upon first boot it requested pattern unlock which was previously not set. I got kind of stuck at that point so reverted to LOS. I'm on holiday so wanted to flash v29a stock for the better camera
[G4 Android Development] polfrank:
With stock v20 rom, the network is "4G+".

With stock v20 rom, the network is "4G".

When I had it rooted I had used the v29 rom with the cust.img from v20. This way I had the v29 rom with 4G+ network.

Can we install only the cust.img from v20 rom, in a locked device that runs v29?

It's not so important but I was just wondering.

Edit: I now notice that this is kind of the wrong thread to post this, sorry.
[G4 Android Development] kessaras:
yeah its wrong and deprecated (not supported anymore) but for once thats ok.

yeah you can flash cust of v20 but not in a locked device.

You can't flash anything in a locked device to begin with. You can only restore from a kdz the official way.
[G4 Android Development] polfrank:
Can you chose to flash only one partition while installing the kdz? Is there such an option in LGUP?

For example only the cust partition from the v29 kdz.
[G4 Android Development] kessaras:
Nope. You can unpack the kdz and change a partition and then pack everything back to kdz. The tools are in this forum around.
[G4 Android Development] polfrank:
I see. I've tried playing with unpacking/repacking and I fould some difficulties. First, I cannot unpack the v29a.tot that exists. Then I cannot find proper repacking tools.

Anyway, I think that a nice way to do it would be to:

1. unlock

2. flash v29a

3. flash cust from v20

4. relock

But since I can live with it as is (bored of unlocking and setting up again the phone), my quest with 4G+ on a locked device ends here. Thanks for the tips!
[G4 Android Development] kessaras:
don't "play" with lock/unlock. Many hard bricked from a mistake and the fix isn't cheap enough. You will have to pay 30 to 40 euros to fix it and g4 doesn't diserve them now since you can find another g4 for 60 to 80 euros.

you can:

1. in just one step, unlock, flash cust of v20 in bootloader mode and relock.

Just that.

But yeah , it will be formatted when you do that.
[G4 Android Development] polfrank:
Would the command be something like:

fastboot flash cust custv20.img

?

And: did you maybe mean "don't play with unpack/repack"?

EDIT

Okay, when I tried the above command, I got this:

fastboot flash cust custv20.img

FAILED (remote: cannot erase this partition in unlocked state)

So, what I finally did was:
[G4 Android Development] kessaras:
very good :good:

you did the right thing there. Also you can use dd command in custom recovery mode to flash the desired partition.

Sorry that flashing cust in bootloader it didn't work. I don't remember which partitions are allowed there. It's been years since i did anything in the bootloader of my g4
[G4 Android Development] polfrank:
Well, I've come back with another question. Now that I'm using stock v29 with locked bootloader, I thought of trying Google Pay. Unfortunatelly in the Play Store it says "your device is not compatible with this version". I tried deleting the data of both Play Services and Play Store but to no avail.

I thought that it could be a matter of old security patches. Is this possible?

Edit: I've just downloaded an app to check SafetyNet and it passes everything except for CTS profile. I think this is the issue but I can't think of anything to workaround it, since it's already stock/locked/encrypted. :/
[G4 Android Development] steadfasterX:
The last time I used this was on LOS 15.1 + magisk .. so full unlocked , rooted and having a custom ROM .. Yea..

There is a reason why we reverted our commits for the build fingerprint e.g. here :

https://github.com/Suicide-Squirrel...mmit/a1fed748a2a728126060d3a977d9e9f92de66524

V29a is a beta - unofficial grabbed so will never pass anything at google. If you prefer stock you have to go back to MM or use magisk + magisk hide together with whatever you like (v29a, custom ROMs..)

OT

...and as you are here currently ;) many thanks for your support .. I see you on almost ANY of my posts.. Greatly appreciated ! :svetius: :D
[G4 Android Development] polfrank:
Haha, I just check on this forum once a day and I think that giving "thumbs up" is a good way to thank the contributors, like you! ;)

So, here is what I think. Stock v29a cannot pass SafetyNet. I suppose it cannot pass it even with magisk + hide, since the "hide" function just hides the rooting. V29a is "faulty" from the very begining and just hiding magisk is probably not enough. Right?

Time to unlock again! :D
[G4 Android Development] steadfasterX:
:D

well yea true . on v29a it will likely work with a build.prop adjustment (fingerprint) first.

.-
[G4 Android Development] polfrank:
Alright, I can confirm that v29a passes SafetyNet with hidden Magisk and a little change in "/system/build.prop". (lines 39 and 40)

Change:

ro.build.description=p1_global_com-user 7.0 NRD90U 171931902b165 release-keys
ro.build.fingerprint=lge/p1_global_com/p1:7.0/NRD90U/171931902b165:user/release-keys

To:

ro.build.description=p1_global_com-user 6.0 MRA58K 152940055675e release-keys
ro.build.fingerprint=lge/p1_global_com/p1:6.0/MRA58K/152940055675e:user/release-keys

However, I still cannot see Google Pay in the Play Store and when I rach it through the website, it is stated that "your device is not compatible with this version". I deleted the local data of Play Store and Play Services and tried again but still, it doesn't appear. Hmm...
[G4 Android Development] steadfasterX:
adb shell getprop |grep fingerprint

besides the above you have to extract the initial ramdisk from the boot image and change the default.prop too.. I guess thats the reason

.-
[G4 Android Development] polfrank:
I think you are right:

C:\Android>adb shell
p1:/ $ getprop |grep fingerprint
[ro.bootimage.build.fingerprint]: [lge/p1_global_com/p1:7.0/NRD90U/171931902b165:user/release-keys]
[ro.build.fingerprint]: [lge/p1_global_com/p1:6.0/MRA58K/152940055675e:user/release-keys]

I tried editing the "default.prop" file that exists in the root directory, but it seems that it's being restored to default values after every reboot. So, you suggest that I can find a "default.prop" file inside the ramdisk and edit it?
[G4 Android Development] sdembiske:
Re: Editing the build.prop file

Refer to the following article and follow the commands exactly, particularly the last ones to reset the permissions. Works a charm.

Link: https://www.theandroidsoul.com/edit-build-prop-without-root-using-adb-in-twrp-recovery/
[G4 Android Development] steadfasterX:
yea thats why I said "extract ramdisk from boot image" but I had some seconds of free time so here you go:

http://leech.binbash.it:8008/stock/LG/h815/29a/

--> boot_v29a_pass-safetynet.img

flash that in fastboot (fastboot flash boot boot_v29a_pass-safetynet.img) and check if that works

.-
[G4 Android Development] polfrank:
I tried flashing both through fastboot and TWRP, but it cannot boot. It does 1 bootloop cycle and then it ends up in recovery.
[G4 Android Development] steadfasterX:
ah yes I remember.. the stock boot image was a pita. one sec..

EDIT

[MENTION=4722961]polfrank[/MENTION]

re-download the same file again (also added a md5sum if you wanna verify it locally)

.-
[G4 Android Development] polfrank:
Alright, it's done! Thank you so much! I was at the point of learning how to repack the ramdisk, but I guess I'll leave it for another time. :D

C:\Android>adb shell
p1:/ $ getprop |grep fingerprint
[ro.bootimage.build.fingerprint]: [lge/p1_global_com/p1:6.0/MRA58K/152940055675e:user/release-keys]
[ro.build.fingerprint]: [lge/p1_global_com/p1:6.0/MRA58K/152940055675e:user/release-keys]

It passes SafetyNet propperly. Google Pay is still not shown in the Play Store, but after a little reading on the forums it seems like it may be a problem with the latest Magisk, that cannot overrun the latest Google Play Services.

Edit: I tried locking the bootloader and then installing stock MM but Goggle Pay insists on not appearing in the Play Store, even though it passes SafetyNet. It seems like Google hates the G4! ^^ Anyway, it's time to give up with this.

Edit2: [MENTION=5545101]steadfasterX[/MENTION] Can you please create a TitanKernel boot.img with the same modification? (When you have a little free time, it's not urgent.)
[G4 Android Development] steadfasterX:
just tested on LOS 16.0 without magisk just LOS + nano OpenGapps and I can download and start google pay without an issue.

.-
[G4 Android Development] polfrank:
The strange part to me is that I couldn't get it to show up even in stock MM with locked bootloader. However, I didn't try with LOS15.1 without root. Thought that it would fail safetyNet by default, since there isn't Magisk to hide the bootloader unlock. But well... it may have also worked!

EDIT

(Update) [MENTION=5545101]steadfasterX[/MENTION]

I've finally found a solution to the GooglePay issue. It seems that it was not a matter of SafetyNet, but a matter of selected region in the Google Account. After changing it in the Google Play Store settings, Google Pay can be normally downloaded. I changed from Greece (GPay has not been introduced to Greece yet) to Sweden (where I've been living in a while). [LOS16 + Magisk installed]
[G4 Android Development] steadfasterX:
omg lol.. yea.. country.. that makes sense.. glad u figured it out. now go on to LOS ;)

,.
[G4 Android Development] Moshan:
Hey guys,

It's been a while since I flashed any ROMs on my LG G4, and I decided to start fresh using this stock one.

However I am not able to get my phone to boot up the ROM.

I performed first a full wipe through TWRP (Dalvik/System/Data/Internal Storage/Cache)

Then I flashed LG-H815_v29A_bootloaderonly.zip

After that I immediately flashed LG-H815_Official_v29A_keepsTWRP-LAF.zip

However the phone only boots into recovery and connecting it to the PC shows Internal Storage free (just a TWRP folder in there).

Is there something I am doing wrong?

Thank you!

EDIT: I ended up installing the LineageOS ROM. Not sure why above was not working.
[G4 Android Development] polfrank:
Did you try turning the phone off and then on after flashing? I mean that in twrp you should choose shut down instead of reboot. And then boot normally.

Not sure that this is the case though.
[G4 Android Development] Moshan:
Thanks for the reply! Yep, I tried it.

I wonder if the bootloader was the problem here.

Anyway I am running LineageOS now, maybe I'll get the curiosity other time to try this one again.
[G4 Android Development] devil231:
Hi, I have the v29a TWRP version with unloocked bootloader. Is there any way to root this version?
[G4 Android Development] devil231:
Nevermind, I did manage to root it by following the steps from here:

https://xdaforums.com/g4/general/lg-g4-v29a-debloat-list-t3734510
[G4 Android Development] bazaleem818:
hello sfx

i insatll this img boot_v29a_pass-safetynet.img in fastboot to fix saftynet pass

in my case it was

red x on ctsprofile:fasle

but after reboot data disabled ( no services)

also still error

ctsprofile:fasle

device h815 USU

Edit: i flash the nougat h815_stock_boot_build-11 again now service ok

i will try magisk again
[G4 Android Development] levider:
Hello

I flashed in TWRP*LG-H815_Official_v29A_keepsTWRP-LAF.zip

After 20 minutes phone didn't boot so I pulled out battery to enter recovery and wipe cache

Now I can't enter recovery because of*"Your device software can't be checked for corruption. Please lock the bootloader." Then I see only G4 bootanimation

Download mode is working, but I can't flash*H81520p_00_0403.kdz. Tried FlashTool2014 (connection failed or questionmarks) or/and LGUP with different devices.

How to fix?

EDIT

Fixed. Thanks to this. https://xdaforums.com/showpost.php?p=73642302&postcount=4
[G4 Android Development] Feduz:
does anyone have the boot.img? nougat, stock
[G4 Android Development] steadfasterX:
http://leech.binbash.rocks:8008/stock/LG/h815/29a/LG-H815_Official_v29A_extracted/
[G4 Android Development] Feduz:
thanks, i have download from magisk a tool for safetynet, but now continue to bootloop, can i flash only the bootloader?

doesn't work :(
[G4 Android Development] masemoel:
Is the 29a modem better than the 20p one?
[G4 Android Development] rundumdieuhr:
No, I remember [MENTION=5545101]steadfasterX[/MENTION] reported there's no difference and he only supports one stack:

LG-H815_29a_Modem_and_20p_Bootloader.zip

which is downloadable from his server:

http://leech.binbash.rocks:8008/stock/LG/h815/
[G4 Android Development] steadfasterX:
v29 is

unofficial

has been grabbed in the middle of a

private

BETA testing

has never become official

contains debug code

comes with a limited bootloader (i.e. fastboot)

...

whoever thinks the above is better then an official release should flash it. I can't recommend it, especially as there are no (known) benefits, just limitations.. The only reason for flashing this might be if you wanna go pure Nougat STOCK but even then I would stay with 20p bootloader and just flash boot and system of v29.

well that was a while ago.. At the time beeing I can just recommend

h815_20p_bootloader_20p_modem_TWRP-flashable.zip

(so pure 20p) which can be found here: http://leech.binbash.rocks:8008/stock/LG/h815/20p/
[G4 Android Development] waterblue85:
hi steadfasterx will you upload a UsU version of 20p_modem_20p_bootloader TWRP flashable package?
[G4 Android Development] Root_newvie:
I Cannot Switch to Another Rom

Hi, I installed this rom but now I want to switch to another rom. However, I cannot do that since I need to install TWRP again. For this, I know I have to connect the phone to the PC and use ADB. Still, when I try to install TWRP on ADB, it says no device was found. It doesn't recognize my phone no matter what I do. Please help
[G4 Android Development] steadfasterX:
forgot to mention that I have added that a while ago ;)

you do not flash TWRP by ADB! You use fastboot for that. Check the official TWRP thread for instructions (see my sig)

.-
[G4 Android Development] Root_newvie:
I think I did what you mean but still, I receive an error saying that no devices were found although usb debugging is enabled on my phone and it is connected to the PC via USB. The PC even detects that the device is LG G4 but fastboot option still does not work. I really need help. You can see the screenshot of the CMD window in the attachment.
[G4 Android Development] steadfasterX:
set the phone usb mode to PTP or file transfer
[G4 Android Development] kessaras:
in other words you want to flash it and keep the twrp recovery ?
[G4 Android Development] kessaras:
Anyway. Guys help each other for a few days.

I will only answer if I see something very important.

Answering all questions takes time and this time is important. I wanna finish my freedom roms and make a new twrp with the new nougat kernel cause 3.1.1-1 is laggy.

Since I'm not doing this everyday I don't have our twrp dev knowledge and I need time and of course I need it to be stable
[G4 Android Development] stefan.kurz:
I first small feedback. I have 30% battery drain over night. This is to much for me.
[G4 Android Development] VatrasPL:
I have small problem with screen shots. I cant find the icon. Can you fix it?