yashsingh1/xdaforums huggingface dataset:
[G4 General] lordivbb:
[MENTION=5545101]steadfasterX[/MENTION] and the others.

Hello guys, i just want to say that i have a kind of situation i don't know too.

My problem is simple. I was using Android 7 Nougat, when i see this topic i install a KDZ to downgrade my Nougat to MM. I succeed but i don't see the one simple thing. The KDZ i download was for the LG G4 H815 Global one. I am using a H815TR one. It gave me an error but i don't see that before ---> "Current version is not available for user” . I start to do steps on this topic until the fastboot one. After i use USU, when the fastboot step everytime i tried cmd said "waiting for any device". I rebooted device and tried it said something. Then, I saw that windows doesn't recognize the device at "fastboot" it has a driver error. I tried the solve the error with LG Drivers and manuel adb/fastboot drivers. Nothing helped.

If my issue is about the driver what i have to do? If it's not about the driver. I have to install the right ROM for my LG G4 but the problem is topic says you can't use LG UP and KDZ? Then, what i suppose to do? :( Why phone is android MM right now. It's v20o and i can use it, it's working. The only problem is i can't install TWRP ! :(

I need your help guys. Thanks.
[G4 General] Bcoates84:
You forgot to turn on developer settings again.

---------- Post added at 02:18 PM ---------- Previous post was at 02:16 PM ----------

You forgot to turn on developer settings again?.

ON WIndowzzzz the commands are...

Ctrl+R

Type: cmd.exe

Type: cmd admin [This gives u admin rights

Type: Adb reboot bootloader

Type: fastboot devices [This lists the attached device]

Tell me what it says.

Fastboot and ADB are two different things.
[G4 General] steadfasterX:
Why not using FWUL / mAid ? Its there for a reason . Tbh for exact your issue .
[G4 General] lordivbb:
Developer settings / OEM unlock is still ON. Windows can detect phone at ADB and Download mode but at the fastboot mode CMD says "waiting for any device"

---------- Post added at 12:15 AM ---------- Previous post was at 12:08 AM ----------

Sorry I am actually new at rooting. I root 8 phones at total. 3 of it was mine. I helped my friends too. But for the LG phones this is my second root. My first LG root was LG G3. Generally i carefully do step by step instructions. But now problem is the KDZ. I don't know.

I don't know how to use the all functions of FWUL and you said mAid. Could you give me the instructions?

My FWUL version is 3.1

[MENTION=5545101]steadfasterX[/MENTION]
[G4 General] lordivbb:
Oh also, i found lastest version of maid from your download server and i start to download it.

When the download finish, i'll flash it to USB stick. But i don't know after that what i have to do.
[G4 General] steadfasterX:
boot into fastboot mode

Open a terminal (little black window in the taskbar) in mAid

Type :

fastboot devices

lsusb

Make a screenshoot of the terminal ( e.g. by the screenshot tool in the taskbar of mAid) and if possible a photo of the device screen when in fastboot mode
[G4 General] lordivbb:
Ok i'll send it!
[G4 General] lordivbb:
This is the screenshot of the terminal

https://i.hizliresim.com/usYnJS.png or https://cdn.discordapp.com/attachme...8424298556/Screenshot_2020-10-20_01-03-38.png

This is the screenshot of my LG G4 H915TR in fastboot mode

https://i.hizliresim.com/zo8o8X.jpg or https://cdn.discordapp.com/attachments/636711189271019520/767921102159740958/20201020_040628.jpg

I think mAid see it. Wow. What's next?
[G4 General] steadfasterX:
download TWRP in mAid

open the file explorer in mAid and browse to the folder where you have twrp downloaded (most likely "Downloads")

right click within that window and choose "open terminal here"

type: fastboot flash recovery twrp<NOW PRESS THE TAB KEY AND IT AUTOCOMPLETES THE NAME>
[G4 General] lordivbb:
Thank you so much!!! I sucessfully installed TWRP to my LG G4 !

I flashed magidsk and baseband zips. ^^

I checked the phone everything works.

Now i can flash costum or ARB=0 stock rom. What's your suggestion? Is there any fix for overheating and battary optimization? Also, i want to change the screen resolation of the phone.
[G4 General] lordivbb:
My last problem is when my phone boot it says "Current version is not available for user. Can't find matched cust for NTCODE = [FFFFFF,73]
[G4 General] steadfasterX:
if you want to stay on stock you can try this (also read the whole thread as there are different other methods in there): https://xdaforums.com/g4/help/lg-h815p-fix-matched-cust-nt-code-mmc-t3336034/

btw: have fun with your unleashed g4 :)

.
[G4 General] ragingblow:
Hi Dear SteadfasterX & Thank you for your hard work on this project till this day bro.

I have a H818p Model locking up after few minutes of use & i believe it's related to the BIG cores malfunctioning.

In the LG dev website where you can unlock the bootloader officially i saw that "H818p for European market" is now available in the unlock page.

After that tried to unlock using their website and it gave me error saying my phone is for "UAE" and not supported.

I wonder now that we have official unlock for H818P EU can we somehow do it for the other H818P models ?

Or maybe there is an unlock method for H818p already that I'm not aware of and you can direct me to.

I didn't even know that there were other "H818p" models that are different in someway that only LG knows :D

Thank U So much ^~^
[G4 General] steadfasterX:
You saw h815 and not h818 there. Otherwise show me a screenshot. But anyways. Forget it. Either there is an official way or not. And i can't believe that LG would offer years aftet the end of sale new models for unlock - while ofc not impossible ..
[G4 General] lordivbb:
You are an awesome person! :D Thanks for all help. Now i have rooted LG G4 with modified stock rom (ARB=0 rom you made) But i want to speed up the device a little bit for games. Also i think that if i lower the resolution to 1280x720p it'll be so good. Which custom rom helps me about that resolution change. At the stock i try to change resolution by using USB debugging but after i configure my res. and dpi LG Keyboard and some other apps are broken.
[G4 General] ragingblow:
Here you go my G here is the screenshot (If the attached one didn't work):

https://i.postimg.cc/1zjgLZvC/Unlock.jpg

https://i.postimg.cc/PrxSmJ7w/Unlock-Fail.jpg

you can take a look at the official unlock site (bottom of the list):

https://developer.lge.com/resource/mobile/RetrieveBootloader.dev?categoryId=CTULRS0703

I tried to unlock my h818p but gave me error saying: it's h818p.ARE

Maybe we can bypass the region check somehow ?

I also running the V29a-AME-xx maybe the rom itself is my problem ? i'll downgrade to MM EUR and share the results again.
[G4 General] steadfasterX:
You have to enter a device specific id when unlock. This id is coming from the hardware and cannot be changed. This id contains the device model incl region as well and that all together means no chance. I never heard of a h818p in the european markwt btw..
[G4 General] iakovl:
interesting question, got a refurbished G4 from AliExpress as a backup device (it was cheap), was supposed to be H815 but it's "converted" F500L, should i use the normal UsU procedure? prefer to update it from the stock old un upgradable 5.1 it came with
[G4 General] Bcoates84:
Wait! lol :D

no,no,no,no,noooo :eek: eek

It is highly possable that you can brick the device. Best wait to see what this device really is. A franken stine device is what we call it on XDA. First thig to do is pull the back cover off and see what the [ FFC ID: ] is and the [ IC ID ] is on the back.

Also there should be clues to what it is on the white print around the phone.

If you really want to make sure you can open the rear to see what the chip set says on it.

[p.s of course if you have a warranty is will be void] I assume it don't have one.
[G4 General] steadfasterX:
did you checked the mainboard? if not do that first. Frankenstein devices are impossible to predict how they behave though.

if it turns out to have F500 printed on the mainboard then check that you have an ARB of 0, too. there are cases where a nonfusing device (e.g h815 or f500) have blown fuses.

.-
[G4 General] iakovl:
It's an f500l

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

How to check it?
[G4 General] steadfasterX:
ok tha hardware is f500. leaves the question how the PBL is setup (which we cannot check.. it will either work as it should later - or not)

regarding ARB see my signature

.-
[G4 General] iakovl:
well, didn't expect it... the value is:

should be implemented! (rollback version check)
[G4 General] steadfasterX:
wrong line. make a screenshot and scroll down to the very bottom first

.-
[G4 General] iakovl:
Attached it From the phone
[G4 General] steadfasterX:
ah ok not all LP versions have that it seems.. check by SALT then

.-
[G4 General] schwinne:
Hey there, I'm trying to root my Verizon VS986 LG G4 for a project.

I used SALT through the most recent version of mAid and successfully flashed UsU, but when I try to fastboot it crashes (it starts listing options in the top left corner before the screen turns into what looks like tv static), and I can't flash TWRP.

The weird thing the phone boots up normally (with the secure boot error). Recovery mode and download mode also work, only fastboot does not work. I tried adb reboot bootloader but same thing happens. Hoping there's a way to fix or figure out what I'm doing wrong but it's looking bleak :(
[G4 General] steadfasterX:
Never heard from something like that before.. You could try reflashing UsU but if that does not fix it you maybe have to live with it. That does not necessarily mean you can't flash TWRP though . Boot to download mode and start SALT and then share the debug log from the advanced menu of SALT
[G4 General] steadfasterX:
ah yea I rem that I saw something like that in the past.. cannot remember what fixed it though. but iirc fastboot commands were still working then..

anyways.

just use SALT to flash TWRP:

boot into download mode

start SALT but from a terminal: open a terminal in FWUL (black icon in the panel) and type:

sudo ~/programs/SALT/salt --experimental

you will now see new buttons in SALT which allow flashing (do not do that yet)

make a "Basic" backup

save TWRP in the folder where you saved that Basic backup

delete the file recovery.img from that folder

rename the TWRP image to "recovery.img" and ensure it is placed in the folder where you saved that Basic backup

in SALT select "Flash (folder)"

select the folder where you saved that Basic backup

Use the "Deselect all" button !!

find the recovery entry and select it - only that

choose FLASH and let it flash

before closing SALT grab another debug log from the advanced menu

IMPORTANT: find the changes in behavior topic to find how to boot to recovery and ensure that you get it the first time. When Android boots up TWRP will be overwritten and you have to repeat the steps from step 8 onwards.

check also my signature here to find my Telegram group for easier support when needed.

.-
[G4 General] schwinne:
Thank you! I got TWRP to run following these steps, now gonna work on rooting :)

EDIT: got the root done thanks to experimental SALT. Since I didn't have access to fastboot I was able to flash a magisk_patched.img to boot (after renaming to boot.img) and was able to root. Thank you again for the awesome app and quick support, you saved my ass
[G4 General] Phaust5:
adfsfe
[G4 General] Phaust5:
Help! I can't get the program to unlock the phone! It states that I need to use QFIL to continue, did I do something wrong?
[G4 General] steadfasterX:
Well there is a lot of information which you could share like which model you have or which way you have used to unlock because there are three methods .

in any case the absolute minimum requirement would be to share the debug log file from the advanced menu in SALT after trying to flash UsU .
[G4 General] Phaust5:
Okay! I'll try to post the information on the log file when it fails to unlock. The model is verizon if that is a start.
[G4 General] JackyGundam:
today i tried to dirty flash a pie rom because when i tried to wipe system it said failed to unmount

then after that i flashed android 9 gapps but it said it's for 9.x but not android oreo.

i tried to boot in, won't work, i wanna boot to recovery but i can't.

i tried flash recovery twrp.img, and fastboot reboot recovery, but it won't boot to recovery

what can i do now :(

the device is UsU ed
[G4 General] JackyGundam:
can i flash custom using salt? i can't boot to recovery after flashing it in fwul
[G4 General] sdembiske:
Provide a little more information:

- What LG G4 model do you have?

- What GPT compatibility does SALT indicate for your phone?

- What TWRP version did you have installed when you flashed the Pie rom?

- What exact PIE rom did you try to install and what rom did you have installed before trying to install?

- Did you have any issues unlocking with UsU or miss any steps?
[G4 General] JackyGundam:
thank you for trying to help

actually i can manually boot into twrp, just because of those loose power button so i thought i can't boot into recovery mode.

I flashed things i needed and now no problems at all, thank you ;)
[G4 General] Xain_1425:
can anyone guide me how to revert back to stock LG ROM, Currently using Lineage Rom(Thanks to @steadfasterX ) on my LG G4(h812)

I am giving away this phone to my relative i so want it back to stock LG ROM

If someone can help me. I will really appreciate it
[G4 General] steadfasterX:
Download a h812 kdz

Extract the kdz with SALT and when doing that check the ARB of kdz : it must be the same as your current ARB (shown in SALT main menu)

Extract from this kdz just : system, boot and modem

Boot TWRP

Do a backup as written in the FAQ 17

Flash just the system and boot images:

adb push boot.img /sdcard/

adb push system.img /sdcard/

In TWRP choose flash and push the IMG button , find the boot.img and flash it to boot when asked

Repeat the prev step and choose system as target location

Boot android and check if everything is working

If you have issues you should flash the modem partition (e.g. in fastboot: fastboot flash modem modem.img)

Add a sticker beyond the battery and write down "UsU'd" and inform the next owner about UsU.
[G4 General] electricfield:
Any ideas on how to revive a soft-bricked UsUed H815? Everything was great until the battery drained to zero. Now, the device hangs on boot. I can still get to TWRP, though.

Details: https://xdaforums.com/t/is-this-ilapo-or-something-else-g4.4211343/
[G4 General] coldspring22:
Thanks to steadfasterX for making this, but I was wondering why isn't bump type recovery (as in LG G3) not possible with LG G4? Looking at the voting results, it's odd that failure rates are so high. Is that just because people make mistakes or is there some random factor causing USU to not work?
[G4 General] steadfasterX:
where do you see any failure rates?? UsU works in 100 of 100 times (as long as the requirements are met)
[G4 General] IamModeste:
Thanks a lot for your hard work @steadfasterX , my G4 seems to be resurrected, I'll go through some testing to see if I can make it a daily driver.

Followed your instructions and didn't have any problem with Maid, USU, twrp or ROM flashing.

BTW, I had to search a bit for the files on server as the URL doesn't point at the right files anymore

You don't develop for the Samsung S7 flat by any chance XD ?

Amazing work really, thanks again.
[G4 General] SciHi:
I've upgraded my lg g4 h818n with lg g4 h815 nougat tot file do you have any idea whether it will unlock the bootloader or not .
[G4 General] steadfasterX:
no chance.
[G4 General] SciHi:
Isn't there any other way to unlock bootloader in my lg g4 h818n without touch problem
[G4 General] steadfasterX:
no
[G4 General] alitavas:
LG is now officially supports unlocking for H818P

But the problem is , it's only for European market and when i tried to unlock my H818p UAE it failed
[G4 General] Bcoates84:
Android 12 is already out Is there a way to build Android 12 instead I can get the sdk or rom but it is for the Google pixel ...
[G4 General] steadfasterX:
Sure. There are tons of guides how to build(!) android. You can't download it. Feel free to build though. Ofc it is NOT that easy. You need to adapt it to the lg g4 and fix millions of issues first (besides that fact that you need to learn a lot first). But then you can enjoy android 12. Btw it took just a few weeks to make a10 boot but even over 1 year later we weren't able to fix the cam.
[G4 General] Bcoates84:
@steadfasterX

Thanks for the reply old friend.

Can you show me the documents on how

you make / (made) a build.

I'd like to learn from your documents.

Is it open source code?

Yep I rember the cam and the torch aka flash light issue heehee. The torch was not too bad to fix.

Ttyl
[G4 General] steadfasterX:
the guide depends on what you want to build. each ROM has its own guides. For ex LOS is here: https://wiki.lineageos.org/devices/h815/build . I would start with pie, i.e. LOS 16.0 and build that first then you can go on. Android is open source so (almost) all custom ROMs are.

ofc it contains closed-source stuff, too. e.g. the cam and modem drivers are closed source and that is what it makes so hard porting to newer android versions. you need to do a lot of hacks on every new android version to make these old libraries work.

anyways. this thread is not the right place for this discussion. consider joining my TG group(s) or open a new discussion thread in the help section pls.
[G4 General] SciHi:
I've a question can you please help me out? I'm wondering what if i re-edit LG G5 oreo kdz and try to flash it in lg g4. I saw that When i upgraded to Android 7 my device recognized as h81529a instead of h818n so is there any chance that i can flash android 8 tot in lg g4. And Is there any way to create custom software upgrades for locked bootloader devices (eg.LG G4 h818 variant)Thanks
[G4 General] steadfasterX:
This is absolutely not related to the threads topic.

For q like this open a new thread.

Anyways. What happens when you flash a g5 kdz on a g4? It will hard brick. Is there any chance flashing a android 8 tot? Sure when you have one for your device. No way cross flashing from another device. H818 can't be unlocked and so no there is absolutely no way of creating a custom ROM or upgrade of your stock ROM. Forget about it really. Unless someone find a way of unlocking the h818 ofc.
[G4 General] Bcoates84:
1
[G4 General] Bcoates84:
Okay thanks can you please send me the link. If you don't want to share it here you can inbox me tnx.
[G4 General] SciHi:
One more question, isn't it possible to build a hijack or something that can bypasses the bootloader for a while and let you to flash twrp and cust roms. Are you getting my point?
[G4 General] steadfasterX:
Sure feel free doing that ;)
[G4 General] SciHi:
Sir, but I don't know from where should I start 😕. Can you provide me with something that can help me to build that? Thanks.
[G4 General] steadfasterX:
No. If it would be THAT easy we would have that since years. So the very first thing is you need to find a vulnerability within all models (there was one discovered a while ago within qcom but you are alone with finding that) then when you have a theoretical way found you need to make use of that . How and where and so all depends on the security flaw you found (if you ever find one). For example you might need to use assembly or other stuff and ofc you might need to use a box like medusa etc to test things and so on. So if you're lucky , having all the tools , stuff , knowledge and even a security bug which can be used for that it would still may take weeks of work getting it done. I don't say this is impossible but you're completely alone with the whole process here.. Good luck in any case.
[G4 General] Mysteriousdewd:
So I have an LG G4 h812, I load up the maid live cd and I am able to use salt and it recognizes it with GPT compatibility H811 and I am using the h812 usu.

