yashsingh1/xdaforums huggingface dataset:
[G4 General] opeller:
Thanks for the answer

1. As I said I don't need or care about the data. When doing a partial backup there are no corrupt partitions. Would you still recomend I should re install a stock KDZ? If so, which one? (I have never used KDZ before, only used and rooted more stock android devices like Nexus 5 and OnePlus.)

2. The thread creater said

"10b) Will UsU allow me to flash stock ROMs?

Yes. You will be able to flash stock LP, MM, N"

I am asking how I would do that after going to a custom ROM. Again, never used KDZ stuff before

I'll emphasize that I am asking how to go back to stock ROM, not reverting back to completely how it was with no traces of this root method.

Thank you again.
[G4 General] sdembiske:
Should be OK then to go ahead and unlock without re-installing your kdz but ... do not restore your data as it would seem that could create issues for you.

Best

would be to completely re-install a more current stock MM kdz version in the event the data partition itself creates issues. Search/Google for your latest MM H815L for your carrier (try here: https://lg-firmwares.com/lg-h815l-firmwares/firmwares/) - right now you're on H81520g, see if you an can find an H815(x-z, for example but highest above g that you can find for your carrier). Flash it with LGUP-NEW.

When you have installed TWRP, you can back up the MM rom you're on after the UsU unlock process and restore that backup in TWRP when you want to revert back to it after flashing a custom rom. You can,

in TWRP

, install the stock N rom in the Downloads section in the OP for your model or any of the listed custom roms for your model and GPT compatability. You can restore any backup that you have made of particular roms you have flashed

BUT

you cannot reverse the UsU unlock process - there is no going back, as it states in

the OP - read it thoroughly and make sure you understand it

, it's very clear.
[G4 General] conbak49:
False alarm. Turns out it was something strange with my Internet connection. I tried it again and it downloaded. I then went through the USU process and afterwards flashed Lineage Oreo OS. It's awesome! And thanks for your guidance.

However I've run into another problem: after getting all my apps installed I realized I have no system (ring tones, notifications etc.) or media sounds (music). Is that a common problem with a simple fix?

Thanks for all your help and I've hit the thanks button (again!)
[G4 General] sdembiske:
Fastboot (in the OP under Changes in behavior) flash your modem.bin file from your MM SALT backup with this command:

fastboot flash modem modem.bin

then, when done, enter

fastboot reboot

to reboot the phone - that should do the trick to restore all the sounds
[G4 General] barbaros:
In 10b section it says that i can flash stock mm. But in limitations it says dont flash any kdz. Is there any way to flash model and country specific kdz ? (H815TR20i_00_0313.kdz)
[G4 General] conbak49:
OK... I backed up with SALT while booted into FWUL from a 16gb USB thumb drive. When I booted into FWUL again just now to find my backup and flash modem.bin I couldn't find my backup anywhere... So is there any other way? I've tried reflashing USU baseband and the G4-29a-N-modem-USU.zip. None of that has worked. Any suggestions? Again thanks a ton for all your help.
[G4 General] sdembiske:
You could try flashing the baseband package now for your model, but if that doesn't help, find the same MM kdz that you were on before you UsU'ed and download it. Extract it in SALT and flash the modem.bin file from the extraction. The N modem may not work ... at least it didn't for me.
[G4 General] conbak49:
Hey I actually found a post of yours in this thread-1415-and flashed the modem referenced there and I got my sound back! I was on H81220j, but so far H81220z modem has worked so far... You're awesome and thanks for helping me once again.
[G4 General] steadfasterX:
sure just use fastboot:

1) extract the system, modem (optional) and boot partition with SALT(!) important - do not use any other tool

2) use FWUL or any other working solution to flash by fastboot:

fastboot flash system system.img
fastboot flash system boot.img
optional: fastboot flash modem modem.img

