yashsingh1/xdaforums huggingface dataset:
[Sprint LG G2] justinswidebody:
I think blue tooth works from factory. I can turn mine on without any pop ups

---------- Post added at 11:11 PM ---------- Previous post was at 11:10 PM ----------

Take it away.
[Sprint LG G2] metalboy94:
Wait, bluetooth tethering works for you out of the box?
[Sprint LG G2] Ascertion:
I would happily sacrifice Bluetooth tethering (never really used it.) for WiFi tethering.
[Sprint LG G2] justinswidebody:
I would happily sacrifice it to. My computer isn't Bluetooth capable, but the phone will turn on blue tooth tether and Bluetooth comes on and everything

---------- Post added at 11:25 PM ---------- Previous post was at 11:20 PM ----------

My bad, doesnt work. After you connect another device to it, It then pops up the pop up.
[Sprint LG G2] metalboy94:
Interesting. Not sure if disabling it would do something but I'll keep it in mind as the logcat does tell a thing or two about BT tethering.
[Sprint LG G2] jamman77:
bluetooth tethering

Yes, bluetooth works on it. Set this up this past weekend using pdanet on the computer and turn it on on the phone.

Hope that helps with figuring this thing out. I'll go back to watching on the sidelines as I am not yet familiar with tweaking phones.
[Sprint LG G2] Ascertion:
How are you guys able to tether via bluetooth? I'm trying on my unactivated android phone from my G2 and it doesn't find a connection, even though both devices are paired and connected.
[Sprint LG G2] metalboy94:
One last thing I want you to try for tonight - https://www.dropbox.com/s/syk1b8zcsqzkzzj/Tethering.smali with _1 and _1_new.
[Sprint LG G2] Ascertion:
_1_new didn't work. Testing _1 now. Will have logcats for both shortly.
[Sprint LG G2] Ascertion:
_1 didn't work either. Here's the logcats.
[Sprint LG G2] metalboy94:
Does USB tethering still work?
[Sprint LG G2] Ascertion:
USB Tethering appears to not work on _1. Let me retry _1_new real quick. On _1, it caused an instant reboot. :S
[Sprint LG G2] jamman77:
Bluetooth tethering

I am sorry, I left out an important detail!

For me, I installed Foxfi on the phone and then pdanet on the computer. Activate bluetooth mode in Foxfi, which makes your phone discoverable for 120 seconds. Got to pdanet and "Connect Internet(Bluetooth)". That is how I'm getting that to work. This is on the win8 machine.

On the win7 laptop, we were able to get USB tethering working partially. I used clockworkmod tether for that and installed the drivers that they said to put on the computer. The issue with it is if you quit transferring data at any point, it disconnects. You could set it going and watch Netflix and it seemed to work great. But general usage with "stop and go" traffic, I had to constantly turn it off on the phone and then reconnect.

Just more info to answer your question. Hope it is helpful in some small way.
[Sprint LG G2] metalboy94:
Thanks. I'll give it a night's rest and see what I come up with tomorrow.
[Sprint LG G2] Ascertion:
I appreciate your efforts so far. I'm sure we'll get it eventually. It's likely just 2 lines of code we need to remove but it's probably inside the still compiled code.
[Sprint LG G2] metalboy94:
Since usb tethering works (with the Tethering.smali before this last one), I'm guessing there's something left in WiFi initialization - this may mean I need to screw around with those messages again. If it's not there I'm quite lost, to be honest.

Thank you so much for your patience as well, recompiling services.jar isn't the shortest process even when done once.
[Sprint LG G2] jamman77:
It's been fun watching you guys work all day/night. You have skills I don't, so even though I want to help, I'm of no use. But all that work by you guys will benefit lots of ls980 users and you both should be thanked.

Thank you. I hope to see more fun tomorrow. Holler if there is anything a noob can be of assistance with.
[Sprint LG G2] fatboypup:
I tried bluetooth teathering
[Sprint LG G2] souleman:
Are you able to tell the response it is supposed to get from the server when you actually have the hotspot plan?

