Cannot Disable Native Captive Portal Detection - Nexus 6P Q&A, Help & Troubleshooting

Starting shortly after the 7.1.2 official builds, I can no longer successfully disable native captive portal detection on my 6P.
I used to be able to use the following command in adb shell: adb shell settings put global captive_portal_detection_enabled 0
However, this no longer has any effect, even though I can run the next command: adb shell settings get global captive_portal_detection_enabled and it will return 0 like it is supposed to, indicating that it has been disabled.
It seems that this functionality has been broken in the latest security patches, and I have searched far and wide with no answers except for what I already know. If I cannot disable native captive portal detection, it will not permit "Hello Guest Wifi" (an app that used to work reliably) to automatically sign into the public network at my workplace and requires manual connection multiple times per day. Any help would be greatly appreciated!

Hi, I had the same issue. After digging into android_framework_base, this was not broken, but the configuration has changed.
Now there is 3 captive portal settings:
https://github.com/LineageOS/androi...ore/java/android/provider/Settings.java#L8273
- ignore: Don't attempt to detect captive portals
- prompt (default): When detecting a captive portal, display a notification that prompts the user to sign in.
- avoid: When detecting a captive portal, immediately disconnect from the network and do not reconnect to that network in the future.
The setting to configure is no more captive_portal_detection_enabled. Instead, use captive_portal_mode
settings put global captive_portal_mode 0
Click to expand...
Click to collapse

guilc said:
Hi, I had the same issue. After digging into android_framework_base, this was not broken, but the configuration has changed.
Now there is 3 captive portal settings:
https://github.com/LineageOS/androi...ore/java/android/provider/Settings.java#L8273
- ignore: Don't attempt to detect captive portals
- prompt (default): When detecting a captive portal, display a notification that prompts the user to sign in.
- avoid: When detecting a captive portal, immediately disconnect from the network and do not reconnect to that network in the future.
The setting to configure is no more captive_portal_detection_enabled. Instead, use captive_portal_mode
Click to expand...
Click to collapse
Oh, thank you so much. I was having this issue with my Lenovo Zuk Z1 and you just saved me a huge amount of frustration. lol

guilc said:
use captive_portal_mode
Click to expand...
Click to collapse
works awesome on android 7.1
you saved my live

this is it!
@guilc
well done!
@wannabe-developers
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
u should be condemned to have only access to networks
that block access to your hard-coded:
'yes i can curl that, now the system has internet access'
targets for the rest of time.
and no root or adb access!
thx for breaking the user :silly:

guilc said:
Hi, I had the same issue. After digging into android_framework_base, this was not broken, but the configuration has changed.
Now there is 3 captive portal settings:
https://github.com/LineageOS/androi...ore/java/android/provider/Settings.java#L8273
- ignore: Don't attempt to detect captive portals
- prompt (default): When detecting a captive portal, display a notification that prompts the user to sign in.
- avoid: When detecting a captive portal, immediately disconnect from the network and do not reconnect to that network in the future.
The setting to configure is no more captive_portal_detection_enabled. Instead, use captive_portal_mode
Click to expand...
Click to collapse
thank you so much
you saved my time clearing this annoying notification.

I get permission denial message when I try this command, its a shame there isnt an xposed module for this..

well...
got root?
if not try adb from pc...
i guess: no root, no luck! though

Related

Remote Commander, Help?

