yashsingh1/xdaforums huggingface dataset:
[G2 Android Development] Tinchoska:
If thieves know how to get into recovery you think he'll not know how to flash stock firm? What you request is not useful....
[G2 Android Development] Doc Sniper:
Finished testing. I have good and bad news for all of you with encrypted data partition.

The bad news are, TWRP 2.8.3.0 cannot handle encrypted partitions at all. I formated and encrypted my data with LP (CM 12 unofficial) but only blastagators TWRP 2.8.2.0 was able to decrypt it, stock 2.8.3.0 not.

The good news are, I restored my KK (CM 11, which was backuped before) without changing the encryption and KK is working with the encrypted partition from LP without problems.

So something in TWRP has to be changed for correct decrypting operation .....

But I had another problems with the different recoveries, TWRP 2.8.2.0 was unable to format the encrypted data partition (back to unencrypted) only 2.8.3.0 could do the job fine.
[G2 Android Development] AlexVipXDA:
So if i have jb bootloader i can use this twrp too?
[G2 Android Development] rmsinaga:
Please read OP #3&4 to answer your question.
[G2 Android Development] Doc Sniper:
I think so :D

---------- Post added at 15:20 ---------- Previous post was at 15:06 ----------

Maybe my own fault not of the recovery :angel:
[G2 Android Development] blastagator:
If you restored the backup from before encryption, the partition is no longer encrypted.
[G2 Android Development] Doc Sniper:
Are you sure ? Because the backup is a gzipped tar archive. And how should a restore of data change the encryption of the whole internal storage partition ? If that would happen all data of the phone would be lost before starting the restore.

My phone shows me that it's encrypted and I'm sure the encryption of LP isn't lost because I used another password. And this new password "survived" the restore. ;)
[G2 Android Development] blastagator:
Interesting. Good to know. I thought TWRP backed them all up as images.
[G2 Android Development] blastagator:
What model again? NM - found vs980
[G2 Android Development] pattonsj:
Well, right now it feels like a vs979.5...
[G2 Android Development] blastagator:
It is compiling. Compiling d800 first with the tweak (to make sure it didn't break anything). Then I'll link you the vs980 to test with decrypting.
[G2 Android Development] pattonsj:
Sounds good. Hopefully you got it.
[G2 Android Development] blastagator:
Well I didn't break it at least. Test link to soon follow.
[G2 Android Development] blastagator:
Posted : https://drive.google.com/folderview?id=0B_5fX5B47GiwQkM2R3lNT1Ixb00&usp=sharing

Version is 0.8.3.1
[G2 Android Development] pattonsj:
Downloaded. I'll let you know soon.

---------- Post added at 10:19 PM ---------- Previous post was at 09:56 PM ----------

After I flashed the .img I booted into recovery. It asked me for the password to decrypt and when I entered it the screen flashed and it said the password was invalid. I tried a few things but it kept saying the same thing.
[G2 Android Development] blastagator:
What did you use when you originally encrypted? / What ROM?
[G2 Android Development] pattonsj:
The first was rooted stock then I had to decrypt and I flashed xdabbeb's rom. When he released 2.2.0 I decrypted and flashed it then encrypted again. When he released 2.3.0 I tried to decrypt and it wouldn't. I was just decrypting add a workaround and now that won't work.
[G2 Android Development] blastagator:
What created your current encryption?

Tl;dr Basically - the crypto key has to be in the /encrypt partition or it won't work.

I might just build all versions like this and see if it works for anyone. I set the fstab to check that partition, as that is usually default for our phone. If whatever did encrypting stuck the key somewhere else, it'll just keep saying bad password.

Edit - going to try one more tweak.
[G2 Android Development] blastagator:
Try again: https://drive.google.com/folderview?id=0B_5fX5B47GiwQkM2R3lNT1Ixb00&usp=sharing

Ver 0.8.3.2
[G2 Android Development] pattonsj:
This time it took the password but it said e:unable to mount storage and it also said full selinux support and then said finishing boot something but at the top it said trying to decrypt using your password.
[G2 Android Development] blastagator:
And? Those are potentially acceptable messages. Did you try to access your stuff?
[G2 Android Development] pattonsj:
It would not make any progress from there. It just say there when the status bar at the bottom and did nothing.

---------- Post added at 11:43 PM ---------- Previous post was at 11:34 PM ----------

It would not make any progress from there. It just sat there with the status bar at the bottom and did nothing.
[G2 Android Development] blastagator:
Hmm... well I'm back to being stumped then :p I guess we wait for some more upstream changes. Sorry!
[G2 Android Development] pattonsj:
No problem. I think you are on the verge of the issue. It's just like when I enter the password it across it but doesn't start the process.
[G2 Android Development] Doc Sniper:
You are right for all partitions except system and data, the two are backuped as tar gz.

boot.emmc.win: Android bootimg, kernel (0x8000), ramdisk (0xf813a70), page size: 2048, cmdline [...]

data.ext4.win: gzip compressed data, last modified: Fri Dec 26 12:01:35 2014, from Unix

efs1.emmc.win: data

efs2.emmc.win: data

system.ext4.win: gzip compressed data, last modified: Fri Dec 26 12:00:53 2014, from Unix

After gunzipping system:

system.ext4.win: POSIX tar archive (GNU)
[G2 Android Development] blastagator:
Version 2.8.3.1

December 27, 2014 (2.8.3.1)

-Tweaked the fstab file

++Changed partition type to ext4 from auto - this should fix broken Format Data / Factory Reset. However, f2fs is still supported. My f2fs cache partition still mounted in twrp even though fstab was set to ext4.

++Added the encrypt partition to the fstab. This should enable twrp to mount encrypted /data partitions. I don't know if this is the problem or not. The one person I asked to try it didn't have any luck. Please others try and let me know if it works or what errors you get. NOTE: An encrypted f2fs /data partition will probably NOT work in this configuration.

Edit: All versions posted.
[G2 Android Development] saarxee:
I have v2.8.3.0.

Need to install 2.8.3.1?
[G2 Android Development] Doc Sniper:
Short: 2.8.3.1 is working fine. :D

Long: With 2.8.2.0 decryption was working, 2.8.3.0 mod and stock not, now I installed the 2.8.3.1 on my d802 and after entering the recovery I'm asked for my password .... and .... decryption is successful. :good:

So I can confirm that an LP encrypted partition is working with your modded 2.8.3.1. What was it, the inclusion of the partition to fstab ? We should report this to upstream.

Well done, have a nice weekend. Thanks ;)

