[STOCK] [OREO] Enable 'Turn WiFi on auto near saved network' - Xiaomi Mi A1 Guides, News, & Discussion

Hi all,
Android Oreo bought tons of new features to AOSP, but not all are implemented into budget or older devices. When Oreo released a year ago, this feature was limited to the Pixel and Pixel XL.
This guide is a noob friendly version of how to get this feature back on your AOSP based phone running Oreo.
Requirements:
- Stock or near stock Android, works on the Nexus 5X, Nexus 6P and the Mi A1
- Platform tools
- Ability to read
- Brain.apk
Steps:
- On your phone, head over to Settings > System > About device and tap the build number 7 times. You'll be prompted to enter your password. Do so.
- Hit back and you'll see a new menu labelled Developer Options. In it Enable USB debugging
- Now, on your PC, run the platform tools folder. Hold shift + Right click > Open command/Power shell window here
- Connect your device to the PC and you'll see a promt requesting debugging authorization. Grant access.
- To verify if your device is connected run the command <adb devices> . If not connected you may have to reinstall the adb drivers. If connected it will display a serial number on your PC.
- Run the following commands, hitting enter after each:
<adb shell>
<settings put global wifi_wakeup_available 1>
<settings put global wifi_wakeup_enabled 1>
- Disconnected you'd device and head over to Settings > Network > Wifi > Preferences and you'll find the new toggle.
Additional:
- You do NOT need an unlocked bootloader
- To disable, run the same commands but replace 1 with 0
Works on:
Mi A1 (Tissot)
Nexus 5X (Bullhead)
Nexus 6P (Angler)
Before and After images:

Would this use more or less battery compared to just leaving WiFi on, due to the scanning? Leaving WiFi on it's scanning for networks anyway, so I would assume it's similar.
Unrelated to battery, you can put your platform-tools folder in the PATH so you can use adb and fastboot in any command prompt. Instructions here

Gre;at feature! thanks!
But I can't activate it. The option is displayed but it is inactive. It says "To use, select a network rating provider" and even though I choose google as network rating provider, when I get but, it changes it to none by it self.
Any help?

I did try on my Mi A1, I do see the new options but once I toggle the WiFi to Off, it doesn't turn on by itself when near my home it stays off and I need it toggle on.
Regards
Edit: It DOES work , thanks

Just use tasker/macrodroid with mobile network trigger.

It works for me. It's very useful. Kudos for the OP.

Hmmm.. but this won’t automatically turn off your Wi-Fi when i away from a wlan network or ? It's permanently leave wifi on...

yasars said:
Hmmm.. but this won’t automatically turn off your Wi-Fi when i away from a wlan network or ? It's permanently leave wifi on...
Click to expand...
Click to collapse
It just turn on the WiFi automatically when the WiFi isn't enable. Once outside the wlan network area it doesn't turn off the WiFi automatically. You have to do it for yourself.

Related

HOWTO: Tether your (linux) laptop with your Captivate now, for FREE

Yep, it's actually unbelievably easy with linux.
This is tested with Ubuntu Lucid (10.04), but I expect it should work with pretty much any system that uses Network Manager as the networking applet.
The goal
Tether your Captivate for Internet access over USB.
The procedure
***NOTE: I'm too new to forums to post things that look like outside links, so a quick google of Cingular APN should get you the relevant user/pass combo you'll need in steps 8 and 9***
1. Put your Captivate in USB Debugging mode:
Settings > Applications > Development > select USB Debugging
2. Connect your phone to your computer.
3. Right-click on the Network Manager applet in your system tray, then click "Edit connections..."
4. Select the "Mobile Broadband" tab
5. Click "Add" -- your phone should auto-populate in the little drop-down menu to choose the device to use. I just left it alone and clicked "Forward"
6. Next it will ask you to confirm your location. If you're in the U.S., this will work. I'm not outside the U.S. at the moment, so I can't test anywhere else.
7. Select your provider. If you have a Captivate, chances are you're on AT&T, so pick that and click "Forward"
8. Next you need to pay attention or you may be paying $$$. In the drop down menu at the top, select "My plan is not listed" then fill out the APN info, and then click "forward" at the next window that pops up.
9. In the next screen it will autopopulate the "Default number" and then ask you for your username and password. The username is ATT/Cingular's info from the carrier file.
-- note the use of all caps in both places here. I don't know if it matters, but I know it worked in all caps. I left the other fields blank and left the other two tabs at default settings.
10. The setup is nearly done. Click "finish" or whatever it says on the last tab, and you're ready to rock. Disconnect from your WiFi (assuming you're testing this from home) and click Network Manager, connect to your new network (mine was named AT&T Connection 1. It hooks right up and runs.
The happy dance
There you go, 10 steps to free USB tethering with your Captivate, and all you need is a free OS and about 5 minutes. And yes, this was posted via a tethered Captivate.
--------------------------
I'm also working on getting Bluetooth tethering working, but it fails at the last step. Don't have time to figure it out tonight, but I'll give it another shot tomorrow after work.
Awesome...
Thanks a bunch..it worked like a charm!!
ubuntu=10.04
Device=AT&T Samsung Captivate Andriod 2.1-update1
Got 4Mpbs down
Provided the ROM you're using allows tethering (and you've turned it on..) it should appear as a network adapter, usb0 probably, and you can just treat it like a an Ethernet connection.
# ifconfig -a
Will tell you what you have plugged in network-wise.
I use Wicd, not Network Manager, and can add usb0 in place of eth0 and use it as any other wired internet connection?

