yashsingh1/xdaforums huggingface dataset:
[LG Optimus 2x] Jishnu Sur™:
As said on my thread, The bestest and biggest surprise is here..

Well done bro.. My crap internet connect doesnt letme download from yesterday.. i will try to fix a fee things as per out convo.

Hugs man
[LG Optimus 2x] bentcissé:
Lg G2 Rom on Lg 2X!

I do not believe my eyes, now I have a new hero!!:highfive:
[LG Optimus 2x] SuperSkill:
Congratulations, another era :)
[LG Optimus 2x] Custom40:
A lot of people around here wanted something like this, never expected it to happen, here it is.

If you think this is the early stages, think again. Trust me when I tell you, Firtecy started this project a long time ago. How well it all turns out and how fast the development goes depends on us too. This is not the beginning of this ROM, it is the beginning of reaching its maturity! Test and do your best at helping to improve this project to reach its full potential.

Now, about the current logcats from post #2, here is my thoughts (my O2X is currently with my dad, so testing won't come easy for me):

SD Card: In boot.img, check that the symlinks are correct. Compare the source ROM device rc file in boot.img with you're one search for all /sdcard1 values perhaps lg jb uses external_sd instead of sdcard1.

Wifi: com.lge.wifiext.WifiServiceExt issue usaully Ljava/lang/UnsatisfiedLinkError; means the class needs a lib in jar folder extract and decompile com.lge.wifiext.WifiServiceExt search for a Library string then in lib folder look for for missing file

Bluetooth: om.android.bluetooth.btservice.AdapterApp: java.lang.ClassNotFoundException: Didn't find class "com.android.bluetooth.btservice.AdapterApp" on path: /system/framework/com.lge.systemservice.core.jar:/system/framework/javax.obex.jar:/system/framework/com.broadcom.bt.jar:/system/framework/com.lge.bluetooth.jar:/system/framework/com.lge.mdm.jar:/system/app/LGBluetooth4.apk

This looks like missing class also the source ROM may use a different chipset causing the classes to malfunction.

GSM: This seems hecticly broken but it looks like the deamon is broken in bin folder make sure RILD is from our O2X device not source ROM also lge-ril.so in lib folder must be from our O2X, but you probably already know this since you started working on it already hehe.

sys/devices/virtual/input/lge_touch/incoming_call: open failed: ENOENT (No such file or directory) This is a driver issue and there is nothing to do about this I'd say.

I wish you the best of luck! If some of you think the Bitbucket download is slow, I don't blame you. I'll mirror it to Mega (full DL speed for all), but it will have to wait till Friday, Firtecy knows why I hope ;).

Stay strong and have faith.
[LG Optimus 2x] SREEPRAJAY:
[MENTION=5124291]Firtecy[/MENTION]

Best wishes my friend and I am really proud and convinced that the world belongs to the young and is safe

GOD bless you and hugs
[LG Optimus 2x] sgspluss:
About not working SD-Card, compare it with stock ics or cm10.1...

In vold.fstab you find:

In stock volt.fstab has the internal sd sdhci-tegra.3/mmc_host/mmc0 and the external sd has sdhci-tegra.2/mmc_host/mmc1, so maybe this are the reason why its not working...
[LG Optimus 2x] Firtecy:
Nice! :) I hope this project will end in a success! :)

Check boot.img and i can confirm that all symlinks are set correct. I think this external_sd thing is only in the ICS. There i would guess are just other paths.

Wifi, really thanks for the hint! Will take a look at it later. The source smalis are at the moment not at bitbucket.

Bluetooth, it is really a mess, but what did we expect ^^ Bluetooth is in every newer android version a mess at our device!

GSM, yes i copied it again and made no difference.

And for the last, well we can't do anything at this, because we simply don't have this files in /sys filesystem. Maybe we have something similiar, but this will need some time..

So thank you very much! :)

If you take a look at the lg P990 repo at github (the P990-dev account):

https://github.com/p990-slimrom/android_device_lge_p990/blob/jb4.2-newbl/init.cm-star.rc

