yashsingh1/xdaforums huggingface dataset:
[G Pad 8.3 Original Android Development] RaiderWill:
Gravy,

What are these guys doing that we are not.. :cool:

I still get the Secure Boot Error whether I Cold Start or Reboot.. :confused:
[G Pad 8.3 Original Android Development] Drgravy:
honestly it is nothing to worry about
[G Pad 8.3 Original Android Development] redcrash:
I agree... it doesn't seem harmful.

BTW, I installed 2.7 on top of 2.6.3.3 and later I installed one of the themes and it worked like a charm. Good job!
[G Pad 8.3 Original Android Development] fefifofum:
Where is the device repo you used to build this TWRP? Is it public?
[G Pad 8.3 Original Android Development] AndroidUser00110001:
[MENTION=4557482]Drgravy[/MENTION] would you mind updating recovery for the v510 please.
[G Pad 8.3 Original Android Development] Drgravy:
its all on my github http://www.github.com/Drgravy

yeah I suppose I could

I'll hit you with a pm tomorrow afternoon I'm gonna need some info : kernel, board naming and such
[G Pad 8.3 Original Android Development] fefifofum:
Sorry if this has already been covered, but I don't understand why I cannot install TWRP 2.7.0 directly. Isn't it possible to dd my aboot.img, patch TWRP 2.7.0 recovery.img with loki_patch and then flash the resulting recovery.lok with loki_flash? Is it mandatory to install first the recovery.lok according to my firmware version V50010x?

I just bought the gpad and I'm trying to understand this process before going through it. I also made the mistake of updating through OTA and now I have firmware V50010b, before I had V50010a. In case I cannot install TWRP 2.7.0 directly, can I install the recovery V50010a version on my V50010b?
[G Pad 8.3 Original Android Development] Drgravy:
yes you can loki patch 2.7.0.0 for your device and then flash with loki flash

or you can just loki flash V50010a then flash 2.7.0.0 in recovery (a and b have the same aboot.img)
[G Pad 8.3 Original Android Development] drzoo2:
Awesome work. Noticed the date is now correct on a backup.

Sent from my LG-V500
[G Pad 8.3 Original Android Development] cbb77:
Thanks for this, installed without issue, however...

Was just going to do a backup and noticed that I do not have an option to backup the recovery partition. Honestly, I can't say whether or not I had this option before I upgraded. I see Boot, System, Data and Cache but no Recovery??? I believe I am suppose to have this option. Any ideas why this might not be showing up?

Ok, I just reflashed TWRP using the version at this link and it gave me back the option to backup the Recovery partition. Thus I think there may be a problem / options missing from the version on this thread.

http://xdaforums.com/showthread.php?t=2641409
[G Pad 8.3 Original Android Development] Drgravy:
thanks for pointing it out

apparently I needed to add a flag for that in 2.7 (did by default in earlier versions)

anyway I'll upload a new build ** edit uploaded link in OP

personally I see no need to back up recovery, but to each their own
[G Pad 8.3 Original Android Development] cbb77:
Thank you! Just installed this and the option is there now.

Thanks again.
[G Pad 8.3 Original Android Development] EdenGottlieb:
+1

You don't have any important information you saved in the recovery (besides some minor adjustments) plus if your recovery is broken you can't restore the backup...

