yashsingh1/xdaforums huggingface dataset:
[LG Optimus 4X HD] Dexter_nlb:
thanks for the report back, and yes, i am aware of the setup screen bug, it also seems to relate to the customization process hanging in the background, so it will hang for some time too, sorry. porting is not always easy

edit: i believe the problem rely in the SIMcard not being detected as you might note, the simcard screen normally shown is not being shown, which asks to insert sim. it also seems the the firmware seems to tell the htc software it is a CDMA phone, so this might also be the problem why gsm is not working. this is seen in the radio log.

- i noted the other things, and flashlight is the only one i am not looking at, as our flashlight is different and can be damaged if i try to make it like a lightbulb i think. (do not know and do not want to find out)

- we got no IMEI yet, since phone is not working, so the whatsapp might have a different issue or as you say, it does not exist. build.prop is pretty much OneX original here.

- external sdcard works fine here, i wonder why you cannot see it in storage settings?

- i do not know why googlevoice do not work, ill check up on it, probably relate to recording format, which i noted only works with AAC and not AMR format.
[LG Optimus 4X HD] tomanlam:
external sd is not accessible in the default file manager? but if i use another file manager (FX Explorer), i can access the extSD

but in storage settings, everytime i try to unmount the sd, settings.apk crashes:eek:

but as an alpha "port" (sort of), the rom is ULTRA-SMOOTH, wish at least GSM call work soon:silly:
[LG Optimus 4X HD] Dexter_nlb:
ok i see now.

this the the HTC way of having external sdcard, the semi way, since they officially do no longer make many top models with sdcard.

the location of external sdcard is at /mnt/sdcard2 and internal is /mnt/sdcard

let me check up on the unmounting, i already got some fixes, but not GSM, sorry, that require alot more it seems to fix.

about the GSM part, it is strange that both OneX and O4X uses a radio chipset with QUO 6260 radio, but they flash firmware different ways, so that makes it incompatible somehow.
[LG Optimus 4X HD] Zhus06:
Great job man!

I will join your development as soon as I finish my exams (2-3 weeks) so the LG 4X community gets alive. Will read your thread in the meantime.
[LG Optimus 4X HD] babymatteo:
Making a backup now while downloading this rom.

Thank you so much for your time and effort Dexter!
[LG Optimus 4X HD] babymatteo:
Sense 4.1 is actually pretty smooth on our O4X. Too bad radio is somehow turned off. I would rock this rom as my daily once radio gets solved. But for now, everything else seems to be working. Beats works great too. Camera is good, but video FCs.
[LG Optimus 4X HD] Dexter_nlb:
getting DRM working little better here, i simply copied the generated RSA keys from /data to a tar file and extract it at every boot, but not sure how i get the lgeril to load it now, since its htc based.

for the camera, i simply use a camera from another htc 4.0.4 release and it works fine. probably related to resolution of camera and it works now recording in 1080p as well.
[LG Optimus 4X HD] tomanlam:
Video recording actually works if you check slow motion video in the camera app by clicking the bottom left "camera" icon
[LG Optimus 4X HD] profyler:
So is this UI multilanguage? (wich languages?)
[LG Optimus 4X HD] aj009:
Thank you !!
[LG Optimus 4X HD] babymatteo:
I can't to see where the development of this ROM takes the o4x. Its already pretty smooth as it is...imagine what more if stable! Wow.
[LG Optimus 4X HD] reas0n:
I forgot to say that, You're great, Dexter :D

only GSM and vibration and it will be the daily-use rom ;)
[LG Optimus 4X HD] Zhus06:
Only? Why stop there? We could do wonders with the phone. I can't wait to start working on it myself. So sad that I have no time for it right now.
[LG Optimus 4X HD] babymatteo:
What reas0n meant is that we only need GSM and vibration to make it stable enough for a daily worthy ROM. But yah, sky's always the limit in the ROM development!
[LG Optimus 4X HD] Mikey94:
Which Android version is this?
[LG Optimus 4X HD] babymatteo:
ICS 4.0.4
[LG Optimus 4X HD] Mikey94:
hmm okay :)

Is there a chance to get Justin Bieber... eeeh Jelly Bean on our LG?
[LG Optimus 4X HD] Dexter_nlb:
update

spent some more time on debugging.

- DRM is still not perfect, something makes it not load correctly, still on it.

- sdcard bug is found, this firmware want it to be in /mnt/sdcard/ext_sd , so i changed it and now it unmount correctly.

- google voice issue fixed.. wrong libasound.so , fixed.

- replaced libbinder.so and libicuuc.so , so less crashing and no problem with "no cpu subsys" reports in logs.