I know it would be a pain in the butt, but what about a small server on the phone that responds saying you have a hotspot plan, and then redirect the call to the server to loopback? Then your phone would reply that you have the plan, so teather.smali get's positive reply instead of negative? Just think it might be more work then it sounds, because I'm sure it needs a positive handshake first, so it isn't just a matter of responding true. Would have to use a packet sniffer to watch exactly what the phone is sending and receiving when attempting to establish the hotspot. Only reason I think this would be possible is that I see the ip addresses are hardcoded into the smali file, so hypothetically could be changed.
[Sprint LG G2] metalboy94:
If i am correct, those IP addresses are the ones allocated to devices connecting to the hotspot, and the Google DNS.
[Sprint LG G2] souleman:
Ahh okay.. So that's the phones server to allow other devices to connect, not Sprints side. Makes sense. Guess I should have looked at the address better. Your probably right. They are all 192.168... my bad.
[Sprint LG G2] metalboy94:
No worries, we're here to think of something together. I haven't had a chance to touch the smalis again today, but the main problem is with initializing the wifi part... as Ascertion reported, tethering itself works, as long as you use USB tethering.
[Sprint LG G2] justinswidebody:
There are a few tether smalis in the settings.apk, would you like for me to upload it?
[Sprint LG G2] metalboy94:
Sure, I can take a look at them.
[Sprint LG G2] justinswidebody:
Give me a few and I will upload the apk for you. Would it help if we had someone who was subscribed to tethering? Would Sprint send them an over the air update that would change something in their services.jar.
[Sprint LG G2] metalboy94:
I wouldn't know about that last one, sadly.
[Sprint LG G2] justinswidebody:
https://www.dropbox.com/s/pr63s8g1jkj4fq8/LGSettings.apk
[Sprint LG G2] souleman:
I don't think Sprint would send something that modifies the jar files. It's possible, but would be a change from how they did it on any other phone. But then this is the first tri-band phone, so maybe. Has it been hacked on the N5?

Another question is has it been hacked on Verizon yet? There is a section of the smali file currently being used that says vzw, which is Verizon Wireless.
[Sprint LG G2] Ascertion:
Verizon uses their own hotspot apk under /system/app that's been modified to work.

At&t has their entitlement check that's visible within one of the entitlement check smalis. The dev that hacked that one just replaced the URLs used to check entitlement.

Sprint is probably just a 1 line code as that's what they've used previously on every other device. But we can't decompile some of the smalis all the way which is halting our progress.

Sent from my LG-G2
[Sprint LG G2] Geronimo.USMC:
Verizon's is hacked.
[Sprint LG G2] justinswidebody:
By the way, if someone gets this figured out today i will donate 100 dollars. However I want an odex version
[Sprint LG G2] Ascertion:
Can you supply an odexed services.jar? We may be able to decompile that one further.

Sent from my LG-G2
[Sprint LG G2] justinswidebody:
https://www.dropbox.com/s/6d8hfu4293uxvud/services.zip
[Sprint LG G2] justinswidebody:
No matter what it will not decompile in java. However it decompiles fine with apktool
[Sprint LG G2] metalboy94:
Sorry, haven't checked out the Settings apk yet (final preparations, Merry Xmas btw). But yes, the biggest problem so far is not being able to fully decompile to Java, in order to get a better understanding of the code.
[Sprint LG G2] justinswidebody:
No problem, merry Christmas to you as well. I'm still hoping to make someone's Christmas a little better with an extra 100 dollars
[Sprint LG G2] metalboy94:
I'm hoping to make my own Christmas better as well :D anyway, time for a new practical experiment.