Merry late christmas every1,
i been messin around with the Pebbles software available at:
http://www.pebbles.hcii.cmu.edu/software/userguide.php#pcnetworkconnections
and well, it allows u to virtually control ur desktop from your PPC (i have an 8525).
it allows u to connect serially, via usb, infrared and to a network host thru the options menu here:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
its a nice program and works flawlessly thru usb and thru the network host when ur inside ur network i.e. 192.168.1.* and so on.
but ofcourse i have to push the limits and want to connect to my external IP so i can connect via 3g from anywhere, how cool is that..
and the port isnt shown anywhere so i connected via Wifi and ran netstat to notice:
Proto Local Address Foreign Address State
------- -------------------- ------------------ ---------------
TCP myComputer:4343 192.168.1.*:1060 ESTABLISHED
i just forwarded both ports in my routers config as so:
i then pluggd my external IP into the network host text box on my 8525, clicked ok and was prompted by the pebbles server software running on my laptop whether or not to allow a connection from my phones 166.135.*.* ip, i ofcourse accepted and got an error from my phone, "Error: Network not available"
i tried like 10 times without making any changes and it connected once and ran perfectly, like i was connected over usb or wifi. i finished testing it out so i closed the connection and since, i havent been able to get it working.
i opened PebblesPC from my taskbar to see:
and noticed like 20 different 166.135.*.* IP connection attempts all from my phone.
wut ive concluded is that while connected to the internet on our phones over 3g, the IP changes so frequently to my device and doesnt hold onto a particular IP long enough for the pebbles software to fully connect and hold a connection like it has when assigned via dhcp to my internal network, but thats just my guess =X
any help is appreciated, suggestions are welcome and if theres any other software that can do the same then thats cool too, but id like to get this particular one working
o and its freeware so thats nice too
Try Logmein. Works flawlessly for me and allows me to access my work PC from home. Even to start it up and shut it down!!
Allows you to start up and shut down applications on the remote PC including printing etc etc.
You need to register but it's free:
https://secure.logmein.com/welcome/get_logmein_free/signup.asp
Mike
kinda wanted to figure out the pebbles thing, but since u reccommended logmein, ive been messin with it and its really nice
wish u could add more special keys to send but its definately really good.
appreciate it =)
Also look for my forthcoming roundup of all remote control-related.
will do. definitely lookin forward to it. will u post it here in these forums?
Menneisyys - The man who never sleeps, either that or his days are longer than those of us mere mortals.
Mike

Wireless tether issue...some help

So I have the cyanogen 5.0.5.3 installed and the wireless tether app. When I open the app and start it, on the phone it seems to be active but I have trouble connecting to it from laptop. Also when I enable the wep security on the phone, it doesn't show up as a secured wifi connection when in connect to it.
Any idea on how I can fix this?
Thanks
finesta101 said:
So I have the cyanogen 5.0.5.3 installed and the wireless tether app. When I open the app and start it, on the phone it seems to be active but I have trouble connecting to it from laptop. Also when I enable the wep security on the phone, it doesn't show up as a secured wifi connection when in connect to it.
Any idea on how I can fix this?
Thanks
Click to expand...
Click to collapse
Do you have an Intel WiFi card? If not, which brand WiFi card is in your notebook?
Cheers,
Kermee
finesta101 said:
So I have the cyanogen 5.0.5.3 installed and the wireless tether app. When I open the app and start it, on the phone it seems to be active but I have trouble connecting to it from laptop. Also when I enable the wep security on the phone, it doesn't show up as a secured wifi connection when in connect to it.
Any idea on how I can fix this?
Thanks
Click to expand...
Click to collapse
I have been having similar issues. I am interested in finding a solution as well.
Kermee said:
Do you have an Intel WiFi card? If not, which brand WiFi card is in your notebook?
Cheers,
Kermee
Click to expand...
Click to collapse
Interesting. I will look into this and respond.
New Drivers
I installed new drivers (Intel 13.1.1.1) and all works fine...
Cheers
Chumby
I own a lenovo laptop and the iPad... with lenovo it just never connects, with iPad it shows connecting but no internet, with iPad it also doesn't ask for security code if I have one active
finesta101 said:
I own a lenovo laptop and the iPad... with lenovo it just never connects, with iPad it shows connecting but no internet, with iPad it also doesn't ask for security code if I have one active
Click to expand...
Click to collapse
If your Lenovo has an Intel WiFi card and you're using Microsoft Windows, make sure you are using Intel drivers version 13.1.1.1 and nothing older.
Then do the following on your Nexus One:
1. Install the latest version of android-wifi-tether (as of this posting).
2. Start "Wireless Tether for Root Users".
3. Once the program has started up, hit the "Menu" button.
4. Select "Setup".
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
​
5. While in "Setup", hit the "Menu" button again and select "(Re)-Install binaries/configs".
​
6. You should get a confirmation that the binaries & configs were re-installed similar to this:
​7. At this point, scroll down the "Setup" menu and find "Change LAN" and change it to something different from the default, for good measure. My example shows 10.10.3.0/24 which is an option towards the bottom of the scroll view.
​8. Try first with WEP off to see if it'll connect to your Lenovo or iPad. It should work at this point.
Good luck!
Cheers,
Kermee

[Q] How to test if Wifi hardware works