You see the files are identical, so that is not the problem.. I think it could be something in the mountservice in framework then.

But thanks for the suggestion! :) When we swap them we can check if it is an error in the mountservice(framework) or with vold mounting! :)
[LG Optimus 2x] Firtecy:
So i have found the cause of the SecurityExcpetion with GSM. LG added their custom system service "iusiminfo". They signed all correct, but CyanogenMod don't support this custom service. So i have to make a Clean CyanogenMod-Build and then add all stuff that we will need!

So here should be the solution:

In service_manager.c

ALOGE("add_service('%s',%p) uid=%d - PERMISSION DENIED\n",
str8(s), ptr, uid);

(important functions for that: "svc_can_register" & "do_add_service")

So in the static array "allowed" are all original system services allowed, like:

{ AID_RADIO, "iphonesubinfo" },

The phone will runder under the right ID(checked that), but there is no entry for LG's missing "iusiminfo". So i will add this and hopefully we won't get any longer Security Excpetions! :)

Oh and when i make a build, i will take -Os build flags, that will give us more free RAM :)
[LG Optimus 2x] Custom40:
As promised, here is a mirror which will hopefully give a speed that will satisfy everyone:

Alpha 01 - Mirror - Mega

Personally, I do think this thread has the quality and deserves to hit the XDA news section. If you tend to agree, vote the thread worthy by clicking this link: VOTE.
[LG Optimus 2x] Firtecy:
Okay again a small update for you guys!

So I have build all libs and binarys from source with -Os Flags. (More specific ARM modules) Thanks to [MENTION=3605868]tonyp[/MENTION] for testing this and the initial idea! This gives us much more RAM and a better capability of multi tasking. I had to take CyanogenMod sources, because SlimRom sources won't match the framework properly.

At the same time I added the 3 missing custom services ("iusiminfo", "Lphone" and "com.lge.ims.phone"). Yes there was another one I forgot :D. Now phone won't crash any longer. And I fixed the visibility of a important method for our Rilclass. (The send method for the classes to send a rilrequest was private before, but since we are using a custom one, we need that one to be at least visible for our Rilclass)

Now I can proceed with fixing GSM.

For storage mounting I will try [MENTION=4920940]sgspluss[/MENTION] suggestion! And thanks to [MENTION=2813698]Custom40[/MENTION] for providing a mirror! :)
[LG Optimus 2x] Custom40:
About the RIL, take a look here: http://xdaforums.com/showthread.php?t=1351741

Have fun.

PS: I'm having issues connecting to Hangouts, will try to get it back running.
[LG Optimus 2x] Firtecy:
Okay just write me on hangouts when you are able to get it to working :)

Oh and about the Ril: Our device specific Rilclass gets loaded. The network indicator shows no network available. And in the log is no error at all. So I have no hint where the "connection" gets lost. Oh and I'm not able to get my IMEI or phone number. But there is no notification about a not inserted Sim card. So I have to guess where the issue appear

I think the phone is running under the right Id, user and process, because if it were not so, we would get a security exception

Gesendet von meinem ASUS Transformer Pad TF700T mit Tapatalk 4
[LG Optimus 2x] Adam77Root:
So you say you didn't replace libandroid_runtime, libandroid_servers and related stuff? (Of course you couldn't because of NEON instructions.) And you took LGE frameworks from G2? Previously all LG fw-s I have met have a lot of extra/different native functions and also, the G2 is a Qcom device, it has a few changes there, most notably in GpsLocationProvider.
[LG Optimus 2x] Firtecy:
Yes the whole java framework. I replaced all native methods that are not availible in the Cm framework for non qcom devices with dummy methods. So returning everytime a 0 or an empty array. That works without that much problems.

They weren‘t that much other native functions. Seen my bitbucket repo?

So you worked with other lg fw-s? Maybe you can give some hints? I had no luck with my tries to get a working gsm or even wifi..