- Camera replacement, camera support selecting 1080p now , but seems only 3Mpixel pictures is supported (ill work on it.) old Camera still there but renamed apk to Camera.apk.original if you want it back, it has the multishoot function but not this one.

- NFC enabled, but icon still missing. NFCtag+ works fine now.

- Audio recording is now working fine with AMR audio as well (probably since libasound.so got changed)

but!, radio is still messed up, phone is not activating due to certificate check with the ril driver seems not activated.

all this security checking with certs and lg really makes this annoying.
[LG Optimus 4X HD] Dexter_nlb:
i tried it, but the radio driver is still the issue, so until that is fixed, i just work on one thing, multitasking is disabled.
[LG Optimus 4X HD] Oweida:
Great ,, I would sell my S3 and replace it with 4X ,,,

okay have you tried adding the lg ril libs plus adding the ril lines in the build.prop ?!
[LG Optimus 4X HD] Dexter_nlb:
yes, it is not as simple as that.

looking in "logcat -b radio" you can see the certificate request is not executed, which it is when it is running normally in original o4x firmware. so the htc firmware seems to skip init calls for this part, so radio is unavailable as it writes.
[LG Optimus 4X HD] Oweida:
hmmmmm weird !!

would you mind giving me both your sense and original lg build.props ?!
[LG Optimus 4X HD] Dexter_nlb:
here
[LG Optimus 4X HD] Oweida:
Why did you keep the rilpath for htc ?!!

So it should look like this

Hopefully it will work :)

adding two paths will confuse the rom :)
[LG Optimus 4X HD] Dexter_nlb:
well "#" means its a comment, all is already in place and correct :). nothing more to remove or add. comments in build.prop works fine with "#" some of the comment lines you mention are property of HTC.

the libhtc_ril.so cannot be used at all, since it refer to system calls and kernel functions we do not have on lg.
[LG Optimus 4X HD] Oweida:
I advised you to do these changes because I faced the same issue when I ported sense to S2 and S3. rild.libpath should refer to only one ril lib as it was apparent in my case plus not only the liblg-ril.so also the other related .so files need to be copied.

I don't own O4X for now but if you get the GSM working I will differently buy one :).

Good Luck
[LG Optimus 4X HD] Dexter_nlb:
ill test, but "getprop" shows me only lge-ril is referenced. and i copied all lg ril libs as well, otherwise it would not load at all.
[LG Optimus 4X HD] Norax:
What about the "ro.ril.projectname=x3"?

In the Lg version there is not such a line. And there is even a "#ro.ril.devicename=/dev/ttyACM1". So maybe it has to be ignored to let it work.

In the Lg version there is a "ro.build.target_ril_platform=ifx" and a "ro.lge.capp_smartcard_lgril=false" that doesn't appear on the HTC fixed one.

On the contrary, in the HTC fixed version there is a "ro.telephony.default_network=3" that doesn't appear on th Lg one.

Finally, maybe the bluetooth problem has something to do with the definition in the HTC fixed version, which is:

#Relase Bluetooth HW/SW information

ro.bt.chipset=TI 1283

ro.bt.stack=TI BlueZ

ro.bt.stack.version=1.1.0.3

#Wireless setting

ro.product.bluetooth=4.0

ro.product.wifi=802.11 a/b/g/n

And in the LG version it doesn't even appear. It could create a conflict that only appears when it has to manage it with som e other device, like the wifi.

I'm not used to it, so maybe this is useless. But I wanted to contribute my two cents ;)
[LG Optimus 4X HD] Dexter_nlb:
i tried alot of combo's with the build.prop as well now, but im certain we need the lge-ril.so and we need the params as well, so it uses the ACM0 device as original kernel define is radio.

all the rest is not important for lge-ril except those already in the original config. if some parameters affect the htc framework, then it will be alot guessing on how to make it send the ceritificate information as the original stock rom does. this is all shown with logcat -b radio, so im sure it works but no so far it will send certificate to the radio which probably makes it unavailable as the cert will "open" the device.

btw,

you cannot remove details which htc framework expect to find, they you got alot higher chance of the rom failing to boot.

i added "ro.telephony.default_network=3" as the lge-ril init from htc framework was identified as CDMA if it was not set, because the system call failed when asking which modem was available.
[LG Optimus 4X HD] Dexter_nlb:
help!

i continue to have this error:

which seems to relate to verification of the certificate installed.

lib-lge-drm.so might be possible to hack, to always say certificate install was ok, and the driver init might work fine.