Can you please try this Tethering.smali: https://www.dropbox.com/s/syk1b8zcsqzkzzj/Tethering.smali. Preferably with Blabla$InitialState_1_new.smali.
[Sprint LG G2] justinswidebody:
I bet Ascertion isn't on to test right now, I'm not in front of my comp to compile the services.jar
[Sprint LG G2] metalboy94:
No probs, I'm not going anywhere all day.

On another note, I can confirm Upsell.apk/odex handles this block for T-Mobile.
[Sprint LG G2] justinswidebody:
So you think there might be an apk for sprint?
[Sprint LG G2] metalboy94:
Not really, but there are a few conditions inside all these smalis checking for an operator called SPR...
[Sprint LG G2] justinswidebody:
Yeah I have seen where it checks for spr, tmo, and vzw

---------- Post added at 01:31 AM ---------- Previous post was at 12:56 AM ----------

Metalboy94, I'll still give you 100 bucks whenever you do figure all this out. You don't have to worry about it being done tonight
[Sprint LG G2] metalboy94:
lol, I do not know if I'll be able to, it's a total mess.
[Sprint LG G2] Ascertion:
Latest Tethering.smali attempt forced an instant reboot on me.
[Sprint LG G2] metalboy94:
This is getting really messy. Going to bed now, I'll see what we can do tomorrow. Thanks for testing btw.
[Sprint LG G2] bullghost:
hi guys i have change some of function to maybe to skip the checking

here the function i change

function isAllowedTetherableInterface on TetherNetwork.smali

function isHotspotSupported on Tethering.smali

and swap condition in function tether on Tethering.smali

please report back with logcat, so i can trace what happen.

please testing only hotspot feature, so i can easy trace out the problem
[Sprint LG G2] Ascertion:
Didn't work - turned off shortly after turning on. Did not display any errors.

Logcat attached.
[Sprint LG G2] bullghost:
i think this error are cause the wifi tether failed to open

iam guessing the isTetherNetworkAvail function need to do with it, actually the wifi hotspot adapter is already bring up

here i remove some checking in isPamPdnDataProfileEnabled function on TetherNetworkDataTransition.smali
[Sprint LG G2] Ascertion:
No dice. Same problems as before. Toggles back off and no dialog is displayed.
[Sprint LG G2] bullghost:
try this, i rollback the condition i swap
[Sprint LG G2] justinswidebody:
So I flashed the g flex Rom in the android development section and even though I don't have service or data, the native tethering in settings turns on and broadcast a signal that my computer can connect to.
[Sprint LG G2] metalboy94:
Possibly because the GFlex is Korea-only, so there are no adaptations done for Sprint (this would explain why you get no service as well).
[Sprint LG G2] justinswidebody:
I'm going to take the tethering smali from that service jar and give it a go
[Sprint LG G2] mchlbenner:
Check build prop this is likely you dont have services
[Sprint LG G2] justinswidebody:
I have made a few edits in build.prop, however most cause the device not to boot.
[Sprint LG G2] Ascertion:
This one is interesting.

WiFi Tethering turns on, no dialog. Broadcasts the signal, but no data connection when PC connects to SSID. Also turning it back off seemed to be difficult (had to reboot to fully turn it back off.)

Logcat attached.
[Sprint LG G2] xs4t4nxpur3x:
I love you guys

Keep on going! :D You can do it! *motivational words*
[Sprint LG G2] justinswidebody:
Sounds like someone might be getting 100 from me soon
[Sprint LG G2] mchlbenner:
Did try to restore your elfs from your stock backup.

I may download and check the source
[Sprint LG G2] metalboy94:
With https://www.dropbox.com/s/w6ujxsfitn9gbs7/Tethering$TetherInterfaceSM$InitialState_1_new.smali ? Because the logcat points to an error I fixed before making this one.
[Sprint LG G2] justinswidebody:
I got data working and service. Just not lte. I bet if I could update prl and profile it would work. But don't know how to get those in settings

---------- Post added at 09:34 PM ---------- Previous post was at 09:15 PM ----------

