yashsingh1/xdaforums huggingface dataset:
[G2 Android Development] grandmasterlarry:
I am willing to beta test and report bugs, dont know much about development but I want CM i have been using it forever...
[G2 Android Development] JMM2009:
same goes for me, I have the Korean version.
[G2 Android Development] mrbig012:
Does CyanogenMod get rid of features like KnockON? I have grown accustomed to it and don't know if I could do without it (my device sits in a vehicle dock a lot of the time where the buttons on the back are 100% inaccessible unless I disconnect the charger, remove phone from dock/holder and find the buttons on the back.)

Is KnockON a Snapdragon 800 feature, or an LG UI feature (I think so, as it doesn't seem to work except in the notif bar, the stock browser, and the stock lock screen)? Can it be added to the AOSP/CM code perhaps?
[G2 Android Development] dankasfuk:
LG UI feature. I'm fairly sure it will be ported to an AOSP/CM10/LGUI hybrid ROM at some point. I believe part of the issue that devs are running into is that a lot of the custom LG software appears to be tied together.
[G2 Android Development] bose301s:
Can you guys keep us updated on your progress, this is a make or break thing for me with this phone, CM is just so much better than any stock ROM that I don't know if I can deal with a phone that has no prospect of official support.
[G2 Android Development] droid_<3er:
Are we going to try getting mobile network and wifi working first? Is adb working?
[G2 Android Development] JackpotClavin:
First is audio. It's proving to be a big problem. I can't get anything working using either prebuilt binaries from stock, or building from source
[G2 Android Development] DeaconBoogie:
I am NOT a developer, but this could help perhaps?

http://opensource.wolfsonmicro.com/content/wm5110-linux-driver-released

Not sure if it really is open source or only available as binaries, but the WM5110 is the audio SoC in this phone... I am probably not helping. :)

Additionally, I think the S4 uses this SoC as well. It's a pretty new part but is gaining a lot of momentum.

Edit: My god that WM5110 is a hell of a part... quad-core, 600 MIPS... dayum!
[G2 Android Development] bose301s:
Glad to hear an update, even if it's about issues. Seeing that there are people actively working on this to make it happen makes me much happier and less worried about keeping this phone vs. returning it tomorrow or Friday to see how the Nexus 5 plays out etc.
[G2 Android Development] icepuente:
Have any of you tried talking to Ricardo Cerqueira? He is in fact the primary maintainer for all LG Devices with regards to Cyanogenmod. I am sure he is planning on supporting this device in the near future, I just don't know when. It will probably be when the device is more readily available since it was pretty much just released.
[G2 Android Development] jbdub1771:
Ok thanks
[G2 Android Development] dr_acula:
Can anyone else play music through the headphone jack? Apollo force closed and YouTube/Play Music work, just not through the jack. Tried headphones and aux cable in my car.
[G2 Android Development] spitzaf:
Newest version of TiBu supposedly identifies when this may be problem and fixes it automatically. Haven't tested though.
[G2 Android Development] krazie1:
Anyone going to do a video of cm10 on the LG G2 after the updated build?
[G2 Android Development] JackpotClavin:
I feel the need to tell everybody that doesn't have a Verizon G2 that I'm not gonna build and develop for your devices. I've tried to support similar devices with prior CyanogenMod projects and it turned out to be a HUGE headache where software and hardware weren't compatible with the device that I had and it just wasn't very good. With the LG G2 being the flagship phone that it is, I'm 100% sure a good developer (or maybe even one of you will do it!) will come around get it working with your respective devices and you will be able to run CyanogenMod on your G2s shortly.

When I originally made this thread, there was no Verizon section that there is now, but I would have posted this thread there if it were present when I created this thread.
[G2 Android Development] Jishnu Sur™:
Clavin, Sir, you are a RD ! :D You can do anything that we cant..
[G2 Android Development] deadman96385:
[MENTION=3727492]JackpotClavin[/MENTION] Sorry to ask again, but which kernel source are you using because there isn't a kernel in your GitHub, and you don't reference them in cm.dependence
[G2 Android Development] tonyb81:
Flashed this and I'm amazed how good it is already. You are amazing jack, thanks a bunch.
[G2 Android Development] JackpotClavin:
Last part of this message:

http://xdaforums.com/showpost.php?p=46299661&postcount=95

Also since that post, I also commented out the config's

CONFIG_LEDS_PM8941_EMOTIONAL=y

to

# CONFIG_LEDS_PM8941_EMOTIONAL is not set

Which will fix the notification light issue. One final thing that must be done is change:

drivers/misc/tspdrv/tspdrv.c

__ATTR(vib_enable, S_IRUGO | S_IWUSR, immersion_enable_show, immersion_enable_store),

Change "vib_enable" to just "enable"
[G2 Android Development] winklethemoose:
Even without the fixes its working great.
[G2 Android Development] BlueHarford:
Wonder if you could bake into the g2 device settings to enable double tap wake. Flagship feature. Never use the back buttons ever.

Will definitely use this once that's in. Can help out with code once work slows down.
[G2 Android Development] seadersn:
only difference from verizons g2 to eu free version is wireless charging and (maybe in connection to that) a slightly changed backbuttonlayout?
[G2 Android Development] mmad81:
Thanks..I got it installed....looks great

Looking forward to the next build
[G2 Android Development] bose301s:
Not to be a pain, but do you have the new build ready for today, I need me some CM on this thing, yesterday's taste of it has already spoiled me to the stock ROM.
[G2 Android Development] Obrien8403:
I hope a flashable version with the notification light and vibrator gets posted, I am too dumb to make the changes that were posted myself. This is already my daily driver, Can not stand the skinned version LG put on this device. Thanks Jackpot
[G2 Android Development] JackpotClavin:
I've got a wedding to attend today so I'm not gonna have enough time to cook up and test a new build.

I've got some problems with the audio policy right now. The speakerphone does not work in your build, it works in mine right now, but it's useless because while in speakerphone, the mic isn't working so it's a moot point to have a speakerphone and no mic. Also, there's no voicebutton support because of a mic issue, which also might be the cause of the camcorder issue. I'll post a new build when I get time, so probably in the next few days
[G2 Android Development] mjwhirly:
No need to worry man, cm for the other variants is already in the works and being work on by some good dev (shelnutt2 is doing a lot of the heavy lifting right now)...you can find it on the teamlgog github
[G2 Android Development] jug6ernaut:
Ofc, but this has to be implemented at the kernel level. It has been done in a few custom kernels out there already like (link). Would probably be wise to dig through the official Lg kernel source, to see how they are doing it.
[G2 Android Development] BlueHarford:
Putting that in the kernel would be cake. I assume it's not kernel based by stock LG as you need stock launcher of mod to sleep. Could be wrong.

Doing it that way globally would also cause problems with liking instagram pics. And such. Worth looking into
[G2 Android Development] jug6ernaut:
Correct. For the sleeping part it is ether done through the launcher or some kind of global service(or both). Doing so in the launcher is pretty easy, just listening for a double tap gesture then using the PowerManager(i believe) to tell the system to sleep.

I believe it might also be in a global service considering you can double tap on the status bar to sleep, they could have implemented it in the actual framework though.
[G2 Android Development] deadman96385:
If anyone wants the kernel source code, with current fixes we have it up at https://github.com/LiquidSmooth/android_kernel_lge_f320k

(THIS IS NOT A FLASHABLE KERNEL, THIS IS USED TO MAKE ONE)

Thanks [MENTION=3727492]JackpotClavin[/MENTION]

Edit: We will try and keep it updated at least until, CM or Jackpot uploads there own
[G2 Android Development] AndroidUser00110001:
Try to disable the second mic on speakerphone option, if you see that flag floating around somewhere...
[G2 Android Development] deadman96385:
Guys please keep the thread on topic, I think everyone can wait a few days for when [MENTION=3727492]JackpotClavin[/MENTION] makes a build with the fixes in the kernel and device tree. The +1 post was not needed, that is what the Thanks button is for.

