[GUIDE] Disable Cellular Radio On AOSP Based Roms (WiFi Only) - Verizon LG G3

I brought my old LG-G3 back to life to use strictly as a media player with a prop edit to disable the cellular radio (I was using my old Samsung GS3, but it finally died after all these years!). Running LOS 09/01 nightly w/xdabbeb's 35b bootstack and everything is buttery smooth. Performance is really top notch for this device running LOS 14.1 - no complaints here. If anyone wants to use their device as a mini tablet (wifi only/disable radio) this is what you do via a root adb shell on a pc:
Code:
adb shell
Code:
su
Code:
setprop persist.radio.noril 1
That command removes the cellular radio portion from the OS. There will no longer be a signal bar in the status bar. Wifi will still work so the device is basically now a mini tablet. You will gain a major increase in battery life. A couple of things to note:
-Root required. Flash Lineage's SU addon (I couldn't get Magisk to work, and I no longer use SuperSU so I can't comment on that). Enable root for apps & adb in Developer Options.
-The radio is disabled, but the OS is still built as a phone. In the Battery section it'll still show "phone idle" as draining battery. Ignore it, it's a false reading.
-On this device there is an odd side effect where the GPS becomes disabled too. Apparently LG ties some GPS hardware to the device's RIL. This doesn't happen on other phones for future reference. It doesn't bother me, I would have turned location off anyways - after all, I'm just listening to music from my 128gb microSD. The GPS will still be available in the system, but it simply will not find any satellites. Just turn off the GPS so it's not searching and draining your battery.
-You can also do it from a terminal app or Lineage's built in terminal (you have to enable the terminal in Developer Options).
-To revert and restore the radio, do the same thing, but replace the "1" with a "0" in the command.
-The radio disable will remain when dirty flashing an update (no need to run the command again).
-If you play any Kanye West, your phone will make a vomit sound and immediately self destruct....you've been warned!
-Revert Command:
Code:
setprop persist.radio.noril 0

Just curious - how is this better than disabling mobile networks and leaving the phone in airplane mode?

syborg said:
Just curious - how is this better than disabling mobile networks and leaving the phone in airplane mode?
Click to expand...
Click to collapse
Disabling mobile networks still causes the system to ping and look for telephony related services (aka battery consumption). Airplane mode would be a better comparison, though the data signal is still "alive" on the system. Doing this removes your RIL completely. So services that would normally ping won't because there is no RIL/data and those services will only begin pinging when on Wifi (like a data only tablet). This method is the more battery friendly than airplane mode.

annoyingduck said:
I brought my old LG-G3 back to life to use strictly as a media player with a prop edit to disable the cellular radio (I was using my old Samsung GS3, but it finally died after all these years!). Running LOS 09/01 nightly w/xdabbeb's 35b bootstack and everything is buttery smooth. Performance is really top notch for this device running LOS 14.1 - no complaints here. If anyone wants to use their device as a mini tablet (wifi only/disable radio) this is what you do via a root adb shell on a pc:
Code:
adb shell
Code:
su
Code:
setprop persist.radio.noril 1
That command removes the cellular radio portion from the OS. There will no longer be a signal bar in the status bar. Wifi will still work so the device is basically now a mini tablet. You will gain a major increase in battery life. A couple of things to note:
-Root required. Flash Lineage's SU addon (I couldn't get Magisk to work, and I no longer use SuperSU so I can't comment on that). Enable root for apps & adb in Developer Options.
-The radio is disabled, but the OS is still built as a phone. In the Battery section it'll still show "phone idle" as draining battery. Ignore it, it's a false reading.
-On this device there is an odd side effect where the GPS becomes disabled too. Apparently LG ties some GPS hardware to the device's RIL. This doesn't happen on other phones for future reference. It doesn't bother me, I would have turned location off anyways - after all, I'm just listening to music from my 128gb microSD. The GPS will still be available in the system, but it simply will not find any satellites. Just turn off the GPS so it's not searching and draining your battery.
-You can also do it from a terminal app or Lineage's built in terminal (you have to enable the terminal in Developer Options).
-To revert and restore the radio, do the same thing, but replace the "1" with a "0" in the command.
-The radio disable will remain when dirty flashing an update (no need to run the command again).
-If you play any Kanye West, your phone will make a vomit sound and immediately self destruct....you've been warned!
-Revert Command:
Code:
setprop persist.radio.noril 0
Click to expand...
Click to collapse
Even if this is an old thread, it was exactly what I searched for. It works perfect and pushes my "S6 Edge-iPod" to new battery levels. Holds days and drops only a few percent. (Running Android 11 custom Rom)
Thank you for giving that information, I googled a long time to finally find this.