Sorry don't wanna clutter this with g flex Rom issues
[Sprint LG G2] Ascertion:
I'll rebuild and try it again. Maybe I mixed up the files this test.
[Sprint LG G2] Ascertion:
Sorry man. Looks like I did mix up the files. This is the correct logcat from it.

Turns on, displays WiFi Tether is active, but turns back off within 3 seconds. No error dialog.

EDIT: USB Tether still works.
[Sprint LG G2] metalboy94:
This is getting hella annoying. I am curious about something though. Can you get me a kmsg from when you try to enable the hotspot?
[Sprint LG G2] Ascertion:
Never done a kmsg before. Followed the guide here but I don't see where it saved the file.
[Sprint LG G2] metalboy94:
Disregard previous text, it was saved in the same folder as adb.
[Sprint LG G2] Ascertion:
Got it here.

https://www.dropbox.com/s/7sf3j22xu52wb7c/last_kmsg

Sent from my LG-LS980
[Sprint LG G2] metalboy94:
Can't seem to find anything related to WiFi inside it.

One thing I haven't tried yet - can you please post com.lge.wifiext.odex, decompiled or not?
[Sprint LG G2] justinswidebody:
https://www.dropbox.com/s/oarxsnzxiqo8k20/com.lge.wifiext.jar
[Sprint LG G2] metalboy94:
Oooh, found something mysterious.

Can you please check out if you have the following paths on your phone:

/carrier/wifi/hm

/carrier/wifi/dm

/carrier/wifi/gm

/carrier/wifi/im

They are not present on my G2 and are checked upon the operator being SPR.
[Sprint LG G2] justinswidebody:
Where would we find those files
[Sprint LG G2] metalboy94:
Just follow the path - open a root explorer, go to the very root of the file system ('/'), then go to carrier and wifi.
[Sprint LG G2] justinswidebody:
There is a hm, gm, dm, and im
[Sprint LG G2] metalboy94:
Are they files? Do they contain anything?
[Sprint LG G2] justinswidebody:
https://www.dropbox.com/s/31ytiujeertv9rv/wifi.zip

They all contain the number 8 except for gm, it contains the number 1
[Sprint LG G2] metalboy94:
If you are all willing, I suggest we start from scratch, on a new path.

Please try https://www.dropbox.com/s/kseb5y9j113g3xe/TetherNetwork.smali , everything else stock and attach a logcat.
[Sprint LG G2] Ascertion:
It's working. This did the trick.

EDIT: Toggles off and on work flawlessly. USB Tethering also works.

100% functional - no reboot or anything after 5 minutes of use so far.
[Sprint LG G2] metalboy94:
Holy eff, for real?
[Sprint LG G2] Ascertion:
Yep. 100% working.

Thanks buddy for your help.

EDIT: Might want to add a donation link because people are going to want to donate for your help. :p
[Sprint LG G2] metalboy94:
Added Donate button in case you're still feeling generous.

Edit: whoops, that account is limited. Making a new one.

Edit 2: all done.
[Sprint LG G2] xs4t4nxpur3x:
So, for an idiot like me, how would I go about getting this to function?

My phone is rooted and I can do most of everything you guys tell me.
[Sprint LG G2] Ascertion:
Compiling it again and making a flashable zip. Keep an eye out in Sprint forums.

Will also be implemented into IceROM's next update.
[Sprint LG G2] metalboy94:
Do you want me to write step by step instructions for modding TetherNetwork.smali?
[Sprint LG G2] Ascertion:
I did a DiffNow on them and know how to do it already. I'll be around for future updates so I know how to get it working now - but if you wanted to, you can post a guide. :p
[Sprint LG G2] metalboy94:
If there's enough request I might open a thread in the Sprint forum. I don't think there will be any more updates as the procedure is pretty concise (this may work for VZW as well? not sure)
[Sprint LG G2] James7Bond007:
Can you provide any info for the rest of us aspiring hackers on how you figured out what to change?