[Guide] Connect to public wifi hospots with captivity portal from Android Wear Watch.

First of all, if your watch doesn't have wifi then this guide is not for you. This guide while it tries to go more into details, it requires some previous knowledge of using console commands.
According to the official google website. [1]
Not all watches have a Wi-Fi feature. Try using the directions below to connect to Wi-Fi. If you don’t see Wi-Fi settings under “Settings” on your watch, Wi-Fi is not available on your watch.
When your watch uses Wi-Fi, the “Open on phone” feature is disabled.
Your watch can’t connect to Wi-Fi networks that use captive portals, which are web pages you have to visit before connecting.
Click to expand...
Click to collapse
There is a way to bypath that limitation by installing Android version of firefox on your watch. However, its not enough to just install firefox. You also need to change lcd density parameter to make UI fit on the tiny screen AND you'll need some sort of keyboard to be able to input characters into firefox.
You will need to download tools to be able to connect to your watch.
1. [TOOL] [WINDOWS] ADB, Fastboot and Drivers - 15 seconds ADB Installer v1.4.2
Your watch needs to have USB debugging enabled. Follow this youtube guide. Since UI is the same on all android wear, this method will work on all android wear watches. Note that the person in the video has a Mac. So the console will be different. On windows you just fire up the cmd. You can ignore the Android SDK and Eclipse stuff she is doing as we don't need it for this.
2.
This tool has a list of supported devices, but since we are going to be using only one function of it, you can probably get away with picking the wrong android wear watch from the list.
3. Download [TOOL] WinDroid Universal Android Toolkit v2.4 | Unlock | Root | Flash | 90+ Devices
From previous steps make sure your watch is connected and the WinDroid tool is able to detect it. If all is good download APKs and then in WinDroid go to "Commands" tab and click on "Install App". Find your firefox and minuum wear apk files. Install both of them by installing one at a time.
Once apks are installed you need to open cmd terminal and type some commands:
To make keyboard work you need to type
Code:
adb shell ime enable com.whirlscape.minuum/.MinuumKeyboardService
And then
Code:
adb shell ime set com.whirlscape.minuum/.MinuumKeyboardService
To make firefox UI more usable, we need to change the LCD density.
In the same terminal first type
Code:
adb shell
then
Code:
cat /system/build.prop | grep "lcd"
You will then see something like this on the screen
Code:
ro.sf.lcd_density=280
Write down this value and keep it save in case you want to restore to normal LCD density.
To change density type
Code:
wm density 200
It will immediately change LCD density on your watch. Everything will become smaller. I recommend that you enable "Large Font" in Accessibility menu on your watch to make the font size bigger.
Now try connecting to the public wifi on your smartphone. Wait a few seconds for information to sync with your watch. Disable bluetooth on your phone and your watch should automatically try to connect to wifi hotspot. Alternatively you can select wifi AP from a list of wifi on your watch without needing to use your phone. You will still need to disable bluetooth on your phone though.
Finally, fire up firefox on your watch, try to go to any website. The captivity webpage of your public wifi will show up and just press accept/I agree/etc as you normally would. After that you can close firefox by swiping to the right. I recommend you install task manager for android wear to be able kill firefox from memory. And try not to leave firefox or wifi open for too long as it will drain your battery really quick.
Now sit back and enjoy your wifi sync over the public wifi hotspot connection.
This lets your watch and phone to automatically stay synced at any distance over the Internet.
Click to expand...
Click to collapse
Here how it all looks on my watch.
Sadly video doesn't start, it just keeps on buffering.
That's a great effort. I'm happy to report that we now have a much easier option by using wear browser.
I posted my experience with it here.
sirrelevant said:
That's a great effort. I'm happy to report that we now have a much easier option by using wear browser.
I posted my experience with it here.
Click to expand...
Click to collapse
Yea, it does seems easier. However, I am thinking of writing a tiny program that would attempt to automatically click on "I accept/Connect" button. Not sure how to approach this problem quite yet, as there are so many different captive portals and some might have multiple checkboxes and buttons. Also, a program that would allow you to connect to wifi AP with a password without phone.(Its possible with es filemanager)
If you connect to an open wifi on your phone then your watch auto connects, but you use a VPN on your phone for security the watch is still using everything un encrypted right?
frigidazzi said:
If you connect to an open wifi on your phone then your watch auto connects, but you use a VPN on your phone for security the watch is still using everything un encrypted right?
Click to expand...
Click to collapse
It only connects to wifi when bluetooth is turned off or your phone is our of range. But, yes, you are correct. VPN will only encrypt phone's traffic since the watch will directly connect to wifi AP. So, you would need to run a separate VPN client on the watch.(which might be not possible atm)
Sorry to bring up an old thread but I am wondering if this still works with the very latest version of Android Wear 2?
I have a Huawei watch 2 and need to get onto a WiFi network (at work) that requires you to hit a confirm button on a webpage the first time you login. Can't seem to get it working on the watch.
mupet0000 said:
Sorry to bring up an old thread but I am wondering if this still works with the very latest version of Android Wear 2?
I have a Huawei watch 2 and need to get onto a WiFi network (at work) that requires you to hit a confirm button on a webpage the first time you login. Can't seem to get it working on the watch.
Click to expand...
Click to collapse
The last time I tried it on Huawei watch 2, when I still had it it also didn't work. They probably removed some system libraries in wear 2.0 and broke all of those apps.

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