SALT v4 will allow flashing a KDZ but well im out of time atm
[G4 General] barbaros:
Currently im using stock v29a with N modem. Should i downgrade my modem aswell or does it replace the modem automatically when i flash MM system.img and boot.img?
[G4 General] steadfasterX:
modem is optional - i have edited my post for that

if you encounter issues with: sound, camera, cell service then you can flash the modem, too
[G4 General] barbaros:
Thanks to you [MENTION=5545101]steadfasterX[/MENTION] , i managed to return to stock MM. After that i wanted to flash Usu Kernel but there is none for stock MM , only for N. What do you suggest ? Should i go for stock N kernel or leave it as it is ?
[G4 General] steadfasterX:
MM kernel plus baseband package.
[G4 General] barbaros:
I downgraded my bootloader stack by following 20b to MM by using fresh KDZ. After that flashed stock MM system and modem images via fastboot and rebooted into TWRP to flash baseband package. After flashing baseband phone did not boot and also there was an error in TWRP which is "couldnt mount /system". In ''mount'' part of the twrp i couldnt mount system partition and also TWRP says that i dont have any OS installed. I though i flashed stock MM but no luck. After that i flashed stock v29a again with baseband and phone booted normally but i wanted to use stock MM. Spent all night trying to figure out, read almost all of the thread but couldnt found any solution. (Also i lost my SALT backup thanks to my father using my live-usb for another purposes) I feel like SALT v4 will solve my problem but till then is there any other solutions to it ? Am i doing smt wrong ? I just want stock MM bootloader with stock MM rom. Im sorry to bother you [MENTION=5545101]steadfasterX[/MENTION] but i think im stuck.

Edit- also i cross checked sbl1.bin/image just like in 26b) but there is no match. Does it mean im still on N_modem ?
[G4 General] steadfasterX:
You mentioned you flashed system and modem but what about boot? Without that its clear that it doesn't boot. The other thing is that it seems flashing system was not successful so paste the console output of the executed fastboot statements
[G4 General] bayr691@gmail.com:
Hi. Is there any way to remove usu on ARB0 devices? Also can i install USU on nougat? Coz i don't have internet data plan means i cant downgrade my device.
[G4 General] steadfasterX:
The FAQ is there for a reason. Read FAQ #1.

Regarding nougat: read the requirements in the OP again.
[G4 General] robles4242:
I do not have a computer at this present time of my life (long story lol).... Is there currently a way to Unlock/UsU without a PC?

****That voice in my head because I should just know better......****

"No? Oh, Ok. I didn't think so!"
[G4 General] fil3s:
Nope . Grab a PC :D or install twrp in fish for locked bootloaders, :D
[G4 General] robles4242:
I can't even do the TWRP in FiSH because I just checked it out and and saw I need root to even do that, and not having a computer is stopping me dead in my tracks. The only way im finding a root method is to downgrade to LP such as 13b and follow old methods, or to UsU and go from there.... All needing computers.
[G4 General] steadfasterX:
TWRP in FIsH will not let you install custom ROMs other then stock based. UsU is your only option to free the phone completely.. Find a friend with a pc, school pc whatever works and boot FWUL from an usb stick there.
[G4 General] AshfaqNadim:
My ARB version is showing 3 in salt (LGG4 H810 AT&T)

Any hope for to install TWRP or at least ROOT the current MM rom (6.0).

I recently updated the ROM from LP to MM using LGUP. I am not sure if i can go back to LP as my Anti Rollback version is 3

I need to get rid from AT&T software and services. Any suggestion or guide-map will be appreciated.
[G4 General] steadfasterX:
no chance. ARB is nothing you can trick and there is no root for MM. it MAY come by lafsploit one day but dont expect anything soon. search XDA for it to find out more.

.
[G4 General] Alextvz:
Hello,

First of all, Thank you steadfasterX and all your team for creating UsU and all the tools needed to unlock the G4. I can confirm that it works on LG G4 US991 with MM	US99125A. I was able to unlock, install LineageOS 15.1 for H811 and root.