Thank you so much for all your hard work, MetalBoy!
[Sprint LG G2] xs4t4nxpur3x:
Yes please.
[Sprint LG G2] Ascertion:
You can post it in this thread if you'd like.

http://xdaforums.com/showthread.php?t=2584775
[Sprint LG G2] metalboy94:
Um lol, it was a lot of trial and error. As you can tell from the thread, I tried to go one way and went with it even if it failed repeatedly (sorry Ascertion and justinswidebody for the trouble). Basically I looked at the code flow and all the conditions, then made subtle changes like commenting lines or changing variable values, and waited for logcats. Nothing worked, I even started studying AOSP code in order to get an idea.

When bullghost tried modding TetherNetwork.smali I figured I would give it another shot (I previously modded it for removing the dialog regarding a tethering plan). I noticed many things in Tethering.smali called functions in TetherNetwork.smali with names like "isAllowedTetherableInterface". They usually returned -1, so I thought I'd force them to return 1 by editing variables or removing 'if' clauses. It was a gamble but I guess it worked. :)

TL;DR: look at the code - follow the logic paths and carefully read all the variable and method names.

I will post a (hopefully clear) guide in the thread Ascertion linked.
[Sprint LG G2] cozmohoot:
Awesome work guys! Been following every post. How to get this on a stock root? Definitely will donate
[Sprint LG G2] metalboy94:
Check out the thread Ascertion linked, my post contains the full guide (btw Ascertion I hope it really is complete, the diff plugin on Notepad++ is crap).

Also, I forgot to ask - is USB tethering still working?
[Sprint LG G2] justinswidebody:
I'll give you 100 as soon as I get home brother. Bout 1 hour

---------- Post added at 02:54 AM ---------- Previous post was at 02:46 AM ----------

Btw how am I going to get this odexed
[Sprint LG G2] metalboy94:
There are a few XDA threads detailing how to odex framework files - here's an example: http://xdaforums.com/showthread.php?t=1208320

Steps may vary, but that is the general idea.
[Xperia Z1 Q&A, Help & Troubleshooting] thegios:
Each time I move pics.from one folder to another) say from DCM to Pictures, I get duplicated photos into album.

In case of duplicated pics, having a look at properties, one seems to be into "storage/emulated/0/pictures" and the other into "storage/emulated/legacy/pictures"

I tried clearing cache, deleting data or forcing media rescan, with no avail.

Quickpic does not have this problem.
[G2 Q&A, Help & Troubleshooting] kopkiwi:
Got prompted for a download by the LG servers. Downloaded, came to install now it's sitting with a black screen and {820} fastboot mode started

[870] usb_start ()

I am rooted, but running factory, not other mods.

How do I get my phone usable?
[G2 Q&A, Help & Troubleshooting] kopkiwi:
Never mind, just found the other threads.

Search really doesn't work on here too well.
[G2 Q&A, Help & Troubleshooting] hydeah:
I agree, and this thing has been popping up very often, people bricking when running twrp, some things are not really spelled out too well unlike Samsung forums, there isn't really an "essential things to know" thread that includes all major issues FAQ etc.. all spread all over the place..
[G2 Q&A, Help & Troubleshooting] kopkiwi:
Actually I don't even have TWRP installed, so the fixes listed don't help me at all.
[G2 Q&A, Help & Troubleshooting] hydeah:
Whoa, how did you brick it then?
[G2 Q&A, Help & Troubleshooting] kopkiwi:
Wouldn't have a clue. Just downloaded the OTA and then got that message I posted in the OP
[G2 Q&A, Help & Troubleshooting] Lawlrus:
Stupid question here, but if you did go back to stock and take the ota, is there currently a way to flash Loki on it?
[G2 Q&A, Help & Troubleshooting] kopkiwi:
Can't even do a factory reset through the download menu :(
[G2 Q&A, Help & Troubleshooting] wizzcap:
Have you tried the LG Flash Tool?
[JASJAR, XDA Exec, MDA Pro General] Splather:
Hey kids. Having problems with MMS? When you're in the settings, make sure you're using wap verion 2 on Orange, not 1.2.....