---------- Post added at 18:52 ---------- Previous post was at 18:47 ----------

It's just a few clicks away ;)
[G2 Android Development] blastagator:
There is no upstream to report this to. It was problem in my device tree :)
[G2 Android Development] Doc Sniper:
I was just thinking about reporting it to the TWRP issue tracker, because the stock TWRP 2.8.3.0 seems to have the same problem with mounting encrypted data partitions.
[G2 Android Development] dorimanx:
Well done, i am proud to be your user :)

Sent from my LG-D802
[G2 Android Development] NEROVINCIO:
after flash 2.8.3.1 I have lost gallery app how can fix it?

edit: fixed :) lol
[G2 Android Development] jeebspawnshop:
+1!
[G2 Android Development] pattonsj:
Did you change anything from when I tested it?
[G2 Android Development] blastagator:
Glad to give back to the community!

I don't think so. I'm not sure why yours isn't working. Try the new version. If it hangs, Idk what to tell you :\ What ROM generated your current encryption?
[G2 Android Development] blastagator:
What ROM did you use to encrypt? And what phone model?
[G2 Android Development] pattonsj:
I don't think so. I'm not sure why yours isn't working. Try the new version. If it hangs, Idk what to tell you :\ What generated your current encryption?[/QUOTE]

New version asks for password but doesn't decrypt. Xdabbeb's 2.2.0 generated encryption.
[G2 Android Development] Doc Sniper:
ROM: CM 12

Device: LG G2 (D802)
[G2 Android Development] keyman91:
Hi blastagator, is it possible for you to make a build for the D802T (Australian variant)? The sources are provided by LG here.

Nevermind, tried using the D802 version and it worked. Thanks!
[G2 Android Development] HLyons:
The link in the OP has been offline for the last 2 days. Dont see the replacement Google Drive link, can anyone host for a few minutes so I can get on the latest?
[G2 Android Development] ffejy462:
Link worked fine for me... Tapatalk has issues with external links (open in browser or use crappalinks xposed module).

LG G2 xdabbeb's vs982.5
[G2 Android Development] HLyons:
Tried with a different browser (This is on my mac). http://blastagator.ddns.net. I'll try from my phone

---------- Post added at 07:28 PM ---------- Previous post was at 07:21 PM ----------

well I'll be damned. I guess the link doesn't like mac's (Doesnt make sense to me). No problem here. :D
[G2 Android Development] blastagator:
Anyone else have this issue? (I have no idea why this would be the case :p)
[G2 Android Development] sdeft:
hi blastagator

I can't get adb sideload to work when I push a file from my pc. I get error: closed. Have you tried it yourself ?