How to change APN and update firmware on Samsung SCH-LC11 hotspot

I am debating whether or not to post this here, on Howard Forums or on CDMA Gurus, but I'll post it here as this forum seems the most popular and has a great SEO so hopefully someone googling how to do this will see this thread and find it helpful.
This summer I picked up a used Verizon Samsung SCH-LC11 hotspot. It is surprisingly small and lightweight but heavy and feels high quality.
I was surprised to see the built in web interface didn't have a software update button, nor any options to change APN settings and so on. I searched Google and couldn't find ANYTHING initially on how to do this, but found that there was a software update which mine didn't have that gave it the ability to choose LTE only, 3G CDMA only, and so on, which I thought would be nice to have. After a lot of digging, I finally found out how to do this.
First you'll need to install the latest Samsung USB drivers from here https://developer.samsung.com/mobile/android-usb-driver.html
Once that is done, you'll need to download the Samsung firmware update utility for this hotspot which can be found here
Verizon: https://www.samsung.com/us/support/downloads/?model=N0020110&modelCode=SCH-LC11ZKAVZW
US Cellular: https://www.samsung.com/us/support/downloads/?model=N0020124&modelCode=SCH-LC11ZKAUSC
Download the one listed as "PATCH,OTHERS" and run it, and follow the instructions, once that's done you should now be on the latest firmware!
This next one is something that initially was reported as impossible, changing the APN settings. There is nowhere in the web menu to do this and when you plug this device into your computer nothing happens.
After months of searching though, I finally found a thread on CDMA Gurus related to flashing and doing more involved things with this hotspot, and this showed how to enable debugging mode!
To do so you'll need to power your hotspot on and connect to it's wifi network, and then head to the admin page at http://192.168.1.1/ and login with the wifi password found on the sticker underneath the battery cover. If your sticker is missing the password is the last 8 digits of your IMEI, ignoring the last digit of the IMEI. For example if your IMEI is 123456789123456 your password is 78912345.
Once you're logged into the admin page go to http://192.168.1.1/selectusbmode.html and enable USB debug mode and click Save. Then go into "Configuration" and "Diagnostics" and click restart and connect the hotspot to your computer via USB. You should hear the device connect sound.
Now you'll need to use a program called AT Command Tester available at https://m2msupport.net/m2msupport/download-at-command-tester/ as we will set the new APN of your choice using AT commands, and this program let's you do that all through a simple, easy to use GUI.
You will need the latest version of Java installed on your computer as AT Command Tester requires Java to run, you can obtain the latest Java here https://www.java.com/download/ie_manual.jsp
Once you have the latest version of Java installed and have downloaded and installed AT Command Tester, open up your start menu and launch AT Command Tester, if this doesn't work navigate to C:\Program Files (x86)\AT Command Tester and run "atc.bat"
You should see AT Command Tester open, and now you'll need to establish a connection to the Samsung hotspot. Click on "Find Ports" and wait, now you should see 3 COM ports available from the dropdown selection list, in my case it was COM16, COM17 and COM18 and the one I needed to use was COM16, however yours may vary and you may need to try each one until you establish a connection, I'd recommend trying the lowest numbered one in the list. Once you have selected the proper COM port click "Connect" and in the log in the right you should see it detect the hotspot and list Qualcomm as the device type.
Now you can follow the instructions here for setting up the APN https://m2msupport.net/m2msupport/how-to-setup-access-point-network-apn-in-cellular-modules/ and once you have set the proper APN you can restart your hotspot and you should have everything working!
If you for some reason need to change other settings, you can use DFS Qualcomm Tool to do so. This device will also be detectable via QPST and CDMA Workshop too.

Wifi and Cell toggles after upgrade to Android 12 ( no root )

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.

Categories

Resources