There will also be a Dev build of LiquidSmooth coming out soon.
[G2 Android Development] paradisewaits:
Is this confirmed to work on Verizon g2?
[G2 Android Development] bose301s:
LiquidSmooth is an AOSP based ROM as well?
[G2 Android Development] deadman96385:
Yes it is
[G2 Android Development] paradisewaits:
Has anyone successfully flashed new kernel with patches?

The issues for me from original alpha are:

No voice search

no speaker phone (fixed)

No mic with speakerphone

No headset

Notification light (fixed)

vibrate (fixed)

camcorder

power off causes reboot (EDIT: no longer experiencing)

Shared from Google Keep

All the fixes are theoretical until someone gets the new kernel built and flashed...

Feel free to add any other issues with usability you encountered. I've been using alpha for over 24 hours now.
[G2 Android Development] Obrien8403:
I am not getting the reboot on power on, but everything else I have noticed. I am getting great battery life on this ROM though. I couldn't seem to get tethering to work, but wasn't expecting it to this early
[G2 Android Development] paradisewaits:
Reboot when powering OFF ...ie for me there's no way to turn the phone off...
[G2 Android Development] Obrien8403:
Powering off, what I meant
[G2 Android Development] Obrien8403:
https://db.tt/PuFVfEjG

Had Hangouts force close while I was browsing Google+ This was the only error I could find in catlog, not sure if this is useful or not
[G2 Android Development] craigbailey1986:
Just says failed when trying to flash. No error given.
[G2 Android Development] timpohladthomas:
Did you build this from source and then flash? or how did you create the zip to flash it?
[G2 Android Development] SupaSwag:
My guess: He went to the link provided, then clicked on "download zip" and attempted to flash that. Which obviously is a mistake to do.

Sent from my LG G2
[G2 Android Development] craigbailey1986:
I don't know how it's obviously a mistake to do when it said if you want to,use it to go there. but now I know that is not,what it was intended for us to do. Will have a friend compile it. Thanks though.
[G2 Android Development] deadman96385:
GitHub is used for source code storage/collaboration, not builds I have also added a warning to my post
[G2 Android Development] craigbailey1986:
My apologies I should have known when,I went to github but I didn't even pay attention to where I was.
[G2 Android Development] timpohladthomas:
No worries, that's why I was wondering... Deadman96385 and I are trying to get it to compile, thought maybe u had cracked the case. :D

---------- Post added at 03:51 PM ---------- Previous post was at 03:50 PM ----------

Oops, I quoted the wrong post.
[G2 Android Development] bose301s:
Also I have a request, if someone is going to port the stock camera app for use in AOSP can someone try and do the same for QuickRemote? I really like having that.
[G2 Android Development] youngproguru:
Request- GSM

First- Fantastic Work. I cannot believe how fast you and your team (?) moved this forward. Excellent.

I have a somewhat special request. I am using the Verizon version, but I use it only on T-Mobile. Your build doesn't support GSM.

