[SOLVED] LGUP - Partition DL for Frankenstein - Can't get past Nougat - LG V30 Questions & Answers

Hi folks,
I'm looking for some guidance.
Background:
I bought an H933 in Canada. I successfully converted it to a bootloader unlocked, Magisk rooted US998 on Oreo.
I had hoped to convert back to H933 while keeping TWRP so I could take advantage of network dependant features such as VoLTE, VoWIFI and RCS. I was able to get back to H933 Oreo with TWRP but lost data connection. The last attempt involved using the DD command to copy modem files over from a stock H933 dump, which resulted in losing cellular connection all-together. I attempted to change back to a working phone by doing a Partition DL flash with LGUP and am now stuck staring at the LG Life's good logo.
Okay, so I have been attempting simply to revert back to a working device and am stuck and looking for some help.
I can access recovery (TWRP), download mode and fastboot mode. I cannot boot into the system (it boots to the LG Life's Good logo and hangs).
I have tried a master reset, a TWRP factory reset and wipe data, LGUP Partition DL to various images (US99810d, US99820a, H93310h, H93320f, H93320g) as well as trying the refurbish option on the same images. I have a TWRP backup of an US998 which appears to successfully restore, I have a flashable US99820e zip which appears to flash properly. In every case, I wind up either with a slow bootloop after reaching the LG Life's good logo, or just hanging at the LG Life's Good logo indefinitely.
I am at a loss as to what to try and beyond my understanding with LG.
Below are my notes up to where I started trying to get the phone back in case that helps...
Thanks all.
UPDATE: I have been able to get a network connection with data back. As far as I can tell, the series of events that resulted in the fix was LGUP Partition DL (ALL partitions) to US99810d. Then, while attempting to boot into recovery, I did a master reset. I followed this with LGUP REFURBISH US99810d and then another master reset.
So it may have been doing a partition DL (ALL)/reset/Refurbish/reset and using the same bin file for both that might have done the trick. Interestingly, I tried this early on but using the same H93320f rom I had already flashed, and then again with the H93320g rom without success. Maybe someone with more insight can shed some light but I'm going to toss out a hypothesis that I needed to use an image that had different partition sizes from the one I was on to force it to fix whatever the problem was?
Anyhow, I'll leave this up in case someone else runs into the same problem.
Thanks.
Nov 28
- Download mode
- LGUP - Part DL - H93320F - "ALL"
- Bootloop with flashing android (expected)
- Master reset
- Boots and has no data connection... FFS!!!
- Download mode and restarted LGUP. Still showing US998e.
- LGUP Refurbish with H93320f - FAIL
- error, does not support cross model... sigh...
- Try part DL - H93320f - "all" again
- completed. It booted into system this time. Still no data
- skip through setup then SIM update, APN refresh, confirm mobile data activated. No data connection. Force roam and confirm roaming data on. No data.
- Reboot. Same.
- boot to Download mode
- LGUP now detects H93320F
- LGUP refurbish with H93320f - proceeds
- reboots system.
- gets to welcome screen and then instantly reboots.
- Gets to welcome screen and... Data connection!
- Power off, connect to Downloader mode
- error - Not enough free HDD disk space (0 MB), need more than 0 B
- ^%$&&^!!
- exit LGUP and restart. Works this time...
Frankenstein process:
- Downloader mode
- LGUP Part DL US99810d - "ALL"
- Boots into flashing android (as expected).
- Master reset
- Boots to welcome. Data connection present - US english & changed data logo.
- Power off and into download mode
- restart LGUP - still shows H93320f ??
- LGUP - Part DL US99820a - "ALL"
- reboots to welcome. Data confirmed.
- Skip through setup. Enable Dev options. Observe "OEM Bootloader is already unlocked"
- Enable USB debugging & photo transfer mode. Connect usb
- Open cmd window.
- adb devices. Authorize USB debugging. adb devices - success
- adb reboot bootloader
- fastboot flash recovery twrp.img - success
- fastboot boot twrp.img
- Boots into TWRP.
- swipe to allow mods
- Confirmed backup present on SD card
- Wipe Data - factory reset
- Wipe data - Format Data. Observe errors
- back to TWRP menu, reboot - reboot to recovery
- Wipe, format data. No errors
- Back to TWRP menu. Reboot - reboot recovery
- Install. Selected External SD. Install Magisk 17.3
- Install no verity
- Install LG-rctd
- Reboot to system - welcome. (Confirmed data connection)
CHRISTPHERGGG & CLOUD1250000 INSTRUCTIONS:
- Download mode
- Connect to LGUP (Note - shows US99820a.)
- Part DL H93320f - ALL, then recovery unchecked
- Phone boots into TWRP
- Wipe - Factory reset. Lots of red (failed to mound /data unknonwn error 150, unable to mount storage (expected I think)
- Wipe - Format Data - done with no errors.
- Reboot to recovery
- Install. Flash No verity, Flash lg-rctd, then Magisk. No errors, appears successful.
- unplug from system.
- TWRP reboot menu - power off
- Download mode
- Observe LGUP - still shows US99820a ???
- LGUP - Part DL H93320f (clear all, then select recovery only)
- phone reboots 3 times?
- Boots to welcome (canadian. Network connect but no data)
- skip through setup. Enable Dev mode. Observe OEM unlock is off? Turn on. Enable USB debug.
- Magisk manager - needs data. Connect to wifi. Go throgh Magisk update and setup.
- Connect to USB. Authorise Debug. Change to file transfer mode.
- Copy twrp.img, modemst1_COM3, modemst2_COM3 to root of internal storage on V30
- adb devices - (connection confirmed)
- adb shell
- su (grant forever on device)
- dd if=/sdcard/twrp.img of=/dev/block/bootdevice/by-name/recovery (appears to copy successfully)
- (DD of modemst1_COM.bin errored, not found. Figured out that they did not have .bin extension. Edited dd command to match file name.)
- dd if=/sdcard/modemst1_COM3 of=/dev/block/bootdevice/by-name/modemst1
- dd if=/sdcard/modemst2_COM3 of=/dev/block/bootdevice/by-name/modemst2
- both appear successful
- Magisk, modules, reboot to recovery.
- Successful boot to TWRP.
- Reboot to system
- "Service Disabled" and an X over the signal bar.
- skip into system. Enable data. Try to text for SIM update - failed to send.
- Master reset reboots to TWRP. Factory reset & format data. Reboot
- Wecome screen with X over signal. Screen freezes an device reboots.
- Welcome screen with X over signal. Try to proceed with mobile data - no network.
*** How does DD work. Maybe the second half is just a location but the name remains the same and needs to be .bin??? ***
Restart from beginning. Try changing file name to modemst1.bin & st2.bin
- LGUP Part DL US99810d - ALL
- Master reset
- Bootloop. Can't get to download mode or Recovery.
- Get to fastboot with Power & vol down. Release both on logo and press both again? Not sure exactly
- Flashed recovery
- Boot to recovery, factory reset. Wipe data. Reboot recovery. Wipe data. Reboot recovery. Try restore image.
- Reboot to download mode
- Refurbish US99810d. Success. Data is back.
- reboots into welcome.
- *** Curious. Since refurbish, LGUP detects it as US99810d. Maybe Upgrade works now? *** Testing.
- LGUP UPGRADE US99820a - Success.
- Steps to install TWRP, verity, rctd. Boots to system
LGUP detects as US99810d but phone confirms US99820a
refurbish. No change.

So, it sounds like you tried all this...
https://forum.xda-developers.com/lg...a-20g-twrp-t3868186/post78182926#post78182926

ChazzMatt said:
So, it sounds like you tried all this...
https://forum.xda-developers.com/lg...a-20g-twrp-t3868186/post78182926#post78182926
Click to expand...
Click to collapse
Ya, that's what got me started along the experiment.

Mad Medik said:
Hi folks,
I'm looking for some guidance.
Background:
I bought an H933 in Canada. I successfully converted it to a bootloader unlocked, Magisk rooted US998 on Oreo.
I had hoped to convert back to H933 while keeping TWRP so I could take advantage of network dependant features such as VoLTE, VoWIFI and RCS. I was able to get back to H933 Oreo with TWRP but lost data connection. The last attempt involved using the DD command to copy modem files over from a stock H933 dump, which resulted in losing cellular connection all-together. I attempted to change back to a working phone by doing a Partition DL flash with LGUP and am now stuck staring at the LG Life's good logo.
Okay, so I have been attempting simply to revert back to a working device and am stuck and looking for some help.
I can access recovery (TWRP), download mode and fastboot mode. I cannot boot into the system (it boots to the LG Life's Good logo and hangs).
I have tried a master reset, a TWRP factory reset and wipe data, LGUP Partition DL to various images (US99810d, US99820a, H93310h, H93320f, H93320g) as well as trying the refurbish option on the same images. I have a TWRP backup of an US998 which appears to successfully restore, I have a flashable US99820e zip which appears to flash properly. In every case, I wind up either with a slow bootloop after reaching the LG Life's good logo, or just hanging at the LG Life's Good logo indefinitely.
I am at a loss as to what to try and beyond my understanding with LG.
Below are my notes up to where I started trying to get the phone back in case that helps...
Thanks all.
UPDATE: I have been able to get a network connection with data back. As far as I can tell, the series of events that resulted in the fix was LGUP Partition DL (ALL partitions) to US99810d. Then, while attempting to boot into recovery, I did a master reset. I followed this with LGUP REFURBISH US99810d and then another master reset.
So it may have been doing a partition DL (ALL)/reset/Refurbish/reset and using the same bin file for both that might have done the trick. Interestingly, I tried this early on but using the same H93320f rom I had already flashed, and then again with the H93320g rom without success. Maybe someone with more insight can shed some light but I'm going to toss out a hypothesis that I needed to use an image that had different partition sizes from the one I was on to force it to fix whatever the problem was?
Anyhow, I'll leave this up in case someone else runs into the same problem.
Thanks.
Nov 28
- Download mode
- LGUP - Part DL - H93320F - "ALL"
- Bootloop with flashing android (expected)
- Master reset
- Boots and has no data connection... FFS!!!
- Download mode and restarted LGUP. Still showing US998e.
- LGUP Refurbish with H93320f - FAIL
- error, does not support cross model... sigh...
- Try part DL - H93320f - "all" again
- completed. It booted into system this time. Still no data
- skip through setup then SIM update, APN refresh, confirm mobile data activated. No data connection. Force roam and confirm roaming data on. No data.
- Reboot. Same.
- boot to Download mode
- LGUP now detects H93320F
- LGUP refurbish with H93320f - proceeds
- reboots system.
- gets to welcome screen and then instantly reboots.
- Gets to welcome screen and... Data connection!
- Power off, connect to Downloader mode
- error - Not enough free HDD disk space (0 MB), need more than 0 B
- ^%$&&^!!
- exit LGUP and restart. Works this time...
Frankenstein process:
- Downloader mode
- LGUP Part DL US99810d - "ALL"
- Boots into flashing android (as expected).
- Master reset
- Boots to welcome. Data connection present - US english & changed data logo.
- Power off and into download mode
- restart LGUP - still shows H93320f ??
- LGUP - Part DL US99820a - "ALL"
- reboots to welcome. Data confirmed.
- Skip through setup. Enable Dev options. Observe "OEM Bootloader is already unlocked"
- Enable USB debugging & photo transfer mode. Connect usb
- Open cmd window.
- adb devices. Authorize USB debugging. adb devices - success
- adb reboot bootloader
- fastboot flash recovery twrp.img - success
- fastboot boot twrp.img
- Boots into TWRP.
- swipe to allow mods
- Confirmed backup present on SD card
- Wipe Data - factory reset
- Wipe data - Format Data. Observe errors
- back to TWRP menu, reboot - reboot to recovery
- Wipe, format data. No errors
- Back to TWRP menu. Reboot - reboot recovery
- Install. Selected External SD. Install Magisk 17.3
- Install no verity
- Install LG-rctd
- Reboot to system - welcome. (Confirmed data connection)
CHRISTPHERGGG & CLOUD1250000 INSTRUCTIONS:
- Download mode
- Connect to LGUP (Note - shows US99820a.)
- Part DL H93320f - ALL, then recovery unchecked
- Phone boots into TWRP
- Wipe - Factory reset. Lots of red (failed to mound /data unknonwn error 150, unable to mount storage (expected I think)
- Wipe - Format Data - done with no errors.
- Reboot to recovery
- Install. Flash No verity, Flash lg-rctd, then Magisk. No errors, appears successful.
- unplug from system.
- TWRP reboot menu - power off
- Download mode
- Observe LGUP - still shows US99820a ???
- LGUP - Part DL H93320f (clear all, then select recovery only)
- phone reboots 3 times?
- Boots to welcome (canadian. Network connect but no data)
- skip through setup. Enable Dev mode. Observe OEM unlock is off? Turn on. Enable USB debug.
- Magisk manager - needs data. Connect to wifi. Go throgh Magisk update and setup.
- Connect to USB. Authorise Debug. Change to file transfer mode.
- Copy twrp.img, modemst1_COM3, modemst2_COM3 to root of internal storage on V30
- adb devices - (connection confirmed)
- adb shell
- su (grant forever on device)
- dd if=/sdcard/twrp.img of=/dev/block/bootdevice/by-name/recovery (appears to copy successfully)
- (DD of modemst1_COM.bin errored, not found. Figured out that they did not have .bin extension. Edited dd command to match file name.)
- dd if=/sdcard/modemst1_COM3 of=/dev/block/bootdevice/by-name/modemst1
- dd if=/sdcard/modemst2_COM3 of=/dev/block/bootdevice/by-name/modemst2
- both appear successful
- Magisk, modules, reboot to recovery.
- Successful boot to TWRP.
- Reboot to system
- "Service Disabled" and an X over the signal bar.
- skip into system. Enable data. Try to text for SIM update - failed to send.
- Master reset reboots to TWRP. Factory reset & format data. Reboot
- Wecome screen with X over signal. Screen freezes an device reboots.
- Welcome screen with X over signal. Try to proceed with mobile data - no network.
*** How does DD work. Maybe the second half is just a location but the name remains the same and needs to be .bin??? ***
Restart from beginning. Try changing file name to modemst1.bin & st2.bin
- LGUP Part DL US99810d - ALL
- Master reset
- Bootloop. Can't get to download mode or Recovery.
- Get to fastboot with Power & vol down. Release both on logo and press both again? Not sure exactly
- Flashed recovery
- Boot to recovery, factory reset. Wipe data. Reboot recovery. Wipe data. Reboot recovery. Try restore image.
- Reboot to download mode
- Refurbish US99810d. Success. Data is back.
- reboots into welcome.
- *** Curious. Since refurbish, LGUP detects it as US99810d. Maybe Upgrade works now? *** Testing.
- LGUP UPGRADE US99820a - Success.
- Steps to install TWRP, verity, rctd. Boots to system
LGUP detects as US99810d but phone confirms US99820a
refurbish. No change.
Click to expand...
Click to collapse
In clouds instructions he used DD for modem but in all of my tinkering I never did any other partition flashing except for an OP partition that was sent to me by seadersn however I reverted back to stock by flashing a kdz as the OP partition he sent did not return my data as well.
Our instructions vary slightly only by little but with my instructions I had luck.
I did say I was going to recreate my issue I just haven't had a moment to actually sit down and use LGUP as I also use my phone for work during the week so I apologise for that. I use the mobile app to do a lot of my browsing/research so I respond frequently.

christopherrrg said:
I did say I was going to recreate my issue I just haven't had a moment to actually sit down and use LGUP as I also use my phone for work during the week so I apologise for that. I use the mobile app to do a lot of my browsing/research so I respond frequently.
Click to expand...
Click to collapse
You guys have already made serious progress. It is just a matter of time to iron out the wrinkles. The fact that you have found time in between life's demands to work on this problem and to share your advances with the community is great.

Related

[Unbrick Me] LG G2 D801 - Dead Android Robot, Exclamation Point in Red Triangle

I'd appropriate it, if anyone would be willing to help me out with my issue.
I have a LG G2 D801, 32GB.
Had it ROOTED, TWRP Recovery, and Lineage OS 14.1 running perfectly just fine. Until I recently tried to Flash Lineage OS 15.1, which then caused my phone to completely go into a black screen with a dead Android Robot having a exclamation point in a red triangle coming out of it's belly.
Yes, I'm able to get into: Android System Recovery <3e> LRXX22G
- Tried, Reboot System Now and it loops right back into the Android System Recovery <3e> LRXX22G screen. (so that's a dead end)
- Tried, Wipe Cache Partition, then Reboot System Now and it loops right back into the Android System Recovery <3e> LRXX22G screen. (so that's a dead end)
- Tried, Wipe Data/Factory Reset, then Wipe Cache Partition, then Reboot System Now and it loops right back into the Android System Recovery <3e> LRXX22G screen. (so that's a dead end)
- Last but not least, leaving me with the only real option I have left to help fix my phone is the, Apply Update From ADB. (Yes, I tried that one too) Which is why I need your help!
Here's a quick scenario of what happens after trying that last option. (Apply Update From ADB)
-Basically my phone then asks me to ADB Sideload files.
-I connect my phone to my PC. (Windows 7, x64)
-Check my Device Manager to see if it's fully connected, but my D801 connects each time under SAMSUNG Android Phone - AndroidNet Sooner Single ADB Interface. (which I know has to be wrong)
-I go into my CMD Prompt, to access my installed ADB Shell, to search for attached ADB Devices. (Yes, it sees my phone as: LGD801cb55c4e4 sideload)
-I proceed to try to sideload a ROM and after about 30% Signature Verification, Fails causing my D801 to Abort Installation. (no matter what I throw at it, IMG/KDZ/TOT files fail as well.)
Now when it comes to trying the methods listed in: https://forum.xda-developers.com/showthread.php?t=2432476 to Flash Stock Firmware, I simply can't because my D801 doesn't connect to my PC in Device Manager under Ports or QHSUSB_BULK. (it connects each time under SAMSUNG Android Phone - AndroidNet Sooner Single ADB Interface.
I've also tried SRKtool_2.1_droidth which ends up leaving me at another dead end.
If you have the time please help, and or point me in the right direction.
I've already installed the needed drivers:
qualcomm-driver
adb-setup-1.4.3
LGMobileDriver_WHQL_Ver_4.2.0
Downloaded all the corresponding files to my PC for my D801:
Firmware Files (KDZ & TOT also Extracted)
LG Flash Tool 2014 & 2015
SRKtool_2.1_droidth
Megalock DLL File
D801 DLL File
LGUP
Silly suggestion perhaps, but after freaking out for about an hour when this happened to me I ended up realizing I could reboot to TWRP using the hard keys. Honestly, I only mention it because I was trying everything else too. If you didn't already try it (I didn't see it in your description) I think it's the power key and volume down key while it's off and as soon as you see the splash screen, release them both and immediately repress and hold them both until you see TWRP. Just a thought.
I loved that phone!
Sent from my [device_name] using XDA-Developers Legacy app
Just tried your technique @C-Tec. Thank you. But that only brings up the Factory Data Reset Screen (to Erase all user data & Restore default settings) instead of the TWRP Recovery screen. (so that's a dead end)
Because, after selecting Yes, Erasing data and Restoring default settings, my phone reboots in to the same loop I started from, as if I never did anything to remedy the situation.
Update on my progress:
-So I was able to get in to Download Mode. (holding the VOLUME UP button, while the phone is off)
-Followed by the Firmware Update Screen after plugging my phone in to my PC via USB. (which then read my phone as - LG Mobile USB Serial Port. (COM8) under Ports in Device Manger)
-I then Flashed the D801 Stock Lollipop KDZ. (by using the LG Flash Tool 2014)
-Waited for the progress bar to completely fill to 100% and BOOM! I fixed my problem.
-Android Lollipop running like NEW. (that's 2014 NEW :crying
-Now to retry Lineage OS 15.1.
Here's a helpful Video Clip, to understand how to use the Flash Tool. -
Just search for: LG G2 - Fix LG Logo Stuck/ Boot Loop Fix / Flash Firmware - EASY METHOD in YouTube.
Being that I'm low ranked I cant post any links just yet, sorry.
I even went out of my way and ordered a LG V20 off of Swappa, which arrives tomorrow. Due to this issue.

Rooted Pie Issues

I finally managed to root my SM-T820 on Android Pie. How I did it is still up in the air to me. I know I was on Oreo (rooted), used the AP file only from Pie download and then reflashed TWRP, without letting the tablet boot up. then once in recovery, installed Oreo encrypted file, Magisk, and RMM.
Anyhow, things where going good but I noticed that when I removed "bloatware" things were not being completely removed. So I went back into recovery and did a wipe of internal storage, data, and cache (only). Then rebooted. Oh wow at the cleaned up OS, but now I have a few issues that I did not have before and can not seem to figure out how to resolve.
1st: The hardset buttons (home, recent) no longer work
2nd. the cog wheel in nofication no longer works -- taking you to settings
3rd: No longer able to set up any kind of accounts -- in settings, playstore, chrome, google
4th: No longer able to access developer options
5th: Playstore will not download or update apps
TWRP is installed with Magisk. Deivce is rooted. I have manually updated Playstore, Play service and AR, and Framework. Any advise you can give would be great. Titanium does give the warning that USB debugging is off, even though it was on along with OEM unlock.
Resolved and Upgrade Root Process For Pie
Thanks for the help. I figured it out and fixed the issue. For anyone else who has a similar issue, here is what I did. It may help you.
First Portion:
Enter recovery mode.
Link to computer
Open adb shell and issue following commands.
adb devices (to list your device)
adb oem unlock (to ensure OEM is unlocked)
Next Steps:
Once done, go to your recovery reboot options and reboot to downloader.
On computer open newest Odin and uncheck auto start.
In AP slot insert AP file only of Android Pie.
Start
At PASS, reset Odin (uncheck auto start), and re-enter downloader
(Reconnect to computer if needed)
In AP slot insert newest TWRP file
Start.
At PASS, reboot to RECOVERY
Notice device has not been allowed to fully boot into system. Do not allow it to boot into system or you will have to restart.
Recovery:
Swipe to allow modifications
Flash the Oreo Forced encryption patch
Go into Wipe menu and "Format data"
Use boot menu to Reboot into recovery
Swipe to "Allow modifications
Flash RMM-State_Bypass.zip
Flash Magisk
Reboot the phone into system
During the set up wizard, make sure you do not check diagnostic data!!
Thank you to ashyx and corsicanu for providing the links and their work that helped me figure this out. Enjoy. You can also use this to upgrade your rooted Oreo Samsung Galaxy Tab S3(SM-T820) to Pie.

[GUIDE] Step by Step install for Android 10 from Stock Oreo

There are a number of generic installation guides for custom roms eg https://www.xda-developers.com/how-to-install-custom-rom-android/
However this one is specifically for the LG G6 and tested using the US997 model. It worked for me, but I welcome comments on how to improve it.
Create a folder on the PC for all the downloads and files
Download phone driver from LG website
https://www.lg.com/us/support/help-library/lg-mobile-drivers-and-software-CT10000027-20150179827560
Download ADB/Fastboot https://developer.android.com/studio/releases/platform-tools (You need to unzip once downloaded)
(I had an error "adb server version (31) doesn't match this client (41) killing". I searched my PC and found an older version which I had used for another phone and deleted the folders and reinstalled from the download)
Ensure the phone is backing up. (Google backup is working, you have all your photos music etc downloaded) the next steps will wipe the phone
Remove the PIN/Password/Fingerprints from the phone so it will boot without any security.
Unlock the bootloader
https://developer.lge.com/resource/mobile/RetrieveBootloader.dev
The phone will then reboot and do a complete wipe so you need to wait a while for Android to setup.
Telegraph has the latest news on LG G6 ROMs and Recovery. From here I got the links for SHRP recovery which seems more up to date for LG G6 than TWRP. (https://web.telegram.org/#/[email protected])
https://sourceforge.net/projects/pa-g6/files/Releases/SHRP/20.07.2020/US997/
I named the downloaded file "recovery" (You need the .img file not the ZIP)
There are lots of active ROMS for LG G6 I have Lineage installed on another phone which works really well, but Havoc seems the most popular on the G6.
Download the ROM and Gapps https://opengapps.org/ (I used Nano, remember G6 is 64bit)
You will also need to update the bootloader. This was the latest I found for the US997
https://androidfilehost.com/?fid=1899786940962575226
(I missed the bootloader the first time and Gapps will not flash, I was helped by the LG G6 community on Telegram https://web.telegram.org/#/[email protected])
Now you have downloaded all you need
Then connect the phone to the PC and ensured you have ADB debug on in developer options and boot the phone into fastboot
On the PC open a command prompt in the folder you have all the files:
adb reboot bootloader
To load the recovery to the phone :
Fastboot flash recovery recovery.img
YOU MUST NOW BOOT DIRECTLY TO RECOVERY. Do not reboot to Android as this will automatically reset recovery to the stock version.
Unplug the USB cable and reboot to recovery (hold volume down + power button).. continue holding until phone reboots...
As soon as you see the LG logo on the screen.. let go of the power button then quickly press it again (never letting go of volume down).
Keep holding until you see the Factory Reset screen. Click thru the factory reset screens using the volume buttons to move up/down and power button to select. Choose "Yes" twice (saying you want to reset the phone it should boot into your new recovery. Despite what the screen says it won't actually factory reset/wipe your data... as long as you've installed a custom recovery and have not booted into Android since then.
Most likely you will be asked the password to decrypt the data folder. I tried my phone PIN and other default passwords suggested on the internet. I eventually found that this is a known issue and you need for cancel out of this screen and go and "FORMAT DATA"
Reboot directly to recovery (select reboot recovery in Skyhawk), this time you should not be asked for the decryption password.
I recommend you backup your current setup before making changes. If you hit issues you can use the recovery to restore. My SD card slot is broken (Poor LG design) so I plugged a USB thumb drive into the USB C slot and did a full backup. (No data since I just formatted it).
Wipe the partitions before you flash
Full wipe ("The only option you ever need")
Select Advanced and wipe system partition.
FLASH (You need to put the ZIP files either on the USB drive as I did, or copy to your SD card, or you can use ADB sideloader from the PC to push the files to the phone). The USB drive seems the easiest since you can plug it into your PC to load the files then plug it into the phone to read them.
Flash in the following order
Bootloader
ROM
Gapps
After Installing wipe cache and Davik
Reboot
It will do lots of processing while setting up. Ensure it stays cool (remove case and leave it plugged in with the screen off)
Donate to the developer of your new ROM at the end when it works.
I have been running my LG G6 on Android 10 for a few weeks and thought I would share my observations, I am using Havoc 3.7 installed with Skyhawk, I did not root the phone.
Likes : Very smooth experience, phone feel like it is running much faster. Very stable, I had one surprise reboot in the time I have used it. No issues (so far) with installing or using any apps including banking. Much lower use of storage, I have 6GB free.
Same : Battery life is about the same as before.
Gaps : Cannot encrypt, VOLTE doesn't work (which may become a big issue for T-Mobile and AT&T soon), when being used the phone gets much warmer than it did before and the wifi setting randomly turns off.
Next Steps: I am going to try Lineage which has released some fixes for the WIFI issue and report back.
I'm trying to follow the instructions as per this guide for the tmo version of G6 (H87220g) and I'm running into a roadblock on the recovery flash:
[[email protected] tmp]$ mkdir skyhawk
[[email protected] tmp]$ cd skyhawk && 7z x ../SHRP_v2.3.2_us997-233920072020.zip
[[email protected] skyhawk]$ fastboot flash recovery recovery.img
Sending 'recovery' (36936 KB) OKAY [ 1.252s]
Writing 'recovery' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Click to expand...
Click to collapse
I downloaded the Skyhawk zip from the PA download link, unzipped it and used the recovery.img file found inside the zip as part of the fastboot command. Is this incorrect ?
Yes, you need the recovery.img file to flash via fastboot. Have you successfully unlocked the boot loader? You cannot replace recovery without unlocking.
You also need to ensure you have the appropriate files for your phone I have a US997 but as you have H872 you would need skyhawk for the H872 in the notes above you are still using US997.
bootloader is unlocked as per:
https://forum.xda-developers.com/tmobile-g6/how-to/unlock-bootloader-tmo-t3578099
fastboot flash is failing and I'm not the only one it seems like based on comments here and reddit...
I gonna try out @runningnak3d guide and see if that works...
This guide is for the US997. The H872 has a much more complicated process to install recovery : https://forum.xda-developers.com/tmobile-g6/how-to/root-h872-to-including-11g-t3775518

H915 - Installing Lineage 18.1 (Unlock Bootloader, TWRP, Root Optional)

Hi All,
With the recent launch of LineageOS 18.1 I decided to take the plunge and get it installed on my fully stock Videotron/Freedom H915. Since I had to smash together info from a half dozen other threads, I figured I'd gather it all together here for folks with a Canadian phone trying to make this work.
Since I knew absolutely nothing coming into this, I'm going to go a little more detailed on this write-up. If you've been flashing ROMs since the old days of Cyanogenmod you can probably skim half of this.
Disclaimer : I'm not responsible for any bricked phones or other negative outcomes. This is what worked for me, but I'm far from being an expert. If you continue past this point you agree to take your time, do your reading, be responsible for your own device/actions and not hold me or the forum accountable for anything that might go wrong. You've been warned.
IMPORTANT NOTE #1
If you've picked up an H915 on ebay and you are intending to use it on a network other than the one it's SIM locked on, make sure you do the whole SIM unlock process on the stock ROM either before you get started at all, or once you've reverted to the vulnerable stock ROM after Step 1 below.
I actually use Telus as my provider and I wasted a bunch of time trying to figure out why I couldn't get signal because only the stock ROM will prompt you for a SIM Unlock code. Lineage will just sit there dumbly and not allow you to enable data.
Once you've unlocked the SIM it will stay unlocked from that point forward, just make sure to unlock it and verify your SIM is working with LTE on the stock ROM before you get started.
IMPORTANT NOTE #2
Use LGUP's "DUMP" feature to take a backup of ALL partitions on your phone before you start. If you're reading this thinking "I just bought this phone off ebay, there's nothing on it I care about", take the backup anyway. You never know when you might need a copy of the modem partitions or other things from your phone's original build. It came in super handy for me in troubleshooting the process. So go do a backup!
Current Issues:
If signal is too weak to connect to a tower (or non-existent), the OS tends to crash with a modem error. Still trying to figure this one out.
I think I can get this working without first jumping to US996 but haven't had a chance to verify that. If I do I'll update the thread.
Download Prerequisites
Links working as of 2021-06-29
LGUP with patch
Link
Working adb/fastboot environment
Instructions
Download
Fastboot Drivers
Link
Universal ADB Driver
Link
Videotron/Freedom H915 Android 7 (Nougat) version E - H91510e_00_VTR_CA_OP_1205.kdz
Link
USA General US996 Android 7 (Nougat) version F - US99610f_00_1205.kdz
Link
APK for Terminal Emulator
Link or Alternate Link
LG V20 Root Package Original (v4?)
Link
Old TWRP for Root Package
Link
Videotron/Freedom H915 Modem Partition Image
Link
Lineage Install Zip for H910 (grab the latest, I'm using lineage-18.1-20210506-nightly-h910-signed.zip which is already out of date)
Link
MindTheGapps
Link
(Optional, for rooting) Magisk
Link
Different Boot Modes
For those not familiar with these phones, there are three different "modes" the phone can boot into. Here's a quick reference on how to boot into each one.
Download Mode
This mode is used for pushing KDZ files or individual partition backups using LGUP
Turn Off Phone
Hold the Up-Volume Button
Insert USB-C Cable with other end already plugged into PC
Bootloader (aka Fastboot) Mode
The H915 doesn't come with this mode by default. If you try it, you'll just get battery charging. We'll be temporarily converting the phone to a US996 in order to use the DirtySanta exploit to replace the bootloader partition with a leaked Engineering aboot.
This mode is used with the fastboot tool to load the TWRP utility into the Recovery partition.
Turn Off Phone
Hold the Down-Volume Button
Insert USB-C Cable with other end already plugged into PC
Recovery Mode
The recovery mode on a stock phone is used to perform a factory reset. We will be using the Factory Reset a couple times with the stock ROMs, then replacing the contents of the recovery partition with the TWRP tool that allows us to format partitions, load partition images, and sideload apps and LineageOS itself.
Turn Off Phone
Hold the Down-Volume Button
Press and hold Power-On (rear fingerprint sensor/button). When LG Logo appears, release power button for 1 second then press and hold again
When "Factory Data Reset" appears, release all buttons
Press Volume Down to highlight "Yes" then press power button to select the option
Repeat for the confirmation
Note about flashing KDZ files using LGUP
You can flash KDZ files onto the phone using LGUP from two places - either with the phone in "Download Mode", or with the phone booted into the OS with the USB Options set to "File Transfer" and USB Debugging turned on.
The difference between these two is when it performs the OS compatibility check.
In Download Mode it's the code of the Download Mode partition that does the check. In the OS, it's the OS that does the check before booting to Download Mode and bypassing Download Mode's check.
Why is this important? Because when converting from one phone to another (Say, an H915 to a US996 like we do below), you initially can't flash the KDZ using LGUP's "Upgrade" function. You can only use "Partition DL" to replace the contents of partitions with the contents of the KDZ. This kind of works, but ends up with a phone that will sometimes identify as a H915 (in Download Mode) but sometimes identify as a US996 (in the OS). To clean it up, once you've done the Partition DL method, you can do it again from the OS and use the Upgrade method to get a really clean install.
It works going back the other way as well when you want to return to stock.
If this doesn't make sense, don't worry. You don't need to fully understand it to follow the instructions below, I just found it to be interesting info that didn't seem to appear in other threads.
Process Overview
Revert the phone to an old/vulnerable stock Nougat ROM for Videotron/Freedom Mobile
Enable Dev Options
Dump contents of US996 KDZ partitions over top of existing partitions
Cleanup by re-flashing US996 KDZ partitions over top of existing partitions
Transfer files to the SDCard and install Terminal Emulator
Unlock the Bootloader using the DirtySanta exploit
Boot to old TWRP and install new TWRP
Boot to new TWRP, install LineageOS, Google Apps, and flash modem partition image
Reboot to LineageOS
Actual Process
1 - Revert the phone to an old/vulnerable stock Nougat ROM for Videotron/Freedom Mobile
We need to be on Nougat for this to work, so if you're on Oreo you have to downgrade to Nougat before we begin. I chose a Nougat ROM for the H915 that's vulnerable to the DirtySanta exploit because I know it works and because I'm hoping in the future to be able to skip converting the phone to a US996 if possible.
Boot phone into Download Mode
Launch LGUP with Patch
Select "Upgrade" radio button
Select bin file : H91510e_00_VTR_CA_OP_1205.kdz
Click Start
When finished phone will reboot
1.5 - Do this if Step 1 Failed... Otherwise continue to Step 2
Depending on what's loaded on your phone when you start, it might complain about doing Step 1. This should allow us to bypass the issue and allow Step 1 to work. You can use this step if you've already converted the phone to another model as long as it's not bricked.
Boot phone into download mode
Launch LGIP with Patch
Select "PartitionDL" radio button
Select bin file : H91510e_00_VTR_CA_OP_1205.kdz
Click Start
Click the "Select All" partitions checkbox and click OK. When done it will reboot.
If it hangs or loops on reboot, boot into "Recovery Mode" (which at this point will Factory Reset the OS)
The phone boots into the OS
Quickly go through setup wizard. Skip as many things as possible.
Go Settings - General - About Phone - Software Info - Make sure it identifies as H91510e
Change the USB Option mode to "File Transfer"
Then repeat Step 1, but from inside the OS instead of in Download Mode
2 - Enable Dev Options and File Transfer Mode
We need these enabled after every time we flash the OS so that our LGUP and adb commands will work. You'll get used to doing these steps a bunch.
Quickly go through setup wizard. Skip as many things as possible.
Unplug USB-C cable
Swipe down from the top and change from USB Charging mode to File Transfer mode
Settings - General - About Phone - Software Info
Tap on Build Number many times until it unlocks Developer Mode
Go back 2 menus and enter the new "Developer Options" menus
Make sure "Enable OEM Unlock" is enabled
Enable "USB Debugging" (will be greyed out if USB-C cable is still attached)
Go back to main screen
Plug USB-C cable back in.
A pop-up will appear asking to Allow USB Debugging. Check the "Always Allow" box and tap OK
3 - Dump contents of US996 KDZ partitions over top of existing partition
The Videotron/Freedom KDZ has no Bootloader/Fastboot mode. If you try to enter bootloader mode you'll just end up charging the battery. So we have to cross-flash the US996 KDZ to get a phone with a bootloader which we can then replace with the engineering version using the DirtySanta exploit.
Boot phone into download mode
Launch LGUP with Patch
Select "PartitionDL" radio button
Select bin file : US99610f_00_1205.kdz
Click Start
Click the "Select All" partitions checkbox and click OK
When the phone boots back into the OS, repeat all of Step 2.
Note: If it asks for a password on startup, follow the "Boot to Recovery" steps and since
we don't have anything loaded in the recovery partition it will wipe/erase the phone
and remove the password.
4 - Cleanup by re-flashing US996 KDZ partitions over top of existing partitions
As mentioned in the "Note about flashing KDZ files using LGUP" section above, after you use the PartitionDL method you get a kind of dirty phone image that doesn't always identify as its new model. To clean up, we repeat the process in Upgrade Mode, taking advantage of the fact that at least the OS now identifies as US996 even if Download Mode doesn't. After this, Download Mode will also identify as US996.
Starting booted into the OS with a USB-C cable attached (File Transfer mode, USB Debugging on):
Launch LGUP with Patch
Select "Upgrade" radio button
Select bin file : US99610f_00_1205.kdz
Click Start
When the phone boots back into the OS, repeat all of Step 2.
5 - Transfer files to the SDCard and install Terminal Emulator
We will need some files on the SDCard in the phone in order to install them, either inside the OS (in the case of Terminal Emulator), or later on from TWRP. The Terminal Emulator will be used for the DirtySanta exploit so we need to get that installed now.
Make sure the USB Connection is set to Data Transfer mode and copy the following files to the SDCard:
APK for Terminal Emulator
twrp-3.5.1_9-0-us996.img
h915freedommobilemodem.img
Enable installing apps from unknown sources by:
Settings - General - Fingerprints and Security - Unknown sources (turn it On)
Install Terminal Emulator:
Tools - File Manager
Choose "Allow" when prompted
Click the up-arrow next to "Internal Storage"
Choose SD Card
Scroll down and tap on jackpal.androidterm-1.0.70-71-minAPI4.apk
Install
6 - Unlock the Bootloader using the DirtySanta exploit
The US996 KDZ has a bootloader but it's locked. In order to unlock it we need to use the DirtySanta exploit to give us permissions to replace the Bootloader/Fastboot with a leaked engineering version.
Starting booted into the OS with a USB-C cable attached (File Transfer mode, USB Debugging on):
Settings - General - About Phone - Software Info
Verify that Software Version lists as US99610f
Copy the twrp-3.0.2-1-us996.img file into the folder containing the LG V20 Root Package
Open a command prompt window and change to the folder containing the LG V20 Root Package and run "Step1.bat"
It will push multiple files to the phone and apply some patches/exploits.
This proces will take 5 minutes and put you out at an "elsa:/ $" prompt
At this "elsa:/ $" prompt in your command prompt window type the following:
run-as con
chmod 0777 /storage/emulated/0/*
On the phone, launch Terminal Emulator and run the following:
id
Verify that the string which comes back contains the string "context-u:r:untrusted_app".
If not, run Step1.bat again, else continue forward
Enter the follosing command into Terminal Emulator (be very careful to type it properly):
applypatch /system/bin/atd /storage/emulated/0/dirtysanta
If that command came back with an error, close and re-open Terminal Emulator and try again
The command should begin to patch another file. This will take 5 minutes and will return you to the "elsa:/ $" prompt in Terminal Emulator when it has finished
Open another command prompt to the same folder and run "Step2.bat"
This step will download backup copies of the boot and aboot partitions from the phone then boot the phone into bootloader/fastboot mode.
You'll know it worked if the first line at the top of the phone screen appears in red
In the command prompt window, run Step3.bat
It will flash boot1.img and the TWRP Recovery image multiple times then restart the phone
The phone will hang, no matter how long it's left. Wait 5 minutes (at least until the logo re-loads once) then do the following:
Unplug the USB-C cable
Remove the battery from the phone to turn it off
Replace the battery
Boot into Fastboot mode and run the following commands in your command prompt:
fastboot flash boot bootbackup.img
Remove the USB-C cable and battery to turn off the phone. Then replace the battery and enter Recovery Mode
The phone will show a big red exclamation mark saying "Your device is corrupt". This is normal. It will go away after a few seconds then boot into recovery. This error screen is the result of the engineering "aboot" image that was flashed to give us an unlocked bootloader and will always happen on boot.
7 - Boot to old TWRP and install new TWRP
The old version of TWRP recovery will load. Don't ask me why we can't just go straight to new TWRP above, it didn't work well when I tried it.
If it asks for a password to decrypt data, click Cancel
Swipe to allow modifications
Install - Select Storage - MicroSD Card - OK
Install Image - Scroll down and tap the "twrp-3.5.1_9-0-us996.img"
Select the Recovery partition and swipe to confirm flash
Back to main menu
Reboot - Recovery
8 - Boot to new TWRP, install LineageOS, Google Apps, and flash modem partition image
The new version of TWRP will load:
Check the "Never show this screen during boot again" box
Swipe to allow modifications
Wipe - Format Data - type "yes" to continue
This is likely to fail the first time. Repeat it to properly format the data partition.
Go back to Main Menu - Wipe - Advanced Wipe - Select "Dalvik / ART Cache", "System", and "Cache"
Swipe to wipe
Back to main menu
Advanced - ADB Sideload
Plug in USB-C cable
Swipe to start sideload
In command prompt window on PC type the following:
adb sideload lineage-18.1-20210506-nightly-h910-signed.zip
When complete tap "back" and "ADB Sideload" and swipe again to apply another file:
adb sideload MindTheGapps-11.0.0-arm64-20210412_124247.zip
If you want to root the phone (completely optional, not necessary for this process), now is the time to do it. Tap "back" and "ADB Sideload" and swipe again to apply another file:
adb sideload Magisk-v23.zip
Go back to main menu - Install - Install Image - tap the h915freedommobilemodem.img file
Select the Modem partition and swipe to confirm flash
Remove USB-C cable
9. Reboot to LineageOS
Go back to main menu - Reboot - System - Swipe to reboot
References where I got the info to make this tutorial
Official Lineage 18.1 for LG V20 Release Thread
LineageOS Wiki for H910
DirtySanta Bootloader Unlock and Root Guide (Original)
H910 Rooting Thread (Cross-flash H915 then DirtySanta to US996)
H915 Root, TWRP using DirtySanta [WorkingSignals]
Noob Friendly Root TWRP using DirtySanta
General info about Modem Hardware, Firmware, Radio Interface Layer
[Reserved]
thank you so much. i need it
Great job for writing a complete how-to guide!
Thank You, You saved my old V20 H915​
hi have you been able to find a better modem?
btw i'm not able to decrypt under twrp, can you?
Just want to confirm, it's only guide wich works for me. But I have issues with modem:
1. When I tried to change mode of modem, "prefered network type", phone stayed in the loop of the kernel panic "modem crash"
2. It were difficult to revert changes back. Finally, safe mode (in order to get it, you need to press volume up and volume down in the same time, during LinageOS booting process) helped me - when I disabled airplan mode, I had 2-10 seconds until next kernel panic. And in ~10 attempts, I were able to finally switch modem's mode to GSM/WDCMA/LTE
3. I used this phone 3 days, and once the kernel panic (because of modem) happened again
Any ideas what to do with modem? Also, the picture "Your phone is corrupt" is not fan Any ideas how to change it?
I did my best to follow all the instructions but after step 7's reboot I just get blocks full of static. I can tell it's trying to do fresh install setup though from what's peeking through the blocks.
Riot54 said:
I did my best to follow all the instructions but after step 7's reboot I just get blocks full of static. I can tell it's trying to do fresh install setup though from what's peeking through the blocks.
Click to expand...
Click to collapse
This is normal. Flash a kernel that's patched for dirty santa OR, cover the proximity sensor on boot and keep it covered until boot is complete.
That worked, thanks.
After multiple attempts going back and forth with step 6, I finally did it! I might switch to Lighthouse or Arros but I wouldn't have gotten this far without your guide.

[Recovery] Boot loop then recovery, corrupt roles.xml system file, failed to parse

Hello, due to a swollen and drained battery problem (I replaced it now), my phone is not able to start after being abruptly disabled.
I have some very important stuff in my apps (also not backed-up ) so am trying to fix the phone without doing:
- a factory reset
- erasing app data in the recovery mode (it will erase my app data permanently, right?)
Device: Samsung Galaxy S9+
- not rooted
- USB debugging disabled (the android UI does not load so I am not able to change it there)
- no recovery/backup available (both system and apps) - I know - hard lesson for me.
Situation:
1. Device tries to boot a couple of times.
2. Asks for the unlock pattern.
3. Keeps hanging at the "unlocking padlock" screen. [attached]
4. Reboots itself.
5. After few reboots a recovery screen appears with a message: "Your phone couldn't start normally. Some configuration data may be corrupt."
and 4 options: Try again; Erase app data; Power off; View rescue log. [attached]
Following "View rescue log", the stack trace says an exception happens during boot:
-> (...) java.lang.IllegalStateException: Failed to parse roles.xml: /data/system/0/roles.xml (...)
-> (...) org.xmlpull.v1.XmlPullParserException: unterminated entity ref (position:TEXT @3:319 in [email protected])
I thought I could somehow:
A. pull the roles.xml file
B. see the content,
C. possibly fix it (
D. push it back to the device,
I have some programming background, but it's my first time trying to fix my Android device and I am not sure how to pull and push back the /data/system/0/roles.xml
What are my options? Is any of the following viable?
- The default/standard adb mode is not working due to USB debugging being disabled - is there any workaround to change it?
- The adb sideload is available, but if I understand correctly adb in sideload mode is responsible for installing custom ROMs. Or maybe I am wrong and am able to install any app, even my own?
- If there would be a way to install my custom app I would do the previously mentioned steps. Is there a way?
- I did not follow the init.d script possibilities, because it seems I would need to have my device rooted before, right?
I would appreciate any help.

Categories

Resources