Related
Been working on a couple fix ideas for this since UltraCfg is no longer working in the UCLD2 leak.
From what I can tell, UltraCfg made an entry in settings.db which can be enabled or disabled. This entry is TETHERING_ALWAYS_ON_MODE = enabled/disabled. Steps to manually do this are shown in post #2.
Also: Tethering Manager & UltraCfg were active; and WifiDirect, Wifi Sharing, and Wifi Sharing Manager are frozen.
Please let me know if any of this works and we can continue to improve this. I'm not sure how stable it is.
Known Issues & Limitations:
1. Only tested by me so far.
2. Not sure if it stable yet. I've had issues keeping wifi tethering active.
3. Any time you connect phone to PC via USB, it disables Debugging and activates Tethering.
4. USB Debugging is disabled on reboot.
5. Not an easy patch for the novice.
I used sqllite editor which is $2.99 in the market. If you dont want to pay and you can survive some terminal shell grinding, here's a free method using sqlite3. For whatever reason, it's not installed by default in our ROMs.
1. Download sqlite3.zip attached. Unzip and put it in /system/bin.
-- quickest method is to unzip. then use adb.
Code:
adb mount
adb push sqlite3 /system/bin
adb chmod 771 /system/bin/sqlite3
2. Next we are going to make a copy of our settings.db file as settings.dbx. Again, in adb.
Code:
adb shell
>su
>cd /data/data/com.android.providers.settings/databases
>cp settings.db settings.dbx
3. Dont close your terminal. Now that we have a copy, we will now edit it with sqlite3. Assuming you did a clean data wipe when you first installed the UCLD2 rom do this:
Code:
echo "insert into system (name, value) values('TETHER_ALWAYS_ON_MODE','enabled');"|sqlite3 settings.dbx
4. Now we have inserted the new tethering setting! Now we need to backup your original settings and replace it with this modified one.
Code:
mv settings.db settings.bak
mv settings.dbx settings.db
5. DONE! Now you may need to reboot.
Code:
reboot
Now, I'm not 100% sure this will work, but I never wiped my data from the UCAL4 ROMs to this new one, so my settings never changed. You will also need Tethering Manager. The one issue with having this mode on is that you will get automatically switched to usb tethering when you connect your phone to computer.
If you ever want to disable, follow steps above except use this command in step 3:
Code:
echo "update system set value = 'disabled' where name = 'TETHERING_ALWAYS_ON_MODE';"|sqlite3 /settings.dbx
I followed the steps ending in a boot loop
Ok I successfully unlocked ZVD (KitKat 4.4.2) and thought I should share my steps in case anyone else was having the same issues as me which was mostly the systemui and home processes crashing on a loop.
First insert the SIM card you would like to use in the LS980. Then download and flash the stock firmware LS980ZVC_12.zip with the LG Tool -> http://downloads.codefi.re/autoprime/LG/LG_G2/LS980/Stock_Firmware
Download the ZVD update - > http://www.mediafire.com/download/s5dqwo1cbe68ckb/LS980ZVC_12-LS980ZVD_19_update.zip (Do not flash this OTA update from a rooted rom or custom recovery!)
After flashing ZVC, set the phone to charge only and enable USB debugging by becoming a developer. Go to About Phone->Software Information and keep clicking "Build number" until it says you are a developer. Then go back to the main settings and you will now see "Developer options" and can enable USB debugging in there.
After enabling USB debugging choose charge only and when the RSA Key fingerprint window pops up make sure you check "Always allow from this computer" and then click OK.
Next using the ADB tools, reboot into recovery mode to apply the ZVD update.
Code:
adb reboot recovery
Select "apply update from ADB" with the volume buttons then press the power button. Wait 5 seconds then enter the following command.
Code:
adb sideload path_to_file/LS980ZVC_12-LS980ZVD_19_update.zip
After the update finishes select "reboot system now".
Next turn on airplane mode and root the phone using IO Root -> http://forum.xda-developers.com/showpost.php?p=48709232&postcount=869
Next install SuperSU and BusyBox. Make sure you open SuperSu to update the SU binary and open BusyBox and install the busybox files.
*OPTIONAL INSTALL TWRP*
Next use ADB to install AutoRec -> http://forum.xda-developers.com/showthread.php?t=2715496.
Code:
adb install path_to_file\LS980_AutoRec.apk
Open AutoRec and flash the new patched kernel and recovery and then reboot. If you get white lines after rebooting, read the warning the OP has posted for the fix. I suggest here you take the time to make a backup and copy the EFS to your computer just in case.
*knock code feature will no longer work
*flash this kernel to enable knock code again and much more - > http://forum.xda-developers.com/showthread.php?t=2725023
*OPTIONAL END*
Now using ADB again, enter the following commands.
Code:
adb pull /system/build.prop
adb shell
su
After entering "su" check your phone to grant SuperUser permission to ADB. Aftering granting su to ADB, exit adb shell.
Code:
exit
exit
Next using Total Commander and the files from here -> http://forum.xda-developers.com/showthread.php?t=2655133 copy all the contents of the "carrier" folder to your phones "/carrier/" directory and choose "overwrite all". I like to delete the "legal.db" first this way I know the copy was successful when I see the new file listed. Do not delete any other files before copying the files over since we want to keep the file and folder permissions and owners of the originals. If Total Commander fails to copy the files over to the phone then you can use a root explorer app to do so.
Now edit the build.prop that you pulled from the phone with a program like Notepad++ since it will save the file for use with linux and not windows. Do not edit the build.prop or copy it back to the phone with any apps on the phone, this is what was causing the crashes for me.
Change the following lines
Code:
ro.carrier=unknown
ro.build.target_operator=SPR
persist.service.crash.enable=0
ro.telephony.default_network=10
telephony.lteOnCdmaDevice=1
to
Code:
ro.carrier=spr
ro.build.target_operator=spr
persist.service.crash.enable=1
ro.telephony.default_network=0
telephony.lteOnCdmaDevice=0
*ro.carrier and ro.build.target_operator can bet set to "TMO", "ATT", or "spr".
*"TMO" and "ATT" do not correctly display the signal strength in the status bar.
Save the build.prop and use ADB to push it to the sdcard.
Code:
adb push build.prop /sdcard/
Now here is where we have to manually mount the system partition as RW and copy the build.prop over since all the root explorer apps seem to also cause the crashing issue.
Code:
adb shell
su
mount -o remount,rw /system
cp /sdcard/build.prop /system/
mount -o remount,ro /system
reboot
After the phone reboots it should be unlocked. Verify with Radio Switcher that your preferred network type is "WCDMA preferred", if not then change it to "WCDMA preferred". Now add your APN using Tweakker APN INTERNET MMS. If your APN doesn't stick, delete /data/data/com.android.providers.telephony/databases/telephony.db and reboot then add your APN again.
*To remove Bloatware add ".bak" to the following system applications names located in /system/app/ and /system/priv-app/ folders.
Activation.apk
OmaDmclient.apk
SPR_Skyfire_Observer.apk
SPR_Skyfire_Toolbar.apk
SprintExtensionProvider.apk
SprintID.apk
SprintTouch.apk
Vtt-Sprint.apk
xtra_t_app.apk
Zone-Sprint.apk
WIFIOffloader.apk
Click to expand...
Click to collapse
*To fix the issue of the com.android.phone process crashing when you don't dial a 1 in front of the number edit the /data/data/com.android.providers.settings/databases/settings.db file with a SQLlite editor and change in the "system" table "assist_dial" and "assist_dial_init_db_check" to "0". If you don't see those 2 rows then you can add them instead.
Code:
adb shell
su
cp /data/data/com.android.providers.settings/databases/settings.db /sdcard/settings.db
exit
exit
adb pull /sdcard/settings.db
sqlite3 settings.db
UPDATE system SET value='0' WHERE name='assist_dial';
UPDATE system SET value='0' WHERE name='assist_dial_init_db_check';
.exit
adb push settings.db /sdcard/
adb shell
su
cp /sdcard/settings.db /data/data/com.android.providers.settings/databases/settings.db
chown system:system /data/data/com.android.providers.settings/databases/settings.db
reboot
*To disable OTA updates and notifications rename the following files
/etc/security/otacerts.zip
/system/app/LGFOTA.apk
Click to expand...
Click to collapse
to
/etc/security/otacerts.zip.bak
/system/app/LGFOTA.apk.bak
Click to expand...
Click to collapse
*To replace the Sprint boot/shutdown animations and sounds with the LG default ones download these files -> https://www.mediafire.com/folder/cmb6jn7z7osmf/LG_G2_Boot_Animation
copy and overwrite the following files to /system/media/
bootanimation_sprint.zip
shutdownanimation_sprint.zip
Click to expand...
Click to collapse
copy and overwrite the following files to /system/media/audio/ui/
PowerOff_Sprint.ogg
PowerOn_Sprint.ogg
Click to expand...
Click to collapse
*LG G3 Theme for G2 -> https://play.google.com/store/apps/details?id=com.lge.launcher2.theme.rocketg3&hl=en
Thanks to all those people who contributed to this. :victory:
Thanks for the guide, working find for me and LS980, mms msg not working, propably i have error on APN settings, and signal bar min or max signal is 1 bar only....
MakisPgr said:
Thanks for the guide, working find for me and LS980, mms msg not working, propably i have error on APN settings, and signal bar min or max signal is 1 bar only....
Click to expand...
Click to collapse
Info and fix about the 1 signal bar bug is located in the guide above. Your mms issue is most likely a APN mistake. Make sure your data is working.
Sent from my LG-LS980 using XDA Premium 4 mobile app
This method worked on my ATT sim card I dont need to dial a 1 in front of #. but didnt work on my Lycamobile simcard and pageplus. still need to dial 1 infront of nuber.
thanks.
来自我的 LG-LS980 上的 Tapatalk
Can you attach a logcat of it crashing when you dial please
Sent from my LG-LS980 using XDA Premium 4 mobile app
jsergio123 said:
Info and fix about the 1 signal bar bug is located in the guide above. Your mms issue is most likely a APN mistake. Make sure your data is working.
Sent from my LG-LS980 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Yes you are right about 1 bar signal, didn't notice, and i fix my mistake settings on APN and mms now works perfectly ... Thank you very much
jsergio123 said:
Can you attach a logcat of it crashing when you dial please
Sent from my LG-LS980 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
sorry, I dont know where is it.
ahqiu said:
sorry, I dont know where is it.
Click to expand...
Click to collapse
adb logcat > logcat.txt
Sent from my LG-LS980 using XDA Premium 4 mobile app
Updated the OP for latest ZVD update from Sprint.
Added SQLite instructions.
Also confirmed working myself.
Updated the OP to include the files and instructions to replace the sprint boot/shutdown animations and sounds
Do you know if I would be able to install a custom rom after this? Also, I had the issue before with cloudys rom that would cause app force closing and restarts, should I expect the same this way?
Thanks a bunch
If you want to use a custom asop rom don't follow my guide instead just follow this guide after flashing your rom of choice.
http://forum.xda-developers.com/showthread.php?t=2827043
@jergio123
Do you think this would work to unlock additional bands on the Sprint LGG2 LS980 for T-Mobile USA?
http://forum.xda-developers.com/cro...ad-progress-please-leave-im-updating-t2871269
I guess the only way to find out would be to attempt it. I only quickly looked through the thread but good find.
Is there suppose to be a custom folder inside the carrier folder I copied over to root directory? After rebooting my device I've notice this custom folder that's not inside the original carrier folder I extracted ?
There should be a "cust" folder, I'm not sure if that is the folder you're referring to.
Will cloudys g3 ROM work with this unlock method?
I'm pretty sure cloudys rom is already unlocked and only requires you to change the radio with radio switcher and add your APN
Don't work
Hello, i can't unlock with this method. In the end, when i turn on the phone unlocked, the phone give me an error and always appear "com.android.phone".
I don't understand this part:
"Now edit the build.prop that you pulled from the phone with a program like Notepad++ since it will save the file for use with linux and not windows. Do not edit the build.prop or copy it back to the phone with any apps on the phone, this is what was causing the crashes for me."
I need edit "built.prop" or not? How?
I'm using the phone in Portugal (gsm carrier), i need to do this part?
Sorry but i really confused.
Thank you
Follow the guide step by step, I don't know how much clearer I can make it.
If you're getting process crashes then you must either restore the system partition from backup or start fresh by re-flashing with the LG tool.
Hello guys
i konw that it seems that it is a duplicate thread, but im facing a different issue now, i came back to stock (At&t) optimus g pro E980 rom and as i did before i rooted it but to get the network preferred menu in the network settings to change between WCDMA and GSM and LTE i installed the (Buildprop editor) and changed the (ro.build.target_operator) from (ATT) into (OPEN), and i have tried this before and it worked just fine, but now it takes the superuser permission and it reboots but the value (ATT) keeps coming back and the editor doesnt save me new editing, i read many threads and i have installed ES Explorer and change the boot Explorer from the side menu and also gave the (mount R/W) for all the options above, and also it doesnt work and the editor dont save my changes and when i reboots all the old values are coming back,,,,
What can i do?
Setup adb on your pc, then:
- adb root -> give root access to ADB
- adb remount -> remounts system as read-write
- adb pull /system/build.prop -> pulls build.prop from your device to your PC
- find value, change it and save file
- adb push build.prop /system/build.prop -> pushes back file to system
- adb reboot -> reboot to make changes valid
Don't forget to allow both apps and ADB root access in developer options, if you're running something CM based OFC, your phone needs to be rooted for this to work.
Thanks shady but it looks like it is a complicated process specially if i wanna keep switching between the network modes, previously i did it smoothly with the same builtprop editor and i got the preferred network modes menu, but now it is not saving, so there should be a reason for that, i will keep searching and waiting for other members opinion
Thanks again
Well, probably app can't remount filesystem or something goes wrong, take a look at logs. This is the way I prefer to do things - it's easier than typing on the phone and it's error-proof.
Finally i got a logical answer for my issue and it worked just fine
Follow the instructions in this thread
http://forum.xda-developers.com/showthread.php?t=1193245
I simply followed the exact instruction for the ES root explorer
Have a nice day
Sent from my LG-E980 using xda Forums PRO
My carrier is ATT and I am rooted. If this is possible than please let me know.
It is possible I will be making a guide on how to do it.
add line "net.tethering.noprovisioning=true" in build.prop in /system then reboot (I used root explorer)
then use terminal and type "settings put global tether_dun_required 0" then click enter on your keyboard. Reboot
don't type the " marks
I dont know if it works for ATT. This is the info I found doing a search. It works for sprint.
martinez5241 said:
add line "net.tethering.noprovisioning=true" in build.prop in /system then reboot (I used root explorer)
then use terminal and type "settings put global tether_dun_required 0" then click enter on your keyboard. Reboot
don't type the " marks
I dont know if it works for ATT. This is the info I found doing a search. It works for sprint.
Click to expand...
Click to collapse
Thanks. I will try this once I root Oreo. I am glad to finally find something working with Sprint.
martinez5241 said:
add line "net.tethering.noprovisioning=true" in build.prop in /system then reboot (I used root explorer)
then use terminal and type "settings put global tether_dun_required 0" then click enter on your keyboard. Reboot
don't type the " marks
I dont know if it works for ATT. This is the info I found doing a search. It works for sprint.
Click to expand...
Click to collapse
I am on AT&T and you only need to add the build prop line and reboot. No need for the terminal commands. FYI
is there a new workaround for us Big Red users that are now hitting their 15gb hotspot limit and are now being throttled to turtle speeds? Mine worked fine last month but somehow not this month?
Has anyone unlocked the hotspot to get away from the data provisioning?
The method I am talking about is the tether dun required = 0 method and using magisk.
I believe I've seen posts in some of the other threads regarding this. Search the P6P forum for hotspot or maybe just provision.
1. Installed MagiskHide Props Config via Magisk
2. Opened Termux (my terminal app)
3. Typed:
SU
Props
4
N (for new)
net.tethering.noprovisioning
true
y (for yes)
y (for yes to reboot)
5. Restart the phone.
6. Go to settings> network and internet> mobile network > APN > T-Mobile US LTE > APN type > Add: ,DUN (in caps) --- I actually had to create a whole new APN
7. Save APN (top right screen, 3 dots)
8. Go to settings > Dev options> turn off tethering hardware acceleration (super important step)
9. Toggle airplane mode on/off
10. Reboot
mkhcb said:
1. Installed MagiskHide Props Config via Magisk
2. Opened Termux (my terminal app)
3. Typed:
SU
Props
4
N (for new)
net.tethering.noprovisioning
true
y (for yes)
y (for yes to reboot)
5. Restart the phone.
6. Go to settings> network and internet> mobile network > APN > T-Mobile US LTE > APN type > Add: ,DUN (in caps) --- I actually had to create a whole new APN
7. Save APN (top right screen, 3 dots)
8. Go to settings > Dev options> turn off tethering hardware acceleration (super important step)
9. Toggle airplane mode on/off
10. Reboot
Click to expand...
Click to collapse
How did you root your TMobile phone? Did you get them to unlock it or was it already unlocked?
mkhcb said:
1. Installed MagiskHide Props Config via Magisk
2. Opened Termux (my terminal app)
3. Typed:
SU
Props
4
N (for new)
net.tethering.noprovisioning
true
y (for yes)
y (for yes to reboot)
5. Restart the phone.
6. Go to settings> network and internet> mobile network > APN > T-Mobile US LTE > APN type > Add: ,DUN (in caps) --- I actually had to create a whole new APN
7. Save APN (top right screen, 3 dots)
8. Go to settings > Dev options> turn off tethering hardware acceleration (super important step)
9. Toggle airplane mode on/off
10. Reboot
Click to expand...
Click to collapse
Hmm, getting stuck on this.
1. Termux didn't ask for superuser out of the box, and SU command failed.
I tried "pkg install tsu" and that seemed to work.
2. seemed to work
3. worked
4. I don't see an N option. Typing N gives me "invalid input, select from options above"
nevermind, figured it out.
Termux v6.1.2, item 3. above is selection 5, not 4. so :
2. Props
3. 5
4. N
Confirmed working on AT&T.
Thanks.
mkhcb said:
1. Installed MagiskHide Props Config via Magisk
2. Opened Termux (my terminal app)
3. Typed:
SU
Props
4
N (for new)
net.tethering.noprovisioning
true
y (for yes)
y (for yes to reboot)
5. Restart the phone.
6. Go to settings> network and internet> mobile network > APN > T-Mobile US LTE > APN type > Add: ,DUN (in caps) --- I actually had to create a whole new APN
7. Save APN (top right screen, 3 dots)
8. Go to settings > Dev options> turn off tethering hardware acceleration (super important step)
9. Toggle airplane mode on/off
10. Reboot
Click to expand...
Click to collapse
I appreciate your help, but I can confirm I haven't been able to get this to work on a legacy Sprint plan. I am able to launch the hotspot and connect, but unable to transmit data. Though, to be fair, I've had the same issues since Android 11.
Thanks for posting mkhcb! Working great on att.