[Q] Windows Phone 7.5 hosts file or equivalent - General Questions and Answers

Can anyone provide clear instructions on how to edit the hosts file or whatever functionality does hostname resolution in Mango WP7? The closest I've seen anywhere on the internet are vague references to the Windows Mobile comm\tcpip\hosts\<domain> registry edit which doesn't seem to actually redirect browsers or web service calls (i.e. it's still hitting the production server instead of my test server even after a cold boot).
edit: Oh, and if it matters I'm doing this on an unlocked LG C900 with Mango v7720.

Related

Possible to use "Save" method in a local .htm file to save XML updates?

I am researching the possibility of using MSXML to update XML records on Windows CE devices using only pocket internet explorer. I was able to open and edit XML files using a local web page, but could not successfully save the results of an update. I tried the "save" method of a ActiveXObject("Microsoft.XMLDom") object. This works fine on a PC as long as I save the webpage with the .hta extension, but results in a Permission Denied error when I save the web page with the .htm/.html extension. Win CE doesn't seem to support the .hta extension.
The two biggest restrictions for my project are:
1) Cannot "install" software (.cab,.exe) on the devices due to security policy and
2) There is no data connectivity on the devices.
So my questions are, "Is it possible to save a file using javascript inside a local web page on a Win CE/Windows Mobile device? If so, how?" The file happens to be XML, but the solution need not involve only XML objects as I can readily access the content as plain text.
My best guess is that it is not possible without some sort of windows CE equivalent of the pc .hta file. Anyone? I appreciate any hints/comments that can help.
Thanks,
Dan

[Q] internet explorer problem, please help

Hi guys, I have a small problem and I am hoping someone can help me a little. Basicly what happened is after updating to mango I was unable to open my work webpages. I work as a flight attendant and I have 2 webpages from work that I must check everyday (company mail and flight schedual). Before updating to mango they worked without problems. I know my company website has some problem with the certificate but never the less it used to work but now after the update they dont work anymore... I enter username and password and I can only see blank page and the loading bar (coloured line) stay at about 90% for a while and after a while it reaches 100% but nothing happens. My phone is a LG optimus 7. one of the pages is: HTTPS :// oword dot airitaly dot it/
Any help would be much appreciated. Best regards.
I suggest you rollback to NoDo for now.
It could be a bug or it be that the website is incompatible with Internet Explorer 9.
The problem is similar to one I have found with the Scandinavian Airlines mobile internet site and appears to be caused by the User-Agent String of IE9 reporting:
Mozilla/5.0 (compatible; MSIE 9.0; Windows Phone OS 7.5; Trident/5.0; IEMobile/9.0; <manufacturer>; <model> [;<operator])
The previous versions reported:
Mozilla/4.0 (compatible; MSIE 7.0; Windows Phone OS 7.5; Trident/3.1; IEMobile/7.0; <manufacturer>; <model> [;<operator])
I think this is the issue. There are several pages that work in IE9 on a PC but fail when the mobile browser UA is used.
Could any suggest a tool or trick that could shift the UA in Windows Phone 7 in a similar way to that which is possible in the desktop version using the F12 tools?
An app that switched between Mozilla/4.0 and Mozilla/5.0 would be very useful...
Do none of the optional browsers use flags that would cause a page to display properly?
John

[Q] Any way to show or download FREE hidden provider apps in Marketplace ?