BTW, installed 2.7.0.0 via flashify, works great! Thanks a lot!
[G Pad 8.3 Original Android Development] aicjofs:
I didn't try for the Gpad, but the 2.7.0.0 I built for the Nabi2 didn't have the option to back up recovery and if you backed up anything the recovery got backed up as well. i.e any backup operation also backed up recovery. Do a backup without selecting recovery(now that option is there) and see if there is a recovery.win, might be built in to TWRP to always backup recovery(which seems excessive since I like the rest of you think backing up the recovery isn't necessary)
[G Pad 8.3 Original Android Development] woody1:
So, just to clarify, If I want to update to the 2.7.0.0 from 2.6.3.2, do I need to adb push the loki file first, or can I just use the 2.7.0.0 flashable file directly with TWRP (or Flashify)?
[G Pad 8.3 Original Android Development] cam30era:
You can flash directly from TWRP. I just did that last night. Worked fine.
[G Pad 8.3 Original Android Development] cbb77:
Never checked specifically but you are correct in that I do see recovery.win include in the backups. I think it was just that I had installed TWRP from a different thread that had the recovery option originally and then when I updated to 2.7 noticed it was missing. Guess won't have to worry about it going forward. Thanks again.
[G Pad 8.3 Original Android Development] woody1:
Just to confirm, this worked for me, too.
[G Pad 8.3 Original Android Development] annoyingduck:
[MENTION=4557482]Drgravy[/MENTION] if your ever bored, any chance of adding otg capability? I always feel better with it, even though we have an external sd. Nbd, only if your bored!
[G Pad 8.3 Original Android Development] Drgravy:
not bored but I left a surprise in your pm inbox
[G Pad 8.3 Original Android Development] whoamigriffiths:
Don't open your inbox!!! :P
[G Pad 8.3 Original Android Development] fefifofum:
You could also leave the surprise on the first post.
[G Pad 8.3 Original Android Development] Drgravy:
LOL good one!

testing was required first

new build with usb otg in the OP now, go get it!
[G Pad 8.3 Original Android Development] fefifofum:
Why is reboot to bootloader disabled? Is it to avoid users to mess things up?
[G Pad 8.3 Original Android Development] annoyingduck:
We have download mode, not bootloader or fastboot mode... That's why it won't work.

-VZW LG G2 VS980
[G Pad 8.3 Original Android Development] Drgravy:
well it's not like we don't have them it'that they are locked down tighter than fort knox

also I've been trying to get reboot to download mode working but no luck
[G Pad 8.3 Original Android Development] annoyingduck:
I'll see if I still have an apk for an experimental Samsung s3 reboot app that the dev was able to boot directly into dl mode via the app. Think there would be a similarity?

-VZW LG G2 VS980
[G Pad 8.3 Original Android Development] Drgravy:
nah thats ok but you can try if you want

don't think it would help with TWRP
[G Pad 8.3 Original Android Development] nsmart:
Unfortunately twrp 2.6.3.3 or 2.7.0.0 cannot handle device encryption on gpad. After I encrypted my device and booted into twrp, there is not data partition. On my Nexus 4 I get a password prompt and then it mounts the data partition. On Gpad I cannot even tick the data partition in Mount-Options and I don't get a password prompt.
[G Pad 8.3 Original Android Development] Drgravy:
yeah I never did anything with encryption so it probably isn't going to work

your the first person to ever mention anything about it so I just left it alone but I can look into making it work.
[G Pad 8.3 Original Android Development] nsmart:
Thanks for trying to fix it, I am looking forward to act as guinea pig.
[G Pad 8.3 Original Android Development] fefifofum:
Maybe one of these flags fixes encryption:

TW_INCLUDE_CRYPTO := true

TW_INCLUDE_JB_CRYPTO := true
[G Pad 8.3 Original Android Development] Drgravy:
I think I need these too

but finding the hex for FS_FLAGS is key I think

but I'm not sure cause I keep getting error can't locate footer

TW_CRYPTO_FS_FLAGS := "0x00000406"

TW_CRYPTO_KEY_LOC := "footer"
[G Pad 8.3 Original Android Development] Demetris:
Is because is not "footer" is "encrypt" ;)
[G Pad 8.3 Original Android Development] fefifofum:
I built TWRP with encryption and don't have that error in the log. Anyway my data partition is not encrypted, so I cannot test it properly.
[G Pad 8.3 Original Android Development] nsmart:
Thanks! I tried your build and everything seems to work. When booting into twrp I get a password prompt and then my data partition is mounted successfully. I did a test backup without errors.

EDIT:

I tried to wipe the already mounted data partiotion to remove encryption. First it wipes data, but not completely, because it says: "data cannot be mounted". I cannot restore to this partiition. I then flashed older twrp and removed the encryption by wiping Data. Now I was able to restore my backup with your build. So mounting encypted data and backup/restore work with your build, but wiping data (to remove encryption) fails. Testet on cm11 rom.

EDIT2:

Some more feedback: Today I tried leaked lg stock rom 4.4.2 from this thread. I enabled device encryption in stock rom and after that twrp was not able to mount data partition. So it seems that lg modified something in the encryption process. If I enable device encryption in cm11, then I am able to backup and restore with your build.
[G Pad 8.3 Original Android Development] adrenalynik:
Hi to all, there's a method to install TWRP on G Pad with stock Android 4.4.2 v50020a?

Thanks
[G Pad 8.3 Original Android Development] aicjofs:
The full stock 4.4.2 had an upgraded aboot that isn't Loki exploitable.(or if it is has not been included in loki_patch). Therefore the only method is to gain root with ioroot25 http://xdaforums.com/showpost.php?p=48709232&postcount=869&nocache=1&z=7334539103321731

Then restore 4.2.2 aboot via dd, followed by installing a loki'd twrp image.
[G Pad 8.3 Original Android Development] Palux:
hello

i have Android 4.4.2 + root by IOroot25

how i can flash TWRP Recovery?

Thanks in advance. :)

EDIT:

flash with: V50020a_aboot_twrp.zip

Work.
[G Pad 8.3 Original Android Development] jonup:
Can't you just use flashify?
[G Pad 8.3 Original Android Development] bmxje:
Where did you get V50020a_aboot_twrp.zip? Can't find it...
[G Pad 8.3 Original Android Development] Palux:
http://xdaforums.com/showthread.php?t=2698267

Only Step 3 :)

install....reboot but immediately unplug usb cable...install app "recovery tools" or CMD Windows "adb reboot recovery" e try to use TWRP :)
[G Pad 8.3 Original Android Development] tatoone:
Thanks
[G Pad 8.3 Original Android Development] bmxje:
I cant seem to figure out how to install this using a Mac running OSX. Does anybody know? I've searched everywhere!

Never mind, i found a workaround. Here is how i did it For those of you looking for a solution:

1. Root your tablet on OSX using this piece of software:

http://xdaforums.com/showthread.php?t=2623980

2. Download the correct TWRP version for your device(Super improtant since this method will not check if you have selected the right version of TWRP)

3. Unzip the file and copy the recovery.img to the root of your SD

3. After you rooted and you've copied the file to your SD Root, download Flashify and give it Root Permission

4. Open Flashify and select "Recovery Image"

5. Select "Select file" and look for the recovery.img in the root of your SD

6. Select flash and wait for the proces to be done

7. Select reboot to recovery and you're done!
[G Pad 8.3 Original Android Development] ASW1:
Were you able to use this root method for 4.4.2 ?
[G Pad 8.3 Original Android Development] bmxje:
No i used this method on 4.2.2, i did not try it on 4.4.2, because i went straight to Stock Android in stead of the LG laggy rom!
[G Pad 8.3 Original Android Development] Qefx:
Ok I updated, stupid idea I think, I get unfortunately xx stopped working. What are the buttons to get into recovery?
[G Pad 8.3 Original Android Development] annoyingduck:
[MENTION=4557482]Drgravy[/MENTION] I'm about to take the official US kk ota via the update tool. I'd like to get your otg 2.7 up and running on it. Do you know how I can go about manually DDing the 4.2 aboot? And does the recovery image need to be altered or can I just extract and DD that too? I Don't want to use the other threads .bat script because it changes some other elements that I don't want to change.
[G Pad 8.3 Original Android Development] Drgravy:
actually I have no idea, I haven't messed around with the OTA at all and I actually didn't plan to

using dd would probably work but just be very careful with that.

