yashsingh1/xdaforums huggingface dataset:
[LG Optimus G Pro] ApriliaM3:
Let's try and keep things on-topic and friendly here please guys...

I've had a small cleanup but the bulk of the posts I have left.

Going forward though, if things get derailed again you can expect this thread to be closed.

I've got better things to do with my weekend, than to keep coming here to cleanup a mess.

Thanks
[LG Optimus G Pro] sammyz:
Hey, just wanted to say, this thread should be closed. The bootloader has been bypassed with loki with the help of djrbliss. I really don't see how that's not just as good as an unlock.

With an unlocked bootloader, you can flash a custom boot.img and recovery.img that isn't signed by LG.

With a bypassed bootloader (with the help of loki) you can flash a custom boot.lok and recovery.lok that isn't signed by LG.

I don't really see a difference here. The Samsung Galaxy S4 users made a bounty for unlocking the bootloader, djrbliss made loki to bypass the bootloader, not many kept their pledge to pay. The users of this phone seem to be doing the same. Yes I understand a pledge is not required to pay. But to go out and say that djrbliss does not deserve the bounty money is absurd. Are you getting the same benefits as an unlocked bootloader? Pretty much so yes.

If you unlock a lock on a door with a paperclip, did you get through the door? Yep.

If you break the window next to the door and unlocked the door from the inside, did you get through the door? Yep.

I don't have anything against XDA, but allowing people to pledge and then say that this didn't unlock the bootloader so they're not gonna pay is just outrageous.

If people are going to wait around for someone to actually unlock the bootloader, or for LG to unlock it themselves....good luck to ya. Unless you can find a device made by LG with the same processor and is unlocked, you are out of luck. For my device, the users had to wait almost 12 months for a way around the bootloader. Thanks again djrbliss!
[LG Optimus G Pro] nthknd:
How would xda "make" people pay? This isn't an xda issues per se its more of an issue of expectations and fairness. I don't know what the answer is I guess that's a personal decision but perhaps bounties aren't the best ways to get devs attention. One things clear is this has become stressful for the community.
[LG Optimus G Pro] sabre31:
Not sure what world you guys live in but time is money. Nothing is for free in this world. These devs take personal time away from family and friends and have day time jobs to make these unlock for us. Kicker is Dan doesn't even have this phone or care but yet he did the unlock he deserves the bounty. Also bounties do encourage devs to unlock phones they have no personal interest in. Why shouldnt they?

Would you like if I called you do mown my lawn but yet I don't pay you because you used a different lawn mower then what I wanted you to use.
[LG Optimus G Pro] z28tovette:
Ok guys lets just focus on what needs to be done here, mrdsl, can you please update the list of pledges that have been fulfilled.

this message was brought to you by,NOTE2SKYNOTE2.
[LG Optimus G Pro] nthknd:
Agreed...man of my word donations sent to both parties.
[LG Optimus G Pro] andygold:
Maybe a bit off-topic, but is anyone working on a step by step tutorial for us newbies. I've read through both threads and seen the tech speak and supposedly simple instructions of what to try and it is all 100% over my head!!!:silly:

A tutorial like the one I used to root the phone (found here on XDA) would be greatly appreciated by those like me who have absolutely no idea what we are doing (but we are learning). I've jailbroken all my iPhones since 2009, but that was from using someone else's work, along with a step by step tutorial....
[LG Optimus G Pro] Funk2641:
Completed my pledge to Dan. Thanks to all developers for their support of this amazing device
[LG Optimus G Pro] buff31:
pledge

Also completed my pledge...
[LG Optimus G Pro] andygold:
I didn't pledge in either thread, but I wanted to donate anyway. I can't do it through the Donate link for some reason. I get this message.

We cannot process this transaction because there is a problem with the PayPal email address supplied by the seller. Please contact the seller to resolve the problem. If this payment is for an eBay listing, you can contact the seller via the "Ask Seller a Question" link on the listing page. When you have the correct email address, payment can be made at www.paypal.com.

The second time i tried to donate using the Donate button, Norton 360 popped up and made mention of a Phishing Site, and then said it was going to automatically send the info to Norton. Anyone know of another way to donate to Dan. I PMed Dan with the same info....

I just made a donation to TheCubed without any issues.
[LG Optimus G Pro] martinezma99:
Pledge Completed

Confirmation number: 5643585971014793H

$50 pledge sent to Dan Rosenberg.
[LG Optimus G Pro] 3_D:
Pledged to Dan and Cubed
[LG Optimus G Pro] ricco333:
Pledge payment sent

