yashsingh1/xdaforums huggingface dataset:
[G2 Developer Discussion [Developers Only]] Flo0008:
Hi everybody!

Finally, our LG G2 got an Developer Discussion area. So I decided to create this thread:

This thread is set up for people who want to compile roms for our great device. Perhaps you compiled already

a rom sucessfull but the rom isn't booting? Post it here! Errors during the compile process? Again, write it in this

section here. Apps are crashing on your compiled rom? In here again!

This thread should be kept clean, no offtopic, this means no questions when a rom will be published.

This area should only be for devs or for people who want to get one.

Thank you and happy compiling!!!
[G2 Developer Discussion [Developers Only]] RenderBroken:
How far do you get? Do you see Slim's boot logo? Also when you open the created zip, does everything look to be there? Like boot.img and such? Can you think of any more info?
[G2 Developer Discussion [Developers Only]] Flo0008:
Thanks firstly for your help!

I get until the LG bootlogo, not further. I didn't see the bootlogo of Slimrom.

I have the same problem with AOSP, I don't get further than the LG logo.

SlimLP: After some time (at the LG logo) the phone starts vibrating but not more.

I flashed the roms via TWRP recovery and my phone is running the latest KK version 20h.

The boot.img is there and seems ok with a size of about 5.7Mb in the .zip file, the system folder seems to be complete and the META folder is also there.

In the thread of another device I read something about a problem with com.qualcomm.location in system/app or anything but I can't find this file there.

There were no errors during the flash-process on my device too. A problem I recogniced on AOSP LP was when I rebooted the device after flashing the rom with TWRP, that I got on a screen where on the top left is written:

[650] Fastboot mode started

[700] udc_start()

For both roms I used the kernel source of lg-dev's repo. One weird thing I recognized on AOSP was that the .zip file has only about 166Mb, SlimLP has a .zip size of aroung 195Mb.

I was thinking about that I am perhaps missing any device specific repo here on my local_manifest: https://github.com/Flo0008/android_scripts/blob/aosp_g2/.repo/local_manifests/local_manifest.xml

or I asked myself if I have to run any file like extract-files.sh in the device repo here: https://github.com/Flo0008/android_device_lge_d802/tree/aosp5.0.

One more thing I tried was to replace the boot.img of both roms with that one from CM's. Nevertheless nothing changed, the rom didn't boot up.

If you need more information please tell me.

Thank you very much!!!
[G2 Developer Discussion [Developers Only]] RenderBroken:
Did I understand right that you are on a KK Bootloader? You need to be on a JB Bootloader for all of the current LP Source out right now. Try that and see if you get any further.
[G2 Developer Discussion [Developers Only]] DeeZigneZ:
Wow..finally someone tryin to port slimlp..hope u get it Working??
[G2 Developer Discussion [Developers Only]] Flo0008:
Thanks again. Yes I am on KK bootloader but I dont understand why Cyanogenmod 12 is working. But thanks for the information, I will try it.
[G2 Developer Discussion [Developers Only]] Flo0008:
So, what I did now: I flashed the JB baseband on my device via TWRP, rebooted to recovery and flashed SlimLP, but I still get a bootloop.

Or should I flash the .kdz of a JellybeanRom?

And do you know how to fix this error? I get it when I try to build AOSP LP.

/bin/sh: 1: cd: can't cd to out/target/product/d802/obj/KERNEL_OBJ

make[1]: Entering directory `/home/fabio/rasta/kernel/lge/msm8974'

Makefile:121: *** output directory "out/target/product/d802/obj/KERNEL_OBJ" does not exist. Stop.

make[1]: Leaving directory `/home/fabio/rasta/kernel/lge/msm8974'

make: *** [out/target/product/d802/obj/KERNEL_OBJ/.config] Error 2

make: *** Waiting for unfinished jobs....
[G2 Developer Discussion [Developers Only]] reaper61616:
First:

In root directory of rom: make clean -> this should fix build error.

My proposition:

1. repo init -u https://github.com/SlimRoms/platform_manifest -b lp5.0-caf