I may look into this this weekend if I have time things are getting busy
[G Pad 8.3 Original Android Development] annoyingduck:
For now I used [MENTION=3210378]id10terror[/MENTION]'s v2 script that flashes the 10b aboot and TWRP 2.7. I tried changing the recovery in the script to your otg one, but it wouldn't boot into recovery. There is also a weird screen dimming that happens when booting into recovery. Keep me posted if you get into it. I generally like to manually do this stuff, as adb is just fun and makes me feel smart....!
[G Pad 8.3 Original Android Development] aicjofs:
You can't just dd the recovery in the OTG it isn't loki'd yet. Why can't use just use the v2 script to go to 2.7 w/o OTG and then install the OTG.zip? I didn't examine the script but I'm surprised that replacing the img didn't work. You did remember to unplug USB?

The screen dimming happens for everyone I think.

EDIT: Ah I just read about the script in the other thread. He has a loki image you replaced it with non loki.
[G Pad 8.3 Original Android Development] id10terror:
Yup, what [MENTION=4939189]aicjofs[/MENTION] said.. You have to use a loki'ed image (which is why I named the file recovery.lok).

Anyways, here's a loki-ed image of the USB OTG version, you should be able to just drop it in place.

V500-TWRP_2.7.0.0-USBOTG2-loki.zip
[G Pad 8.3 Original Android Development] Jeanxito:
Installed TWRP 2.7.0.0 and my screen is dimmed..so this is normal?? I am on Mahdi's ROM.
[G Pad 8.3 Original Android Development] Pixore:
It is possible to install TWRP in v50020a ?

EDIT : I have found.
[G Pad 8.3 Original Android Development] Motawa88:
i use minimal adb and fastboot. it says lokiflash no such file or directory. even though i put all the files in there as stated in the first post

I am on v50020a btw
[G Pad 8.3 Original Android Development] MSephiroth:
Where i can find 4.2.2 aboot? Thank you!

Inviato dal mio MI 2 con Tapatalk 2
[G Pad 8.3 Original Android Development] aicjofs:
Grab the v50020 aboot TWRP zip from step 3 of the [MENTION=3210378]id10terror[/MENTION] thread here

http://xdaforums.com/showthread.php?t=2698267

You can pull out the aboot and do it manually or just use the runme.bat

On a side note building TWRP with the 4.4.2 kernel gets rid of the screen dimming and non booting with USB plugged in but kills the ability to use ADB in TWRP, didn't have time to dig further. Seems like it doesn't even bring up USB interface.
[G Pad 8.3 Original Android Development] annoyingduck:
That's great, and honestly with micro SD support, there is not many reasons to ever need adb in TWRP. Keep us posted...
[G Pad 8.3 Original Android Development] aicjofs:
Oh I use ADB shell al the time, annoys me to no end having to plug and unplug.

Here is a TWRP to test with 4.4.2 kernel for 10A/B aboot. It fixed the USB bootloop and dark screen for mine. OTG and ADB works, I backed up and restored, didn't try a CM/AOSP/etc kitkat to check SEpolicy.

If that's all it is then drgravy can just make the change in the official.

Install in TWRP

EDIT: Link remove. Fix is now available in drgravy build below
[G Pad 8.3 Original Android Development] Drgravy:
I actually compiled a new version for people that are on the 4.4.2 ota that [MENTION=4795150]annoyingduck[/MENTION] was testing out for me that also fixed the usb bootloop and dark screen. also had mount usb storage and usbotg working not sure about adb tho.

it seems the new ota does not play well with AOSP roms they have a weird screen dimming issue and they boot up funny so I ended up rolling back to 4.2.2 with a kdz

so I don't know . maybe I could put a separate version of TWRP in the op whether it be yours or mine

or maybe a new thread is in order

What do you guys think?

here is my build if anyone wants to try it out