My pledge payment of $40 to Dan Rosenberg has been fulfilled. Thanks for the awesome and fast work.

Confirmation number: 7K53523242966283T

Erik
[LG Optimus G Pro] fix-this!:
So we have loki now? If so ill sell my s4, buy the g pro again and ill donate.
[LG Optimus G Pro] insanesteve:
Yes, so sell that pile of crap ?

Sent from my LG-E980
[LG Optimus G Pro] willdeng:
Pledge to Dan for $20 completed. Thank you for all of your hard work!

Confirmation number: 8T969787BW205253H

Will
[LG Optimus G Pro] fix-this!:
Gonna go up on swappa tonight. ;)
[LG Optimus G Pro] Gotroot:
Check ur pm
[LG Optimus G Pro] turilo:
Lol tell me you ain't buying that off him Gotroot :eek::p
[LG Optimus G Pro] Gotroot:
My wife wants one lol
[LG Optimus G Pro] smaybe:
paiement sent

8WY75619F7009700D
[LG Optimus G Pro] MrDSL:
I will update later today...sorry been busy.
[LG Optimus G Pro] wahida76:
FreeGee is now supported and my at&t LG Optimus G Pro is bootloader UNLOCKED. So what is next?
[LG Optimus G Pro] adobian:
Wahida76, could post a link of step by step instruction?
[LG Optimus G Pro] wahida76:
Go to the play store and download FreeGee app and click on unlock and follow the steps but beware some users say that the phone bricked mine didn't brick and worked
[LG Optimus G Pro] trooper1414:
Awesome... Can anyone else conform this???
[LG Optimus G Pro] adobian:
Paid version vs free version?
[LG Optimus G Pro] wahida76:
I only used the free one
[LG Optimus G Pro] turilo:
Maybe wait till Shelnutt2 figures out why some users are having no luck
[LG Optimus G Pro] pedal2themedal:
I tried it and it worked. My guess is it may not be compatible with the value pack update yet. I am running the original firmware, was rooted and had 2nd init recovery on mine and it replaced that and worked like a charm. Now for the roms! If I had more time to mess around I would get aokp for this bad boy, but between work and my newborn I barely have time to flash roms, lol.
[LG Optimus G Pro] turilo:
Ok very odd, because im on the value pack update when i did the testing for Shelnutt2, now im really stumped on why some users with the same device are having issues. You're 100% sure you are not on the OTA or the updated TOT thecubed posted a while back? can you post your results in the actual Freegee thread if possible, thanks
[LG Optimus G Pro] DeMoN0iD:
Works!

Just used FreeGee app, and it worked just fine, also had the ValueUpgrade (not that i really wanted it).

But if anyone can point me in the right direction, I heard that mako is similar to the geefhd.

I would assume you could modify a known good mako rom and replace the drivers needed to run the LG Optimus G Pro.

Does anyone know what the procedure would to modifying a rom? Would the kernel needed to be modified as well to support the hardware?

This would be a weekend project that i would be more then willing to figure out with some help. Thanks!
[LG Optimus G Pro] adizzle23:
the bootloader is not unlocked. It is still Loki that is being used.
[LG Optimus G Pro] cwis:
If the OP can get me out of the boot loop I'm in where it says boot loader success or something like that and gets stuck at the att screen, I'll donate 20 bucks.... Please, I need some help! I used freegee btw
[LG Optimus G Pro] 1Zero3forlife:
http://xdaforums.com/showthread.php?p=42012157

Just follow that... I don't need the $20 lol
[LG Optimus G Pro] cwis:
hell if it works, you're getting it! Will try tonight.
[LG Optimus G Pro] 1Zero3forlife:
It Works perfect, just used it, follow the instructions to a T, it takes about an hour the first time due to all the downloads.

Good luck and I will keep an eye on here in case you need help.
[LG Optimus G Pro] polx:
i got 2 quedtions...

can the bootloader be unlocked finally?

what does loki do exactly?
[LG Optimus G Pro] californiarailroader:
Will the Bootloader also be able to be relocked?
[LG Optimus G Pro] 1Zero3forlife:
The boot loader is bypassed, so no worries, you can use the above link to flash back too stock and you are golden.
[LG Optimus G Pro] californiarailroader:
Very cool, thanks!
[LG Optimus G Pro] concaopp:
Please support Optimus GK F220K!!

bro can you make one for optimus gk f220k, im dying with stock roms. its is a 5inch optimus g pro, same cpu, gpu and all. please help us...

here is the aboot.img

https://app.box.com/files/0/f/0/1/f_11314749212
[LG Optimus G Pro] thecubed:
Woot woot!