2. roomservice.xml need to looks like:

3. repo sync.

4.

. build/envsetup.sh

brunch d802

Try this if you want. :)

---------- Post added at 11:34 AM ---------- Previous post was at 11:24 AM ----------

When finish building of DU will try SlimLP :)

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

Size of compiled CM12 is about 240 MB -> something is missing in your build...

---------- Post added at 11:44 AM ---------- Previous post was at 11:36 AM ----------

look here:

https://github.com/TheMuppets/proprietary_vendor_lge/blob/cm-12.0/d802/d802-vendor-blobs.mk

See how much blobs is there...

insteed of using your blobs try TheMuppets's blobs:

https://github.com/TheMuppets/proprietary_vendor_lge

add this to roomservice.xml

---------- Post added at 11:50 AM ---------- Previous post was at 11:44 AM ----------

My last proposition is to try using cm device tree and kernel...

Then make some changes in device/lge/d802 .

:)
[G2 Developer Discussion [Developers Only]] Flo0008:
Thanks for your answer. I use already CM device repos (from lg-devs), all device specific folders are picked from them and I modified only some things for SlimLP.

I have to use the caf branch of Slim?
[G2 Developer Discussion [Developers Only]] reaper61616:
I think this is problem with blobs... Try using TheMuppets and will see :)

---------- Post added at 12:21 PM ---------- Previous post was at 12:18 PM ----------

Yes, need CAF branch :)
[G2 Developer Discussion [Developers Only]] Flo0008:
Is Rashed using the caf branch for CM too?
[G2 Developer Discussion [Developers Only]] reaper61616:
I'm building my own CM12 daylies and using standard CM sources. :)

EDIT:

Building and not sharing, only for my personal use. :)
[G2 Developer Discussion [Developers Only]] Flo0008:
[MENTION=5438598]RenderBroken[/MENTION]

Can you or anybody else help me with this build error on AOSP Lollipop?

Target boot image: /data1/Flo0008/aosp_g2/out/target/product/d802/boot.img

usage: mkbootimg

--kernel <filename>

--ramdisk <filename>

[ --second <2ndbootloader-filename> ]

[ --cmdline <kernel-commandline> ]

[ --board <boardname> ]

[ --base <address> ]

[ --pagesize <pagesize> ]

-o|--output <filename>

device/lge/g2-common/releasetools/mkbootimg.mk:47: recipe for target '/data1/Flo0008/aosp_g2/out/target/product/d802/boot.img' failed

make: *** [/data1/Flo0008/aosp_g2/out/target/product/d802/boot.img] Error 1

make: *** Waiting for unfinished jobs....

Thanks in advance.
[G2 Developer Discussion [Developers Only]] DeeZigneZ:
Wished i had knowledge i would help.

If u need any tester for d802 u can Holla at me..

Maybe ASK [MENTION=4817632]varund7726[/MENTION] Compiler of resurection remix he did Good job on the Rom...maybe he can give u advice..since he is a Good dev who also helps others.

Good luck my friend..
[G2 Developer Discussion [Developers Only]] RenderBroken:
This error means that the mkbootimg tool you have is not the correct one. Apparently there are more than one out there and the other supports different flags. Use the one here:

https://github.com/RenderBroken/mkbootimg_tools

Also CAF (to me) doesnt seem to be ready as a Daily Driver. Are you just wanting to mess around or get out a fully functioning build? I do know that LG-Devs CAF branch is still being worked on. Not sure about TheMuppets but they are always solid. Still LP CAF is not stable yet.

---------- Post added at 02:19 PM ---------- Previous post was at 02:17 PM ----------

Great Info! Thanks for chiming in.
[G2 Developer Discussion [Developers Only]] reaper61616:
Syncing repo of SlimLP ;)
[G2 Developer Discussion [Developers Only]] Flo0008:
Ok, keep me up to date :P
[G2 Developer Discussion [Developers Only]] reaper61616:
Have no good news...

After build zip is 190 MB... :/