USU will install and then the next step should be to take out the battery and then hold down the bottom sound button and plug the usb back in to get into fastboot.

The problem is when I do that it completely freezes with the screen all scrambled up so. I'm not sure what is going on.

This was originally rooted back when the G4 root first came out but I flashed 6.0 stock back onto it as the old root was just a one off and didn't keep TWRP to install custom roms and the root ate up like a chunk of storage... anyways I digress.

What is going on here and why won't it go into fastboot despite SALT saying usu installed correct?
[G4 General] steadfasterX:
The SALT log (advanced menu) after unlocking is needed
[G4 General] Citizen_Z:
There is official unlock support for H818 on LG dev website. It is odd to add this model since LG quit making phones and after 6 years.

Nonetheless, you can only unlock europe versions of H818P and i don't have that model. I am currently tinkering with salt and usu partitions and i wonder what is the reason for touchscreen to fail. I think it is probably because of aboot partition.

I compared the aboot binary we are using with the leaked ls991 emmc_appsboot.mbn and they are exactly same, except the binary we are using has an empty space at the end. So there is no optimized version of this bin for different g4 models right?

I mean all G4's have snapdragon 808 soc and we think this aboot file will work on any G4 model. But what if the H818 have a different hardware config and it requires a slightly different aboot file? What do you think about my theory? And what do you think about the reasoning of touch screen failing?