Progress marches on!

This is *excellent* news for y'all!

I have just verified that Loki-style exploits work, and there above is proof.

Compare this to the normal fastboot output here:

I have managed to replace the string "Invalid Bootimage Header" with the string FreeGeeFreeGee[...]

The "abort, halting" message is because there's obviously no linux to boot in this image, I've merely only replaced two sections of memory with 0x800 sized chunks of ABOOT with my custom strings.

This is by no means the final step in the process, I still have to figure out why the kernel won't boot from fastboot-- I don't want to start messing around with flashing exploits to my phone and have no way of recovering (short of LGNPST, of course)

After I get CWM booting from fastboot, the next step will be rewriting Loki to deal with our bootloaders. Much kudos to Dan Rosenburg, the guy is a genius.

Loki has a lot of overhead that's meant to keep people from flashing incorrect LOK images on phones with differing aboot versions-- this is functionality we do not need at this time. Correctly implementing this function looks more complicated to me than just reimplementing his entire hack from scratch (using his assembly, though).

If anyone has a good guide somewhere about porting Loki to new devices, I'd appreciate that-- I spent 4 hours last night trying to wrap my head around it and all I got was a headache. Today is better luck though ;)
[LG Optimus G Pro] smaybe:
Great news!!
[LG Optimus G Pro] Gotroot:
Awesome work i have psted about to see why compiling the sorce fails... guess im going to build Aokp first
[LG Optimus G Pro] thecubed:
Another update for y'all:

Tonight I'm going to try to get a working kernel compiled from LG's source code.

First things first, I'll compile a kernel without the "mdm_pblrdy_change" notifier printk -- that way when I pull /proc/last_kmsg, I won't see thousands of lines of "mdm_pblrdy_change: pbl ready: 0,1,1,1,0,1,0,0,0" and so on.

Hopefully, that will show me what the next step in debugging is-- I still don't entirely know why the kernel would have trouble booting the modem when booted from fastboot, but either way it's an issue that needs to be debugged before we can consider flashing anything to the device.

Once that is done, it's back to Loki. Me and Shelnutt2 had a good conversation today about getting Loki working, and it just comes down to getting a good disassembly and understanding of where to patch and what to patch it with. (Details, details, it's all in the details)

Anyway, there's the update... Thanks for y'all 's patience!
[LG Optimus G Pro] Gotroot:
Damn good luck unless you got a diffrent source than what lg pointed me to... if you compile it from there let me know where i went wrong please
[LG Optimus G Pro] Guitarfreak26:
If this will work on the Korean L version put me down for $15 :D
[LG Optimus G Pro] thecubed:
Progress!

I've successfully gotten the OGPro to boot my custom kernel over USB fastboot -- strangely enough I didn't have to modify any of the modem related kernel source. The screen doesn't seem to be turning on though, that's something I could debug fairly easily after I comb through /proc/last_kmsg

For anyone playing along at home, here's a patch that'll let you build successfully:

--- /home/tyler/lgoptimusg_pro/kernelsource/ship/kernel/drivers/misc/tspdrv/tspdrv.c 2013-04-25 07:30:49.000000000 +0000
+++ drivers/misc/tspdrv/tspdrv.c 2013-06-30 09:52:38.000000000 +0000
@@ -42,8 +42,8 @@
#include <linux/miscdevice.h>
#include <linux/platform_device.h>
#include <asm/uaccess.h>
-#include <tspdrv.h>
-#include <ImmVibeSPI.c>
+#include "tspdrv.h"
+#include "ImmVibeSPI.c"
#if defined(VIBE_DEBUG) && defined(VIBE_RECORD)
#include <tspdrvRecorder.c>
#endif
@@ -88,9 +88,9 @@

/* Needs to be included after the global variables because it uses them */
#ifdef CONFIG_HIGH_RES_TIMERS
- #include <VibeOSKernelLinuxHRTime.c>
+ #include "VibeOSKernelLinuxHRTime.c"
#else
- #include <VibeOSKernelLinuxTime.c>
+ #include "VibeOSKernelLinuxTime.c"
#endif

/* File IO */

Apply that to your tspdrv.c file and you should be able to build fairly easily.

Expect more goodies tomorrow once I have an up-to-date CM tree synced to my server. I think [MENTION=440141]synergy[/MENTION] has a few around somewhere on our r710.

:D
[LG Optimus G Pro] ReggieSmith:
News keeps getting better & better! I don't understand most of what you're saying but I don't think that matters in the grand scheme of things! :highfive: Glad I decided to keep this beast!
[LG Optimus G Pro] hkfriends:
Ok, patched the tspdrv.c from E988 kernel source and build ok

