yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Q&A, Help & Troubleshooting] fewesttwo:
EDIT 2: Repushed the updated settings.db file and all seemed to be working now. I had reflashed the CM rom first (but I didn't wipe data), I'm not sure if that fixed a conflict somewhere?

Either way, it's working with data now. If anyone knows what might have been going on, I'm all ears and would love to find out, but I'll keep looking around and see what might have been up

##########

Hi all,

I smashed my screen (and digitiser), and had just turned off mobile data before I dropped my phone. I know with a combo of DeskSMS, Pebble and Airdroid etc I will be able to use most of my phone until I can get it fixed. I've had lots of issues getting the sqlite3 binary on my phone, so I decided to pull my settings.db and edit it.

adb pull /data/data/com.android.providers.settings/databases/settings.db

I then used a sqlite3 editor to edit the global table and changed the mobile_data value from "0" to "1". I pushed it back on, rebooted and mobile data was on, but all my other settings appeared to have reset to default. Bluetooth state, brightness, volume etc. This was fine for using DeskSMS, but it killed my Pebble. It's also not the behaviour I would have expected.

What did I do wrong, and/or why was the rest of the DB values ignored, or changed when I pushed them back to the phone? I'm using CM 10.2, 16GB N4 and was using adb from twrp recovery (I hadn't authorised my laptop for adb before I broke the digitser).

Thanks

EDIT: On second thoughts, I think the fact the mobile data is working is due to it actually being on as a default. This would lead me to believe that by changing mobile data to "1" I am actually corrupting the settings.db and it's loading defaults and recreating it on boot. Is there any CM documentation on the possible states that mobile_data or "preferred_network_mode" can be? I can't seem to find that field in the aosp docs.
[Sprint LG G2] Hathoid:
Thread Obsolete.

Edit:

Permanent unlock for GSM achieved. Please follow this thread.

http://xdaforums.com/show....php?t=2655133

Edit: seems this link isnt working anymore.

http://xdaforums.com/showthread.php?t=2655133

use this one ^^^^^^
[Sprint LG G2] charlie95113:
Really.... wow something so simple but yet so hard to find ...lol thankx much
[Sprint LG G2] Hathoid:
Question to the people that know a little more, will flashing a ROM or a kernel undo this?
[Sprint LG G2] barleysoda:
Yes flashing a ROM will undo the build prop edits.
[Sprint LG G2] Hathoid:
Sorry, but another question, if I re-did the edit, would it work just as normally?
[Sprint LG G2] oneshotyolo:
I changed mine back to sprint and it worked perfectly.
[Sprint LG G2] Hathoid:
I kinda meant if I install a ROM, and re-edit it, will it unlock again?
[Sprint LG G2] phatmanxxl:
So what exactly is this doing? Is this SIM unlocking the phone to use on local(domestic) GSM carriers?
[Sprint LG G2] Hathoid:
I'm not sure about local, but works for international.
[Sprint LG G2] dezt818:
So how do we exactly do this im on the build prop but cant seem to find that command line runnin icerom 1.1
[Sprint LG G2] Hathoid:
I'm not sure when using ROMs, but I used this on stock ROM.

Also, I started running into an issue where the System UI keep crashing, I keep getting the message "Unfortunately SystemUI has stopped working.", I can only stop it from looping this if I press the power button and turn on airplane mode, can anyone shed some light on this?
[Sprint LG G2] Nicamarcel1:
Maybe is you flash a system ui from might work im doing the same as we speak !
[Sprint LG G2] Hathoid:
Have you also been getting the crashes? Also post the results here please.
[Sprint LG G2] Nicamarcel1:
Yeah... I don't get why the system ui get reset to defaults along with the wall paper and the launcher theme... i mean my status bar icon changes.
[Sprint LG G2] Nicamarcel1:
Well i notice that even my notification sound change to a bird sound...

