Wifi and Cell toggles after upgrade to Android 12 ( no root ) - Google Pixel 4a Questions & Answers

After upgrading to Android 12, we lost wifi and cell toggles. There is a replacement - internet toggle which brings another popup which can be used to turn on and off Wifi and Cell data. This is one more tap and is not needed imho.
I've looked around and found a way to restore wifi toggle and cell toggle:
First, adb shell into your phone ( enabling debug mode of course )
settings get secure sysui_qs_tiles
This is going to show all toggles which are currently available.
You can then add wifi and cell to the list and
settings put secure sysui_qs_tiles "wifi,cell,<here goes the rest of your toggles>"
for example, this is what I did for Pixel 4a
wifi,cell,bt,dnd,flashlight,rotation,night,screenrecord,custom(com.google.android.gms/.nearby.sharing.SharingTileService),dark,controls,hotspot,location,airplane,cast,cameratoggle,mictoggle,wallet,alarm,reduce_brightness,internet,battery
settings put secure sysui_qs_tiles "wifi,cell,bt,dnd,flashlight,rotation,night,screenrecord,custom(com.google.android.gms/.nearby.sharing.SharingTileService),dark,controls,hotspot,location,airplane,cast,cameratoggle,mictoggle,wallet,alarm,reduce_brightness,internet,battery"
I however noticed that once in a while Wifi toggle stops working, reboot helped with that. Please share your experiences.

Just did this to my son's pixel 4a because he was missing the toggles. Seems to be working, but the cell one doesn't show connecting/disconnecting just connected/disconnected.
I'm sticking with internet because I rarely block data and usually want to block wifi at the same time when I do.

There is one problem. If there is no known Wifi to connect to, the toggle gets stuck in an "on" position and doesn't turn Wifi on or off. Not sure how to fix this. I have developed my own toggle but it has a similar problem.

Related

[Q] Scheduled auto sync with wifi only

EDIT: SOLVED
I accidentally found the option I was looking for while fiddeling around in BatteryXL. At the checkbox-option for autosync... if you click on the text left of the checkbox insted, you are able to select WIFI and/or DATA. Well hidden =). The initial results is promising, but will run it for some days to make sure it works properly. As for now I see this as solved.
I have an issue that I've stuggeled with for days now and it's starting to drive me crazy.
What I'm trying to do is to make my phone, in intervals, enable autosync + wifi, sync/update then turn back off again without mobile data ever beeing activated. I want mobile data to be activated manually only.
So far I've been able to do everything except preventing mobile data to activate. If wifi is available it overrides and turns off mdata, but im not fully satisfied with this. I use BatteryXL Pro for the scheduled autosyncs.
Here's my setup:
HTC Desire S
Rooted - cm7
BatteryXL Pro (Options: Smart Wifi + Smart data enabled, these basicly just manage how wifi and mdata is turned off again. Smart AutoSync: frequency 15 min, duration 1 min)
Background data and Autosync is disabled in the phones settings.
I've been messing around with the APN settings aswell.
I had this working on my stock OS before i rootet. Any suggestions on how to solve this?
Thanks, warjar

A non-suck Tasker data management script