Update

Managed to make it work by issuing adb usb command prior to adb sideload.
[G2 Android Development] dorimanx:
mirror:

http://www.dorimanx.com/LG/recovery
[G2 Android Development] Apex i ITR:
Thanks
[G2 Android Development] Choristav:
I'm getting error:closed when using sideload and protocol fault (no status) when using adb usb previous to adb sideload.

This is, in both cases, with the recovery set to sideload mode on d806 with .3.1
[G2 Android Development] blastagator:
Sorry, I couldn't get your kernel working, so went for next best thing and just got the thermal protection from AICP.

If I had to guess, I would guess TWRP doesn't play nice with your kernel since your kernel isn't intended for AOSP. I'm really not sure though!
[G2 Android Development] lascoul:
Mr. Thank for your great work. Can you explain how to get the f2fs on your partition. And with which rom it work?
[G2 Android Development] blastagator:
The reason I changed the -o mounting options was because I don't think f2fs supports those options. Specifically noauto_da_alloc. Although, I didnt fiddle with it too much. However, if the option isn't supported by the filesystem, the mount would fail.

Just as a heads up.
[G2 Android Development] blastagator:
At this point I don't think anything has support baked in, right out of the box. Hence my script for tweaking your kernel ramdisk to add support. I, personally, have only converted my /cache partition. I made this recovery to hopefully spur more development in the f2fs realm for our phone. It looks like Dori will be adding full support in his next release, so it would probably just be easiest to wait on that release since tinkering with the ramdisk isn't exactly user friendly.

Dori is the man and releases very regularly, so I doubt you'll be waiting long :)
[G2 Android Development] blastagator:
d802 is up :)
[G2 Android Development] je2854:
Hopefully Patient 0 is getting his kernel for the VS980 today.

Working closely with [MENTION=2376110]dorimanx[/MENTION] and [MENTION=5031300]blastagator[/MENTION] has been such an honor!
[G2 Android Development] risis78:
Is there a version for F320L?
[G2 Android Development] jeebspawnshop:
A quick visit to the FIRST POST of this thread will reveal a download location. Click it.

Then see if your model is listed.

See how easy that was?
[G2 Android Development] dorimanx:
Thats ok, all i was really needed is low temp, and mtp working, and its all there now in your recovery :)

I have noticed that its take more 5 sec to start than original, but its has no delay after kernel install and reboot and that is a big + so its my development helper now, this recovery will be tested and booted 200 time for sure :) as i need to test kernel things :)

Thank you for hard work and dedication.

Sent from my LG-D802
[G2 Android Development] dorimanx:
Its supported, i have checked :)

Will mount.

Sent from my LG-D802
[G2 Android Development] blastagator:
I'll see what I can do. Original project did not support F320, but I'll tinker and see. You might have to be guinea pig though :p
[G2 Android Development] blastagator:
Please try:

[Link removed, f320 support coming soon]

May not work, make sure you know how to fix broken recovery before trying :p

Please let me know ASAP if working or not so I can publish or make further tweaks to try and fix.
[G2 Android Development] je2854:
With full format of F2FS and xdabbeb 2.2.0 it's asking for a pin/password... Any idea?
[G2 Android Development] blastagator:
Either your boot.img doesn't support f2fs, or you encrypted /data (which isn't currently supported).

Those are my best guesses.
[G2 Android Development] luv2increase:
How can we convert Stock LG ROMs to work with this recovery and Dori's kernel. As of right now, I don't believe anyone has actually been able to use f2fs on any stock LG based ROM.

Now we havethe recovery and the kernel. Maybe the extremely intelligent peoplewbo made this recovery possible can bow helpmake f2fs compatible stock based LG ROMs a reality.
[G2 Android Development] blastagator:
I am working on a brand new build incorporating new TWRP build from the ground up, instead of franken-build which is what the current build is. Will include full F320 support and newest source code!

Thanks [MENTION=4557482]Drgravy[/MENTION] !
[G2 Android Development] je2854:
Your latest version has the screen off bug.

I have to change the setting to not timeout the screen. Can you fix this in the next version?
[G2 Android Development] blastagator:
Really? Tap to wake is working fine on d800... hmmm.
[G2 Android Development] je2854:
Ive tried it several times...

Although it was after converting...

Do you think the conversion might have something to do with it?
[G2 Android Development] blastagator:
Oct 20, 2014 (2.8.0.2)

-Because incrementing a digit by 1 is always better!

-Full repo sync and upstream merges on all sources.

(That is - TWRP source, device tree source, g2-common source, and aicp source are all the newest available!)