I look king of if the some a different.
[Sprint LG G2] obie992:
do do that do you have to to have a custom rom? wouldn't it work if you have a rooted phone?
[Sprint LG G2] Hathoid:
I'm honestly not sure. I did mine on a rooted stock phone. Also, on the crashes issue, I have been doing some test and found out that the systemUI crashes when it reaches a certain signal type(frequency), I'm not exactly sure what type of signal it is, if it's gsm or wcdma, but when it catches it, the systemUI goes into a crashing loop where it won't come back unless you turn on airplane mode or pick up an acceptable signal, I'm not exactly sure what causes this, or how to fix it, maybe someone here in xda will find a fix for it.
[Sprint LG G2] pvinodnayak:
EDIT BUILD.Prop

I did the edit and restarted, now my phone is not switching on. i can see the led blinking only. can anyone help ?
[Sprint LG G2] obie992:
so you are telling that i should not try this until the solution comes up?

also can you tell me which country are you in? maybe it is gsm cellular issue

---------- Post added at 07:36 PM ---------- Previous post was at 07:16 PM ----------

any progress? did your switched on?

now im having second thoughts trying this method

---------- Post added at 07:40 PM ---------- Previous post was at 07:36 PM ----------

any progress? did your switched on?

now im having second thoughts trying this method
[Sprint LG G2] Nicamarcel1:
Did you created a back up ? Guys dont try this if you dont have a back up ! Well If you didnt i suggest you do a factory reset to clear the edit code.
[Sprint LG G2] OMYx:
What I did:

1) Root

2) Change build.prop to D800 model

3) Flash LGD800AT-01-V10o-310-410-OCT-19-2013+0.tot and LGUP_8974.dll with LG Flash tool v1.6.0.1

4) Root

5) Install Recovery openrecovery-twrp-2.6.3.2-g2att.img

6) Flash LGLS980_ZV8_RADIO.zip