Suggestions or questions are welcome!
Description:
Here is a simple-ish script I wrote to manage data flow on my phone. Mobile data on/off is easy enough but what most users have a hard time pulling off is when to toggle wifi on and off with minimal consumption. Using local tower states is pretty common but it's inaccurate and slow; additionally my method uses less battery life.
Room for improvement:
The only thing I would like to do in order to improve this is to have the script not disable data when downloading or streaming. This is possible but is unique per device per ROM so I can't really go into detail about how to do it. As a summary though there's a file that is written to that keeps information about bytes traffic. You just read this file to determine how much data is flowing in a specific interval and if it exceeds a certain amount then don't turn off data just yet. It's also a known issue where with some devices the 3G state change won't register when toggling manually while connected to wifi.
Features:
Wifi and 3G will disable two minutes after the screen is off so it's not constantly toggled through intermittent use.
On some phones or providers the 3G status becomes unknown when in a call or when connected to wifi; this script works around that.
Unlike most data management apps this one will remember your 3G status should you manually change it, in case you don't want 3G on at all.
Data is still checked on an hourly basis(this can be adjusted of course).
Fast and accurate wifi connecting with very minimal power drain.
Just a few things explained for those curious:
I check the phone state to ensure that 3G isn't detected as manually disabled when your provider uses 3G to place calls.
I check the screen on time because on some phones/ROMs the 3G doesn't actually register as toggled until the screen flickers back on. Because of this 3G appears to only become disabled once the screen turns back on and it can be registered as manually turning it off.
The wifi timer exist so the script won't check for a wifi too frequently.
You can adjust the hourly checks under Cycle 3G.
What version of Tasker is this developed under? Just curious, I'm running the 4.0 beta, and I just had to back out of b19 to b18 because of issues with my data management profile. I'll try yours out, it sounds a lot better than mine...
Can't seem to get this to work...tasker wont recognize the file
Sent from my SAMSUNG-SGH-I727 using Tapatalk 2
It's working great for me on 4.0b18. I still need to look at the logic being used as to what causes it to 'wake up' and connect to wireless, is it simply a delay after screen on, or are you also looking at other factors?
Tasker 1.3.3u2
My friend had problems getting his to recognize the profile as well. I'm not sure why.. It might have to be in the proper directory. You might also have to make a new profile tab for it. Hopefully rpr69 can give us some insight.
But to answer your question as to how I check Wifi...
When screen turns on I immediately try to connect to Wifi before trying 3g. 3g will still enable briefly after for phones that require it for MMS. If Wifi isn't connected after X seconds then it disables Wifi and won't try again for 10 minutes. If it does connect successfully there will be no 10 minute wait next screen on.
Added manual toggle memory to Wifi as well. I'll post the changes later and update the zip file.
Are you importing the profile, or just dropping it in a directory? The proper way is to import into a new project. In 1.3 of Tasker (from memory, it's been awhile), you need to pull down from the top of the Tasker top bar which should then give you the Projects tabs. Long press on the Home tab, and you should get an 'import' option, navigate to where you downloaded the project file on your phone and select it, and it should create a new tab for it, with the profile and tasks under it. If you had previously just manually copied the xml file into the projects directory, move it out of there or the import may fail.
Looking forward to the update!
Ok got it to work I forgot is was a project and kept trying to import only a profile. It seems great so far!!!
Sent from my SAMSUNG-SGH-I727 using Tapatalk 2
To make it so it won't check wifi when you don't want it to add the following...
ProfileName - Record Wifi State
Trigger - State > Wifi Connected *
Enter Task - Set Variable %wifistate to 1 if screen ~ on
Exit Task - STOP If %ScreenOnTime + 2 > %UPS
......Set Variable %wifistate to 0 if screen ~ on
then under task "Data Types On - Type 2 P2"
very first line add - If Then > %wifistate = 1
Place a closing End If at the very bottom, and move the "Mobile Data > Set On (if %3GState = 1)" second from the bottom, just above closing.
I also just uploaded the xml file again to the main post.

[Q] Turning off cellular modem without turning off WiFi

Hi all!
I just recently upgraded from a Samsung Galaxy Player 4.0" to a Moto G. I sold my SGP and accessories for almost what I paid for my Moto G, which I considered a pretty good deal. I currently have no need for a cell phone, however, and merely use the Moto G as I did the SGP. That means connecting with WiFi only and using it mostly as a media and navigational device (with pre-downloaded maps and GPS enabled).
In an attempt to conserve as much of the (already amazing) battery life as possible, I've set location to Battery Saver and disabled "Data enabled" and "Data roaming" under Settings>Wireless & networks>Mobile network settings. I've also set "Battery Saver" under Settings>Battery to "On". Despite this "Cell standby" under Settings>Battery still consumes an average 20% of a full charge of my battery. Part of this could be that as I am in a remote location, with only very weak cell signals available, the device is constantly searching for signal despite the fact that I do not even have a SIM card installed.
Is there any possible manner in which I could switch off the cellular modem in the phone without switching off WiFi? I can set the device to "Airplane Mode" but that also turns off WiFi, which I prefer to leave on during the day and only switch off at night. I am very new to Android 4.x, so do not yet know all the ins and outs of the Settings menu, and as such may be missing something. Or there might just not be the option. Either way, is what I am wanting to do possible?
You can turn WiFi back on (long press it in the quick settings tile) after enabling Airplane Mode. There may be an app or widget to do this more seamlessly, though.
Turn OFF cellular radio.
I can't wait for my Moto-G to arrive, so I am winging it here..
You can try this: *#*#4636#*#*, and you will enter the TEST mode.
Select Phone information, and scroll down to where you see the SMSC dialog box, directly above this, you will see another greyed out box with the wording: Turn off radio. Select that, and the radio will be disabled, but will restart on a reboot, but there is a way to shut off the radio completely as well, but this should help for now.
You can also use this: ##7764726(program) and then tap DIAL to access the SPC password menu, where you enter SIX ZEROES, and tap 'verify' to enter the programming menu.
The two you will be more interested in, are the first and third selections, User activation and Extended NAM
You can wipe all the data if you wish (but write that information on paper so you will know its location if you decide to actually use that device in the future!
Scroll down to Extended NAM and write that information down, first to last, in proper order as before.
If you wish to completely disable ALL outbound dialing, you should delete the emergency number listings as well.
To upgrade your overload class, change that number to a '1', so some schmuck can't boot your call in favor of theirs.
Your MIN and MDN should be erased, as this prevents the phone from placing any calls, even 911 calls if you erased those numbers.
You can erase everything, from the SID to the MCC (Mobile Country Code), to anything the phone uses to access the network.
Just write everything down in proper order so you have a point of reference when you forget what you did.
Once you finish your task, reboot the device. You may need to once again, shut off the radio using the *#*4636#*# operation, but each device is unique here, you may not need to do this.
You can then try the above mentioned shut down procedure again, and disable the radio completely.
WiFi should still be operational
Thank you both very much for your replies! tma200's method works quite well for me, being easy to get to (definitely seamless compared to doing anything in Gingerbread!) and simple to remember. Thank you for your reply, AECRADIO, I'll keep it in mind if I ever need to do some more advanced radio management on my device!

Airplane mode - keep Bluetooth and WiFi

Hi.
//some info :
Samsung Galaxy Note 4
Beanstalk 6.12 (based on CM, android 6.0.1)
Xposed enabled, rooted etc.
Coverage in my school is pretty bad - low to no signal. Too much concrete I guess. Because of it my battery drops pretty fast even when I'm not using my phone.
I made a tasker profile to enable the airplane mode when there's no signal. Task detect if BT/WiFi was enabled before and turns it on again. Task disables Airplane mode after 20 mins to check for signal, and whole task restart.
However the problem is that BT is disconnected for a while, which is anoying and disables smart lock (up to first unlock), disconnect BT headphones and watch. Tweak is worth it ; now battery drops much slower. I want it to keep checking every 20 mins because there are some places where signal is pretty good.
//the question
I'm looking for a way to tweak airplane mode (or just disable signal with other method), and leave BT/WiFi untouched.
So far I found this :
androidforums.com/threads/how-to-keep-bluetooth-on-when-enabling-disabling-airplane-mode.659825/
I guess it's for older android versions, but tried anyway. In this folder I have almost right file. It's called "settings.db-journal". SQLite editor can't open it and build in editor shows Chinese? letters?.
If you could help me that would be awesome.
Thanks,
Peter.

Attempt to Recover Data Toggle on G920T (6.0.1)

So I have a G920T that is factory unlocked with an CSC being XAR that works perfectly most of the time. After I updated from 5.1.1 to 6.0.1, however, the mobile data toggle in the notification centre is gone, which according to my observation on the Internet happens to a lot of other users in the U.S. (except for Verizon users). I am reluctant to root as that would permanently disable me from using Samsung Pay, so I figured out a way to modify the system UI without root using a Windows computer and ADB commands:
1. Enable USB debugging in the developer mode
2. Connect the phone to the Windows computer
3. Run adb.exe in cmd on the computer
4. Input
settings put secure sysui_qs_tiles Wifi,Nfc,PowerSaving,RotationLock,Bluetooth,WifiCalling,Location,SilentMode,AirplaneMode,DormantMode,Flashlight,UltraPowerSaving,AllShareCast,Sync,SFinder,
and enter
It seems to work pretty well as the toggles can be moved, removed and added, as long as the syntax is correct. But when I try to get the data toggle, inputting MobileData, (as suggested by many other people on the Internet) doesn't work, neither do Data, CellData, or CellularData,. If I put Cellular, however, a mysterious toggle with an unfinished icon appears in my toggle tray saying "Emergency Calls Only", and if you click on it it's gonna display your recent data usage in the notification centre, with options to go into the data usage settings or "Done". Nonetheless, it still does not allow you to turn on/off your mobile data with one click like before. So I'm really just wondering: anyone knows what syntax I should use for the data toggle? Or it's basically impossible because Samsung has permanently removed this feature from non-Verizon U.S. phones?
Thanks!
Screenshots:
https://drive.google.com/open?id=0B1IVkT3djgHeYUIzaFhyOFdTRTA
https://drive.google.com/open?id=0B1IVkT3djgHeRlJKckFGbEQ5UG8

Categories

Resources