Now, the main reason why I did unclock my phone was because I got this devise from ebay and it turned out it was one Rent-A- Center phone. It had LP so I decided updating it to MM using the LGUP and official US99125A KDZ. After flashing it, the lock from Rent-A-Center disappeared. But, one problem appeared. I was not able to make or receive calls, but mms and data were working perfectly. I was even able to receive voicemails.

So, I did start investigating the issue and it looks like my problem was updating to MM as described by other users here https://xdaforums.com/g4/help/g4-stuck-dialing-misses-calls-t3204109. Unfortunately, updating to US99125A made my ARB to #2 making impossible for me to Downgrade to LP. So I decided Unlocking my devise and trying different ROMs to see if that fixed the problem, but unfortunately, I continue unable to make or receive calls, everything else works fine.

So far, I have flashed LineageOS 15.1, Resurrection Remix 6.0.0, Atomic-OS v2.5, Freedom Rom v7.5 And Cyanogenmod 12.1 as it is based on LP 5.1 they all work wonderful, but I am still unable to make or receive calls.

By the way, I already got a new SIM card from my phone company, and It is working perfectly on my other phone. Also, I tried changing my APNs, before unlocking, I did flash different KDZ 24A, 22A, and 20C but nothing worked.

I am just looking for suggestions and advice you may have guys, I will look here on xda how to do anything you may suggest.

Thank you
[G4 General] sdembiske:
First thing you might try is fastboot flashing the

MM

modem.bin file from the SALT backup of the MM kdz you upgraded to from LP before unlocking, (the N modem doesn't work on some devices for the custom roms. e.g., H812), using this command:

fastboot flash modem modem.bin

If you don't have a SALT backup you may want to consider extracting the same MM kdz in SALT (only SALT, no other programs) and flashing the modem.image file from the extraction:

fastboot flash modem modem.image
[G4 General] steadfasterX:
Team? There is none.. Only me here but anyways ;)

Edit: well me... and some great ppl who guideline users like [MENTION=6302635]sdembiske[/MENTION] ;)

Backup modemst1 and modemst2 with SALT (custom backup)

Wipe them in SALT -> advanced menu

Boot to android. Reset the apn to defaults -> reboot android -> wait at least 10min -> reboot again
[G4 General] michael4561smith:
Thanks for providing useful information.
[G4 General] opeller:
Sorry for the late replay, I'm a student and am stressed for time

Went ahead and used the USU unlocking method, without updating the ROM. Worked great! Finally, LineageOS! Root!

(Backedup everything at TWRP before doing anything else, like you suggested)

Thank you so much for your help :)

Only problem I have now is that the 2 faster cores seem to be offline or running very slow. I'll go ahead and ask at the ROM's thread about it.

Thank you and steadfasterX so much again. Helped me make a phone re-usable. (Waiting on a new battery to arrive before giving it to a family member for daily use)
[G4 General] doop:
If you did a SALT backup then you can recover misc.bin from that.

Did you flash the N modem when you flashed AOSCP 5.2?
[G4 General] fil3s:
Flash twrp - in extracted twrp zip folder in fwul start terminal

Rename the containing img "twrp.img"

- fastboot flash recovery twrp.img

