Nougat Non-Root Guide Tips/Tricks...That Root Functionality Without the Root - Sprint Samsung Galaxy S7 Guides, News, & Discussio

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.

Related

Make bluetooth always visible (2.1)

Hi,
Since we alwas have to go into settings to make bluetooth visible for 120(?) seconds i was wondering if it is possible to make bluetooth always visible.
I found this guide: http://blag.tsukasa.net.au/2009/08/25/always-discoverable-on-android/
But it seems like hcid.conf is not present on 2.1 roms.
Can we get this to work on 2.1 roms?
Ty!
are you speaking from the pov of the hero being needing to be discovered by another device?
that isn't the sort of thing one needs to do more than one time per device though. once you've done it, the other device should remember the hero's info. just enable bt next time on both devices and voila, it should connect. right?
and there is the power control widget to enable/disable bt (along with other alternatives on the market and the sense toggle widgets if you're on a sense rom).
If you want your bt to be set to "discoverable" constantly then your battery will disappear really fast and it's a security risk as well (hence this feature doesn't exist in any bt device I've used including android). that's why apps like "bump" enable it only when, well, bumped, and in a way that both devices can talk briefly without user configuration necessary (but still user approval and instructions are needed before any file/secure info transfers can occur).
there's a difference between these three modes:
bt off (saves most power, bt is battery hungry...),
bt on (icon in display; can connect to devices that it has previously been paired with such as your bt handsfree or your computer for file transfers just be enabling the other device's bt - this puts it in sort of a receive mode where it will ack the other device to show itself but doesn't use a TON of battery, however it's still better for battery to turn off bt when not in use)
bt on and discoverable (which is, by bt design, only going to run for a short period such as 2 minutes because it opens up your device to others seeing it and trying to add it and also is transmitting over bt constantly so uses the most signal... 2 minutes seems pretty long to me actually, I've seen shorter in other devices).
I'm sorry, but that is just rubbish.
I've had Nokia's since bluetooth was first released, and they have always been discoverable. Their battery hasn't been worn down by that either.
If bluetooth is on but not discoverable, then your device is constantly looking for those devices that it has been paired with before. If it is discoverable, then other devices can pick up on this and locate your phone - same battery usage, surely.
Take for example now, I'm sat in a public area and I can search for devices. The devices that show up are therefore discoverable, no? In that case, plenty of devices are discoverable.
To be discoverable and hidden behind a password is no issue, and it amazed me that Android missed this out. It was infact one of the things I disliked about Blackberry.
It doesn't kill battery (any more than having undiscoverable bluetooth on), and it is a useful service - if a friend (who hasn't accessed my device before) wishes to send me a file, I don't expect to have to pull out my phone, tell it that it can expect a file, before accepting the password and waiting for said file. It's just an extra, unnecessary step.
What is the point of having bluetooth on, if no other device (other than those with previous access) can see it?
"Someone is trying to send you a file" is all you need. That is what happens in 'discoverable' mode. That is what Android is missing.
yes its a shame on x10 too is smart phone weakness. x10 kick a//
The setting you're searching for is in /system/etc/bluetooth/main.conf
DiscoverableTimeout = 0
The default is 120 (2 minutes). 0 will stay on forever.
Actually I found that in /etc/bluez/main.conf with root explorer but how to edit that value to 0?
VandaL^ said:
Actually I found that in /etc/bluez/main.conf with root explorer but how to edit that value to 0?
Click to expand...
Click to collapse
mount the folder as r/w and if you long press, choose to open in text editor
Tnx dude, I forgot to long press on file, what I did was open the file and than try to edit. But I've edited the value now to 0 or 600, reboot phone and when bt is on discoverable again shows only 120 seconds?
VandaL^ said:
Tnx dude, I forgot to long press on file, what I did was open the file and than try to edit. But I've edited the value now to 0 or 600, reboot phone and when bt is on discoverable again shows only 120 seconds?
Click to expand...
Click to collapse
Could you check if the value in the file also has been reverted?
I check instantly after I saw that he shows 120 seconds and the value was 0.
hi all
will you please show a step by step how to configure the bluetooth discoverable time.
thank you

Tasker On The Prime

Not sure how many of you are aware of or are using the app tasker, available in the market...IMO Have to say this is the best app of all time albeit very difficult to use to its full extent...Let me reiterate, the learning curve on this app is like climbing a mountain...just learned about it, so I'm a total noob. Have read the manual and some tutorials, but stuck on the below profile:
Using this profile http://tasker.wikidot.com/yanawa as a base for my transformer prime which has no cell service, just wifi. Imported Wifi connected and Wifi near A profiles, erasing any reference to cell towers and other APs. I'm left with two profiles:
I) Wifi Connected
A. wifi connected
Task
1. Variable set; Name: %WIFIC to 1
2Wait, 15 sec
3. Stop; If %WIFIC !~1
4. Flash; Text "Connected to Wifi"
5. Profile Status; Name, Wifi near A Set off
Exit Task
1. Variable Set; Name: %WIFIC to 0
2. Flash; Text "Wifi disconnected"
3. Wait, 30 sec
4. Stop; If %WIFIC ~1
5. Flash; Text "Disabling Wifi"
6. Wifi; Set off
7. Wait, 3 sec
8. Profile Status; Wifi near A Set on
II) Wifi near A
A. Wifi near home SSID (Toggle checked) -
Task
1. WiFi; Set on
2. Flash; Text "wifi in range"
- Exit Task
1. WiFi; Set off; If %WIFIC !~1
2. Flash; Text "Wifi out of range”; If %WIFIC !~1
The problem is when a Wifi signal is not available, Wifi near keeps searching and toggling wifi, which makes the entire thing useless to me. If anybody could offer nay guidance it would be much appreciated.
I don't quite understand what you're trying to do?
From what I see, is your trying to find out, if you're at home, so that the Wifi gets switched on, and the other way round to save battery? Correct?
Remember, wifi is the method you use to locate your position. So if you switch it off, it can't see where the tf201 is... What you could do is implement another timer, so that Wifi gets switched on every 15 minutes to have a look around. In case it finds your home wifi it stays active. Otherwise it gets shut off again for another 15 min....
Regards,
Chris.
if someone can tell me how to make it notify me (sound) when the micro sd card ejects, I will hit the Thank You Button three times!! lol...i can not figure this out at all. if someone can give me the step by step setup please
It's an absolutely amazing app. You can get lots of preconfigured profiles from their wiki and customise them to your desire. I've been using this app for a while now, first on HTC Desire, then Galaxy Note and now on the Prime. Especially on the Prime that has only Wifi I find that one of the most useful profiles is the one that turns wifi off when my mobile Mifi is not available, and then to switch from Mifi to home wifi and similarly at work.
---------- Post added at 10:29 PM ---------- Previous post was at 10:21 PM ----------
MRCANNADY said:
if someone can tell me how to make it notify me (sound) when the micro sd card ejects, I will hit the Thank You Button three times!! lol...i can not figure this out at all. if someone can give me the step by step setup please
Click to expand...
Click to collapse
That would be a cool warning indeed to warn us that the card has ejected. All I can think of at the moment is to search for an app on Play that you can use to eject manually the card, put that under Tasks > 3rd Party in Tasker and tie your eject event to that. Will continue searching for this profile as I think its a really neat idea...
chrihuc said:
I don't quite understand what you're trying to do?
From what I see, is your trying to find out, if you're at home, so that the Wifi gets switched on, and the other way round to save battery? Correct?
Remember, wifi is the method you use to locate your position. So if you switch it off, it can't see where the tf201 is... What you could do is implement another timer, so that Wifi gets switched on every 15 minutes to have a look around. In case it finds your home wifi it stays active. Otherwise it gets shut off again for another 15 min....
Regards,
Chris.
Click to expand...
Click to collapse
Basically trying to have wifi scan for a specified signal and when available connect and stop scanning...which is what the first part of the above does. However, when a signal is not available wifi continues to scan. Which is what it currently does. What I've done is set the scan's a little further apart, so as to save batt. But my main concern is automation over batt saving.
MRCANNADY said:
if someone can tell me how to make it notify me (sound) when the micro sd card ejects, I will hit the Thank You Button three times!! lol...i can not figure this out at all. if someone can give me the step by step setup please
Click to expand...
Click to collapse
+ 1...Tried it using tasker states re: sd card, but it didn't work.
Moe5508 said:
That would be a cool warning indeed to warn us that the card has ejected. All I can think of at the moment is to search for an app on Play that you can use to eject manually the card, put that under Tasks > 3rd Party in Tasker and tie your eject event to that. Will continue searching for this profile as I think its a really neat idea...
Click to expand...
Click to collapse
Tried a locale plugin (https://play.google.com/store/apps/details?id=com.suttco.locale.externalstorage.status&hl=en) and was able to get a text warning that sd card was mounted, but doesn't seem to work for unmounted or removed.
Also found this info: http://www.itwizard.ro/tag/broadcast-receiver

[GUIDE] Disable Cellular Radio On AOSP Based Roms (WiFi Only)

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.

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