Related

Using a Surface Pro 2, almost there, but seeking advice to go the rest of the way

I have a Surface Pro 2 that runs Remix OS PC 3 well enough, it just doesn't sleep it very well. Based on some complaints from regular Linux distributions I figured out that the lid closed switch freaks out on wakeup. That can be taken care of easily enough with a
Code:
echo LID0 disabled > /proc/acpi/wakeup
Now 90% of the time the tablet wakes up correctly. That last 10% it still has problems. What happens, and this was the same as before adjusting LID0, is the screen comes on full brightness, then either turns off or freezes after a few seconds. Either way, a reboot is required to fix it. I can usually get to the debug terminal, but the graphical display is broken.
Another remaining issue is the wifi. Once it's working, it works well enough, except that the region stuff isn't set, so the driver doesn't enable 5ghz. On Ubuntu
Code:
modprobe mwifiex reg_alpha2=US
will get it working, but the region information doesn't appear to be in Remix, because that doesn't enable 5ghz, or produce the expected cfg80211 initialization messages. Any advice on setting wifi region in Remix?
Is there any init.d type mechanism I can tap into? I tried using kernel adiutor's init.d emulation, but despite toast messages suggesting it's working, I still have to manually disable LID0.
J M L said:
I have a Surface Pro 2 that runs Remix OS PC 3 well enough, it just doesn't sleep it very well. Based on some complaints from regular Linux distributions I figured out that the lid closed switch freaks out on wakeup. That can be taken care of easily enough with a
Code:
echo LID0 disabled > /proc/acpi/wakeup
Now 90% of the time the tablet wakes up correctly. That last 10% it still has problems. What happens, and this was the same as before adjusting LID0, is the screen comes on full brightness, then either turns off or freezes after a few seconds. Either way, a reboot is required to fix it. I can usually get to the debug terminal, but the graphical display is broken.
Another remaining issue is the wifi. Once it's working, it works well enough, except that the region stuff isn't set, so the driver doesn't enable 5ghz. On Ubuntu
Code:
modprobe mwifiex reg_alpha2=US
will get it working, but the region information doesn't appear to be in Remix, because that doesn't enable 5ghz, or produce the expected cfg80211 initialization messages. Any advice on setting wifi region in Remix?
Is there any init.d type mechanism I can tap into? I tried using kernel adiutor's init.d emulation, but despite toast messages suggesting it's working, I still have to manually disable LID0.
Click to expand...
Click to collapse
Have a look for systemless-root; you can get an init.d emulation [su.d] with that.
Good to see you are going the right way regarding personal fixes i.e. find/fix the issue in linux then find a way to apply it to RemixOS
the issue is android does not support DFS channels other than that it works fine.

Nougat Non-Root Guide Tips/Tricks...That Root Functionality Without the Root