In twrp - reboot recovery (if you need an N or O rom, flash 29a bootloader then 29a baseband. You will then be able to instally any ROM for your G4
[G4 General] th3y:
Okay!

Unlocked. H815P.

SALT, UsU, twrp flashed, usubasebandtwrp flashed, Nougat v29 Stock(usulaf) zip flashed, NModemUsu flashed, usubasebandtwrp flashed, Magisk flashed. (i used LP to UsU) (Didn't wipe anything) (everything is in order)

Same MAC, Phone Signal Working, i didn't test some things but everything about the phone seems okay, BUT, i can't use google play services or use googleplay.

What's wrong? should i use 'FACTORY RESET' from setting ? or do something more? Thank you in advance

Edited: I fixed it, following the guide from FAQ (zzz)

•Open TWRP

•Choose the Wipe menu

•Choose FORMAT DATA (not a factory reset!)
[G4 General] doop:
Theres no 29a baseband--

just <model>_UsU_baseband and you don`t Have to flash 29a bootloader.

This is covered in the FAQ section. Specifically number 7.
[G4 General] fil3s:
Okay 29a bootloader and <device model>usu baseband

---------- Post added at 11:33 AM ---------- Previous post was at 11:31 AM ----------

Are you sure? What did you flash after 29a bootloader to be able to install N + ROMs?
[G4 General] doop:
I didn`t flash 29a bootloader at all. Just

G4_29a_N_modem_UsU.zip

and in my case H815 _UsU_baseband.

I`m on AOSCP 5.3 with root by Magisk..
[G4 General] fil3s:
Hmm. I had to flash bootloader then baseband, least according to [MENTION=5545101]steadfasterX[/MENTION]
[G4 General] doop:
You were told to flash the bootloader only if you were on ARB v0 .

Read FAQ number 7, specifically the bit that mentions "you COULD flash the complete bootloader stack though (if you wish - but as said it is NOT needed)":angel:

Thats not to say YOU didn`t need it.
[G4 General] fil3s:
Okay. My mistake. :good:

---------- Post added at 12:16 PM ---------- Previous post was at 12:09 PM ----------

You can just flash previous bootloader if you needn't have flashed the 29a bootloader :confused:
[G4 General] nummer:
I have h812 with ARB v0 and when I flashed nougat rom, I flashed both 29a modem and h812 baseband. Perhaps flashing both of these was the reason I was having certain issues? (Ex. YouTube videos barely being able to play, no sound, etc.)
[G4 General] fil3s:
You need to flash 29a bootloader then baseband. After flashing twrp you need to reboot recovery then flash then factory reset
[G4 General] nummer:
So when I wipe old system, I install the "G4_ARB-0_29a_bootloader_UsU" zip and then the h812 baseband zip for everything to work correctly right?
[G4 General] adam_s_459_:
I have the same problems on AOSCP 5.2. the audio worked on stock so I think it's just that the rom is meant for H811 only:(
[G4 General] fil3s:
Yeah just install both then boot into ROM see if everything's the same then clean flash.
[G4 General] nummer:
So I did the following:

1. Wipe Dalvik/system/Data/Cache

2. Flash RR 7.1.2, (meant for h811) G4_ARB-0_29a_bootloader_UsU.zip and h812 baseband

3. Flash open gapps

4. Reboot

When i reboot, the RR logo shows up for ~5 secs, and then goes to the demigod screen. What did i do wrong?
[G4 General] slim902:
Did you end up finding a fix for the sound issue? I have the same problem on a Koodo H812.
[G4 General] jack_kibbz:
Anyone here having issues when installing apk files it says "package appears to be corrupt" after rooting and installing lucky patcher

note: it doesn't matter if i use Magisk or SuperSU. The error will still appear. I flashed nougat stock rom
[G4 General] steadfasterX:
Ok folks I can't answer every post here but just by cross reading the last 4 pages (woot..) here AGAIN a CLEAR description which should fix all issues regarding call, sound etc:

YOU DON'T NEED TO FLASH THE v29a BOOTLOADER ZIP

Even more clear: Do NOT do it!

YOU DON'T NEED TO FLASH THE v29a BOOTLOADER ZIP

Even more clear: Do NOT do it!

Read it again! Read the guide again. Read the FAQ. Damn.

Ok so again:

If you want to go to N or O based ROMs you CAN technically flash the bootloader stack.

But:

YOU DON'T NEED TO FLASH THE v29a BOOTLOADER ZIP

Even more clear: Do NOT do it!

And as we can see there is a reason for this.

Those having an issue with sound, call etc have flashed the whole bootloader stack and NOT just the MODEM zip as clearly described in the guide. Wtf.

So that means the ppl who have done this need to flash the full bootloader stack of their specific device model again. With one exception: aboot, laf and raw_resources

This can EASILY hard BRICK your phone so WAIT until I can write down how and what.

This can be done via fastboot but as told I'm on the road currently and back on Tuesday. I can only recommend to wait and for those having not flashed the bootloader stack v29a: GOOD. You can read. Just keep it like that because

YOU DON'T NEED TO FLASH THE v29a BOOTLOADER ZIP

Even more clear: Do NOT do it!

sorry for may sounding rude but this driving now nuts. I also see many questions and even seperate guides which all is covered in the guide and/or FAQ.
[G4 General] slim902:
Thanks for addressing the issue, and it is not a huge deal to wait until you can write a guide or whatever, but for the record i followed FAQ #7 and flashed the G4_29a_N_modem_UsU.zip and then H12_UsU_baseband_flash-in-twrp.zip.

I did not flash th v29a Bootloader zip and am having the sound issues.

I am not trying to argue with you or anything, I just wanted to let you know in case it is a different issue.
[G4 General] dray420:
thanks for this! ive been following for awhile now and am pleased to say my h812 is unlocked with twrp running. now my only issue is that when i go to flash roms i get the error that its not for my device. ive downloaded h811 roms as thats what the compatibility said and now im stuck with no rom on the phone lol. what can i do???
[G4 General] Bcoates84:
Ok

Mr. Steadfaster I looked in the files and I think I saw why the flashlight is not working. When we push the flashlight button nothing happens because the swrvice not beeing called. Please look at. /root/system/hw. Usally there is a function such as ---- lights.msm8660.so -- let me know if thats why its not working. Thanks.
[G4 General] steadfasterX:
Uhm

1) this has absolutely NOTHING to do with UsU

2) this is the wrong thread