Give it up today. Tomorrow will check what is wrong.
[G2 Developer Discussion [Developers Only]] Flo0008:
[MENTION=5438598]RenderBroken[/MENTION]

I built AOSP LP again today, build size seems ok with around 200Mb but when I tried to flash the rom I gout stuck in TWRP. A kind of a flashloop (instead of bootloop) - anyway, the device didn't get bricked althought I shut down the phone after that. This means the .zip file didn't flash. Any ideas?

And where can I paste your mkbootimg_tools repo to build the boot.img with it?

And one more thing: In lollipop (Cyanogenmod 12) all the system files and so on get compressed into a .dat file, right? I have the problem, for me there isn't such a file in my .zip file ... Do you know what to do against this problem?

I hope I don't bother you too much ...
[G2 Developer Discussion [Developers Only]] Flo0008:
But the size shouldn't be that problem ... Did the build boot up?
[G2 Developer Discussion [Developers Only]] Kalashnikitty:
my build is 209 MB with the same problem :)
[G2 Developer Discussion [Developers Only]] arcardinal:
Its not booting because of hardware/qcom/display. You need this commit for now

https://gerrit.slimroms.net/#/c/20632/

If you look at the comments though, it breaks hammerhead from compiling. Until I can find a better solution, which may not happen, I won't be updating the g2 repos for slim.

Also, slim for g2 needs to be compiled on slimlp-caf branch, even though our kernel is not caf.

All my repos are up to date here

www.github.com/CardinalTesting

Vendor is here

www.github.com/arcardinal/proprietary_vendor_lge

lp5.0 branches for all my repos
[G2 Developer Discussion [Developers Only]] GalaticStryder:
Also had the problem with AOSP going directly into fastboot menu, I have adapted everything I could. Using a prebuilt kernel the AOSP booted properly together some CM stuff I needed to add, now I just got some FC to handle, better, a lot of them. I'm using SimpleAOSP source code for now, It's quite modified but it keeps the AOSP base.

About building SlimLP I did a test build for my D802 in December 11th and it ran properly, all apps and no force closes, got a very good result but I couldn't upload the modifications to GitHub because I was just learning how to git checkout, git rebase, git fetch/merge and so on...

If you want help on the SlimLP I'm available to help you out whenever you want, are you planning to build for the other variants as well OP?

Thanks for using the Dev section it's very useful for us to change ideas.
[G2 Developer Discussion [Developers Only]] Flo0008:
Firstly, thanks for your answer.

Yes, I was thinking about bringing SlimLP up to all LG G2 variants but right now, I habe lots of exams and I concentrate more on AOSP. I set up a local_manifest file for AOSP on my github (github.com/Flo0008/android_scripts; branch aosp_g2) already but I am running in build errors right now. The error is about minivold. The errors are caused by CWM recovery. I think I will change the recovery back to AOSP ones.

I built already some builds which didnt have a problem with the fastboot menu, anyway, I ended up in a bootloop.

Perhaps you want to help me with AOSP on github? This would be awesome. If yes, I could set up a new github repo specially for AOSP for devs like you who want to help me with building AOSP for our device.
[G2 Developer Discussion [Developers Only]] GalaticStryder:
For me it's alright, I can help especially on Git. Last time I tried AOSP was using SimpleAOSP (Banks and his team) sources with custom toolchains to compile ROM and Kernel and it booted but as expected I had a lot of FC's, and I think using staging/cm-12.0 branch will help me out with the incompatibilities. You can create a Dev Group as well on Git for not to mess up my own account which I'm using to Slim.

All help we have would be awesome to accomplish this.
[G2 Developer Discussion [Developers Only]] Flo0008:
By the way, I changed the name of the thread. All problems about building roms can be posted here now. Luckily there are some people on G2 like [MENTION=5438598]RenderBroken[/MENTION] or [MENTION=6175749]GalaticStryder[/MENTION] or [MENTION=2777226]arcardinal[/MENTION] who really want to support people like me in building roms for this great device.

Thank ya for this :)

