webOS Nation Forums >  webOS Devices >  Palm Pre 2 > Captive Portal suddenly popping up everywhere
Captive Portal suddenly popping up everywhere
  Reply
 
Thread Tools Display Modes
Old 02/11/2013, 03:08 PM   #41 (permalink)
Member
 
GMMan's Avatar
 
Posts: 2,136
OK... I tested the various site in Chrome, and got one of the following HTTP response codes: 200, 301, 302, 305. It could be one of those codes causing problems, if cURL doesn't redirect.

The captive portal detection apparently parses HTML for title or whatever. It's failing with one of them. I just don't know which one. I suppose all of the sides could be overwritten to a single site, but that's not robust, is it?
__________________
Contact: @GMMan_BZFlag (me on Twitter)
webOS Releases: Change your App Catalog country: TouchPad/PC | TouchPad/webOS Resources | Search suggestion patch for browser | Cycling Email Notifications | Don't Doctor! Make a good support request. | How to post logs | webOS Charge Monitor
GMMan is offline   Reply With Quote
Old 02/20/2013, 05:01 PM   #42 (permalink)
Member
 
Posts: 1
Working with HP support, they said that if you have run the WebOS doctor, we can assume it is a hardware issue.... They are no help at all....
jspringsteen is offline   Reply With Quote
Old 02/20/2013, 08:54 PM   #43 (permalink)
Member
 
Posts: 3,734
Have not experienced this on the touchpad yet and not on the veer but I rarely look up webpages on the veer.

what about contacting the guy in charge of openWebOS , Enda McGrath?
bluenote is offline   Reply With Quote
Old 03/18/2013, 02:43 PM   #44 (permalink)
dwc
Member
 
Posts: 18
Quote:
Originally Posted by GMMan View Post
OK... I tested the various site in Chrome, and got one of the following HTTP response codes: 200, 301, 302, 305. It could be one of those codes causing problems, if cURL doesn't redirect.

The captive portal detection apparently parses HTML for title or whatever. It's failing with one of them. I just don't know which one. I suppose all of the sides could be overwritten to a single site, but that's not robust, is it?
strings on the 2.1.0 version has some strings that may be of interest.
Code:
35ConnectivityCheckRequestFromLunaCmd <- hm, maybe able to be manually triggered? I can't get my pre2 to consistently tcpdump... seems like it drops it into packet-dropping-mode when I start it up.
24ConnectivityCheckRequest
Src/ConMan/NwConfigMgr/ConnectivityCheckRequests.cpp
mReplyMsg
basic_string::_S_construct NULL not valid
mTestSiteList.size()
mTestSiteList.end() != mNextSiteToTest <- iterating over a list of sites
mCurlRequestList.end() != it
<title>
</title>
NO TITLE
%s: CurlCheck(%p) Site(%s) HTML Title("%s")
%s:  Called! NwCheck(%p)
mCurlRequestList.end() != mCurlRequestList.find(curlCheckInfo->getTestSite())
%s: NwCheck(%p) completed request (%p) for Site(%s) HTML Returned:
<NO HTML FOUND>
  %s
%s: NwCheck(%p) completed at least 2 requests so calculating health <- perhaps checks N of the sites on this list (or all of them?)
%s: This is a possible captive portal case. %s vs %s
%s: Curl Request for: %s failed with: %i
%s Final network eval for NwCheck(%p) on if(%s) shows network as onInternet(%s:%i)
mActiveCurlHandles.end() != it
rit != mProcessedCurlRequestList.rend()
%s: Creating New List
http://www.google.com <- no redir
http://developer.palm.com <- 302 to https
http://www.hp.com <- no redir
http://www.bing.com <- no redir
http://www.palm.com <- 301 to hpwebos.com
http://www.compaq.com <- 301 to compaq.com/country/index.html
%s: Rotating List
My theory is it goes through these sites, and if enough requests look like a captive portal (redirs) then it sets onInternet to captivePortal?
dwc is offline   Reply With Quote
Old 03/22/2013, 02:38 PM   #45 (permalink)
Member
 
Posts: 146
*
__________________
Kyocera 6035 > Samsung SPH-i300 > i330 > i500 > Treo 600 > 700p > 755p > PRĒ Minus > Touchpad & FrankenPre2

Last edited by GoBears; 03/22/2013 at 02:45 PM.
GoBears is offline   Reply With Quote
Old 03/30/2013, 12:18 AM   #46 (permalink)
Member
 
Posts: 19
Anyone figure out a solution for this yet? This is driving me freaking crazy. Is this HP's attempt at getting us to stop using these phones, so they don't have to maintain support anymore?
Dr. Aquafresh is offline   Reply With Quote
Old 04/25/2013, 11:16 PM   #47 (permalink)
Member
 
Posts: 19
Are all Pre 2's still doing this? Is there a good fix for this? This damn phone is waking me up at night with this problem!