just want to know how to enter fastboot mode, so i can test my boot.img

( of course, I tried to flash the boot image and causing security error and failed to boot normally )

thanks
[LG Optimus G Pro] DeMoN0iD:
can't wait till this is done!

as soon as this is completed i'll be testing it out! Thanks a lot in your hard work guys and keeping us in the loop of what is going on.
[LG Optimus G Pro] thecubed:
Do this:

adb shell
su
busybox dd if=/dev/block/platform/msm_sdcc.1/by-name/misc of=/sdcard/misc.img
busybox dd if=/dev/block/platform/msm_sdcc.1/by-name/boot of=/sdcard/boot.img
busybox dd if=/dev/block/platform/msm_sdcc.1/by-name/boot of=/dev/block/platform/msm_sdcc.1/by-name/recovery
busybox dd if=/dev/zero of=/dev/block/platform/msm_sdcc.1/by-name/boot
exit
exit
adb pull /sdcard/boot.img
adb pull /sdcard/misc.img
adb reboot

That'll get you into fastboot. I copy boot to recovery, since the phone will force you into recovery after a few failed boots with the intent of erasing all data, with boot in the place of recovery, your data is safe and you can still boot.

To test, just do this:

fastboot boot <path/to/your/new/boot.img>

After you're done testing, just do this:

fastboot flash boot boot.img
fastboot continue

and you'll end up back in your normal boot mode. However, you're not done yet! If you've rebooted your phone more than 7 (iirc) times, your MISC partition now has a flag in it that tells the phone to ONLY boot recovery. Copy your misc.img backup back to the partition:

adb shell
su
busybox dd if=/sdcard/misc.img of=/dev/block/platform/msm_sdcc.1/by-name/misc

For now, the safest thing is to keep boot flashed to recovery, since as long as your /system partition is rooted, you'll have adb access and you'll be able to fix your phone if you do something stupid. Just whatever you do DO NOT flash anything through fastboot until I patch Loki.

If you flash something to boot/recovery and fail boot a few times, even LGNPST might not help you since the phone will get stuck in a boot loop.

Be careful!!
[LG Optimus G Pro] Gotroot:
Can someone post a flashable factory rom in the rom section real fast please.. I am tring to build a Aokp but every time I try to dump it errors out on me and I can make the zip ...Thanks
[LG Optimus G Pro] apascual89:
Out of curiosity, what device trees are you using?
[LG Optimus G Pro] Gotroot:
device_lge_l0 just pulled the master for cm10... to be honest I fairly new to all this and tring to learn so I can help for rom dev here
[LG Optimus G Pro] thecubed:
In theory, he could use the tree for the Optimus G.

However, just straight "building something" isn't gonna work here, there's a LOT of work left to do, especially in kernel-land since right now I can't get any display output from my custom kernel.

I'm going to work more on getting a working kernel today, and a tethered CWM build.
[LG Optimus G Pro] Gotroot:
Im tring to understand all this and start helping but it seems im a lil lost on pulling branches.. if someone would like to help me out with this it be great. I dont mind letting someone remote in make sure i am atleast going in the right direction
[LG Optimus G Pro] apascual89:
Yes, that why I was curious as to how he was building already. Keep up the great work, I look forward to contributing what I can. Thanks for the frequent updates.

---------- Post added at 05:14 PM ---------- Previous post was at 05:13 PM ----------

I like your enthusiasm, but right now it's more of a waiting game.
[LG Optimus G Pro] Gotroot:
Ya thats what I was thinking its just a waiting thing. But I figuered if I can get a flashable rom rather its just factory or not then i could start atleast debloat it ... I know one thing I dang sure going to keep qremote in my builds lol that app is handy
[LG Optimus G Pro] thecubed:
If you're interested in helping out, the best thing to do would be to get a deodexed stock ROM ready. Don't tweak it, just get it deodexed and ready for other modders to work on.

AOSP / ROMs from source are going to take a while to get working, your best bet is to make a quality stock-ish ROM that people can use as a base for other projects.

From there, you can then take your own spin on it and mod it as you feel necessary.

However, you won't be able to test any of your creations until I get the kernel working.
[LG Optimus G Pro] Gotroot:
Ya that was my first plain just deo and debloat... but I cant get a good pull so my kitchen will see it... Think you can up a good factory zip so I can get started ? I tried my ass of to compile it from the source and to be honest idk how the hell to rip it out the tot thank you
[LG Optimus G Pro] hkfriends:
thanks so much... but I want to know :

