yashsingh1/xdaforums huggingface dataset:
[T-Mobile LG G6 ROMs, Kernels, Recoveries, & Other ] weakNPCdotCom:
What Encryption message are you talking about? The one in TWRP where it asks you for a Passcode?

So far, I have tried removing dm-verity and force-encryption from both the 11h and 20a kernels, but I have not been successful. The OS always ends up encrypting data. However, after I flash Magisk I no longer get any passcode prompts in TWRP. I am able to backup and restore system and data no problem.

The only thing I have not tried is a rom packed with dm-verity and force-encrypt removed and root built in. That is the next thing on my list once I get a deodexed 11h rom done.
[T-Mobile LG G6 ROMs, Kernels, Recoveries, & Other ] Ken C:
Yes that's the message I get. So your saying not to worry about it for the moment? I only see it regularly on a stock rom when going into recovery not aex.

I just wanted to make sure. With the mess I been going through.

So, I can flash this stock build you have and if I wanted normal download back flash the laf zip and I'll have DL mode on laf, twrp on recovery and everything should Mount correctly and all that?

And if I go to flash something custom FP will work? I know I'm a pain I just want to "know" my setup isn't weird somehow. Probably over thinking it, but I think I'm good, except that when I rooted I was getting that message off & on, on the stock build of 20a. I'm hoping that running this build I can get that worked out. Maybe that deal is a 20a thing? Reading through the root thread it seemed to happen less to people on a lower numbered build and it would stop after the format.

I can make backups Burt I've yet to try to restore one.
[T-Mobile LG G6 ROMs, Kernels, Recoveries, & Other ] ryanrod:
So as you are suggesting, there are two possible encryption passcode promts. 1. in twrp recovery 2. at system boot

I still get the encryption passcode when booting into twrp as well. I have magisk flashed already. I wonder why it is still there.... Did I need to reboot into twrp after fomatting the data partition/before flashing the FullStock zip? Does uninstalling/re-flashing magisk fix it?

I was getting the encryption passcode prompt for the system boot at one point, but as I said, formatting the data partition before flashing the FullStock zip fixed that.
[T-Mobile LG G6 ROMs, Kernels, Recoveries, & Other ] weakNPCdotCom:
Ill explain the issue and steps for flashing and hopefully that will answer your question.

The 11g, 11h and 20a stock ROMs will try to encrypt the data partition on your phone the first time you boot to the OS. Sometimes it will show "Encrypting.." on the screen with a little android guy. Other times it might just say "Starting Android.." or something like that with a progress bar. Either way, it will always try to encrypt your data.

Now. Assuming you have been using your phone and now want to reflash a rom (Stock or otherwise) and flash magisk in the process:

You reboot to TWRP. If TWRP asks you for a passcode, that means your data is encrypted, and TWRP will not be able to mount the system, vendor or data partitions.

In order for anything to flash correctly, you will need to go to Wipe -> Format Data. This will format the entire data partition and remove encryption. But TWRP still has not mounted system, vendor or data at this point. So you need to either

A.) go back to the main TWRP menu and tap Reboot -> Reboot Recovery

or

B.) Manually mount System and Data.

Option A is generally safer because sometimes when I have manually mounted system it still wouldnt flash because the partition was somehow in use.

After rebooting back to recovery, all partitions will be mounted correctly, your data will not be encrypted, and you will not get a password prompt in TWRP. You will just get the standard excerpt about it being dangerous and asking if you want to keep the device read only blah blah.

Now at this point, you can flash whatever rom you want. After flashing any roms or bootloaders or anything that is going to replace a part of the OS, then you flash Magisk.

Watching the magisk flash logs on the screen, you could see one or more of the following:

"encrypted data detected. preserving force encryption"

something regarding it patching dm-verity

then at the end it will try and repack the patched boot image. At this point, whether your device is going to be force-encrypted or not, magisk has patched boot and any other areas needed so that you TWRP will be able to work without entering a passcode when you boot to recovery.

Now, when you initially boot to the OS, key point is that you do not enable secure startup when setting up your phone. I think this is the one thing I missed when I have been explaining this to everybody and it's the one thing I never do when I set up my phone. I dont know why it never came to mind until now. That is the feature that asks you to enter a passcode or pattern on boot and ultimately encrypts the entire device.