I bought a HTC INC2 from a guy last week. It is unlocked so it works perfectly with my ATT sim and I managed to get 2G running. Then I checked the GPS, Camera and so on, everything looks fine until I wen back to home. Because there is no Wifi network in my work place so I didn't find the wifi seems not working. The phone cannot found any wireless network at all. I am sure I made the ssid is broadcasting. I was thought it probably not happy with my wireless router so I closed all security setting. But the phone still cannot find the open network. So I drove to our library where have public wireless access, still nothing. On my way back, I use my other phone as a hotspot, nothing happened even I put two phone together.
Here is a list of things I did in next couple days, went to a office building which hosted a lot of company. Almost all of these company have some sort of wireless network, my other phone in my right hand can found at least 10 networks while the INC2 which in my left hand can find none. I flashed the ROM to CM7, nothing. update radio, nothing.
Flashed to skyrider, nothing. update radio, nothing...
The guy who sold me the phone said the wifi is working perfectly when he is using it with verizon. He updated to iPhone month before so he didn't notice if the phone stop work with wifi after his update. He seems to me a honest guy.....
Now I want to test if the wifi hardware works. I really want to learn something from this frustrating thing. any idea?
TIA
Probably the wifi is not working. I do not own a HTC INC2 but can flash another radio/modem/wifi driver?
Also there is a hidden menu called Field Test Mode. It may have something about wifi. From wikipedia:
There is a hidden "testing" menu on the device that can be accessed by typing *#*#4636#*#* aka *#*#info#*#* on the phone's keypad. It will bring up 5 categories: Phone Information, Battery Information, Battery History, Usage Statistics, and WiFi information.
Other hidden menus from dial pad: (1) ##debug+call, (2) ##program+call enter six zeros example: 000000, (3) *#*#7262626#*#* - Field test menu, (4) *#*#2432546#*#* aka *#*#checkin#*#* - checks for updates, (5) ##778 (+call for Epst menu), (6) *#*#8255#*#* - Gtalk service, (7) *#*#8351#*#* - voice dialer logging enable, (8) *#*#8350#*#* - voice dialer logging disable
Click to expand...
Click to collapse
You could try a wifi teathering app check if it transmitting.
Sent from my MB855 using xda premium
Here i attached testing procedure link ehow.com
Or activate Mobile Hotspot and test its functionality with other phones or computer
Arorams said:
Here i attached testing procedure link ehow.com
Click to expand...
Click to collapse
You need to insert a hyperlink, that leads to the homepage of ehow.com
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Re
check the wifi setting properly if this is not working then i think you should let some phone professional check it
It would seem that the OP resolved their wifi issue months ago.
k.

nfc wifi connecting help

ok guys im allocating some nfc tags around the public bar i work at,.
i want to put 2 tags on the main bar that connect customers to our wifi, now i know i can do that with commands however
we are using a broadband system provided by heineken beer company, users connect the wifi network, but then must open theyre browser and click a default webpage that comes up instantly to connect to the network.
so how would i set the tags to
connect to the wifi and then click the "connect to heineken wifi" option on the default page?
Are you sure about NFC with its max range of about 20cm? Either way I would imagine that the WiFi hardware supplied takes care of redirecting the user at login
peterk-1 said:
Are you sure about NFC with its max range of about 20cm? Either way I would imagine that the WiFi hardware supplied takes care of redirecting the user at login
Click to expand...
Click to collapse
yes that is the idea, customer walks in touches the bar designated spot and connects to wifi,... we dont want a long distance force connect to every customer lol
the supplied wifi asks for the user to open webbrowser and click "use wifi" before actualy being connected. is there such command to get around this?
im on a secret mission to make our bar android friendly :highfive:
Could this the case?
To restrict wifi access to current customers and to make the connection easier (selecting correct wifi service and keying a strong passphrase) the customer touches the tablet onto the bar mounted NFC device and the network wifi config is beamed to the tablet and the customer elects to process the download and get immediate network access.
This link http://mobiletechglobal.com/customer-cases/i-heiwi/ shows a jpeg of the "Heineken Hub"
peterk-1 said:
Could this the case?
To restrict wifi access to current customers and to make the connection easier (selecting correct wifi service and keying a strong passphrase) the customer touches the tablet onto the bar mounted NFC device and the network wifi config is beamed to the tablet and the customer elects to process the download and get immediate network access.
This link http://mobiletechglobal.com/customer-cases/i-heiwi/ shows a jpeg of the "Heineken Hub"
Click to expand...
Click to collapse
ah that the heineken hub alright, but our is a little different,
we have this as default loaded page
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
But it has a button in the middle of the page saying "free premium wifi" the user must click this button before actually being connected to the net,.