Will doctoring it stop this?
Dr. Aquafresh is offline   Reply With Quote
Old 04/26/2013, 12:37 AM   #48 (permalink)
 
HelloNNNewman's Avatar
 
Posts: 15,785
I've got a FrankenPre2 and I've never had an issue with this. I'd suggest Doctoring (or even trying a different version of the Dr depending on your carrier) and seeing if that helps.
__________________



Network Moderator | Mobile Nations Rules
HelloNNNewman is offline   Reply With Quote
Old 04/28/2013, 01:47 PM   #49 (permalink)
Member
 
Posts: 2,513
And just like that it hasn't appeared on my Pre 3 for some time...

Sent from my Galaxy S3 using Tapatalk 2
__________________
Just remember: If I helped you, press the thanks button!

Owner of: Pre Sprint, Pre Telcel, Pre Plus AT&T, Pre 2 Unlocked, Pixi Plus AT&T, and 2 TouchPads (my Pre3 was stolen so it won't appear again here).
Needs: Veer (anyone?)
Apps: Subnet Calculator, FreeCam, PhotoFun, NuttyPad (work in progress)
HomeBrew: meta-doctor and Messaging Plugins collaborator
Twitter: @cesarneg
NuttyBunny is offline   Reply With Quote
Old 04/28/2013, 10:09 PM   #50 (permalink)
Member
 
Posts: 19
I think one way to temporarily stop it is to turn data off on my phone, but then I forget to turn it back on, and miss mms's. It's still doing it on my phone.
Dr. Aquafresh is offline   Reply With Quote
Old 04/30/2013, 09:23 PM   #51 (permalink)
Member
 
Posts: 10
I'm getting this all the time too. I think it started about 3 months ago kind of all at once. Drove me nuts for a while but it doesn't seem to make an alert tone anymore.
webosinjun is offline   Reply With Quote
Old 05/24/2013, 04:19 PM   #52 (permalink)
dwc
Member
 
Posts: 18
Quote:
Originally Posted by Dr. Aquafresh View Post
Anyone figure out a solution for this yet? This is driving me freaking crazy. Is this HP's attempt at getting us to stop using these phones, so they don't have to maintain support anymore?
I've replaced the URLs in PmNetConfigManager with a hex editor and the problem appears to have stopped. Each entry appears to be on a 4-byte boundary, null padded, so as long as url+padding is the same, you can replace the URLs with others of different lengths. (C strings, null terminated)

I haven't come up with good replacements for all of them, as infrequent as the requests are, I was trying not to spam any 3rd parties.

For 2.1.0, I tested the following:

www.google.com (left the same)
developer.palm.com -> www.hpwebos.com/us
www.hp.com (left the same)
www.palm.com -> (my own domain)
www.compaq.com -> www8.hp.com [+ 3 extra nulls]

Since yesterday, I've gotten a whopping 3 hits requests to my own domain, so it may just be safe to use any other public domains since the traffic is small. The requirement is: no natural redirect (300 code), and not HTTPS. Not all captive portals allow / redirect / capture SSL.

I'm a little curious about the algorithm and might investigate further using 5 of my own URLs, but this should help any others inclined to update theirs.

My final (public) list is
www.google.com (left the same)
www.hpwebos.com/us
www.hp.com (left the same)
www.palm.com -> www8.hp.com [adding an extra null]
www.compaq.com -> shopping.hp.com [overwriting a null]

As to writing an app for this, I think the normal patch process will not be appropriate, given that this is a binary edit. The old flashplayer agent switcher for hulu etc used sed, but I don't think we can reliably replace things with NULL bytes, so unless we get URLs that match the length exactly, that approach may not work. Any other suggestions using software that's already installed on-device?


Here's a diff for anyone who might want to duplicate (no xxd on device)

Code:
/webos/pre2-unlocked-doctor-2.1.0/rootfs/usr/bin$ diff -u <(xxd PmNetConfigManager) <(xxd PmNetConfigManager.edited)
--- /dev/fd/63	2013-05-24 14:28:09.951605875 -0700
+++ /dev/fd/62	2013-05-24 14:28:09.951605875 -0700
@@ -19191,14 +19191,14 @@
 004af60: 2e72 656e 6428 2900 2573 3a20 4372 6561  .rend().%s: Crea
 004af70: 7469 6e67 204e 6577 204c 6973 7400 0000  ting New List...
 004af80: 6874 7470 3a2f 2f77 7777 2e67 6f6f 676c  http://www.googl
-004af90: 652e 636f 6d00 0000 6874 7470 3a2f 2f64  e.com...http://d
-004afa0: 6576 656c 6f70 6572 2e70 616c 6d2e 636f  eveloper.palm.co
-004afb0: 6d00 0000 6874 7470 3a2f 2f77 7777 2e68  m...http://www.h
+004af90: 652e 636f 6d00 0000 6874 7470 3a2f 2f77  e.com...http://w
+004afa0: 7777 2e68 7077 6562 6f73 2e63 6f6d 2f75  ww.hpwebos.com/u
+004afb0: 7300 0000 6874 7470 3a2f 2f77 7777 2e68  s...http://www.h
 004afc0: 702e 636f 6d00 0000 6874 7470 3a2f 2f77  p.com...http://w
 004afd0: 7777 2e62 696e 672e 636f 6d00 6874 7470  ww.bing.com.http
-004afe0: 3a2f 2f77 7777 2e70 616c 6d2e 636f 6d00  ://www.palm.com.
-004aff0: 6874 7470 3a2f 2f77 7777 2e63 6f6d 7061  http://www.compa
-004b000: 712e 636f 6d00 0000 2573 3a20 526f 7461  q.com...%s: Rota
+004afe0: 3a2f 2f77 7777 382e 6870 2e63 6f6d 0000  ://www8.hp.com..
+004aff0: 6874 7470 3a2f 2f73 686f 7070 696e 672e  http://shopping.
+004b000: 6870 2e63 6f6d 0000 2573 3a20 526f 7461  hp.com..%s: Rota
 004b010: 7469 6e67 204c 6973 7400 0000 0000 0000  ting List.......
 004b020: 7265 6164 4c69 6e65 0000 0000 0000 0000  readLine........
 004b030: 0000 0000 8830 0500 68c6 0300 58c7 0300  .....0..h...X...

Last edited by dwc; 05/24/2013 at 04:30 PM.
dwc is offline   Reply With Quote
Old 05/25/2013, 06:39 AM   #53 (permalink)
Member
 
Posts: 2,647
This was happening on my veer 2.1.2 quite a lot. I just used vi to change www.palm.com to www.ebay.com. It hasn't happened since.
frantid is offline   Reply With Quote
Old 06/29/2013, 04:18 AM   #54 (permalink)
iDG
Member
 
Posts: 37
The attached archive contains a simple binary patch for webOS 2.2.4 / pre2 that disables the captive portal check in PmNetConfigManager (specifically disables the test that detects a captive portal by turning a CMP R5,#0 into a MOVS R5,#1) so that captive portal notifications will never happen. Not even when the device is attached to a real captive portal. This patch does not simply silence the warning. Copy the nocaptive.sh file to the device and run with
Code:
sh /path/nocaptive.sh
The original PmNetConfigManager will be backed up.

The script contained in the archive will only work if the root filesystem is write-enabled.
Attached Files
File Type: zip webos-2.2.4-no-captive-portal-check.zip (638 Bytes, 8 views) Email Attachment
iDG is offline   Reply With Quote
Thanked By: Roberto Vega
Old 07/05/2013, 12:27 AM   #55 (permalink)
Member
 
Posts: 19
Quote:
Originally Posted by iDG View Post
The attached archive contains a simple binary patch for webOS 2.2.4 / pre2 that disables the captive portal check in PmNetConfigManager (specifically disables the test that detects a captive portal by turning a CMP R5,#0 into a MOVS R5,#1) so that captive portal notifications will never happen. Not even when the device is attached to a real captive portal. This patch does not simply silence the warning. Copy the nocaptive.sh file to the device and run with
Code:
sh /path/nocaptive.sh
The original PmNetConfigManager will be backed up.

The script contained in the archive will only work if the root filesystem is write-enabled.
How would I go about doing this? What program do I use?
Dr. Aquafresh is offline   Reply With Quote
Old 07/05/2013, 08:23 AM   #56 (permalink)
iDG
Member
 
Posts: 37
Quote:
Originally Posted by Dr. Aquafresh View Post
How would I go about doing this? What program do I use?
On the device there's a tool called rootfs_open which can be used to temporarily make the root filesystem writeable:
Code:
rootfs_open -t
There are other ways, but this is the easiest. It automatically reverts to the read only mode after reboot.
iDG is offline   Reply With Quote
Old 10/02/2013, 05:55 PM   #57 (permalink)
Member
 
Posts: 19
Quote:
Originally Posted by iDG View Post
The attached archive contains a simple binary patch for webOS 2.2.4 / pre2 that disables the captive portal check in PmNetConfigManager (specifically disables the test that detects a captive portal by turning a CMP R5,#0 into a MOVS R5,#1) so that captive portal notifications will never happen. Not even when the device is attached to a real captive portal. This patch does not simply silence the warning. Copy the nocaptive.sh file to the device and run with
Code:
sh /path/nocaptive.sh
The original PmNetConfigManager will be backed up.

The script contained in the archive will only work if the root filesystem is write-enabled.
I'm ready to try this. I'm so sick of this stupid notification. Do I have to have Preware installed or anything? Or can I just do this with Novaterm? ....and if so, where do I copy the file to on my phone to run it?

TIA!
Dr. Aquafresh is offline   Reply With Quote
Reply

 

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0