Also I flash aboot.img and boot.img from D800 via fastboot, but I don`t know need it or not, becouse I did it when try another firmware.

Sorry for bad English. If I can help somebody, it will great!

All files easy to google.

When I flash D800 stock, phone reboot always after 1-5 minutes work. You need to root it in this time and after that install recovery.

It will work perfectly.
[Sprint LG G2] Jayanth.M.P:
I read the whole thread, but could not figure out if there is a solution or not.

There are some really good deals of used sprint g2s available on ebay, and I would like to use them with international(Indian) GSM networks....I don't care if the CDMA part of the phone works or not...as long as the GSM,3G works.

Can someone please telll me if this is possible ?
[Sprint LG G2] radiano:
This is possible. I am currently using the Sprint LG G2 on Simple Mobile in the USA which is a GSM carrier as they use the T-Mobile towers.

The Wi-Fi and the GPS are not functional for now.
[Sprint LG G2] justinswidebody:
If what OMY said works, then technically you should be able to flash any of the international roms without changing out the boot.img or the meta folder. I might try it for you guys tonight sense I am good at returning to stock. We will see.
[Sprint LG G2] Peterpaulmarie:
Here what I did to unlocked LS980ZV8 to use it with t-moble Germany:

- root (ioroot19)

- recovery twrp 2.6.2.3 for LS980

- Rayglobe Fex V4 beta with boot.img and meta.inf folder from stock zV8

- furnace 0.0.8 kernel for LS980

Works great. Best Antutu values.
[Sprint LG G2] 12mily:
How to load Fastboot menu?

How to load Fastboot menu? After flashing I can not make ROOT. And flash the phone back on the LS980, I can not either. What do I do?
[Sprint LG G2] radiano:
Is your Wi-Fi and GPS working?
[Sprint LG G2] gnanava:
?????????

wifi works?????????????
[Sprint LG G2] CB620:
Is 3G/4G/H/H+ showing up for you guys using T-Mobile with this mod?
[Sprint LG G2] radiano:
4G showing on mine. Simple Mobile (more like T-mobile). Still waiting for a wi-fi fix.
[Sprint LG G2] nkomonc:
The second flash fails
[Sprint LG G2] OMYx:
What is it mean? Why second? Radio flash under recovery by sideload or something.
[Sprint LG G2] Peterpaulmarie:
Yes! No problems found.
[Sprint LG G2] gnanava:
this matod can kill phone :(

once i tryde something like ths on my ls970 and i los my boot :(
[Sprint LG G2] 12mily:
root

How did you root?
[Sprint LG G2] golinale:
Look this thread

http://xdaforums.com/showthread.php?t=2601589

and this

http://xdaforums.com/showpost.php?p=48709232&postcount=869
[Sprint LG G2] 12mily:
Root

Important to me as did the root ONYx. After flashing the firmware on the d800 I can not do any of the root methods instructions on xda. ADB does not recognize the number.
[Sprint LG G2] OMYx:
I always did it via Kingo.

Please, OMYx, only OMYx.
[Sprint LG G2] dandog96:
I finally have my perfect installation up and running. I was able to install energy Rom with everything working flawlessly. What I did was downloaded energy Rom and then replaced the boot.img and meta folder with the sprint one ( as justin first pointed out). After doing this everything works except for wifi. To remedy this I ended up installing furnace kernel for LG UI roms. Thank you for everybody who contributed to this, especially justin. Now everything works,including T-Mobile 4g!
[Sprint LG G2] gnanava:
Stock based unlocked for any carrier worldwide rom!!!

STOCK BASED UNLOCKED FOR ANY CARRIER WORLDWIDE ROM!!!

http://xdaforums.com/showthread.php?t=2616624
[Sprint LG G2] varunrs:
What is the procedure if I want to stay on stock ROM?

I guess using an international ROM with Sprint boot and meta should do it but is everything working yet?
[Sprint LG G2] unmaskd:
Please could you help me with the link to energy rom and furnace kernel. Thank you
[Sprint LG G2] 12mily:
Root

Dear OMYx, I have done everything in your instructions. Phone after flashing the firmware on the model d800 running 30-60 seconds, it's enough to make Ruth program kingo root. I'm on the phone include debug mode (activated), but does not see phone kingo, does not see the phone adb. Can you tell how you got to make root, I can not restore the phone in working condition for three days. Thanks for the answer.
[Sprint LG G2] OMYx:
Read about debugging mode. Settings=>About=>Software and 7 touch on build. After Settings=>Development Debug over USB on.

I flash incorrect recovery and get fastboot on reboot, after it I can flash modem.img from http://downloads.codefi.re/autoprime/LG/LG_G2/LS980/Stock_Firmware/zv8_partitions all others img I take from http://downloads.codefi.re/autoprime/LG/LG_G2/D800/Stock_Firmware/10d_partitions

After that all works fine.
[Sprint LG G2] radiano:
Thanks!! Does the GPS work as well?
[Sprint LG G2] TimmyLe7:
Alright Guys please write back ASAP...ive tried various methods and still no luck..So i tried the build.prob method where i changed it to open and got bars but couldnt call all it said was com.process.phone stopped working....closest i got.....i tried another way flashing to a different rom but some wouldnt boot....and i tried the AOKP rom but got bars but couldnt call it said ..im not authorized to make calls.. I really need to get it done but today...Could someone please post like a rom i could use on LG G2 LS980 to get service on tmobile?..ive seen so many successes on tmobile on this thread but i cant get it..
[Sprint LG G2] nkomonc:
Question, how do I install this kernel... Can I use it with the stock International ROM?

---------- Post added at 06:18 PM ---------- Previous post was at 06:08 PM ----------

Hey Justinswidebody, anything new on a WIFI and NFC fix?
[Sprint LG G2] radiano:
Hi Timmy,

Couple of things to keep in mind:

Make sure you DO a nandroid back up of your rooted LG G2 Sprint. This very important for restoring to stock.

Secondly follow Justin's instructions for copying the META folder and the boot.img folder from the stock SPRINT ROM to your T-Mobile ROM

With these in mind, you can simply use any T-mobile stock ROM and follow Justin's file copying instructions. You wouldn't need to edit the build.prop. Then follow dandog96 instructions to get the Wi-fi working.

As a disclaimer, no one on the forum is responsible for any damages encountered during this process. I was able to get a Sprint LG G2 working on Simple Mobile (which is a T-mobile variant) without Wi-fi and GPS. I didn't try dandog96's method of getting Wi-fi to work.

However, I was able to restore the phone back to stock SPRINT LG G2 unrooted and gave it to my nephew to use on Sprint again. I am in th process of getting another LG G2.

I am an amateur here. Please feel free to correct where needed.
[Sprint LG G2] dandog96:
I have not had the chance to test the GPS yet, but I don't see why it wouldn't work. I'll give it a try tomorrow and report back. As for the kernel, it can be found via a simple Google search. I think that you can flash it on the international Rom but I cannot guarantee anything and do not take any responsibility. That being said, everything has been running very smoothly with energy Rom.
[Sprint LG G2] hoangps:
How to fix systemUI and wifi crash?
[Sprint LG G2] OMYx:
I have no crashes. Don`t work autobrightness and wi-fi hotspot.
[Sprint LG G2] hoangps:
Thanks,ill try.
[Sprint LG G2] CapitanFantasma:
everything works but the gps does not connect I do?
[Sprint LG G2] jorgeaoc:
What developer is ready for this challenge?