Und liebe Grüße nach Deutschland [MENTION=6175749]GalaticStryder[/MENTION] :P
[G2 Developer Discussion [Developers Only]] Flo0008:
Ok, thanks for this info. I am on my phone right now and in the next weeks of january I am a little bit busy with exams, but anyway if you habe time [MENTION=6175749]GalaticStryder[/MENTION] perhaps you can set up a dev group on github and invite me if it is no problem.

Would be awesome to have some help with AOSP :D
[G2 Developer Discussion [Developers Only]] Flo0008:
[MENTION=2777226]arcardinal[/MENTION] [MENTION=5438598]RenderBroken[/MENTION] [MENTION=6175749]GalaticStryder[/MENTION] [MENTION=4817632]varund7726[/MENTION] [MENTION=4662457]Rashed97[/MENTION] - Did you have a similar bug on your first CM test builds?

I managed to build pure AOSP LP and it is booting, anyway I have a problem:

After some time, the display freezes and the phone reboots. By the way in settings/about at baseband is shown UNKNOWN.

After reboot the phone freezes after about 30 seconds again and reboots again. All the time the same...

Anybody can help me?
[G2 Developer Discussion [Developers Only]] GalaticStryder:
SlimLP Up and Running [Unofficial]

Successfully compiled SlimLP for D802 for now. [MENTION=2777226]arcardinal[/MENTION] the ROM is solid as rock, thanks for all. Would you mind if I keep some UNOFFICIAL builds for the LG G2, I mean daily/2-day compile all variants? Of course all credit goes to you, your team, Slim Roms... as usual. I can of course contribute to the project on Github using my forked repos.

My Github repos: https://github.com/GalaticStryder?tab=repositories

Screenshots of D802's build: [Compiled some minutes ago]

Thanks once again [MENTION=2777226]arcardinal[/MENTION] for all. I'll test a little bit, but until now no bugs.

[MENTION=5522022]Flo0008[/MENTION]
[G2 Developer Discussion [Developers Only]] t-shock:
Hello!!! Is wifi working??? Looking forward to flash this build
[G2 Developer Discussion [Developers Only]] GalaticStryder:
It's all working for now. Just haven't tested GPS, calls, NFC yet. The rest I could and it's all working properly, features are working pretty good. I'm building the other variants right now, and then, I'll elaborate the post with all information, thanks and everything needed. I think once it's UNOFFICIAL, I have all the sources links and all thanks are given I can post it regularly on XDA. I always want everything clear, no messes on my threads. :angel:

Peace.
[G2 Developer Discussion [Developers Only]] t-shock:
Ok Good to know that you are working on a lollipop edition of Slim roms. I don't to be rube or something else, but Are you planning to release it asap it gets stable?

Thanks in advance
[G2 Developer Discussion [Developers Only]] GalaticStryder:
I think we are diverging the subject of the thread, so if you or anybody want to talk me just PM. I'm not creating a new thread for that in the meantime, and I wish we don't spam this thread because I intend and the OP as well, this thread to be a helpful thread for new developers, I just posted the screenshots here because we were talking about SlimLP some pages ago.

Reworking on AOSP will be next step together maintaining the SlimLP unofficial.

Thanks guys.
[G2 Developer Discussion [Developers Only]] GalaticStryder:
Same as the first CM12 builds, maybe Rashed can help. If you could upload the platform_manifest would be very helpful to see what your taking from Google and that what it's not. Did you have force closes? If not, this is a very nice step for AOSP and the device blobs are working. I really don't know much about this HW errors, RenderBroken may know it.

If I manage something I will post here. :fingers-crossed:
[G2 Developer Discussion [Developers Only]] Flo0008:
It is up at github.com/Flo0008/android_scripts in the local_manifest folder
[G2 Developer Discussion [Developers Only]] Flo0008:
I tried to fetch frameworks/opt/telephony and so on but I got only lots of no such a symbol errors.
[G2 Developer Discussion [Developers Only]] GalaticStryder:
I'm running trough some error after a repo sync on SlimLP also, making me unable to build some other variants (already built D800, D802 and D801 / VS980) it's some commit they had merged in Telephony, I will check that.