Gesendet von meinem ASUS Transformer Pad TF700T mit Tapatalk 4
[LG Optimus 2x] Adam77Root:
This is an enormous work, hats off to you! I did the same in my SGS2 port to Galaxy R (Tegra 2 -> no library replacing) here.

I didn't work with LG framework, just checked a few differences here and there. Still haven't decided which OEM rom I should start working on.

Will check the logs you posted in the afternoon / evening. :cowboy:
[T-Mobile Samsung Galaxy Note II] czerpakmom:
I have flashed back to stock rom, got a new sim, pulled battery...

I have no idea what to do.

I even updated with kies.

It works for about a minute then drops call. Then it continues with nit regustered on network.

Currently, I am a AT&T Customer but im unlocked.

I contacted tmibile, and at&t and the phone is noy blacklisted.

The imei is the same in settings as on the back.

Ideas?
[T-Mobile Samsung Galaxy Note II] ruvelojr:
Same happend to me this minday and I restored back up n worked ok next day same issue.my note 2 was blacklisted after having it for a year.i bought mine on craigs befor xmas guess I was lucky it wasnt blacklisted sooner.any way in a bind I just picked up another note 2 from tmo 50.down but yea full signal cant register on network imei in tackt looks bad.good luck .the check esn website takes a while to update.tgey claim that blacklisted phones only work outside the u.s now
[T-Mobile Samsung Galaxy Note II] czerpakmom:
I went to both AT&T and T-Mobile and the phone isn't blacklisted.

So. Far I have figured out this much, if I set it at 2g, I have full bars. I have full service right now and I set my network to AT&T my searching available networks. The I changed 2g, to 2g/3g/4g.

Will it stay I dont know, its driving me nuts.

Is it possible to be unlocked. But not totally? Should I try flashing back to 4.1..1 then doing the unlock and then flash a updated stock rom.

Or flash a AT&T modem since I want to use their service?

When I went back to stock, It did a OTA update. Could of that messed with my connection? Maybe when I did the factory reset, it set it back to T-mobile?

Sorry such a noob!

I just typed this whole thing and still shiw 4g and 3 bars. So probably a few minutes which is better than before.
[T-Mobile Samsung Galaxy Note II] czerpakmom:
That lasted for a whole minute after posting that. Ughhhh.

Im just gonna sell this one and buy a AT&T branded phone. Hopefully I will get enough to buy another one.
[General Questions and Answers] thebiggboss180:
hello

i need to ask

if i moved an app to system partition do it will stilll need the root permotion or the app become a system means it have the permition ??

thanx in advance
[General Questions and Answers] parkourkarthik:
I cant clearly get U.

Anyway..

1. If it's an ordinary app,

U'll need root permissions in case if u want to uninstall it.

2. If u mean it as an app that requires root to work on things,

Then root permission is required even if it is a system app.

Hit thanks rather than typing it ;) now Free
[General Questions and Answers] PradeepMurugan:
first you need root permission to move apps from data partition to system partition, once you made it as system app it gets root access automatically because system partition user id and group id is 0 that means root. so it has full access

infact all files inside system folder are in userid 0 so all apps get root permission without any restrictions and it will not ask you to give root permission

---------- Post added at 02:05 PM ---------- Previous post was at 02:03 PM ----------

have a look at this thread http://xdaforums.com/showthread.php?t=2535953 i made to know user id and group id i mentioned

its about updater-script
[General Questions and Answers] thebiggboss180:
that what i thught about system apps

and i didnt understand about updater-scripts...i got a tablet and i dont want it to soft brick while trying cuz i dont have a stock software of it

thanx anyway
[Nexus 5 Q&A, Help & Troubleshooting] jimbotron:
I have a dumb question and I'm ashamed of myself for not being able to figure out the solution nor can I find a way to fix this by searching for a solution online.

Whenever I click on the "share" button in Google Play app, it default to Gmail directly. It used to ask me which app I would like to use when I click on the "share" button with all my previous phones. Does anyone else have this issue?
[Nexus 5 Q&A, Help & Troubleshooting] Landara:
Try clearing your Data for play store in your app preferences. You won't lose anything but it will reset play store to default everything(including hopefully this setting). Settings/Apps/All tab click Google Play Store and click Clear Data.
[Nexus 5 Q&A, Help & Troubleshooting] jimbotron:
Thanks but that didn't work. It has never asked me to set a default action before. Today was the first time I tried to use the share link in the Google Play app and it is already default to Gmail.