I can donate $ 50 to the developer to help us create a ROM that works in GSM mode without errors. One of the conditions is that it is a stock rom, rooted and bloat removed. Who can join in donating? What developer is ready for this challenge?
[Sprint LG G2] DevCore:
Flash a custom rom

I flashed mahdi rom then no problem anymore .
[Sprint LG G2] Artur Grunvald:
What launcher mahdi have? wifi,nfc and gps works?
[Sprint LG G2] CapitanFantasma:
someone has a solution for the GPS? :crying: everything seems to work fine except the GPS
[Sprint LG G2] justinswidebody:
I might build an entire Rom for you all, I just hate uploading them. Takes forever
[Sprint LG G2] CapitanFantasma:
worth wait
[Sprint LG G2] justinswidebody:
Ok, give me a few. I need to download a stock Rom, make all the changes and I will test WiFi, GPS, and nfc before I upload
[Sprint LG G2] TimmyLe7:
If you can get it up in a few hours it would be great..i actually came close(from my perspective) all i did was edit build.prop and it lasted me for the day i got 3g,HSPA calling and the goodies on stock sprint rom!! all i did was edit the Build.prop...I just hated how systemui crashed when i got full bars if you could post a rom quick....that would be great..and are you going to put sprint stock, boot.img and META-INF so we dont have to do it? because i cant find any stock sprint roms to get those off of..Thanks Justin really appreciate you doing this for us...i literally went shopping for lg g2 on craigslist..and saw it had T-Mobile bands so i automatically assumed it would work..but soon did i figure it wasnt unlocked...and here i am looking through and writing to threads for answers...Thanks Justin...Wish you luck...It would make my day if you could get this up!!!
[Sprint LG G2] justinswidebody:
It will be up tonight. Just got done downloading a tmobile stock Rom. Going put all the files that need to be in it, test it then I'll upload
[Sprint LG G2] TimmyLe7:
Thanks Justin really really appreciate it. Thanks to you flashing this rom will be a piece of cake barely any computer usage just put it on device go to recovery and flash the rom(well wipe and stuff) but yeah thanks thanks soo soo much
[Sprint LG G2] justinswidebody:
Putting on phone now to test
[Sprint LG G2] TimmyLe7:
Yo'll think ill be able to flash without wiping on TWRP?
[Sprint LG G2] justinswidebody:
No you will need to do a full wipe. I just messed my phone up. forgot to swap out my meta folder. Its ok phone is back up and running, got to reroot and flash the rom
[Sprint LG G2] TimmyLe7:
Alright all good hopefully your next post is the rom really anxious haha
[Sprint LG G2] justinswidebody:
I have everything working but nfc. going to try one more flash. If it doesnt work i will upload with out nfc working
[Sprint LG G2] CapitanFantasma:
gps work?
[Sprint LG G2] secondskin:
Does this mean that it might be possible to use international roms or roms developed for other carriers on Sprint?