so if anyone got a IDA advanced editor which support ARMv7 code, and can fix/hack the binary we might be moving forward :)

this is at least on reason why our driver to do init, i tried testing other LG optimus device drivers and none support our chipset it seems they fail even before they get started to do something good.
[LG Optimus 4X HD] Mikey94:
Hey,

thanks for your work :)

How is it going? Do you think GSM will work soon? :)
[LG Optimus 4X HD] Subhajitdas298:
Have anyone tested performance with benchmark. Please post results.
[LG Optimus 4X HD] babymatteo:
I think it will. Dexter will make it happen one way or another so don't worry.

Oh and, never ask for ETA's from a dev.
[LG Optimus 4X HD] Dexter_nlb:
i did,

pretty much the same, without any optimizations or just "stock htc", its around 13900 for me.

and no,

GSM is still not working, i got the LG DRM to authenticate but thats pretty much it, its still not enabling.
[LG Optimus 4X HD] Dexter_nlb:
FYI - very small update

I have not asked the Venon team for permission to use their full release yet and working on it, so you might see this update being removed!

of course, hoping they will approve and we can continue. i do not believe it will work with their ViperX 3.x, but only ViperX 2.x release.
[LG Optimus 4X HD] Oweida:
Oops :)

would you mind telling me how did you get both camera and wifi working in your build ?!
[LG Optimus 4X HD] arnookie:
LG source if you need it at all.

I know this may have been posted a million times but is this any use?

http://www.lg.com/global/support/opensource/opensource-detail.jsp?detailCustomerModelCode=LGP880

http://www.lg.com/global/support/opensource/opensource-detail.jsp?detailCustomerModelCode=LGP880G
[LG Optimus 4X HD] Dexter_nlb:
no word from Team venom, so i will probably replace the release with a stock based edition to avoid the conflict of their modded release, but aroma installer will be kept since i practiced using it with Flyer releases as well and it works well on O4X here.

but im still testing, so they might still come back with an approval, its not hard to replace the framework and app files, if they dont :)
[LG Optimus 4X HD] Dexter_nlb:
decided to go back to stock, was alot easier, just replacing the framework , apps and bootanim and im at stock. (removed onex optimizations since those were not compatible anyways)
[LG Optimus 4X HD] Oweida:
Bravo !!

I finally got rid of my S III and I bought O4X. Of course I have tired your rom :)

few questions :-

although both internal and external sdcards are mounted but the rom couldn't read from them ?! music and gallery did not show anything :) I believe either the rom needs time to scan them or there is a problem with vold.fstab which I believe since you haven't included the usb line !

regarding the libril.so from the date It seems you haven't changed it with the lg one right ?!

I will do my best to help.
[LG Optimus 4X HD] babymatteo:
hey guys, i got a tip from the deloper from Team ICESense saying that it might be easier to port an HTC EVO LTE just because it has sd card support. Idk if this is true or if it might be a possibility to make things easier for you guys here, so i thought i'd share this info here.
[LG Optimus 4X HD] Dexter_nlb:
yes, media from sdcard and internally works well in the new edition, which is not ready yet.

and next update is fully compliant as regular update.zip compared to the backup solution.
[LG Optimus 4X HD] Oweida:
Thanks a lot :)

btw dexter ,, do you think it's a framework issue ?! do we need to add the lg smalis to the telephony folder in framework2 ?!

plus once the CM build a rom for our O4X I think we will definitely have a working GSM..

P.S. A little appreciation was deposited in your paypal account Mr.Dexter :)
[LG Optimus 4X HD] Dexter_nlb:
updated post #1

have uploaded a new dev. release for testing.

it is now cwm based, so its not a backup zip , but a regular cwm update.zip install as usual.

many fixes but yet, no gsm fix today.
[LG Optimus 4X HD] razerblade17:
now downloading,,happy flashing everyone!!
[LG Optimus 4X HD] Dexter_nlb:
Cleaned post #1 for "backup" mention and removed some things which no longer fits this latest release.

do note, it is still a little slow on firsttime language setup screen, but then, it is no longer crashing here :)
[LG Optimus 4X HD] ozeer:
God blessing you dexter .. thanks for sharing this Rom :)

Best regards,
[LG Optimus 4X HD] razerblade17:
everything work just like op..but cant test battery life since i will not use it as a daily rom..hope gsm and camera will work..thanks dexter!!

---------- Post added at 06:33 PM ---------- Previous post was at 06:31 PM ----------