I did clear the data and default action for the Gmail app as well. That didn't solve the problem either. :confused:
[Nexus 5 Q&A, Help & Troubleshooting] wheelerruss:
Having exactly the same issue myself. Anyone figure it out? It's only happening on my nexus 5 on 4.4, not on gnex on 4.3
[Nexus 5 Q&A, Help & Troubleshooting] skttrbrain:
This is a known 4.4 bug. Go to Settings>Apps then on the dropdown menu press 'Reset app preferences'. That will fix it.
[Nexus 5 Q&A, Help & Troubleshooting] jimbotron:
Thanks. I downloaded the app andmade share. Not the most beautiful UI but it gets the job done
[Verizon Samsung Galaxy Note II] Nilb0g:
I've been looking for modems for this phone, and came across this thread http://xdaforums.com/showthread.php?t=2108510

I actually went through the posts to make sure it would work with AOSP, i went to the guys forum and signed up only to find out they disabled the page. I saw somewhere on one of the last pages that someone maybe have backed up all of the versions. I just made the account so it looks like i can't post there and ask. So i'm here.

Does anyone have a working link with the three modems for the I605? Please?
[Verizon Samsung Galaxy Note II] imnuts:
I have them all, let me get links for them and I'll post them for you and everyone else then.

EDIT: Here they are in CWM/TWRP zip files, ready for anyone's enjoyment click me
[Sprint HTC One (M7)] ryanguhr:
I have been rooted and using CM 10 for a few days now. Wanted to try a new ROM, so made a nandroid backup, wiped data/cache/system all that good stuff, flashed the zip.

Then my phone rebooted into the bootloaded... and nothing. Tried to select Recovery, had a screen say Entering Recovery, and then was back to the bootloader.

Hooked my One up to the computer, thinking I somehow lost CWM. Used Fastboot to flash CWM, and it showed a success, but I still cannot get into CWM to restore any backup.

I really don't want to use a RUU, is there any fix for this?

Thanks a million for any help.:confused:

EDIT: I still do show as being Unlocked.
[Sprint HTC One (M7)] elvisypi:
Was the ROM you tried from the international forum? If so you may have flashed a non compatible ROM, or chosen wrong phone model in aroma. In that case the only solution would be http://xdaforums.com/showthread.php?t=2460013
[Sprint HTC One (M7)] ryanguhr:
No I made sure it was a wls ROM. Thanks for that link though I will definitely try that.
[Sprint HTC One (M7)] jab74101:
Try fast booting a TWRP recovery.
[Verizon Galaxy Note 3 Q&A, Help & Troubleshooting] JuanNut:
Maybe this question has been addressed somewhere on XDA, but I was wondering why there aren't any AOSP ROM's out yet for our Note 3. Just curious if they are in the works or what??
[Verizon Galaxy Note 3 Q&A, Help & Troubleshooting] Jermehh:
From what I understand AOSP ROMs require a new kernel, which we are unable to flash due to limitations from a locked bootlader.
[Verizon Galaxy Note 3 Q&A, Help & Troubleshooting] oneandroidnut:
not for all of us! ;) wish somebody would make an aosp one. just to try at least
[Verizon Galaxy Note 3 Q&A, Help & Troubleshooting] akellar:
Can assume CM will work on a version for unlocked (TMobile) version that a dev could use to port to Verizon. Last I heard there was issues with call audio but that was a while ago and nothing official.
[Verizon Galaxy Note 3 Q&A, Help & Troubleshooting] oneandroidnut:
i checked tmobile yesterday and didnt see anything aosp. do you have a link maybe i overlooked it
[Verizon Galaxy Note 3 Q&A, Help & Troubleshooting] akellar:
Nothing has been released and the source is still private as far as I know.
[Verizon Galaxy Note 3 Q&A, Help & Troubleshooting] oneandroidnut:
Oh ok i would be willing possibly to flash a test one and see how it is :)
[Verizon Galaxy Note 3 Q&A, Help & Troubleshooting] 117micc:
Yeah I was wondering the same thing, that's really lame that we have no aosp roms ugh
[Verizon Galaxy Note 3 Q&A, Help & Troubleshooting] JuanNut:
I hear CM might be working on a ROM for the Note 3, hope it is not just a rumor :confused:
[Nexus 5 Q&A, Help & Troubleshooting] VictorML:
Hey there.