test-v500-TWRP_2.7.0.1-recovery.zip
[G Pad 8.3 Original Android Development] aicjofs:
Definitely put yours in the op. Rereading my post I wasn't clear. Mine is intentionally crippled. It has product as awifi not v500 so it would fail zip installs that have assert checks until I had time to check them today. It was just to discover the fix for screen dim/USB to pass on to you anyway. I'm removing the link for mine if you have the fix in place.(Tested your build just now)

I don't think a new thread is necessary. It's just a matter of keeping the OP straight with all the versions LOL. Maybe a 4.2.2 section, and 4.4.2 section based on what your "base" LG ROM was, and a final section with the older builds. Likely when LG releases this newer kernel source it can be cleaned up to one version again anyway.

4.2.2

recovery.lok a

recovery.lok c

recovery.lok e

2.7.0.1 OTG.zip

4.4.2

2.7.0.1 OTG.zip

(most people are using [MENTION=3210378]id10terror[/MENTION] script to put on TWRP so no need for lok there, he just needs to put the fixed lok in his script)

Archive

2.6.3

2.7

2.7B

2.7.0.0 OTG

etc
[G Pad 8.3 Original Android Development] id10terror:
USB plugged bootloop and dim screen issues are fixed. Also USB OTG works like a charm.

ADB doesn't seem to be working though..

When you get something official posted I'll update my threads with links back to this thread so people are aware of the fix. :)
[G Pad 8.3 Original Android Development] annoyingduck:
I haven't tried yet, but would there be any issues flashing our current aosp builds on the full kk firmware/recovery? I would think it "should" be fine because we don't have a radio and they all boot on the jb bootstack.

-VZW LG G2 VS980
[G Pad 8.3 Original Android Development] Drgravy:
sounds good!
[MENTION=4939189]aicjofs[/MENTION] mind sharing what you did to fix adb?
[G Pad 8.3 Original Android Development] aicjofs:
I'm laying down laminate floor and have Internet down and typing this on a phone is awful. My first build had no adbd. Check /sbin in the out directory or ramdisk or installed version which ever and see if it's there, if not then that's the problem. I never did figure it out with device tree you have or the cyanogen so I made a new device tree based on a really simple version I use for the nabi TWRP and then adbd was built.
[G Pad 8.3 Original Android Development] Drgravy:
Thanks but you didn't have to do all that typing on your phone for me LOL:silly:

any way I flashed back to 50020b and tested out adb and it all seems to be working ok

tested adb sideload, adb push, and adb pull and all seem to be working

so I'll update the op with a new build, Then maybe reorganize it:)

Edit OP updated
[MENTION=3210378]id10terror[/MENTION] feel free to add the 4.4.2 build to your script or just link back to the op its your choice.
[G Pad 8.3 Original Android Development] meanoc:
Thanks for the update. It works great :good:
[G Pad 8.3 Original Android Development] id10terror:
Sounds good.. I'll link the Stock ROM threads to the newly compiled TWRP. Thanks!
[G Pad 8.3 Original Android Development] ruhelking1:
Hi, i wanted to ask if you knew a way i could put twrp on my v50020b. I bought mine from the uk and its currently rooted on the stock ota 4.4.2. I have tried several methods including this one and the one on teamwins website but have been unsuccessful. I am not sure if other people are having problems like i am but thought you could help. I could also provide screenshots of the cmd terminal if needed.

Thanks in advance. :)
[G Pad 8.3 Original Android Development] Drgravy:
use the script from this thread scroll down to step 3 http://xdaforums.com/showthread.php?t=2698267
[G Pad 8.3 Original Android Development] ruhelking1:
Thank you so much.
[G Pad 8.3 Original Android Development] id10terror:
Next I'd recommend flashing the latest TWRP for 4.4.2 from this thread's OP. I haven't updated the TWRP version in that script you used yet and the new version in this thread takes care of some bugs.
[G Pad 8.3 Original Android Development] sco00262:
where is the twrp.lok file for 4.4.2-v500-TWRP_2.7.0.1-recovery.zip ?
[G Pad 8.3 Original Android Development] cubsf4n:
Any possibility we could get TWRP on the VK810?
[G Pad 8.3 Original Android Development] Drgravy:
there isn't one the recovery.img gets loki patched during the flashing process