You can add a pattern or passcode to the phone for your screen lock, but enabling secure startup may just hose all of the work you did with formatting and flashing magisk.

I hope this helps. I am going to be uploading pre-rooted SysBoot roms for 11g, 11h and 20a today with patched kernels that should have dm-verity and force-encryption disabled. I am not sure if the patched kernels are actually going to work, but the roms will at least have root integrated. Ill post an update when they are online.
[T-Mobile LG G6 ROMs, Kernels, Recoveries, & Other ] Ken C:
Thank you man that's what I was looking for. Thanks for mentioning the secure startup deal, I've always wondered about that. I was going to pull the rom but I'll wait until you put up what your working on been holding off doing anything for that.

Totally appreciate it
[T-Mobile LG G6 ROMs, Kernels, Recoveries, & Other ] weakNPCdotCom:
No problem. probably gonna hang on to my G6 a couple more weeks too so I can finish some things up.

The new roms are uploading. Should be up later this afternoon
[T-Mobile LG G6 ROMs, Kernels, Recoveries, & Other ] ryanrod:
Thank you for the comprehensive expanlation. I really appreciate the help! This is the best thing that I have read regarding encryption anywhere. It may be a cool idea to have a general sticky thread for the whole forum for this kind of stuff.

I currently have the ecryption passcode prompt in twrp. So that means my data was encrypted somehow. Here is what I did: When I flashed FullStock I formatted the data partition and then did option B in your example (went to mount and then manually selected system/data and then flashed FullStock) without rebooting twrp. Then I rebooted into twrp to flash Magisk. When flashing Magisk I did not pay attention the logs so I don't know if the force-encrypted message came up. I will keep an eye out for messages regarding encryption next time.

Next time I will try rebooting into twrp after formatting the data partition ( your option A). Then flash FullStock and Magisk in the rebooted session of twrp.

I can see that the secure start-up setting is not enabled on my phone. It is under settings/personal/fingerprints & security. It is set to "No, thanks." I understand that this is serparate from a lockscreen pin.

I will definitley format data and re-flash FullStock and Magisk the correct way (Option A). Then I will flash the SysBoot zip on top of that. I can do this as soon as my backup phone is running again and then give you an update. Thanks so much for the support and the work on these zips!
[T-Mobile LG G6 ROMs, Kernels, Recoveries, & Other ] weakNPCdotCom:
[MENTION=3756477]Ken C[/MENTION] All of the 11h files are up. I put two 20a files up. One stock and one rooted. The 11g rooted rom is uploading and I will update the OP when it's up.
[T-Mobile LG G6 ROMs, Kernels, Recoveries, & Other ] weakNPCdotCom:
You're welcome man. and btw, if you are gonna flash a SysBoot rom and Magisk, go with the Rooted one. You won't have to flash magisk because its flashed with the rom and you'll be all set.
[T-Mobile LG G6 ROMs, Kernels, Recoveries, & Other ] weakNPCdotCom:
UPDATE

Additional File Added for 11G

SysBoot w/Patched Kernel + Magisk Root

Enjoy!

​
[T-Mobile LG G6 ROMs, Kernels, Recoveries, & Other ] Ken C:
Dude, thanks for this.

And your explanation on how you been going about rooting and flashing etc. I agree that they should probably be a sticky or if there's a way for you to copy them to the beginning of this thread. Your the first person to say what to do and what we should expect, most others are do this, do that, but never mention what we should see while doing it. I copied your instructions and saved them. I don't think I was doing anything totally different that I can notice right off.

I pulled the file above this post, and if I get you right all I have to do is flash that zip and it should set everything right?

If not that's fine, the instructions are the biggest deal for me. I really do appreciate what you've been up to. (And putting up with all my questions) It would take me longer because of all the research I'd have to do just to get up to speed and that's not an option with a 3 month old in the house.

I thank you and I believe my wife does too.
[T-Mobile LG G6 ROMs, Kernels, Recoveries, & Other ] weakNPCdotCom:
If the info I typed up is really that helpful then I could probably add a hidden section to the OPs that explains it all. I worked in Tech Support for years before I started working in development so I guess I have been tuned to explain things that way.

Anyhow, I don't know what your exact setup is at the moment. But if you aren't running a full stock setup already then you'll need to make sure you flash a FullStock zip for whichever version you are wanting to run.