Tech support missed this, and after 45 mins on the phone I finally sussed it.....

Hope this helps someone...
[JASJAR, XDA Exec, MDA Pro General] sipat:
Hi. Can you be more specific please? Where do I find the setting? Thanks
[JASJAR, XDA Exec, MDA Pro General] Killbillprime:
messaging >> menu>> mms config >> click on servers >> tap your server and scroll down hope that helps,

Splather >> thanks dude that helps, o2 uses 1.2 and had probs with my orange but havnt had the time to try and fixing it saves me some hassel,

and as for orange customer services lol leeeets not go there :twisted: :lol:
[JASJAR, XDA Exec, MDA Pro General] Splather:
No worries - glad it helped someone
[Sony Xperia Z Ultra] hykhleif:
one of the reasons I liked the z ultra is because it supports aptx. BUT i have tried all mods and players and when I play songs from my z ultra on my sennheiser mm450x which supports aptx the sound so much worse than my iPad mini which does not support aptx.

I am really do wondering why different devices give different sound quality over bluetooth, I am confused as I thought that the deciding factor is the bluetooth protocol not the device.
[Sony Xperia Z Ultra] hamdogg:
have you tried turning off wifi?

Reason I ask is that with wifi on, the max speed bluetooth 4.0 and send/receive is 80kb/s

With wifi off... bluetooth 4.0 can almost get about 200kb/s

remembering that aptX is only supposed to be CD quality sound... i.e. 128kb/s
[Sony Xperia Z Ultra] hykhleif:
never ever thought wifi has an effect on bluetooth, I will test without wifi
[Sony Xperia Z Ultra] hykhleif:
no it did not help turning the wifi off.

I had a big fight the official sennheirser agent here in Israel, as I thought the sennheiser headset was not working properly, so when we tested it with other phones and tablets the sound was great.

I am getting bad quality with aptx over bluetooth using the z ultra, I really don't know why.

The bass is distorted and the treble right in my face so irritating, I don't know I thought the aptx would improve sound quality bu it did not, I really wish someone can tell me if the sound quality over bluetooth is device related or buetooth related. As I am getting a great sound using an iPhone and iPad mini but with the z ultra all I get is rubbish sound.

Guys I think I will move on and accept selling my device as that is not acceptable anymore unfortunately i put the phone for sale over a month ago and no one called about it

LORDMANHATTAN I will miss you watching and policing my threads, I think I am done here once someone buys it
[Sony Xperia Z Ultra] hamdogg:
lol... did you contact Sony about it... support should offer you some advice based on their hardware
[Sony Xperia Z Ultra] hykhleif:
i think contacting sony is useless
[Sony Xperia Z Ultra] SpyderTracks:
You're not really solution based are you? Ios will probably suit you better.
[Sony Xperia Z Ultra] hykhleif:
believe me i tried but this is over my knowledge base
[Sony Xperia Z Ultra] hamdogg:
dude... take it into a service or Sony shop and ask them... !!
[Sony Xperia Z Ultra] dimex:
I had the LG Tone+ aptx headphones, and I would constantly get garbled bluetooth audio. I exchanged them for BluebudsX that don't have aptx, no more garbled audio. I had a jambox (BT 3.0 I believe and non-aptx) and upgraded to an aptx BT 4.0 speaker, and I'm experiencing garbled audio again. It happens once and awhile and it's annoying considering the quality is much better when it's not stuttering.

I would switch off wifi and I think (placebo?) it would get better. I was thinking maybe bbluetooth and wifi signals were messing with each other, but shouldn't that be a non-issue in 2014?

Are you sure about the Bluetooth bitrate and wifi on/off? Can you link me to something?

BTW, CD quality audio is 320 kb/s. 128 is a pretty heavily compressed mp3.