well the person I was woking with kinda went MIA

well if you are still on 4.2.2

if you are willing to test multiple builds and know how to pull logs the feel free to hit me up on google +
[G Pad 8.3 Original Android Development] sco00262:
No, i can't pass that process. stock by the step 2. with twrp. lok there is no twrp. lok inside my floder like adb or loki.
[G Pad 8.3 Original Android Development] pafp:
I can not install TWRP in version 4.4.2, can someone please make a video how to install.

thank you
[G Pad 8.3 Original Android Development] sillyphillie:
Can we at least get instructions on how to flash with ADB/Fastboot? There is nothing but a file on the front page.
[G Pad 8.3 Original Android Development] Drgravy:
done
[G Pad 8.3 Original Android Development] sillyphillie:
Pardon my assumed ignorance but I do not see instructions for just an ADB install of the TWRP without the loki install.
[G Pad 8.3 Original Android Development] Drgravy:
that is because there is not any please just use the script I linked to in the OP

the reason is is that you need to push the aboot,img from v50010a for loki to work and I am not going to post instructions on how to do that. it is not the safest way to do things and we need loki because our bootloader is locked. if you really need to do it manually you can find all the commands in that script. I just want to see people pushing the wrong .img to the wrong partition possibly ending up with a hard brick.

Please just use the script from this thread scroll down to step 3 http://xdaforums.com/show....php?t=2698267
[G Pad 8.3 Original Android Development] Natakranta:
4.2.2 Rooted

Hi, I have V50010a just successfully rooted with [MENTION=679042]dalingrin[/MENTION] script. ADB is working fine.

I downloaded twrp.lok for V50010a and loki-master.zip which I extracted to my PC having loki-master folder and within bin folder and bunch of files.

Following instructions I copied twrp.lok file into bin folder, where now are two files ready to be adb pushed to the G Pad:

loki_tool

twrp.lok

Now comes the part I got stucked. Instruction says:

adb push loki_flash /data/local/tmp/loki_flash

but there is no loki_flash file to be pushed to the device. Is it error in instruction and the loki_tool file from bin folder should be adb pushed to the tablet?

Or the loki I downloaded from your link is incorrect.

Please help me understand it. This loki thing is new to me as I've been using only nexus devices so far where I was just unlocking bootloader and happy fastboot flash all *,img files I wanted. Thanks!

Out of knowledge and understanding sake, what does this command do:

chmod 777 loki_flash
[G Pad 8.3 Original Android Development] Drgravy:
well it looks like loki has been updated ill have to rewrite the instructions

chmod 777 loki_flash basically just changes permissions
[G Pad 8.3 Original Android Development] Natakranta:
Please update instructions for 4.2.2 flashing TWRP. Much appreciated!

I want to be 100% sure I understand what I do and process exactly as per instructions.

The fact that bootloader is locked and I can't just fastboot flash factory images scares me.
[G Pad 8.3 Original Android Development] Drgravy:
instructions updated
[G Pad 8.3 Original Android Development] Natakranta:
4.2.2 TWRP Instructions update

Success! Thanks a million.

Attached screen from cmd. Maybe somebody will find it useful.

So now I have V50010a Updated TWRP 2.6.3.1 recovery from OP. Being still on 4.2.2 can I use it to flash the Flashable zip 2.7.0.0 with USB OTG from OP?

I am going to flash SlimKat soon, but for a day or two I want to play with LG stock ROM to out of curiosity.

Edit, now I'm going to TapTalk to give much deserved thanks. I hate the 8 thanks limit.
[G Pad 8.3 Original Android Development] Drgravy:
yes just flash :Flashable zip 2.7.0.0 with USB OTG in twrp
[G Pad 8.3 Original Android Development] heirfister:
i'm on 4.4.2 and followed the instruction but it says aboot version doesn't match..