If anyone unlocked the H818 can share a dump of their phone's partitions, I think we can have a starting point to make a custom aboot file and maybe fix the issue.

Edit: typo
[G4 General] steadfasterX:
h818 can be unlocked since a longer while. only the h818 international though and I never saw any ;)

the touchscreen issue is for sure aboot related.

UsU's aboot is nothing I created on my own (how should I), of course its a leaked file (I gave proper creds in the OP) ;)

you won't find any unlocked h818 out there. I removed the unlocking option for it in SALT as ppl do not read and would simply unlock and so making the phone unusable.

you can't create a custom aboot file. if it would be THAT easy.. ;) you would need the private keys by LG to be able to do that. nothing you will ever get.

the major hardware diff (other then the obvious second sim slot) between the h818 and the others is the display panel.

aboot is responsible to enable several parts of the hardware - incl radio etc and ofc the display.

my idea was to workaround that at a later stage (by the kernel) but I had no success. Unfortunately I didn't had much time trying around as I never owned that model and so was always bound to another user doing remote hands for me.

anyways. yea the best approach would be finding a leaked debug aboot for a h818 but I guess that will never happen.
[G4 General] Citizen_Z:
I tried to disassemble this aboot binary with IDA, and yes it seems signed with a LG root cert. But i wonder, does the SOC verify this aboot bin with checksums? If so this means i can't even change a single bit in this binary. Provided USU aboot file have a larger empty size at the end and it works. So i assume i can edit this binary file.

Since this Snapdragon 808 is quite old, i don't know how it verifies binary partitions. Are we allowed to make changes in aboot binary file? If the soc doesn't have a md5 checksum verifying process, this means i can make little changes on this binary file. And if i have a dump of H818 partitions to compare, i think i can make it work. Or should i work with an aboot file from 3rd party ROMs? Does stock ROMs include aboot partition?

The only thing i am not sure is how certificate verification process works. What is a firehose certificate? Is these certificates work like a master key to write any binary we want without triggering efuses?