>> After you're done testing, just do this:

fastboot flash boot boot.img

fastboot continue

why we don't restore back the recovery partition at then end of testing?

anyway i managed to get fastboot mode ok, but my customed kernel get boot and back to fastmode again...even i had tspdrv.c patched. strange
[LG Optimus G Pro] apascual89:
Hey quick question, my experience building is all with building from source aosp ROMs. Where could I start looking into doing a stock ROM?
[LG Optimus G Pro] Gotroot:
I posted the source in the dev section but i cant get it to compile
[LG Optimus G Pro] thecubed:
Are you fastboot booting the kernel?

Also, the kernel source LG dropped will not boot without modifications! I am still working on finding out why exactly. I've provided a patch to make it build, but that's it-- it still doesn't boot.

I noticed it's not even making a /proc/last_kmsg file either, so the kernel is not booting at all in any way, shape, or form.

In regards to your question about not putting back recovery, it's safer to have boot as recovery-- that way you can't get stuck in recovery, you can always boot android and get adb shell access.

EDIT: Also, I'm pushing my modded kernel source to my github here shortly... It's taking forever since something's wrong with my access switch in the datacenter-- only getting 29KB/s upload to github...
[LG Optimus G Pro] Gotroot:
Cube I finally got a working dump from nandroid and adb shell..Im deo and debloating now,,,,Think it be a smart idea to wait to rls it until your done? Or can we flash it with the current CWM?
[LG Optimus G Pro] thecubed:
Remember: you will NOT be able to boot any custom roms flashed by the current 2nd-init recovery.

The reason for this is the boot.img contains a daemon called 'wallpaper' which checks the signature of the frameworks and system APKs. If you debloat the stock ROM and flash it without flashing a declawed boot.img, you will get a security warning and the phone will not boot until you LGNPST.

This is just a reminder to everyone to NOT flash any ROMs of any kind to this phone until I have a declawed boot image available for you

The declawed boot image will NOT be available until I get the kernel fixed and Loki ported.
[LG Optimus G Pro] Gotroot:
Ya I kinda thought that would happen thats why I only deodex and zipalign... for now ......

I will be debloating and deodex one as well but Im not going to post that one until your done...

You think I should try to flash the deodex and zipalign sense everything is still factory and intact..
[LG Optimus G Pro] thecubed:
Git is up now :)

https://github.com/thecubed/android_kernel_lge_gk

If you've got an ICS or above source tree somewhere, just rename the kernel directory, and drop this in it's place.

For me, I have my ICS source tree in ~/aosp/ics/, so:

cd ~/aosp/ics
mv kernel old_kernel
git clone git://github.com/thecubed/android_kernel_lge_gk.git kernel

then you'll have a working kernel source dir.

To build:

cd ~/aosp/ics/kernel
. envsetup.sh
make mrproper
make gkatt-perf_defconfig

The "envsetup.sh" script will add some handy commands to your shell too, so be sure to check it's output to see what new things you have added to your shell.

Then when you want to build the kernel, do:

make -j8 zImage

and you'll find your output in arch/arm/boot/ named zImage.

---------- Post added at 05:31 PM ---------- Previous post was at 05:30 PM ----------

Flashing any modifications like that will indeed trigger the "Unauthorized Software" warning. It checks the signature of some key files in /system -- including framework.odex, so a deodexed ROM would most definitely fail that check.
[LG Optimus G Pro] Gotroot:
Ok well I will go ahead and upload them to a multiuplaod but not give out the info until your done
[LG Optimus G Pro] ricco333:
Dude you got ants in your pants. Everyone else is waiting.
[LG Optimus G Pro] Gotroot:
No not really just thought be easier to upload and wait.. Im in no rush lol
[LG Optimus G Pro] thecubed:
Looks like I'm going to have to build a earjack debug cable tomorrow, I can't seem to get the kernel to boot from fastboot.

Either I'm missing something, or ... I'm not sure.

We'll see...

Also, I've updated the build script in the git repo, it's a lot nicer now. :D
[LG Optimus G Pro] Gotroot:
What all will your kernel support?
[LG Optimus G Pro] thecubed:
?

Just a stock kernel that boots. Nothing more, nothing less.

The only reason I'm compiling a custom kernel in the first place is because LG's won't work over fastboot, which is problematic for testing Loki.
[LG Optimus G Pro] Gotroot:
ok thanks for your hard work
[LG Optimus G Pro] rob219:
what doesn't the lg kernel have or not have that makes it not work over fastboot?