The Non-Root Nougat Guide for the Sprint S7​
You need stock Nougat on your device. There are several ways to achieve this:
1. OTA Update​2. Install the firmware via ODIN from Sammobile; Updato; a thread here​
Why Most People Root​
1. Ad Blocker
2. Hotspot Hack
3. Youtube Ad Free
4. Remove Bloatware
5. Xposed (not right now)
6. Other tips/tricks
7. Credits
Here my tips and tricks for getting this Root feel, but keeping the stability of stock.
1. Ad Blocker
This are local hosts, meaning that your info doesn't go to a random server and then come back to you. It stays on your device for your eyes only!
1. DNS66 This one uses a hosts file, just like adaway for those of you who used it while rooting. Since everything is done via a local DNS, you the battery life it is the same as adaway, non-existent! Given that it only blocks entire host names, it cannot block as detailed as some other ad blockers. However, I haven't seen any ads in apps or browsers and no battery hit either! Just make sure the hosts files have a red dot next to them and you have to refresh before activating. Will still block ads on device even when tethering! Great support too!
2. Ad Guard. Good ad blocker. Runs everything through a VPN though, which comes at a battery hit. This one also comes with a price tag! Offers Youtube Ad Blocking, but you must enable their DNS, which puts your information to their servers and then back to you...this blocks ads about 50% of the time. Good support too!
3. Adhell Uses Samsung Knox to block ads and trackers. Blocks most things on webpages and apps (no youtube), but saves a ton a battery since it doesn't require VPN. Not as good as blocking as the first two, but does work a little. Just my opinion though. Also, it is FREE!
4. Disconnect Pro Similar to Adhell, but a paid app,but can be found for free during sales. Search the Galaxy App Store to buy it. Uses Samsung Knox too.
5. AdClear. Some have had success with this, I've had mixed results.
6. BlockThis! Works well, but caused issues on some webpages.
As with all of the above, you will need to whitelist some apps for them to work properly. Like, AdHell and Disconnect have the Google Play Music bug. If you find an app is using a ton of battery, it may need to be whitelisted...usually, google apps have this problem.
2. Hotspot Hack
1. Enable developer mode:
a. Go to settings
b. Scroll down to about phone
c. Repeatedly tap "Build number" until developer access is granted
2. Get ADB installed w/ drivers
a. https://forum.xda-developers.com/showthread.php?t=2588979
3. Enable USB Debugging
a. Go to settings
b. Go down to developer options
c. Scroll down to USB Debugging and turn it on
d. Connect phone with USB to PC
4. Get into ADB shell
a. Open a command prompt (windows key + R , type "cmd" in the box and press enter is my favorite way)
b. Run:
Code:
adb shell
5. Enable the bypass
a. Disable the DUN requirement
Code:
settings put global tether_dun_required 0
b. Overwrite the DUN APN
Code:
settings put global tether_dun_apn "APNDUN,n.ispsn,,,,,,,,,310,120,,default,mms,dun"
6. Turn off Mobile Data
7. Turn on HotSpot
8. Turn on Mobile Data
Every time that you want to use the hotspot you have to turn data off; turn hotspot on; turn data back on. When you disconnect your hotspot you need to do the following:
1. Turn Hotspot Off
2. Turn Mobile Data Off
3. Turn Mobile Data On
People will complain, but after you run the code the first time, turning hotspot on and off literally takes just seconds.
3. Youtube Ad Free
1. Youtube in the background, downloading, and so far ad free Youtube can be achieved with OG Youtube. Read the OP and also install this apk found in post 5592 It doesn't say, but in combination with DNS66, I haven't seen any ads after installing this and disabling the old Youtube. It will occasionally ask you to update and just hit Later.
2. If you want to use the original Youtube app, this doesn't block ads, but it does silent and auto skip them. Cygery
3. YMusic Frinky Music Controller Allows you to skip tracks with screen off.
2. Noyze Not sure if still being developed, but works. Let's you skip tracks by long pressing with screen off.
Doze Related
Remember to whitelist apps you want running in the background...like Pandora, Google Music, etc. I would leave them off at first and if it cuts off when the screen is off, you need to white list it.
I haven't used these apps in Nougat as the new doze seems fine, but to each his own:
1. ForceDoze puts your phone into doze mode without the motion detectors and 30 minute wait. Great app! Does require you to install adb (adb installer) since you have to run a command to get it to run properly. Check Disable motion sensing and turn off while charging
2. Greenify The auto hibernation works great if we had root, but we don't. It works, but can be extremely annoying at times and can drain battery because it may continuously try to force stop/close an app you greenify. Plus, it will take a few seconds to re-unlock your phone immediately after you turn off the screen. However, I use it with force doze for the aggressive doze. I saw a difference in battery life by using them both. Still need to adb a command
Other Tips
Besides the obvious of gmail/facebook/whatspp/twitter/snapchat syncing
1. Turn off wi-fi scanning
2. Back up my data for Samsung and Google under back up and reset
3. Turn off some features under advanced features in settings...for example, palm swipe to capture if you never use it
4. Location History under Location
5. Change locating method...I leave mine on GPS, wi-fi, mobile, but some people want more battery life and turn it off.
6. Turn on developer options and change animations to 0.5
7. Turn off Always on Display under settings > display. I like it, so I leave it on...but takes about 2% an hour
[/hide]
7. Credits
These people did all of the hard work:
@YMNDLZ -- Download link
@julian_klode -- DNS66
@ paul2112 -- Hotspot Fix
@ cygery -- AdSkip
@ OGMods -- OG Youtube
@resident77 -- OG Youtube Fix
@ ssrij -- ForceDoze
@ SEVEN_AdClear -- AdClear
@daria -- AdGuard
@ Snoop05 -- ADB Fast Installer
And anyone I missed, let me if you want to be added and thanks for your work!
you are the best, thank you so much
---------- Post added at 07:48 AM ---------- Previous post was at 07:47 AM ----------
Does this stick?
@ivpre-
2. Hotspot Hack
CLICK TO HIDE CONTENT
1. Enable developer mode:
a. Go to settings
b. Scroll down to about phone
c. Repeatedly tap "Build number" until developer access is granted
2. Get ADB installed w/ drivers
a. https://forum.xda-developers.com/sho....php?t=2588979
3. Enable USB Debugging
a. Go to settings
b. Go down to developer options
c. Scroll down to USB Debugging and turn it on
d. Connect phone with USB to PC
4. Get into ADB shell
a. Open a command prompt (windows key + R , type "cmd" in the box and press enter is my favorite way)
b. Run:
Code:
adb shell
5. Enable the bypass
a. Disable the DUN requirement
Code:
settings put global tether_dun_required 0
b. Overwrite the DUN APN
Code:
settings put global tether_dun_apn "APNDUN,n.ispsn,,,,,,,,,310,120,,default,mms,dun"
6. Turn off Mobile Data
7. Turn on HotSpot
8. Turn on Mobile Data
Every time that you want to use the hotspot you have to turn data off; turn hotspot on; turn data back on. When you disconnect your hotspot you need to do the following:
1. Turn Hotspot Off
2. Turn Mobile Data Off
3. Turn Mobile Data On
People will complain, but after you run the code the first time, turning hotspot on and off literally takes just seconds.
So, does this stick and stay this way, or must you perform the entire process every time?
makane716 said:
@ivpre-
2. Hotspot Hack
CLICK TO HIDE CONTENT
1. Enable developer mode:
a. Go to settings
b. Scroll down to about phone
c. Repeatedly tap "Build number" until developer access is granted
2. Get ADB installed w/ drivers
a. https://forum.xda-developers.com/sho....php?t=2588979
3. Enable USB Debugging
a. Go to settings
b. Go down to developer options
c. Scroll down to USB Debugging and turn it on
d. Connect phone with USB to PC
4. Get into ADB shell
a. Open a command prompt (windows key + R , type "cmd" in the box and press enter is my favorite way)
b. Run:
Code:
adb shell
5. Enable the bypass
a. Disable the DUN requirement
Code:
settings put global tether_dun_required 0
b. Overwrite the DUN APN
Code:
settings put global tether_dun_apn "APNDUN,n.ispsn,,,,,,,,,310,120,,default,mms,dun"
6. Turn off Mobile Data
7. Turn on HotSpot
8. Turn on Mobile Data
Every time that you want to use the hotspot you have to turn data off; turn hotspot on; turn data back on. When you disconnect your hotspot you need to do the following:
1. Turn Hotspot Off
2. Turn Mobile Data Off
3. Turn Mobile Data On
People will complain, but after you run the code the first time, turning hotspot on and off literally takes just seconds. It should also stick through PRL and profile updates too
So, does this stick and stay this way, or must you perform the entire process every time?
Click to expand...
Click to collapse
It sticks. You just have to put the ADB codes in once. You do have to toggle data every time, but that isn't a huge deal...like a 2 sec inconvenience.
lvpre said:
It sticks. You just have to put the ADB codes in once. You do have to toggle data every time, but that isn't a huge deal...like a 2 sec inconvenience.
Click to expand...
Click to collapse
Fantastic! Now I will need to reactivate my s7.
Sent from my SPH-L720 using Tapatalk
the above functions are nice, but my only most important reason to root though often unsuccessful is to change the system font. iFont can't do that anymore from Marshmallow and above, neither can launchers. So if you know a way to change fonts that you installed other than the system fonts, then please help me without rooting it.
khaino said:
the above functions are nice, but my only most important reason to root though often unsuccessful is to change the system font. iFont can't do that anymore from Marshmallow and above, neither can launchers. So if you know a way to change fonts that you installed other than the system fonts, then please help me without rooting it.
Click to expand...
Click to collapse
Go to settings, display, screen zoom and font
Can anyone confirm hotspot working?
---------- Post added at 06:47 PM ---------- Previous post was at 06:38 PM ----------
I've tried everything on here and I can't seem to get it to connect. My phone is visible to other devices but there is no connection after following the directions above. Any ideas.
cjrivera04 said:
Can anyone confirm hotspot working?
---------- Post added at 06:47 PM ---------- Previous post was at 06:38 PM ----------
I've tried everything on here and I can't seem to get it to connect. My phone is visible to other devices but there is no connection after following the directions above. Any ideas.
Click to expand...
Click to collapse
Yes. It works just fine. Typo in adb perhaps? I copied and pasted the line code into adb.
Sent from my SM-G930P using Tapatalk
makane716 said:
Yes. It works just fine. Typo in adb perhaps? I copied and pasted the line code into adb.
Sent from my SM-G930P using Tapatalk
Click to expand...
Click to collapse
I'm not the greatest with commands. Please let me know if I'm doing this correctly. If I'm in ABD SHELL and open my command prompt I need to do the following:
type in: adb shell (hit enter)
next line type in: settings put global tether_dun_required 0 (hit enter)
next lin type in: settings put global tether_dun_apn "APNDUN,n.ispsn,,,,,,,,,310,120,,default,mms,d un" (hit enter)
Then I need to: Turn mobile data off, hotspot on, mobile data on.
Is this correct? I know I have the drivers installed correctly because I was able to go in and use adb to enter a command to get the forcedoze app working on my phone. Maybe I'm not entering the above commands correctly. I'm using my s7 on nougat build G930PVPU4BQAA, not sure if this matters. Thanks guys.
cjrivera04 said:
I'm not the greatest with commands. Please let me know if I'm doing this correctly. If I'm in ABD SHELL and open my command prompt I need to do the following:
type in: adb shell (hit enter)
next line type in: settings put global tether_dun_required 0 (hit enter)
next lin type in: settings put global tether_dun_apn "APNDUN,n.ispsn,,,,,,,,,310,120,,default,mms,d un" (hit enter)
Then I need to: Turn mobile data off, hotspot on, mobile data on.
Is this correct? I know I have the drivers installed correctly because I was able to go in and use adb to enter a command to get the forcedoze app working on my phone. Maybe I'm not entering the above commands correctly. I'm using my s7 on nougat build G930PVPU4BQAA, not sure if this matters. Thanks guys.
Click to expand...
Click to collapse
Except for "d un" in your second command line, it looks good.
ADB can be a bear. One extra space or one less comma and you're fuggered.
Try to copy and paste it in like I did from here-
https://forum.xda-developers.com/showthread.php?t=3563446
Also make sure adb recognizes your device first. With your phone connected, at the adb comamnd line propmt, type
"adb devices" without the quotes. You should see your device. If it comes back-none detected or bad command, then you need to do some more digging.
Sent from my SM-G930P using Tapatalk
makane716 said:
Except for "d un" in your second command line, it looks good.
ADB can be a bear. One extra space or one less comma and you're fuggered.
Try to copy and paste it in like I did from here-
https://forum.xda-developers.com/showthread.php?t=3563446
Also make sure adb recognizes your device first. With your phone connected, at the adb comamnd line propmt, type
"adb devices" without the quotes. You should see your device. If it comes back-none detected or bad command, then you need to do some more digging.
Click to expand...
Click to collapse
Yeah I did all of that. It won't work for me. Thought maybe I was doing something incorrectly. I was playing with it some more today and I entered the advice devices code and then began entering the remaining codes. I'm attaching a photograph so someone can validate. My PC will see my phone but then will say cannot connect. Tried other devices as well and none will connect. Was hoping I could get wireless tether.
cjrivera04 said:
Yeah I did all of that. It won't work for me. Thought maybe I was doing something incorrectly. I was playing with it some more today and I entered the advice devices code and then began entering the remaining codes. I'm attaching a photograph so someone can validate. My PC will see my phone but then will say cannot connect. Tried other devices as well and none will connect. Was hoping I could get wireless tether.
Click to expand...
Click to collapse
well in this picture, the phone is detected. It's listed after entering the "adb devices" command. at that point enter the command "adb shell" enter, your first line command, hit enter and then the second line command and hit enter. are you entering the "heroltespr $"?
if that doesn't work, restart the computer and adb. reconnect your phone and make sure its detected by adb. copy and paste the first line command and hit enter. copy and paste the second command and hit enter. should be gold.
anyone feel free to chime in if I'm off here.
Sent from my SM-G930P using Tapatalk
Any way to use this to enable the USB tether as well?
Imaginos said:
Any way to use this to enable the USB tether as well?
Click to expand...
Click to collapse
No clue. Did you try the adb commands and then try usb tethering? I think pda net or foxfi will allow you to do this without anything special. I've only used wifi tether
Thanks so much for giving my tethering back to me. Your instructions worked perfectly for my Sprint Note 5 on Nougat. Tethering with Foxfi worked immediately. When done, I just had to turn airplane mode on and back off to get LTE working again. Easy Peasy!!
I have been using the the hotspot hack to tether for about 2 months and it has worked perfectly. Two days ago, after I did the routine (turn data off, turn hotspot off, turn data off), my LTE speeds have become extremely slow. I am in the same locations as before with good coverage. I have tried restarting, resetting settings and finally doing a factory reset. On a speed test i'm getting .1 Mbps compared to 40-50 Mbps before.
During the time I have been using this method, there has probably been about 10 instances when I did not follow the routine properly and forgot to turn data off before turning hotspot off after having used it. Could this introduce some type of error?
Thanks in advance for any ideas!
What do you get on speedtest without tether on or connected? Have you tried it across town when your phone would connect to a different tower? Also, prl and profile update too.
With or without tether I was getting .1 Mbps down or up max. I moved about 60 miles away from my home during each day and got the same result. Interestingly enough, if I turn data off and back on, I would have a burst of speed (e.g. instagram stories would load very quickly for a second) before becoming excruciatingly slow again. Also, I would get normal speeds as soon as I connected to another source of internet like WIFI.
Contrary to my original post, the factory reset did resolve the problem. I thought the speed was still slow but the phone was busy downloading all the sprint bloatware when I wrote the post.
Now I will use your method to free my hotspot again
I am still curious however, what is the purpose/effect of turning data off prior to switching on hotspot and turning it back on after? I also ask because when i'm in hotspot mode and someone calls, sprint phones automatically cut the data connection while connected to the call. So I would be skipping the routine unintentionally.
Lastly, many thanks for the great guide and input!
Long story, short... it needs to create a new data table to place the dun command for tethering. Previous methods would let you just add, dun to the apn and everything was fine until a profile update.
There is a thread with more info in the s7e sprint forum. @paul2112 did the leg work, I just tweaked the command to allow simultaneous phone and tether data.