I want to download a FREE application (Orange Cineday & Orange et Moi) in section "Orange" ... but i can't show it !
Have you a soluce to do please ... or just give me a soluce to have the GUID of these apps ?
Thankx,
Poloche,
If your phone is for some reason not showing the carrier marketplace, it may be possible to get it to appear using a XAP similar to the OEM Marketplaces XPs (see my signature). It'll require a little investigation, and the file that specifies MO marketplaces is a slightly than the one for OEM marketplaces, but it's not that complex.
If you'll read through the thread, you'll find enough info to get started yourself.
@GoodDayToDie Can you make XAP for different carriers (similar to the OEM XAP you made so far)? I have 2 Samsung Focus on Tmobile network but couldn't see the carrier marketplace. Thanks!
Also, now that an Omnia W ROM is available, can you look into why Call Blocking is not working on 1st gen Samsung devices? The newest Call Blocking app version is 1.8 from Marketplace.
@nepi: The MO marketplaces typically don't have their own section, but "ought" to load automatically on the phone. If you're on TMO-US, even if the phone wasn't originally TMO-branded, do a search in the Marketplace for "Family Room" or "T-Mobile TV". If they don't show up, then you can't access the TMO-US marketplace. I guess I can make a XAP for that one easily enough (it's my carrier, so I just pull the the relevant file off my phone, package it into a XAP, and post it). Honestly though, the only TMO-US app that I've found worth having at all is My Account, and that rarely (and it wouldn't be useful to anybody not on TMO).
Call Blocking (and the other gen2-specific Samsung apps) can't be used on gen1 phones pretty much by design. Samsung changed the drivers in their firmware that apps (both official and homebrew) with ID_CAP_INTEROPSERVICES use to do things outside their sandbox (call blocking is definitley not allowed from within the sandbox!). Some (but not all) of the gen1 apps are compatible with a backward-compatiblity interface in the gen2 firmware, but the gen2 apps are never going to be compatible with gen1 until/unless those new drivers are back-ported. That's not something we can do (at least, not until the Samsung bootloader is unlocked) ourselves, because the drivers are baked into the ROM, and nobody has yet figured out how to make a driver that's not in the ROM work.
I have a few theories, but it'll be some time before I can do anything with them. They're related to my current project, which is executing native homebrew EXEs on WP7 (specifically, I'm currently looking at modifying the Policy system to allow this). It may be that the Policy system is also behind the driver issue, but until I manage to modify the policies, that's a moot point.
poloche said:
I want to download a FREE application (Orange Cineday & Orange et Moi) in section "Orange" ... but i can't show it !
Have you a soluce to do please ... or just give me a soluce to have the GUID of these apps ?
Click to expand...
Click to collapse
- Install WireShark traffic sniffer
- "Reverse tether" your phone to PC (connect via USB cable)
- Start WireShark to listen http traffic
- Install these apps on your phone
Post whole request data here and I'll answer your question
I want to download "Orange Cineday" specific ORANGE Marketplace... Can you please give me the GUID ?
@GoodDayToDie
Please, explain me the registry key to show the "Orange Section" in my phone ? ... I have an interOP-Unlock Omia 7
Please read the OEM Marketplace XAPs thread (linked in my sig). The file that needs to be replaced is different from the one those XAPs replace (OEM market, you need the MO market) but it's stored in the same location and the structure of the file is similar.
I don't know what the identifier for ORANGE is, although "ORANGE" would be a decent thing to try! This is a pretty basic hack, requiring mostly just some time to experiment; give it a shot yourself. I prefer to use 7-Zip for modifying the XAP files, as it handles the path traversal nicely.
@GoodDayToDie: I'm in Seatte, too. The first day when I carrier unlocked my Focus and put in T-mobile SIM I saw the T-mobile My Account app on the Marketplace. However, after I reset the phone it's no longer there and I can't find it again. Can you post the appID for My Account app here? I want that app to check account status, etc.
Also, here is the app ID for Call Blocking version 1.8 from marketplace. I can't post direct link because of my poor post count. I just post this incase anyone wants to download it but can't find it in the marketplace. (I can see the app when the link is opened in my Focus but no option to install it "Not compatible with your phone..etc...")
Call Blocking version 1.8: appID=e23ef9a7-e785-4fc6-ab6c-500034b5226d

WP7 Mobile sites not showing up?

So I try to access some sites and it sends me directly to a wap site or desktop version. Perfect example was m.facebook.com Old and ugly, someone on xda had mentioned touch.facebook.com What a world of a difference. Does anyone else have any other sites like this?
Another question. Engadget, kotaku, ext.... I use their mobile sites and it wont show the comment sections. I have to direct my self to the desktop version just to see it... Anyone know a work around to this? Thanks in advance.
Not sure if this is what you're asking, but I just leave my phone in desktop mode pretty constantly - the few sites that I wish were in mobile mode can be switched easily enough, and the number of sites which are broken in mobile mode seems to be greater than the number that are broken in desktop mode.
A good example of a site that just does *not* work right on WP7, due to the server over-sealously sniffing the user-agent (recognizing the phone browser even when IE is set to "Desktop" mode), is Gmail. The mobile site is buggy, and there's no way that I've found to force it to actually use the desktop site... so I end up using the plain HTML view if I have to use Gmail for anything beyond accessing my psersonal mail account (which is synced). There are a few other similarly poory-behaved sites.
One would hope that sites with a touch-optimized UI (as opposed to mobile-optimized, which typically just means minimal bandwidth and extremely dumbed-down code), such as touch.facebook.com, would auto-detect WP7 and send it to that site instead (especially if the user-agent is not set to Desktop mode).
queefinout said:
So I try to access some sites and it sends me directly to a wap site or desktop version. Perfect example was m.facebook.com Old and ugly, someone on xda had mentioned touch.facebook.com What a world of a difference. Does anyone else have any other sites like this?
Another question. Engadget, kotaku, ext.... I use their mobile sites and it wont show the comment sections. I have to direct my self to the desktop version just to see it... Anyone know a work around to this? Thanks in advance.
Click to expand...
Click to collapse
well for engadget there is an app supports comments

surface and user agent to view webiste as "normal" and not mobile.

Hi
i've got a question for you :
on any android device, when you want to view a website in "desktop mode", all you have to do, is to change the "user agent" and, et voila, it works. All website are now in "desktop mode".
I would like to do the same on my surface, but, permanently ! I don't want to, everytime, go to "f12" menu and change the user agent to chrome or firefox.
On other forums, peoples told me : "oh you cant, it is a server side problems, all website are not "well coded". and blablabla...."
but i know it's wrong, because i do it, time to time, with the "f12" option. and i know it is possible on android device. (so the problem comes from the surface, which identificate itself as a mobile or "arm" device...)
so my question is : how do I do to change the user agent on the surface, and permanently. i know i have to deal with the "gpedit.msc" and change it here....but for some websites, it is still recognise as a tablet device and then, a mobile website. Which user agent I must use ? (when i do it from time to time with the "f12" option, I use the "chrome or firefox" string, and it works well).
ps : sorry for my english, not my mother tongue.
I've used Surface RT for months without ever being redirected to a mobile website... not sure what's up with your experience. A few sites have recognized the RT/ARM portion, but the page was not notably different; certainly it looked nothing like what I get on my phone's Mobile mode.
You can use Compatibility mode to send the IE7 user-agent string to a given site. Hardly a perfect fix, especially if the site would like to use HTML5, but I don't know a better option.
GoodDayToDie said:
I've used Surface RT for months without ever being redirected to a mobile website... not sure what's up with your experience. A few sites have recognized the RT/ARM portion, but the page was not notably different; certainly it looked nothing like what I get on my phone's Mobile mode.
You can use Compatibility mode to send the IE7 user-agent string to a given site. Hardly a perfect fix, especially if the site would like to use HTML5, but I don't know a better option.
Click to expand...
Click to collapse
hi
thks for your answer
What i don't understand, is that we can manually change the user agent (and then view the website in a "normal mode") by pressing f12, and choose another browser, and it works perfectly. All websites are in 'desktop mode". So why can't we do that automatically? i don't want to do that each time i visit a website. I want it done once for all !
The surface identificate itself to a RT/arm device and that's why websites redirect automatically to a mobile version.
Is there anyway to remove this identification, and make sure the surface is always recognize as a "desktop" computer ?
There used to be a registry hack that would override the default user-agent string, though I don't know if it still works with IE10. Browser plugins can do it, but those aren't going to be available on RT.
As for what string to change it to, I'd suggest just the default UA string for Win8/IE10 on x86 or x64. You can find this using sites like useragentstring.com. For the record, mine is
Code:
Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; WOW64; Trident/6.0)
and if you drop the "WOW64; " part, it's identical to the x86 one.
Same here...
It would be great a solution for IE reconize always as "Desktop mode" without need F12 changing procedure.
I use www.bet365.com and it´s always reconigzed as mobile

Categories

Resources