I'd love to enable the diagnostic mode in my Nexus 5 so that I can trace the radio interface with software such as QXDM, X-CAL, etc... but I've had no luck so far.

basically I'm trying to change the variable sys.usb.config to [diag,adb] as shown in this post for the Nexus 4. I'm doing:

> su -c 'setprop sys.usb.config diag,adb'

(if you run getprop you see that the correct order is sys.usb, not usb.sys as shown in that post)

However, when I enter this command the phone automatically reboots... and the value is reverted back to [mtp,adb].

Any ideas? Do you know of any 'friendlier' way to enable diag mode on the Nexus 5? For example, in the Galaxy S4 you can just dial *#0808# to get into the USB config menu, which easily allows you choose the DM mode... but I can't find a similar menu on the Nexus 5.

Seems a bit absurd to me that a developer-oriented phone is the hardest one to put in diag mode... :/

Note: I'm rooted.
[Nexus 5 Q&A, Help & Troubleshooting] prometheusZ:
my phone is the same situation
[Nexus 5 Q&A, Help & Troubleshooting] satadru:
I'm seeing the same thing.

shell@hammerhead:/ $ su -c 'setprop sys.usb.config diag,adb'
shell@hammerhead:/ $ getprop sys.usb.config
mtp,adb

Was this a change in AOSP? Might have to dig through the sources to see what changed.

---------- Post added at 04:56 PM ---------- Previous post was at 04:52 PM ----------

For what it's worth I can get that to change in recovery, but it doesn't enable anything else.

setprop sys.usb.config diag,adb
~ # getprop sys.usb.config
diag,adb
[Nexus 5 Q&A, Help & Troubleshooting] prometheusZ:
i have done this with cm11, but the result was the same
[Nexus 5 Q&A, Help & Troubleshooting] satadru:
I'm definitely seeing that this works on d2 devices with cm11. I wonder if it works on the LG G2, since that is similar inside.
[Nexus 5 Q&A, Help & Troubleshooting] satadru:
The problem is that this needs to be run as root, with SELinux disabled.

You can set SELinux to permissive with this tool: https://play.google.com/store/apps/details?id=com.mrbimc.selinux

As per here:http://xdaforums.com/showpost.php?p=39686712&postcount=3 the usb init script for hammerhead should tell us the steps for diag mode.

That hammerhead init script is here: https://android.googlesource.com/device/lge/hammerhead/+/kitkat-release/init.hammerhead.usb.rc

Here's the essence, if you want to run it from your own script:

stop adbd
echo 0 > /sys/class/android_usb/android0/enable
echo 1004 > /sys/class/android_usb/android0/idVendor
echo 61F1 > /sys/class/android_usb/android0/idProduct
echo 239 > /sys/class/android_usb/android0/bDeviceClass
echo 2 > /sys/class/android_usb/android0/bDeviceSubClass
echo 1 > /sys/class/android_usb/android0/bDeviceProtocol
echo smd > /sys/class/android_usb/android0/f_acm/acm_transports
echo diag > /sys/class/android_usb/android0/f_diag/clients
echo acm,diag,mtp,adb > /sys/class/android_usb/android0/functions
echo 1 > /sys/class/android_usb/android0/enable
start adbd
setprop sys.usb.state diag,adb

Here's what you need to do from a shell, either via adb shell or a shell from a console app:

su
setprop sys.usb.config diag,adb