[Guide] How to setup WireGuard with AzireVPN

Edit: Easier guide.
Code:
Disclaimer:
AzireVPN is a third-party service that is currently providing free VPN for WireGuard users for an undetermined time.
I have no relation or association with the company. All rights reserved to the Azire team.
If you follow this guide, you are at your own risk. I'll not be held responsible for any damage.
What is WireGuard?
"WireGuard is an extremely simple yet fast and modern VPN that utilizes state-of-the-art cryptography. It aims to be faster, simpler, leaner, and more useful than IPSec, while avoiding the massive headache. It intends to be considerably more performant than OpenVPN. WireGuard is designed as a general purpose VPN for running on embedded interfaces and super computers alike, fit for many different circumstances. Initially released for the Linux kernel, it plans to be cross-platform and widely deployable. It is currently under heavy development, but already it might be regarded as the most secure, easiest to use, and simplest VPN solution in the industry." - WireGuard Website
Click to expand...
Click to collapse
How can I use Wireguard?
To use Wireguard with your phone, you will need a kernel (or ROM) with WireGuard support. For this guide, we will focus on Z00A, since this is my device.
Currently we have Hololite and Holo Kernel for Z00A and Z008 by @nutcasev1.5 which supports wireguard.
After flashing the required kernel and booting the device, you will need to download the WireGuard app from Playstore.
Now we need to configure the VPN server. Currently AzireVPN is providing free access to WireGuard users for an undetermined time, to test their infrastructure. So we will use it.
To start, create an account on their website and then go to their WireGuard page and check the "Manual Configuration without Script" section. We will use that as a base.
Next, we will need cURL to obtain the required information from Azire to be able to connect to their service with WireGuard. If you are using Windows, you can download Git for Windows and use the git bash to execute the command. If you are on Linux, you can search how to install cURL for your distribution and do it normally.
Now we can proceed. Open the Wireguard app on your phone and touch the "+" and then "Create from scratch". Then, click on "generate" and save the public key generated.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Now we can execute the cURL command:
curl -d username=REPLACE --data-urlencode password=REPLACE --data-urlencode pubkey=REPLACE https://api.azirevpn.com/v1/wireguard/connect/se1
Click to expand...
Click to collapse
Replace all the "REPLACE" with the corresponding information: your Azire username, password and the public key we generated with the app.
If everything goes right, we will obtain a response close to this:
Code:
{
"status": "success",
"data": {
"DNS": "193.180.164.2, 2a03:8600:1001::2",
"Address": "10.18.1.182/24, 2a03:8600:1001:1080::10b4/64",
"PublicKey": "bdR5gm5vcrm9N9I7BeQqHOgrmQApSGIe9qc1homBjk8=",
"Endpoint": "193.180.164.60:51820"
}
}
With that, we can now configure the app.
On interface, you can set any name you like.
On Addresses, set the "Address" ip range from the response. E.g: 10.18.1.182/24. You can ignore the IPV6 stuff.
On DNS servers, just copy the ip from the "DNS" response.
Click on "Add Peer" and copy the "PublicKey" from the response to the Public Key area. Be careful if copy pasting, sometimes the last part of the key get striped off, so double check.
On Endpoint, copy the "Endpoint" ip+port from the response.
Set 0.0.0.0/0 on Allowed IPs.
Set Persistent keepalive to 25 so we don't get delayed notifications while conected to the VPN.
Click on the Save icon.
Example config:
You can now go ahead and toggle the config we just created, if everything goes right, no error will be presented.
If you want to test if you are really connected, go to the Azire Website with your phone and request the desktop site. The message "Successfully connected to AzireVPN" should show at the top corner. The app also adds a quick tile to easily toggle on and off the VPN.
There you go! Now please keep in mind that Azire is offering their service for free and they can shut it down at any moment.
Can access Netflix content with this?~
nijihana said:
Can access Netflix content with this?~
Click to expand...
Click to collapse
You mean blocked content? Sure, I guess. But you have to keep in mind that the available servers from Azire are limited, you can't choose the region. If you want anything specific, you will have to setup your own server or search for a paid service.
Follow other guide
Hello: a simpler guide to accomplish the same thing exists here: https://forum.xda-developers.com/android/general/guide-how-to-wireguard-android-ubuntu-t3723544
I'd suggest users follow this, rather than trying to futz with a shell script in Windows and the other over-complicated steps outlined.

Categories

Resources