Or is this still only for those looking to use the Sprint Lg G2 on other service providers.

I'm on Sprint but there are seems to be a lot of roms that support every version of the G2 except the Sprint version so it would be cool of this worked for Sprint users who want to try other roms not currently available to us.
[Sprint LG G2] TimmyLe7:
Hey justin hows it going you almost done yet? take your time no rush
[Sprint LG G2] justinswidebody:
I will try nfc one more time for the night when i get back home. I will upload it tonight. Usually uploads take about 6 hrs for some reason. No this will not work on cdma network of sprint for the guy that asked. However, i am trying to work on that too. Hopefully I will get that soon
[Sprint LG G2] DevCore:
I'm not sure but I think it nexus launcher . WiFi , GPS, work fine . NFC not tested yet
[Sprint LG G2] justinswidebody:
Uploading now, should be ready in the morning. Nfc still isn't working for now, but I will get it later.
[Sprint LG G2] hoangps:
Your rom fix all ( wifi,systemUI ) for LS980???
[Sprint LG G2] CapitanFantasma:
will open a new topic to post the rom? :good: :cyclops:
[Sprint LG G2] Givalex:
Please help with fix GPS on my LS980.
[Sprint LG G2] nkomonc:
Hey Justin, so why not just use an international ROM?
[Sprint LG G2] justinswidebody:
https://drive.google.com/file/d/0B6HYWZRx8JLsZlBlbUt1c0MwYjQ/edit?usp=sharing Here is the rom. Do a full wipe then just flash in recovery and reboot. Let me know how it is. Remember NFC still doesn't work. I will work on it more tonight. This is the latest stock tmobile rom hopefully everything else works but nfc. I can confirm wifi and gps work.
[Sprint LG G2] obie992:
thank you very much for your efforts, can you do another favor, can you list down step by step guide, i am newbie and i have never done anything like that before

thank you in advance
[Sprint LG G2] Givalex:
Thank you very much. I'm from Ukraine and I am very grateful to you.

GPS is works. GSM in my country is works.
[Sprint LG G2] obie992:
no other bugs?
[Sprint LG G2] Givalex:
Yes. Miracast works. Nfc not works.

I am not have LTE in my country.
[Sprint LG G2] justinswidebody:
1. First root your device using IOROOT or any other root process that might work

2. Install Twrp recovery

3. Boot into recovery by powering down the device. Then with your phone unplugged from any type of charging source, hold down volume down. Then while holding volume down press and hold the power button until the phone says recovery mode.

4. make a back up of your current rom by selecting back up and following the obvious directions.

5. go to wipe. I always use advance wipe and wipe cache, dalvic cache, system, and data.

6. go to install, find where you placed the Rom on your sdcard and click on it.

7. the rom should now install and you can hit reboot when it is done flashing.

8. enjoy your unlocked phone
[Sprint LG G2] nkomonc:
Justin, can I just flash this over the setup we were trying?
[Sprint LG G2] obie992:
another quick question, if i wipe everything on the phone, wouldn't it delete the rom that i just placed in the phone, because you know this phone doesnt have a sd card
[Sprint LG G2] justinswidebody:
In advance wipe only wipe what i said. You will wipe everything except internal storage, which is where the rom is and all your pictures and music and other files. This needs to be a clean install. No dirty flashing.
[Sprint LG G2] Theboss1242:
I got a question i dont have a sd card , so i cant do it without one?
[Sprint LG G2] nkomonc:
Can I do this over the setup we were trying. Wipe and then flash. Or do I need to go back to Stock sprint?
[Sprint LG G2] justinswidebody:
As long as you wipe like I said you can flash it over any other rom.