3) it is an oreo based issue

4) this is the wrong thread

5) that's an issue related to the camera drivers and not due to a missing library

6) this is the wrong thread

Thx
[G4 General] Bcoates84:
Oops what a rookie mistake. Since I am a senior member , ..... Maybe its okay i had a senior moment lol hahaha tnx for letting me know. :laugh:
[G4 General] tim455:
Hi again. It's been a while.

I've tried doing this on my G4 but have run into an issue.

My phone WAS on LL/LP because the phone suffers ILAPO but was recommended I upgrade, so I use a KDZ i found [H81520e_00_0818.kdz][9C861EA87A0E07C873A7835ABF21A5CE]. flashed through LGUP fine and removed the battery when it attempted to reboot the phone (still saw the LG logo)

I presumed all was fine then followed the guide to install UsU, which went fine (used option 3, files from PC)

Followed the fastboot command to flash TWRP and things go south here.

The flashing presumably works (although fastboot says "lock state - locked") and i get messages on the fastboot screen.

However, trying to boot TWRP does not work. It gets stuck on a screen that just says RECOVERY MODE LOADING and does nothing, or tries to reboot the phone.

I tried a different version of TWRP just in case, and still nothing.

I went back and plugged my phone into SALT and it is saying im still on LL/LP

I'm not sure what I should be doing, probably following FAQ 20b, but might break something even more, so I thought I'd ask for pointers.

I've attached a zip with some pictures
[G4 General] steadfasterX:
Well ILAPO will be an issue everwhere - even in TWRP.

What I see in your pics is the word "Official" when booting to Recovery - which may be an indicator that you have lost TWRP after flashing.

you HAVE to boot to TWRP

directly

without booting anything else (so battery out, press the keys to boot up TWRP).

If you do not get into TWRP

on the first try

you have to

re-flash TWRP

as it gets overwritten!

The other thing which might catch you is the ILAPO itself.

I just had some seconds and created 2 ILAPO twrp versions: http://leech.binbash.it:8008/TWRP/O/

First try to flash:

- ILAPO-

4