Does Android have different levels of sleep? (SManager can't wake network)

I'm using SManager to run a very simple shell script on a regular schedule; all it does is run a ffmpeg command line to save an audio stream from a URL. If I run the script manually, it works great. If I schedule it for, say, 15 minutes ahead, then put the device to sleep, it works great. But if it's been sleeping for hours, like overnight, the script runs but ffmpeg reports that it can't access the network. Only difference that I can see is how long the device has been asleep, but I haven't done enough tests yet to figure out how long it has to be asleep before the network becomes unwakeable.
Does this make sense to anyone; ideas about how to solve it?
Device is a rooted 5th generation Amazon Fire tablet with Nexus ROM. In SManager, my scripts are marked to run as root, with wakelock enabled.
You can try to disable doze, or whitelist in greenify. Also, in kernel adiutor mod you can go to the power category and disable level 4 of sleep.
Cool, thanks. I'll check out Greenify and Kernel Audiutor
Forgot to specify that my ROM is Lollipop, which I believe predates doze.
Well, still out of luck.
Nothing doing with Doze; my ROM is Lollipop, which predates Doze.
Looks like if I were using Greenify to save battery, I would need to whitelist SManager so that Greenify doesn't block its network access in order to save battery ... but I haven't had any need for a battery saver app, so am not using Greenify.
Kernel Audiutor sounds promising, but for some reason it won't start up properly on my device; it starts to load up and then gets stuck at the initial self-configuration stage!

Amazfit Pace disable Wifi to improve battery life

Hello all,
I read that is better to disable Wifi to get more battery life on that smartwatch. On the net there is some tutorial about that, using ADB drivers and Minimal ADB and Fastboot: tapping the foolowing commands:
adb devices
adb kill-server
adb root
adb shell mount -o rw,remount,rw /system
adb shell mv /system/lib/firmware/wifi /system/lib/firmware/wifi_off
adb reboot
I execute commands ok, until command four; I have a failure in the command "adb shell mount -o rw,remount,rw /system": mount: Operation not permitted.
I read that in chinese rom it works, but my watch is international ROM I think. My question are:
1- How can I execute this command without failure?
2- Do I have to unlock the bootloader first?
My rom is readonly mode and I cannot disable wifi I think.
3- Anyone achieved to disable wifi?
Thanks a lot!!
Yes, you need to unlock your bootloader and also root (as you can see by the commands). Personally I wouldn't recommend this, it's like using a cannon ball to kill a fly. WiFi isn't the common cause of excessive battery drain, in most cases the cause is corrupted or bad data stored on watch and because it tries to use WiFi it drains battery, so you are not fixing the cause either. You could also simple factory reset the watch and do not connect to WiFi, this way probably it won't use it later. There are other things you can do to find what's the culprit, and you don't need adb, root or unlocking the bootloader.
Can you not just use
adb shell svc wifi disable
?
You could try PaceOn, it gives WiFi control and has a service that alerts you to BT and WiFi connections.
I'm not sure how much battery cost is incurred by running PaceOn, but it could be worth trying as it give control direct from the watch, eschewing the need for a computer, cable and ADB.
@Quinny899
no, whenever something needs wifi, it just turning back on and getting back to work again.
Agree with lfom & shadowcaster666 on some of the points made here.
Just share my personal configuration.
One-time settings on the watch:
- Set Auto Upload off
- Set Auto Airplane on (00:00-23:59)
- Install PaceOn
Then, use PaceOn to control wifi/bluetooth connections when needed.
Also turn on PaceOn CXN service to see exactly when the watch makes wifi/bluetooth connections.
I have used PaceOn for many months and I can say its battery consumption is negligible.
lfom said:
Yes, you need to unlock your bootloader and also root (as you can see by the commands). Personally I wouldn't recommend this, it's like using a cannon ball to kill a fly. WiFi isn't the common cause of excessive battery drain, in most cases the cause is corrupted or bad data stored on watch and because it tries to use WiFi it drains battery, so you are not fixing the cause either. You could also simple factory reset the watch and do not connect to WiFi, this way probably it won't use it later. There are other things you can do to find what's the culprit, and you don't need adb, root or unlocking the bootloader.
Click to expand...
Click to collapse
I'm almost sure wifi is the culprit of my stratos battery drainage issue. What would be the best way to identify corrupted or bad data stored on my watch? My watch is only one week old I've just set up wifi at home to update to the latest firmware.
gustavosoares said:
I'm almost sure wifi is the culprit of my stratos battery drainage issue. What would be the best way to identify corrupted or bad data stored on my watch? My watch is only one week old I've just set up wifi at home to update to the latest firmware.
Click to expand...
Click to collapse
Battery guide/tips: https://forum.xda-developers.com/smartwatch/amazfit/ultimatre-guide-battery-drain-issues-t3791829
Or you can just use "Amazfit PACE Tuner" - it has control for both WiFi and Bluetooth. No need for root or unlocked bootloader.

Permanent Wifi on Unrooted Device

I just found an interesting solution to prevent wifi getting disabled on a device without root. I am just beginning to test this now, so this may have battery consequences, but it seems to work as desired on my fossil sport. If there is the key "cw_disable_wifimediator=1" in global settings, then the wifi will never turn off. The user can change the setting to disable wifi, but this will have no effect on wifi connectivity. Same with airplane mode. Interesting. This change also survives device restarts.
To add this setting, you can do
adb shell settings put global cw_disable_wifimediator 1
I don't know if you can do it from an app (maybe with write_system_settings), but I'll keep testing this in the future.
Yep, can be done at least with granted permission WRITE_SECURE_SETTINGS.
Settings.Global.putInt(contentResolver, DISABLE_WIFI_MEDIATOR_KEY, 1)
I did it accidentally... I moved my watch from one phone to another (guide online). But it stuffed up Bluetooth so it only connected via wifi. Battery was worse so I just reset the watch like you're supposed to.
so good
I just found this thread searching for a solution to this problem...
Android 12 Developer options adb "Wireless debugging" option keeps turning off
The question I'd like to ask those who tried this ... is...
Q: Is there any way to KNOW (after the fact) that you've permanently turned off the ability to turn off the Wi-FI?
How do you turn it back on if you need to?
GalaxyA325G said:
I just found this thread searching for a solution to this problem...
Android 12 Developer options adb "Wireless debugging" option keeps turning off
The question I'd like to ask those who tried this ... is...
Q: Is there any way to KNOW (after the fact) that you've permanently turned off the ability to turn off the Wi-FI?
How do you turn it back on if you need to?
Click to expand...
Click to collapse
Code:
adb shell settings get global cw_disable_wifimediator
to get the status. Whether or not the feature works as intended, I don't know - I'm going to test it myself.
Code:
adb shell settings get global cw_disable_wifimediator 0
to disable this feature and re-enable the auto setting.
GalaxyA325G said:
I just found this thread searching for a solution to this problem...
Android 12 Developer options adb "Wireless debugging" option keeps turning off
The question I'd like to ask those who tried this ... is...
Q: Is there any way to KNOW (after the fact) that you've permanently turned off the ability to turn off the Wi-FI?
How do you turn it back on if you need to?
Click to expand...
Click to collapse
I have the same issue you have, have you got it to work yet as intended?

Categories

Resources