---------- Post added at 11:56 PM ---------- Previous post was at 11:54 PM ----------

None of the LS980s have a sd card. You still have internal storage. If you download the Rom on your computer then just transfer the file to the phone. If you Download the rom from your phone then just boot to recovery and go to the download directory and find the rom and flash it.
[Sprint LG G2] gr8icu:
Will this rom allow me to connect to domestic gsm networks (att and tmobile) or is this only for international gsm users?
[Sprint LG G2] nkomonc:
This may be a dumb question but an android software update is available from T-Mobile... Ignore or install? If we are to ignore then is there a way to turn off the auto update download or to turn off the notification?
[Sprint LG G2] barleysoda:
TWRP and most file explorers are still calling your storage "SD card" but yes we know with this phone doesn't actually have an SD card. Just drag the rom onto your phone and when in recovery you should see it in the "sd card" directory.
[Sprint LG G2] Theboss1242:
Thank you guys
[Sprint LG G2] justinswidebody:
I wouldnt except it. What you can do is pull your status bar down, and long press the notification and then choose to turn off the notification Icon

---------- Post added at 12:49 AM ---------- Previous post was at 12:48 AM ----------

Sorry, but i have no clue on this subject. If you have a tmobile sim card I guess you could try to put it in and see????
[Sprint LG G2] jorgeaoc:
First justinswidebody thank for their help, cooperation and excellent work.

T Mobile, asked to install an update, do not install this upgrade causes problems at startup.

Confirmed, the update causes soft brick. :(
[Sprint LG G2] justinswidebody:
With a custom recovery you should never try to install any factory updates. Also, being you are using a sprint phone, any update probably contains a new kernel and other files that will easily break your phone causing you to have to use the go back to factory guide. So please do not except the update. If you get the update, you can remove the notification by swiping down your status bar and long pressing on the notification. That will then bring you to the app that allows that notification to be seen. Simply uncheck show notifications.
[Sprint LG G2] latoso:
Yes it works on T-Mobile I used my co-worker sim card and text and phone calls and even had 4g icon, I did not have much time to test, but every thing was good
[Sprint LG G2] jorgeaoc:
Thank you. Now I'm downloading the ROM Stock.
[Sprint LG G2] pvinodnayak:
This does not block CDMA right, I have programmed my LS980 to work for a Indian carrier on NV, by flashing this Rom I hope that it does not block or make the CDMA section unusable.
[Sprint LG G2] varunrs:
Justin,

If it's not too much can we get a zip or an instruction guide so that we can make other ROMs out there work as well on the Sprint G2. People who are new to this might be more inclined towards a zip, but for the time being, I won't mind a list and instructions of the files to be replaced so that we can manually create our own Sprint ROMs from other ROMs.
[Sprint LG G2] justinswidebody:
If you want cdma to work, you will have to go into build.prop and change the network number from 9 to 10 then reboot.

varunrs, I will write a guide either later tonight or tomorrow sometime if that's ok

---------- Post added at 04:41 AM ---------- Previous post was at 04:05 AM ----------

Thank you for the donation. That was very nice of you. I never expect payment from anyone, I do this because I like to help people and enjoy messing with phones. You are My first donation I have ever received. Once again thank you
[Sprint LG G2] varunrs:
^ Don't mention it mate. Least we can do. And please take your time with the guide. I just thought it would serve everyone better, therefore I asked. It will also mean that you won't have to upload any more ROMs on your own as you mentioned it was time consuming. There is no hurry for that. This ROM is more than enough for most.
[Sprint LG G2] obie992:
A little off the topic question. What is the process if we want to undo the process, i mean go back to original ROM?
[Sprint LG G2] mjskraju:
Just flash any Stock Sprint ROM or use LG Flash Tool to got Factory state.
[Sprint LG G2] Pesto_Alfanzo:
~~>NOOB<~~

JUSTIN, have you made that guide, and could you do so on cam and post to youtube?

</B> THANK YOU </B>