htc browser really smooth than LG...love it
[LG Optimus 4X HD] Dexter_nlb:
camera works fine, just switch to 1080p and it runs just fine. it seems to not like missing 1280x720 recording and it closes, but since settings now work, you can switch to 1080p video.
[LG Optimus 4X HD] razerblade17:
i install back v10h,but after that stuck at lg boot logo..anyone can help??
[LG Optimus 4X HD] tomanlam:
u need to go to the device's native recovery and wipe both data and cache before u install back v10H using LG tool
[LG Optimus 4X HD] Oweida:
I think I softbriked my phone. I installed the ROM through cwm did full wipe in aroma and now stuck at lg screen with security error message .

Is it possible to get it back ?!
[LG Optimus 4X HD] razerblade17:
but i cant enter safe mod......any solution??
[LG Optimus 4X HD] tomanlam:
can u boot into the device's recovery using power+volume down?

make sure u wiped both system and cache before u install V10H using LGTool
[LG Optimus 4X HD] razerblade17:
cant enter recovery using that way...
[LG Optimus 4X HD] Dexter_nlb:
pull battery out, press and hold VOL-DOWN , attach battery while holding VOL-Down, now press power

works fine here, i got recovery opened.

and yes, you might see the security violation if the boot.img is not from v10d , since i used v10d as base here. then the security check finds invalid signatures on files found since its v10d.
[LG Optimus 4X HD] razerblade17:
waaaaaa.......thanks...hope it will fix
[LG Optimus 4X HD] Dexter_nlb:
i believe it is possible to make the installer flexible , so it will start copying the secure files BEFORE it start formatting system partition, so when everything is copied, it can copy secure files back , which matches the kernel (v10h?) installed and the LG security check will not fail.

an idea, ill work on. for now, euro v10d probably is the requirement to boot if it failed security check.
[LG Optimus 4X HD] Oweida:
would you mind telling me what's the process to flash V10D ,, i'm kindda new to this LG thing ?!
[LG Optimus 4X HD] :
Dexter thank you again for your hard work.

It is like a dream to see that someone has done a custom rom.

ah I remember in the past with the Motorola Defy, you was the first too :))
[LG Optimus 4X HD] tomanlam:
it's strange that wifi worked on the first alpha but it doesn't work on the latest alpha and just shows "Error" (becoz u used v10d as base?):p
[LG Optimus 4X HD] razerblade17:
wifi working fine on my phone:p
[LG Optimus 4X HD] tomanlam:
did u install the alpha over v10d (so no compatibility problem between the 2 builds)? i install this alpha over v10H:silly:

but wifi worked for me on last alpha:p
[LG Optimus 4X HD] Dexter_nlb:
it actually could, there are kernel modules loaded (not wifi related) but triggers enabling wifi, so if the kernel module fail to load, it will not enable wifi.

so again, i assume v10a -> v10d is prefered now , and i might need to make a lib fix extract /lib/modules from a v10h to make that one work too.

actually i included v10d boot.img, but i have not had the chance to verify how it works on a v10h install, so i did not execute installing the kernel yet.

it might even semi brick if signature changes from v10d to v10h, so only a kdz will recover it (i tested changing recovery img and semi bricked it)
[LG Optimus 4X HD] razerblade17:
i also use v10h..and no problem on wifi, now back to lg stock rom :D
[LG Optimus 4X HD] arnookie:
WE WILL GET UNLOCKED BOOT LOADER :o)

Great news Guys!

Unlocked Boot loader for LG Optimus 4x Lg P880 Iminent!!! Yay!!!

I contacted LG regarding unlocking of the LG 4X bootloader. Here is the reply they sent me.

Sweet!!!!

Dear Dan Russ

We received good news about boot loader unlock from our dev. team.

They said that P880(EU Open) will be unlocked next OS version update.

We expect that OS version update will be during the first quater of 2013.

We hope this information will help you.

Thank you.

Sincerely yours,

LGE MC Company Open Source Code Distribution Center

Email : opensource-mc@lge.com

This is what I origionaly sent LG.

Product

Information

Category : MOBILE PHONES

Model Name/Number : LGP880

Your Message

Message :

Any chance of getting the boot loader of the LG p880 unlocked? Please send me any details if it can be thanks.

So this is really good news. Hope it makes a few people pleased.
[LG Optimus 4X HD] Dexter_nlb:
thanks for confirming, so v10h is not an issue. good to know.

we will keep searching for the GSM fix, that makes this a daily driver for some,

but for now , its just fake candy ;) see but not really use yet.