I am hoping that maybe, with your ports over to T Mobile, and ATT, that you can build a universal version that allows for all radios to be accessed. (Actually, I don't care about the CDMA) but I would love to access all of the T Mobile bands on my Verizon unit.
[G2 Android Development] craigbailey1986:
Have you tried adding the apn to the setting? I just switched to walmart family plan and it uses T-Mobile so I can,check it in a few.
[G2 Android Development] imucarmen:
he said yesterday that he wont be making version for other carriers but i'm sure it wont be long before you see this on all carriers just gotta be patient. My last phone took months and months of work by the devs to bring us cm so its not always easy :p
[G2 Android Development] darkobas:
My guess is that once the nexus 5 is released devs would be able to make aosp roms from that as hw will be very similar.
[G2 Android Development] ny-hardcore:
hi you all,

i'm contemplating building this for the d802 (europe 16gb version),

i realize i might be well in over my head.

So far i did:

1. synced cm10.1 source && get prebuilts

2. cloned device and vendor trees from jackpotclavin

3. cloned kernel from here https://github.com/LiquidSmooth/android_kernel_lge_f320k and added 2 cherrypicks for audio-caf

4. Changed BoardConfig.mk so that it is using TARGET_KERNEL_CONFIG := g2-open_com-perf_defconfig

instead of the vzw kernel config file.

my unit has a 16gb userdata partition, the jackpotclavins boardconfig mentions 24.1, i assume i have to edit this

BOARD_USERDATAIMAGE_PARTITION_SIZE := 11609833472 # 10.8125GB

i did a cat /proc/partitions and found

259 3 11337728 mmcblk0p35

Can i assume this is the userdata partition and multiply it with 1024?

This gets me to 10.8125 gigabytes wich is odd because the phone menu itself says 10.62GB

Could i harm my device if i flash the zip once it completes compiling?

edit: compiling stops

target thumb C++: hwcomposer.msm8974 <= hardware/qcom/display-caf/libhwcomposer/hwc_copybit.cpp
hardware/qcom/display-caf/libhwcomposer/hwc_utils.cpp: In function 'int qhwc::hwc_sync(hwc_context_t*, hwc_display_contents_1_t*, int, int)':
hardware/qcom/display-caf/libhwcomposer/hwc_utils.cpp:541:37: error: aggregate 'qhwc::hwc_sync(hwc_context_t*, hwc_display_contents_1_t*, int, int)::msm_rotator_buf_sync rotData' has incomplete type and cannot be defined
hardware/qcom/display-caf/libhwcomposer/hwc_utils.cpp:549:26: error: 'MSM_ROTATOR_IOCTL_BUFFER_SYNC' was not declared in this scope
target thumb C++: hwcomposer.msm8974 <= hardware/qcom/display-caf/libhwcomposer/hwc_qclient.cpp
make: *** [/home/koen/android/cm-10.1/out/target/product/g2/obj/SHARED_LIBRARIES/hwcomposer.msm8974_intermediates/hwc_utils.o] Error 1
[G2 Android Development] deadman96385:
[MENTION=276667]ny-hardcore[/MENTION] we are working on getting the kernel to compile, it also already had the audio-caf cherrypicks in it
[G2 Android Development] ny-hardcore:
ok. i'm guessing we're missing something like this in the lg source : https://github.com/CyanogenMod/andr...mmit/8b091599cdbcf13dd9942482a41d8f91cd5c3155

i'll stop my building efforts for now.
[G2 Android Development] timpohladthomas:
I am running into the same errors when compiling inline.
[G2 Android Development] timpohladthomas:
Hey Jackpot,

Do you have any insight for us on why the kernel wont compile? Are we missing a step you did?

Thanks in advance.

Tim
[G2 Android Development] JackpotClavin:
I believe I git reverted that patch that changed it to include that missing variable. It was a few weeks ago but I'm not at my computer now but there's one or two modifications I had to make to a few repositories to get things building for our device. When I get home I will look through all my repositories and see what I've done. It shouldn't be more than one or two changes though.
[G2 Android Development] oblikas:
missing kernel headers.
[G2 Android Development] Blueyedevil:
Hi guys

Hope this helps your development:

https://www.lg.com/global/support/o...tegoryId=CAT00000001&osCategoryId=CAT00000002

Haven't seen it mentioned anywhere in this thread. Supposed to be te page were you can get the source code for all LG devices.
[G2 Android Development] JackpotClavin:
Okay, for the hardware/qcom/audio-caf/Android.mk, add "msm8974" to the left of "msm8960", so we can build those files which would otherwise be ignored since the boards didn't match up.

For hardware/qcom/audio-caf/alsa_sound/AudioSessionOut.cpp, I had to add:

#define SNDRV_COMPRESS_METADATA_MODE _IOW('C', 0x99, bool) next to the defines

Also, for hardware/qcom/audio-caf/alsa_sound/AudioHardwareALSA.cpp, change /system/lib/libacdbloader.so and /system/lib/libcsd-client.so to /vendor/lib/libacdbloader and the same for the libcsd-client (since our libraries are located under /vendor/lib/ rather than /system/lib)

And for hardware/qcom/display-caf, I git reverted ce7b2febbcf02e4311db9b2a9613cf0136736d0
[G2 Android Development] timpohladthomas:
Thank you so much for this insight! Can't wait to get this working!
[G2 Android Development] droid_<3er:
Did you manage to get anything working? OP still says "literally nothing".

Good work bro!
[G2 Android Development] timpohladthomas:
Hey man,

I must be doing something wrong, I am still getting display-caf errors, now they are different errors, but its still not building. Is there anyway you could post your kernel source so that we could get this device development moving forward faster? Instead of both of us fighting the same issues...it would be greatly appreciated. Thanks in advance!

Tim
[G2 Android Development] ny-hardcore:
what happens when you comment out following

+#common_flags += -Werror

in display-caf/common.mk

and then try to rebuild?

and a new question;

What happens if i manage to build a flashable zip file and i flash it, but the kernel doesn't boot/recovery doesn't work?

Because the bootloader is locked i presume i cannot fastboot flash a new boot.img?

Do i have to restore using the LG flashtools?
[G2 Android Development] JackpotClavin:
You can reboot into recovery by holding power + volume down at boot, then releasing power once the LG splash screen shows up and then quickly pressing power again

Try clobbering your out directory and rebuilding if you are still getting build errors. Or post the error
[G2 Android Development] timpohladthomas:
Thanks for trying, but it still errors on display-caf.

---------- Post added at 12:49 PM ---------- Previous post was at 12:23 PM ----------

I've done that a few times and followed your steps, but still get errors. I will do it one more time and post the error. It would just make all this much easier if you could just post your source with the changes already made to get it to work. That way, i could focus my attention on bringing more roms to this device instead of fighting errors you have already fixed. Thanks buddy

Tim
[G2 Android Development] ny-hardcore:
this is the error i'm getting now:

make[3]: `include/generated/mach-types.h' is up to date.
CALL /home/koen/android/cm-10.1/kernel/lge/g2/scripts/checksyscalls.sh
CHK include/generated/compile.h
LD usr/built-in.o
/home/koen/android/cm-10.1/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-ld: cannot find usr/initramfs_data.o: No such file or directory
make[3]: *** [usr/built-in.o] Error 1
make[2]: *** [usr] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/koen/android/cm-10.1/kernel/lge/g2'
make: *** [TARGET_KERNEL_BINARIES] Error 2
make: *** Waiting for unfinished jobs....
[G2 Android Development] timpohladthomas:
I'm pretty sure the error is farther up. I dont see it in that...
[G2 Android Development] ny-hardcore:
its in there

i believe this is the error i'm getting now

home/koen/android/cm-10.1/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-ld: cannot find usr/initramfs_data.o: No such file or directory
[G2 Android Development] JackpotClavin:
My kernel is the one you cloned. It has the same modifications that I've made (the two cherry picks, the vibrator name switch, and disabling the emotion light in the config)

Perhaps it's the different config that's causing these problems?
[G2 Android Development] deadman96385:
[MENTION=1098418]jackpotclavin [/MENTION] That is not a error that would show up, by having a different config. We would really like it if you posted the source because then we would not have to remake all the work you do.
[G2 Android Development] ny-hardcore:
i just got a boot.img & a recovery.img using this kernel source https://github.com/WhatHub/kernel_lge_d802 (needed to make lz4 first, google it) and 2 commits jackpot mentioned.

This kernel source got me passed the ramdisk error and no audio-caf / display-caf error (i disabled error out on the warnings in audio-caf)

i used this config for the kernel: https://github.com/WhatHub/kernel_l...45758f/arch/arm/configs/d802-custom_defconfig

But for now i'm reluctant to flash this to my phone. I would rather "fastboot boot recovery.img" first, but in 'firmware upload mode' my mac doesn't recognize the phone.

Is there someone (with bigger nerves and) with a d802 that is willing to flash this? :)

####WARNING DO NOT FLASH I YOU ARE NOT SURE WHAT YOU ARE DOING ######

#### D802 KERNEL CONFIG USED! #####

recovery:

http://d-h.st/PRo

boot:

http://d-h.st/7T6
[G2 Android Development] timpohladthomas:
Not sure i would flash that. Just saying...nothing against you. But why chance it?
[G2 Android Development] icepuente:
Did you loki the images?
[G2 Android Development] ny-hardcore:
The ones in this zip file are lokied,

http://d-h.st/wO6

mkbootimg_args = (str) --ramdisk_offset 0x05000000 --dt device/lge/g2/devtree --tags_offset 0x04800000
recovery_api_version = (int) 3
recovery_size = (int) 16777216
system_size = (int) 3437928448
tool_extensions = (str) device/lge/g2/loki
userdata_size = (int) 11609833472
using device-specific extensions in device/lge/g2/loki
building image from target_files BOOT...
running: mkbootfs -f /tmp/targetfiles-4YjJ3O/META/boot_filesystem_config.txt /tmp/targetfiles-4YjJ3O/BOOT/RAMDISK
running: minigzip
running: mkbootimg --kernel /tmp/targetfiles-4YjJ3O/BOOT/kernel --cmdline console=ttyHSL0,115200,n8 androidboot.hardware=g2 user_debug=31 msm_rtb.filter=0x0 --base 0x00000000 --pagesize 2048 --ramdisk_offset 0x05000000 --dt device/lge/g2/devtree --tags_offset 0x04800000 --ramdisk /tmp/tmpxhgwIc --output /tmp/tmpWXdipg
boot size (11016192) is 65.66% of limit (16777216)
running: openssl pkcs8 -in build/target/product/security/testkey.pk8 -inform DER -nocrypt
running: java -Xmx2048m -jar /home/koen/android/cm-10.1/out/host/linux-x86/framework/signapk.jar -w build/target/product/security/testkey.x509.pem build/target/product/security/testkey.pk8 /tmp/tmpTd1hs8 /home/koen/android/cm-10.1/out/target/product/g2/cm_g2-ota-eng.koen.zip
done.
Package Complete: /home/koen/android/cm-10.1/out/target/product/g2/cm-10.1-20131016-UNOFFICIAL-g2.zip
[G2 Android Development] icepuente:
And you built this for D802?
[G2 Android Development] DesertHawk:
I did. But apparently the D802 is somewhere here
[G2 Android Development] ny-hardcore:
I used d802 kernel config. Thats all.
[G2 Android Development] timpohladthomas:
This may soft brick/hard brick your phone if it was built it for the International G2.
[G2 Android Development] ny-hardcore:
I'm not sure what you mean. I have an international g2 d802 and my whole point was getting it to run on international g2.

Sorry for hijacking the vzw thread.
[G2 Android Development] timpohladthomas:
Oh, that's why I was confused... Just didn't want anyone here to flash it and be upset. :D my bad
[G2 Android Development] addicted1900:
How about a seperate Thread for the D802 ?
[G2 Android Development] paradisewaits:
Switching til kernel source is posted. Current "alpha" is buggy for did anyway but the kernel thing really is weird.
[G2 Android Development] JackpotClavin:
Kernel source is up! https://github.com/JackpotClavin/android_kernel_lge_g2/commits/cm-10.1
[G2 Android Development] timpohladthomas:
Thanks buddy. Good work.
[G2 Android Development] mickskillz:
Is anybody making progress with the Verizon kernel?