make: *** No rule to make target `/home/stryder/slim/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.hardware_intermediates/classes.jar', needed by `/home/stryder/slim/out/target/common/obj/APPS/Telecom_intermediates/classes-full-debug.jar'. Stop.

Not a device specific error, but it's weird the last commit in

packages/services/Telephony on SlimRoms Repo were in Dec 8th.

logtags: /home/stryder/slim/out/target/common/obj/APPS/TeleService_intermediates/src/src/com/android/phone/EventLogTags.java <= packages/services/Telephony/src/com/android/phone/EventLogTags.logtags

:confused:
[G2 Developer Discussion [Developers Only]] varund7726:
yes there is something wrong with the new g2common vendor

well have to wait for a fix
[G2 Developer Discussion [Developers Only]] GalaticStryder:
Opened a thread for TESTERS

As we (developers) always need testers, specially for the uncommon variants, like D803, F320... and of course all G2 variants... I made a thread to link us to people who want to be testers to our projects before posting them officially.

HERE

Have a look there when you want collaboration for testing.

Thanks community.
[G2 Developer Discussion [Developers Only]] Flo0008:
Do you have the same problem on your rom? I mean after you flashed a build the phone reboots frequentially after about 20 seconds?
[G2 Developer Discussion [Developers Only]] varund7726:
yes i do

luckily i have a copy of the old vendor on my HDD so i can manually change sources
[G2 Developer Discussion [Developers Only]] GalaticStryder:
Upload it to your github as platform_vendor_lge so we can continue with updated builds. I'm using my modded SlimRoms device repos, so it won't be very helpful using them for flo's AOSP build.

A bit out of topic, SlimLP unofficial builds:

I have D800, D801, D802 and D803 is compiling. SlimLP UNOFFICIAL builds, I just need testers, thats why I created that thread and for every dev who wants a feedback beforehand. I have seen a ROM for D804, but I've never heard we had this variant haha. I don't think I'm gonna build F320, people usually say it has lots of bugs and so on. I'll post just when I have every device running properly, and next builds will have some performance tweaks.
[G2 Developer Discussion [Developers Only]] arcardinal:
Did you sync my repos last night? I added a test commit in g2 common that causes that error. I've already reverted it.
[G2 Developer Discussion [Developers Only]] GalaticStryder:
Saw it today Arcardinal, I reverted my fork as well from radio to system and deleted the radio.te sepolicy in the g2-common. The D802 build is running flawlessly, fast and stable, the D800 and D801 I don't know yet because I don't have these variants, waiting for testers. mkbootimg.mk I needed to change the dtbToolCM to dtbTool, it was not compiling without this change, at least for me.

All sources are fine Arcardinal, your work is amazing.
[G2 Developer Discussion [Developers Only]] Kalashnikitty:
Mhh, strange my built this morning was pretty much unstable with random reboots and heating problems with USB connected.
[G2 Developer Discussion [Developers Only]] GalaticStryder:
Are you using CAF branch? Would you mind testing mine? All D80x supported.
[G2 Developer Discussion [Developers Only]] Kalashnikitty:
Jup CAF and arcardinal repos.

Sure, send me a PM with DL Link.

(German: Ich kann es nur heute nicht mehr testen. Musst dich dann bis morgen früh gedulden, bis ich Feedback geben kann :good::laugh: )
[G2 Developer Discussion [Developers Only]] Flo0008:
So, finally, I made a logcat of this error:

As I said already, pure AOSP LP compiled on my own reboots 30 seconds. After the recent reboot the same, the device reboots again.

By the way, my baseband is unknown although I tried to flash the kitkat and jellybean baseband. Nothing helped.

Perhaps somebody can help me with this logcat how to fix my problems.

I am not too experienced with debugging logcats.

Thanks in advance!!
[G2 Developer Discussion [Developers Only]] culot:
Try this as soon as your device boots:

adb logcat -v time -b events -b main -b system –b radio > seespot.log

After you issue that command go and do whatever you suspect is breaking your stuff, and it'll capture it with gusto.