and thanks for the bootloader info, it actually confirms that it should be able to trigger opening it :) (i think) but thats not for this thread , its OT! so comment on this in the other bootloader thread.
[LG Optimus 4X HD] tomanlam:
well it sounds too good to be true (though i hope it is:silly:)
[LG Optimus 4X HD] razerblade17:
waiting for gsm to fix, it is possible to port cm9 or cm10?? i think it much more better, because we can port any rom if we has cm9 or cm10 :D
[LG Optimus 4X HD] babymatteo:
Any CM build is still impossible because of the locked bootloader. CM uses its own kernel i believe...But correct if im wrong.

But when we do get the update to jellybean and the unlocked bootloader, development for the o4x should booming! :victory:
[LG Optimus 4X HD] Oweida:
Totally agree :)

Once we get the bootloader unlocked and get rid of the security certs we will have a lot of chances to port CM 9/10 :)..

Believe me porting HTC sense rom to non htc devices is much much difficult almost near impossible but Dexter_nlb made that fact possible. I wish I can be of more help to him to get the gsm fixed .

Anyhow Dexter_nlb may be if you contact CM developers somebody would help. Also try chainfire ..
[LG Optimus 4X HD] babymatteo:
This Alpha 1.0 is money! So smooth. I'm actually more excited about this becoming more stable than receiving the jellybean update lol...
[LG Optimus 4X HD] Dexter_nlb:
i am starting to believe that when the bootloader gets unlocked the radio actually does too. so the certificate required to unlock radio seem to be skipped. maybe im mistaken, i found other threads here on xda on XMM6260 and how the radio should work and which models uses it, but nothing relate to those certificate i see being loaded at startup.

the search continues!
[LG Optimus 4X HD] QweJay:
Nice Work！

Sorry about my bad English
[LG Optimus 4X HD] Matteo 88:
IMHO

i think the problem is not that it cant be done...

on Motorola Milestone they realeased a CM with locked bootloader long before they managed to use 2nd-init.

they also realeased overclock modules for the locked kernel wich should be achievable on o4x as well doe i think

an oc module on o4x wouldnt be much of use since it gets pretty warm already with stock clockrates.

i think a real problem is the lack of comunication and low level devs since the only one actually doing this stuff seems to be Dexter.

and that ox4 is just nothing special only a cheap phone with good hardware

most people would just spend 100€ more and buy an oneX or galaxyS3 where u get much more fancy stuff like covers and so.
[LG Optimus 4X HD] Dexter_nlb:
right after 2nd-init came out, i released my Sense for Milestone :) , and they said also then, it was not possible. i actually got quite far, but still some bumps, and at that time cm was almost unknown.

and yes i should have paid the xtra €150 here to probably have had my Sense mobile too, but this have been fun so far.
[LG Optimus 4X HD] Zhus06:
I think its more fun this way... also i cant say one X was 150€ better when i tryed both phones...
[LG Optimus 4X HD] Dexter_nlb:
update on progress

I kinda stopped sense4 work for now, and switch to verify if the radio could get working at all from a ported OneX rom, so i switch to another port for now.

using the "CustoNexus-v1.1.0-Endeavoru-09.11.12" for OneX which is a 4.1.2 rom, i managed to get radio fixed and the lgdrm libs so it loaded with certificate verification ok.

the final hack seems to be in the way they added power control for this.

these 2 lines

enabled the antenna to begin with.

next the radio still fell out losing connectivity, so i added all original LG framework (even if its only 4.0.3) for telephony com and android-private telephony ril's and it finally made it work on that rom. so somehow if i can adapt the framework, and on top use the power control they added to the 4.1.2 release of this rom, we might just get radio enabled on sense4 as well, but the question is whether sense framework is so closely related which i doubt it is.

a stock aosp rom is much closer.

anyways this port, is much more buggy, as internet and camera is not working :( so im probably not gonna post anything related here, except confirming if the certificate do loads and works, the radio will actually activate together with the few findings above.

so progress! lets see if i can adapt these changes to the sense4 rom now.

edit,

do i need to say how FAST 4.1.2 is on O4X? its just super fast and feels really like it was made for it. and it kinda is made for tegra3 :)
[LG Optimus 4X HD] nomaj:
Dexter_nlb!

you are hero! keep the nice work!
[LG Optimus 4X HD] Terriertheone:
Dexter you are simply awesome! Hope you get it fixed with the gsm, then i would say it's a daily use rom. If you fix it i will spend you some money for your really great work for our small community. Keep up the good work!

Sorry for my bad english! :)
[LG Optimus 4X HD] babymatteo:
Danny Dexter, I'm so close to selling my Nexus 4 because of you!!! You are simply awesome!!!

Once I get my funds I'm, I will definitely make a donation for your incredible(almost impossible) work. Thank you for reviving the hopes of this community :)