The device immediately disconnects you.

When I do a

getprop sys.usb.config

from a console on the device it does show diag,adb mode but I'm not seeing a device showing up when I connect the adb cable.

dmesg on the device (needs to be run as su) shows this error:

adb release
dwc3 f920000.dw3: request ed50b780 was not queued to ep0out
mtp_release
adb_open
android_usb_gadget: unable to get diag usb channel
diag: Cannot open channel 'diag'
android_bind_enabled_functions: diag failed
andoird_enable:usb_add_config failed: err: -19
adb_open
mtp_release
[Nexus 5 Q&A, Help & Troubleshooting] prometheusZ:
yes i got these messages too. does they mean google disable the diag channel on hardware level?
[Nexus 5 Q&A, Help & Troubleshooting] satadru:
I suspect a software and not a hardware issue. Maybe compare kernel sources with that on the LG G2 and also that for the Nexus 4...

---------- Post added at 10:23 AM ---------- Previous post was at 10:23 AM ----------

Or maybe a kernel module in the source just isn't getting built.
[Nexus 5 Q&A, Help & Troubleshooting] prometheusZ:
"unable to get diag usb channel" maybe is the key of this problem, i guess
[Nexus 5 Q&A, Help & Troubleshooting] satadru:
I think so. But it seems silly to disable a diag channel in hardware in case there's a problem...

---------- Post added at 10:38 AM ---------- Previous post was at 10:35 AM ----------

We might also be able to check the diag functionality by looking at other devices that also have a Qualcomm MDM9x25 chipset, which is only in newer devices...
[Nexus 5 Q&A, Help & Troubleshooting] prometheusZ:
could you locate the source code witch throws this err?
[Nexus 5 Q&A, Help & Troubleshooting] prometheusZ:
found this err in /kernel/msm / android-msm-flo-3.4-kitkat-mr0 / drivers / usb / gadget / f_diag.c

int diag_function_add(struct usb_configuration *c, const char *name,

int (*update_pid)(uint32_t, const char *))

{

struct diag_context *dev;

struct usb_diag_ch *_ch;

int found = 0, ret;

DBG(c->cdev, "diag_function_add\n");

list_for_each_entry(_ch, &usb_diag_ch_list, list) {

if (!strcmp(name, _ch->name)) {

found = 1;

break;

}

}

if (!found) {

ERROR(c->cdev, "unable to get diag usb channel\n");

return -ENODEV;

}

......

......

}
[Nexus 5 Q&A, Help & Troubleshooting] satadru:
Does the Galaxy S4 also use the same chipset? The kitkat kernel sources for that (at least the google edition model) just got released too.

We might be able to do a diff on the usb trees inside the kernel source and see if there's a difference. Probably also makes sense to compare the the source out there for the LG G2 model too, since that's going to be very close to our model.

Also have you seen the work they're trying to do with the LG G2 with qpst here: http://xdaforums.com/showthread.php?t=2493659?

We might want to combine our efforts.
[Nexus 5 Q&A, Help & Troubleshooting] prometheusZ:
my friends and i recompile the kernel with choosing "usb qualcomn diagnostic bridge driver" option, and made a boot.img. after flash the boot.img, the diag mode still can not open and the error messages are the same
[Nexus 5 Q&A, Help & Troubleshooting] satadru:
Is the qualcomm bridge driver loaded in the LG G2 kernel?

If it isn't enabled in the N5 kernel, it's possible that they didn't bother updating the code for it. Will the LG G2 kernel load on our device? They're definitely able to get diag mode on their device.
[Nexus 5 Q&A, Help & Troubleshooting] prometheusZ:
wo tried and succeed. finally the diag mode is opened. you can try recompile the kernel by choosing these options
[Nexus 5 Q&A, Help & Troubleshooting] satadru:
Awesome. Can somebody upload the modified kernel image with the diag kernel?
[Nexus 5 Q&A, Help & Troubleshooting] mwuahjaan:
Yippeee!!!

Yup...eagerly waiting for the modified kernel and exact command to get it working.

:good::D