Then grab these, too:

adb shell cat /proc/last_kmsg > kmsg.log

You'll need ADB to be mounted as root, or your last_kmsg may be null; then just go into ADB shell and do:

su
cat /proc/last_kmsg > /sdcard/kmsg.log

Then pull the kmsg.log off, and debuggy good times will be had.

The bugreport also grabs the last_kmsg, among a heckton of other stuff, but does take longer to compile, and maybe won't return before your 30 seconds is up? Could be.

adb bugreport > buggy.log

If you've only got 30 seconds until your device reboots, it might be better to grab the one log at one boot, then grab another at the next boot, etc.

Get knee-deep in it and try anyway. :P
[G2 Developer Discussion [Developers Only]] nasty007:
hello

im building Dirty Unicorns for G2, im using LG DEVS device tree, building is fine, rom boots but i dont have any sound.

I tried with all possible combinations of device tree and kernels and from locgat i pulled this

W/AudioTrack( 766): AUDIO_OUTPUT_FLAG_FAST denied by client

E/AudioTrack( 766): AudioTrack::set : Exit

Link to full logcat https://drive.google.com/file/d/0B0iMCEpMCG46aWoxZUhsY2Z6bjQ/view?usp=sharing

I really dont know anymore what to do, so if anyone have any idea, or know what is the problem it wuld be great to point me how to fix this.

Thanks

Edit:

Now im using CardinalTesting device tree and kernel and i cant pass this error

make[1]: *** [sub-make] Error 2

make[1]: Leaving directory `/home/nasty007/du5-CAF/kernel/lge/msm8974'

make: *** [TARGET_KERNEL_BINARIES] Error 2

make: *** Waiting for unfinished jobs....

Edit 2:

Build succesfully finished, booted fine but still no sound :(

But now i have some new errors

01-17 16:22:46.508 899 2084 W AudioTrack: AUDIO_OUTPUT_FLAG_FAST denied by client

01-17 16:22:46.508 899 2084 E AudioTrack: AudioTrack::set : Exit

01-17 16:22:46.528 2633 2633 E ExtMediaPlayer-JNI: QCMediaPlayer could not be located....

01-17 16:22:46.538 2633 2633 E MediaPlayer-JNI: QCMediaPlayer mediaplayer NOT present

01-17 16:22:46.668 2633 2633 E MediaPlayer: Should have subtitle controller already set

full log link https://drive.google.com/file/d/0B0iMCEpMCG46MXFnczlUa0VGN0k/view?usp=sharing
[G2 Developer Discussion [Developers Only]] GalaticStryder:
Weird Error

Has someone ever faced the following issue?

frameworks/av/services/camera/libcameraservice/api1/CameraClient.cpp: In member function 'virtual android::status_t android::CameraClient::sendCommand(int32_t, int32_t, int32_t)':
frameworks/av/services/camera/libcameraservice/api1/CameraClient.cpp:679:23: error: 'CAMERA_MSG_STATS_DATA' was not declared in this scope
enableMsgType(CAMERA_MSG_STATS_DATA);
^
frameworks/av/services/camera/libcameraservice/api1/CameraClient.cpp:681:24: error: 'CAMERA_MSG_STATS_DATA' was not declared in this scope
disableMsgType(CAMERA_MSG_STATS_DATA);
^
frameworks/av/services/camera/libcameraservice/api1/CameraClient.cpp:683:23: error: 'CAMERA_MSG_META_DATA' was not declared in this scope
enableMsgType(CAMERA_MSG_META_DATA);
^
frameworks/av/services/camera/libcameraservice/api1/CameraClient.cpp:685:24: error: 'CAMERA_MSG_META_DATA' was not declared in this scope
disableMsgType(CAMERA_MSG_META_DATA);

It just happens because of the OPTS I've done, but I need them so...
[G2 Developer Discussion [Developers Only]] arcardinal:
You need this

https://github.com/SlimRoms/android_system_core/commit/ed24da8141e20edf903dcdd14962a004b2f026ac