If your LG boot logo is a small circle on a black background then you would have either of the nougat bootloaders. but if it's the lg thinQ boot logo you have the 20a bootloader.

Either flash FullStock first for the SysBoot rom you want to flash (which is what I recommend because it flashes modem and everything) or flash SysBoot for whatever bootloader version you are running. SysBoot only includes boot and system, so if you don't have the right bootloader it will not run right.

But to answer your question, the steps will be to

Format data, reboot to recovery.

wipe system data cache and dalvik

flash FullStock if you aren't already on stock or you just want to be safe with a full flash

then flash SysBoot w/Root and you'll be all done. Don't need to flash magisk. just reboot to system.

Also, FYI, when I test flashed 11h it was android 7.0 just like 11g. So I don't really know what the true differences are between the two.
[T-Mobile LG G6 ROMs, Kernels, Recoveries, & Other ] Ken C:
I'm pulling the full stock zip now. Got that sysboot + mroot file you posted yesterday already. So flash full stock, then the file I just mentioned and boot to system?

Shouldn't be a problem and thanks again.
[T-Mobile LG G6 ROMs, Kernels, Recoveries, & Other ] weakNPCdotCom:
Yes sir
[T-Mobile LG G6 ROMs, Kernels, Recoveries, & Other ] Ken C:
Cool
[T-Mobile LG G6 ROMs, Kernels, Recoveries, & Other ] weakNPCdotCom:
[MENTION=3756477]Ken C[/MENTION]

How did it work for you?
[T-Mobile LG G6 ROMs, Kernels, Recoveries, & Other ] Ken C:
Been a madhouse around here lately, my plan (without outside influence) is to do it today at some point. I'm on a very old version of aex with his older sperate kernel and as the days go by I'm getting more and more freezes and random reboots. (Kernel panics I'm guessing at this point.) So it'll be done when there is time today. May even be in the middle of the night so I can do it with some peace and no distraction from your instructions.

---------- Post added at 10:36 AM ---------- Previous post was at 10:34 AM ----------

Also been trying to fix a car speaker without having to go and buy a new set for one speaker. You know, if it isn't this, it'll be that type of deals. I'll drop a post as soon as i do though
[T-Mobile LG G6 ROMs, Kernels, Recoveries, & Other ] weakNPCdotCom:
no worries man I know how it goes. just checking up on you.

if you flash these they work well with AEX 5.8. I also flashed the Nebula Kernel but I honestly don't notice much difference between it and stock.
[T-Mobile LG G6 ROMs, Kernels, Recoveries, & Other ] Ken C:
Well speaker is back in the car and seems to sound better. I'll know on certain songs where the bass is exactly right. Played "Immigrant Song by Zeppelin" and didn't hear anything off so maybe it'll be a good day for it to happen.

Lol

And thanks for that extra bit of info just now
[T-Mobile LG G6 ROMs, Kernels, Recoveries, & Other ] Ken C:
Got one last question before I commence with this it may mean nothing but I noticed it and thought it could be worth mentioning.

In you instructions from the other night you say to flash the full stock zip before doing anything else. Do you boot it into system after for it to set things up? Give a chance for all the code to do it's thing and settle down before continuing with the rest? Or are you flashing one on top of the other in succession?

I want to say that back in the day we would let a newly flashed rom settle itself before moving on. Kinda like aex and magisk first then flash the kernel?

It seems as if they're sperate flashes and to different parts of the system But I thought I'd better ask first just in case.

---------- Post added at 04:23 PM ---------- Previous post was at 04:20 PM ----------

I'm gonna owe you a beer for all this man. You in Florida by any chance? Lol
[T-Mobile LG G6 ROMs, Kernels, Recoveries, & Other ] weakNPCdotCom:
lol nah one state away in GA. it's no problem. but to answer you

No, don't boot to system after flashing FullStock. You flash FullStock to get everything on there. Bootloader, modem, system, etc. Then you actually want to do a wipe of system, data, cache and dalvik since you are flashing the rooted sysboot which has been deodexed. After flashing SysBoot with Root, you can then boot to system.

You'll be starting up with a version of stock that is significantly smaller in size and magisk + magisk manager will already be set up and ready to go
[T-Mobile LG G6 ROMs, Kernels, Recoveries, & Other ] Ken C:
Thanks man like I said just wanted to be sure. Baby is sleeping so I could theoretically get away with it now
[T-Mobile LG G6 ROMs, Kernels, Recoveries, & Other ] Ken C:
Its up and running. Everything seemed to go well. I got the Android starting guy and the system was wanting to update the os. But I'm booting to recovery fine.

Oh ya I keep reading stuff about vendor and system partition mounting. Should those two be ticked when I boot into recovery? because they aren't, I can get system to tick but not vendor. It's another of those just checking things thing
[T-Mobile LG G6 ROMs, Kernels, Recoveries, & Other ] weakNPCdotCom:
Yeah definitely dont accept any OTA updates. There is probably a way to disable those notifications, but im not sure how off the top of my head. You will probably end up right back where you started if you accept one.

I have never tried to mount vendor in TWRP. The only reason to really use that partition would be for backups. Zips that are flashed with TWRP should be able to mount vendor just fine. Magisk actually mounts vendor when it's flashed, so if it wasnt able to you would have seen an error flashing it. Vendor is actually a part of System anyway, so I wouldnt worry about it too much.
[T-Mobile LG G6 ROMs, Kernels, Recoveries, & Other ] weakNPCdotCom:
Glad you got it working!
[T-Mobile LG G6 ROMs, Kernels, Recoveries, & Other ] Ken C:
[MENTION=9374982]weakNPCdotCom[/MENTION]

And neither stays ticked after a reboot. Think you were the one mentioning that you had to mount system manually before being able to flash something?

So far nothing strange. Tb pro doesn't seem to want to uninstall anything (magisk debloat script seems to work) but I do have it saving to the sd card instead of internally which I believe was always the point of that app. And I couldn't do that before, app wouldn't write to it from there but I could move stuff to the card manually through es file explorer.

I found magisk interesting since I'm not seeing the preserve encryption deal ticked. That I thought you'd find interesting. I believe that's what you were after with some of this.

I caught your last post.

Lol ya I'm glad too. (I've never had anything be this big a pain in the sack) Maybe this post will change that. Just wanted to let you know what I'm seeing as I go through it since all this stuff in here is your thing, let me know if you want me too look around while I'm in here.