cpu_twrp-3.2.3-PREVIEW-144_g4_O.img

If it still does not boot up try

- ILAPO-

2

cpu_twrp-3.2.3-PREVIEW-144_g4_O.img

If it is the ILAPO one of these will boot - and as you have the ILAPO already I recommend to use one of them anyways.

When it comes to ROM flashing you have more on the plate then others as devices catched by the ILAPO need to adjust each(! stock or custom!) ROM before you can boot it:

https://xdaforums.com/g4/general/guide-create-custom-x-cores-boot-image-t3718389

This has to be done on every ROM, yes even on your currently installed one (so even on stock).

If you skip that Android will not boot/bootloop etc.

.-
[G4 General] steadfasterX:
New LOS 15.1 builds are coming.

I have scheduled a new build for all major G4 models - right now.

The build will run in that order:

h815

h811

UsU - h815

UsU - vs986

UsU - h812

UsU - h810

As usual the build process will take approx 6-10 hours until

ALL

models finished and its current progress can be watched here:

Blue Ocean View

Regular View

Summary Changelog:

many selinux policies added - based on our tests and your feedback

selinux set to

enforcing

- the very first 15.1 build which comes with enforcing :highfive:

if you encounter issues: provide a logcat output like this and upload it to http://bpaste.net):

adb logcat -b all -d |grep 'avc: '

a NFC error which might or might not fix things for some of you

camera and sensor related issues (kernel)

security patch level (for the Android framework - NOT the kernel): 5th of December 2018

.. and more

Full Changelog:

https://github.com/LineageOS/androi...f94ae1e64f6e01cd4b...d72e51944133d3617a504c3a

https://github.com/Suicide-Squirrel...2a7aad1003a4562536e38...8fe0f504066707a79930c

Cheers

sfX

.
[G4 General] tim455:
Beautiful. That's what it was for me. Wouldn't load because of ILAPO :P

(either that or I did it wrong the first few tries last time)

excellent, moving on.

Tried fixing the aboot boot.img of your latest 15.1 release, and i think i've done it correctly....... but first and foremost have a different issue.

the /data and /cache dont seem to mount, and they also have a size of 0 bytes. (as seen in my pictures)

I've attached the logs and some other pictures if you have some time.
[G4 General] steadfasterX:
great (reg. TWRP boot)

don't mix aboot and boot. aboot is something you can not change and what you meant was boot. complete different things though.

I can not load the attached recovery log.

pls ALWAYS use a paste service like http://bpaste.net (select never or 1month for the expiry) to share logs.

XDA has often issues with attachments and its bad practice anyways (e.g. its easier to read logs from a web page then downloading it, extracting it and then opening it - especially on mobile)

.
[G4 General] tim455:
yup, you are correct. boot.img (not aboot) (I copied the modified boot.img into the zip, overwriting the old one. i think thats what I was meant to do, but that's for another time)

dmsg1: https://bpaste.net/show/5f9062b5cf16

recovery1: https://bpaste.net/show/db4915f35683

dmsg2: https://bpaste.net/show/44bcada030f1

recovery2: https://bpaste.net/show/fedf57a2ca85

difference between set 1 and 2 is just when I grabbed the logs. one was during my first attempt dumping partitions and having twrp working. the other is from a clean-ish start of twrp where I tried not to do too much so i could just get logs.

EDIT:

to note again, seems like /data and /cache are locked and unreadable/unwritable.
[G4 General] steadfasterX:
The reason for this is quite easy. You have used LG up to flash MM and the process usually wipes out the cache and userdata partition as well. Somehow this has failed on your device maybe because of the ilapo...

Fixing this is easy while it fully wipes your internal storage which seems to be gone anyways.

Boot TWRP

Menu: wipe

Press the format data button (this will wipe out everything like photos vids etc)

Menu: wipe again

Select advanced and only select "cache"and "system" there and format those.

Reboot: recovery

Fixed. Now you can install any ROM of your choice.