-Compiled completely from scratch. (No need for hodge-podge as previous version.)

-TWRP now shows CPU temperature.

-F320 variant should work now.

(Which is nice for F320 users since it looks like it has been awhile since getting a new version of TWRP!)

-Simplified file naming convention for the downloads.

**All versions except d800 [which is available now] will be compiled over night. I will post the .img files in the morning and the .zip after work. (~5PM EST)
[G2 Android Development] sdeft:
I am on D802. Just tested this a bit more and although adb sideload is actually sending the file I get "* failed to read command:" at some point of the sideload process. So adb usb helped a bit but not fully solved it! Have you tried sideload with older versions of the recovery ?
[G2 Android Development] hypnz:
Happy New year guys!
[G2 Android Development] Choristav:
I came from .2.0 and that one worked just fine.
[G2 Android Development] falleny:
waiting for support isai L22
[G2 Android Development] blastagator:
I post my sources. Stop waiting and do it.
[G2 Android Development] Androloid:
I am using KK kernel and want to install kernel which is not bumped. Does twrp bump kernel, or I have to bump it myself before flashing and how to do that?
[G2 Android Development] blastagator:
twrp does not bump things. look up "open bump" - python script for bumping images.
[G2 Android Development] blastagator:
Try Dees_Troy's version of 2.8.3.0 - if it doesn't work on there, we'll just have to wait for him to fix. He is very active adding git commits!

Related: I saw there is at least one git commit related to fixing possible decryption bugs. Hopefully that will help people with decryption problems on the next release.
[G2 Android Development] sdeft:
Hi and Happy New Year to all

Regarding adb sideload. twrp-2.8.1.0 works without the need of adb usb and does not give error during the sideload. From 2.8.3.0 you need to use adb usb and you will also get an error during the sideload. However the error is not "real" as the zip is installed successfully. This is from the changelog "The sideload may spit an error on your PC side, but the zip should install just fine on your device".
[G2 Android Development] A Sornchai:
OK, Thank you. But I can't do it.
[G2 Android Development] blastagator:
Sorry I was feeling agitated from other dumb questions that day. I haven't been able to find device tree, vendor blobs, and kernel for L22. Therefore, I haven't been able to build it.

Not much I can really do about that. Seems like no one has support for it, probably due to the lack of the above three things, and seeming lack of people with an L22.

edit: I found some stuff, but it isn't in English, I'll see what I can do :p

edit2: Does LGL22 have external SD card?

edit3: Looks like it does. I've done everything except make the kernel config. I'll post a test build within the next couple of days. Will need someone to test it ;)

edit4: Ripping my hair out trying to get a working kernel config.
[G2 Android Development] A Sornchai:
Thank you verry much. I need to test it when you done.

Lgl22 have external SD card up to 64Gb.

---------- Post added at 05:02 AM ---------- Previous post was at 04:39 AM ----------

L22 OpenSource Code Distribution.

https://www.lg.com/global/support/o...tegoryId=CAT00000001&osCategoryId=CAT00000002
[G2 Android Development] mohan24:
Do I just flash a zip to install this? I'm coming from cloudy 2.1 d800 dorimax 9.4. Do I need to update my bootloader to kit kat or is it already on kit kat since I installed kit kat first using the tot/kdz method. I'm on twrp 8.1.0
[G2 Android Development] jesssiii:
Just flash the zip, [MENTION=6033914]mohan24[/MENTION].

LG G2 VS980
[G2 Android Development] MangeH73:
You dont need to update bootloader. Infact you should not. If you want to update bootloader you first need to flash bumped twrp.
[G2 Android Development] mohan24:
Thanks it worked I was reading all the previous posts and it seemed like their were a lot of problems and prerequisites.

---------- Post added at 02:32 PM ---------- Previous post was at 02:26 PM ----------

What's the advantage of updating the bootloader? I think I'm on kitkat bootloader but when I manually boot into recovery it's the jellybean process of having to press the power button not scrolling with the volume buttons like the kitkat one.
[G2 Android Development] noduff:
I installed via Flashify on a freshly rooted D803 4.4.2 stock (no other recoveries or custom roms prior) and ran into errors when performing a wipe.

TWRP launched fine and a factory wipe had no issues however wiping the data portion failed. After this I tried loading the latest slimrom build and I was stuck in the "Security Error" screen at startup.

I didn't see any posts in here regarding this issue however I'm hoping this has been seen before. I think it's an issue with TWRP as the error happened prior to loading the ROM.

I've since had to flash back to stock to regain functionality so I'm at square one. Any recommendations or insight would be welcomed. Thanks all.

D803 (Telus Stock 4.4.2)