I'm going to make an assumption that from this point I should be able to flash whatever and be ok. Going to back all this up in a few. Would it be worth to do the laf replacement? I'm thinking yes so I'll always be able to run that way if necessary.

Its definitely appreciated. so far I think beyond root you've been doing the stuff that's needed for this device.

Not to mention you put up with me for how long asking you stuff?
[T-Mobile LG G6 ROMs, Kernels, Recoveries, & Other ] weakNPCdotCom:
It's all good man. Honestly through this whole process it pays off since I can use it too lol.

I wouldnt worry about system being mounted by default in TWRP. That is how mine has worked too.

I patched the boot image of the rooted rom to remove dm-verity and force encryption, and with it doing that and magisk all at the same time... that might have actually been the magic combination to keep it from encrypting your data. All of these things are good signs to me.

Personally I am keeping TWRP on my laf. If for any reason I lose it on recovery, I can just boot to laf and flash recovery again. Having the StockLAF zip on your phone for convenient access if you ever want to restore DL mode is probably not a bad idea though. Just boot to recovery and flash it when the time comes that you need it. That's just my thinking. I dont want to lose BOTH laf and recovery one day because i had a doh! moment and then have to go through this whole process.

TWRP on LAF, on recovery, and having root are all backup plans in case you lose 2 of 3. If you lose all 3... well let's hope that never happens lol
[T-Mobile LG G6 ROMs, Kernels, Recoveries, & Other ] Ken C:
[MENTION=9374982]weakNPCdotCom[/MENTION]

Just wanted to let you know that everything seems to be good. Still haven't restored a backup and there's the mounting system thing prior to flashing anything through twrp. But no weird hiccups.

I saw you got 20a up there now. Has anybody tested that yet? If it runs as well as this does I may go to it. Really like the camera on that build.

I'm all for custom stuff but that ran well without all the garbage in it. Just need to get substratum to work, even on this.
[T-Mobile LG G6 ROMs, Kernels, Recoveries, & Other ] weakNPCdotCom:
glad to hear that man. twrp does the same thing for me but normally things flash fine without me manually mounting system.