[TWRP][2.8.3.1][2014.12.27] (via Flashify)

Rooted using: Towelroot
[G2 Android Development] Krenol:
I would first install autorec and then install the latest twrp, maybe this does the trick :)
[G2 Android Development] MangeH73:
Secure probably mean thath you are on kitkat bootloader and dont jave a bumped kernel.
[G2 Android Development] noduff:
Ahhh, so it's because of the KK bootloader? I guess I should be looking for more info on Bumped kernels or just use Autorec with the JB bootloader?

The whole reason I was avoiding Autorec and used this method was to keep as much KK as possible to avoid the annoying knock-on breaking that was happening.
[G2 Android Development] MangeH73:
You can bump the kernel yourself an stay with kk bootloader
[G2 Android Development] noduff:
I will have to read up on bumping...I'm out of the loop on that. I'll go ask in the noob thread lol. Thanks for the info folks.
[G2 Android Development] mohan24:
After installing 2.8.3.1 from 2.8.0.1 I can't install zips I tried installed Resurrection rom but it failed it said Error flashing zip ' /sdcard/Download/RR_d800.zip

Updating partition details... done

I restored my cloudy 2.1 rom I updated to 2.8.3.1 to try lollipop as I heard that you have to update from 2.8.0.1 to update to lollipop roms.
[G2 Android Development] blastagator:
Were you trying to use f2fs on /data? No kernel supports that so ROM thinks /data is encrypted when formatted as f2fs. Format as ext4.

If you are on the new bootloader, most zips won't work. Loki is used to flash in those scripts and loki knows the KK bootloader isn't supported so it kicks out an error and doesn't flash. Downgrade BL or use a bumped zip.
[G2 Android Development] mohan24:
If I downgrade to jellybean bootloader I'll be able to install all roms? How do I find bumped zips?
[G2 Android Development] mohan24:
How do I format as ext4 I think I'm on kitkat bootloader since I installed stock kitkat and then rooted.
[G2 Android Development] aTanCS:
Hi, thank you for your work. Mounting encrypted data still doesn't work with 28.3.1. Encrypted with CloudyG3 ROM on D802. It says: "E: Failed to decrypt data.".
[G2 Android Development] blastagator:
Please try official twrp (http://xdaforums.com/showthread.php?t=2449679) and let me know if that version works or gives same error.
[G2 Android Development] aTanCS:
I did a moment ago. Official TWRP doesn't even ask for a password. Whe I try to mount Data manually in a menu, it says: "E: Unable to mount '/data'". And also before mounting there are errors like "E: Unable to mount /data/media during GUI start up", "E: Failed to get default context and file mode for storage files".

UPD: So with the official TWRP I can't even mount USB-OTG, so now I can't flash your build of TWRP. Hm. I guess I will have to decrypt it.
[G2 Android Development] :
Have the guy asking for it try and pull his off his device using the following :

adb pull /proc/config.gz

zcat config.gz > .config
[G2 Android Development] blastagator:
Now that just makes sense doesn't it :p I shall try that!
[G2 Android Development] blastagator:
Sorry, if the official one isn't work either I'm not going to tackle it. I'm going to wait and see if official twrp fixes it in next release :) sorry!
[G2 Android Development] blastagator:
Please run the commands below and provide the .config file :)
[G2 Android Development] :
One thing to keep in mind... If he's doing this from Windows, he probably won't have zcat. He may need to send you the config.gz. On your system you'd then have to decompress it with the second command, this may also be called gzcat on your system.

This will also only work if the kernel he has is configured to have that file.

Better to try that rack your head to find one though.
[G2 Android Development] A Sornchai:
OK, I wait for and hope you done support l22 too.
[G2 Android Development] blastagator:
That comment wasn't directed to you. IF you want l22 support, do the above commands and post the file.
[G2 Android Development] pattonsj:
[MENTION=5031300]blastagator[/MENTION]

Update:I wiped and flashed 2 different roms. One rom wouldn't encrypt and the other would. Neither version of twrp would decrypt. Just letting you know.
[G2 Android Development] blastagator:
Thanks for info. It is definitely something that is still being ironed out. I think it is prudent for me to stay patient as opposed to trying to make adjustments, especially since stock TWRP is having similar issue.
[G2 Android Development] pattonsj:
Do you think that Dees_Troy will figure it out?

---------- Post added at 08:46 PM ---------- Previous post was at 08:43 PM ----------

Fwiw, before I encrypted your latest build worked flawlessly. Very nice work.
[G2 Android Development] :
Lets face it... If anyone can figure it out... Its dees_troy.