Im not sure about the 20a zips being tested, but they should work just fine. FYI though the root one is not deodexed so there is nothing special about it other than being pre-rooted. I ran into some issues with sepolicy on oreo and still haven't got back to it. I plan on trying to deodex it again soon.

If you do try that one you should flash Eliminator74s full 20a stock zip first to get the bootloader and modem otherwise it won't run.
[T-Mobile LG G6 ROMs, Kernels, Recoveries, & Other ] ryanrod:
These zips work great but with one caveat. I don't know if it is me somehow and I was hesitant to write anything because I don't want npc to have to feel like he has to do more work. I think this is fine for 99% of people. That being said, bluetooth volume is still really low with these zips. It is about half the normal volume at max and the bass is missing. I am not sure why... I flashed FullStock and then SysBoot on top of that. I followed all the correct procedures. Format data, reboot to recovery, wipe system/data/cache/dalvik cache, flash FullStock, wipe system/data/cache/dalvik cache again, flash SysBoot w/ Magisk, wipe cache/dalvik cache and boot into system. After initial setup, installed Magisk manager and root worked perfectly. So the zips work great, just not bluetooth in my testing...

In the end I am really grateful for the stock 11g laf. This is the next thing I can use to flash the original 11g kdz and start rooting from the ground up. Bascally, I want to run 11g rooted because it is so stable (everything works) and it eats less battery than anything else (including aex in my testing). I haven't tried 20a, but I hear that it eats battery life quickly. Though, those 20a zips npc made may be another thing to try before going the kdz route. Although I don't quite know if I need to upgrade to 20a via kdz first before flashing those zips. Maybe I just need to flash the 20a bootloader zip and then the rest of the 20a zips will work? Either way, thanks npc. :highfive:

Oh and one little fun thing I learned.... This probably doesn't belong in this thread, but it may help someone. If you are restoring apps using Titanium Backup and when selecting your backup folder on external storage it asks you something like, "It looks like you have 78 backups in this folder. Do you want to move them somewhere right now?" DO NOT SAY YES. Lol. I did this and everything disapppeared into thin air. The backups were not moved to internal storage or whatever, they were just deleted. My heart dropped into my stomache and I was in hell :good::cyclops:. I didn't have another backup so I had to restore a nandroid backup and then backup all the apps to get everything back again, then reflash everything. The way I got Titanium Backup to work right was by selecting "Document Storage" as the storage provider and then select the external sd card root directory, then you can pick the correct folder. Phew.
[T-Mobile LG G6 ROMs, Kernels, Recoveries, & Other ] Ken C:
Don't have that Bluetooth issue myself but then I run viper on everything. Also with tb you can move them from internal to external storage. After this it's correct and on external but I had to do it that way once before. Maybe it needs a tb folder already in internal?
[T-Mobile LG G6 ROMs, Kernels, Recoveries, & Other ] ryanrod:
How do you get viper to work? I was totally trying to use it to fix the bt volume issue except I can never get the driver to install, it always fails. The last time I tried it, system ui crashed at boot and made the screen go black.
[T-Mobile LG G6 ROMs, Kernels, Recoveries, & Other ] Ken C:
the one I'm using is the magisk module version 1.7.4 and pick old each time it asks during flash through magisk itself not recovery
[T-Mobile LG G6 ROMs, Kernels, Recoveries, & Other ] weakNPCdotCom:
That's interesting. I am honestly not sure why the bluetooth audio would have issues. Unless you used the deodexed rom the entire system image is untouched and a straight copy from the KDZ. But, I can tell you that I also have had bluetooth volume issues with certain apps ever since I got this phone. Most of the time it would be youtube, or I would be listening to music while using GPS and when the GPS app reduced volume to speak, then all of the sudden my audio volume was super low and couldnt be fixed without rebooting.

Regarding 20a, flashing the 20a bootloader first will allow the 20a sysboot rom to work. However, you might want to go ahead and update the modem too. So either flash bootloader and modem and then sysboot, or flash Eliminator74's complete 20a zip, wipe system and flash sysboot.

Thank you for your feedback on these. And if there is ever a problem, don't hesitate to mention it. I dont want to supply crappy software for everybody :)
[T-Mobile LG G6 ROMs, Kernels, Recoveries, & Other ] Ken C:
Only time I have an issue is when I'm watching something and a call comes through I'll get a beeping nose that won't go away till I disconnect and reconnect bt