Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,731,426 Members 53,623 Now Online
XDA Developers Android and Mobile Development Forum

[XAP] [Source] [Mango] Webserver

Tip us?
 
fiinix
Old
(Last edited by fiinix; 6th November 2011 at 01:23 PM.)
#1  
fiinix's Avatar
Retired Recognized Developer - OP
Thanks Meter 224
Posts: 568
Join Date: Oct 2010
Location: Stockholm

 
DONATE TO ME
Arrow [XAP] [Source] [Mango] Webserver

Webserver (for Mango)

Webserver is now supported for Mango devices!

During NoDo this tool was used much for exploring the "\Windows" directory, but when Mango came none could explore it.
There is probably many new things to find in the new OEM Mangos (that could not be extracted till now (Exception's: ROM dumps))

Source code is available in attachment and should build without any problems (except for the dll reference)
- Follow stem 6 for Microsoft.Phone.InteropServices.dll errors


Install XAP => Navigate to the phone's IP shown in application => Browse and enjoy.
- Change password on first launch (its randomized)


Many thanks to davux for creating the base for this tool.
- Orginal NoDo thread Here


Changelog:
v0.1 - Initial Mango version release
v0.2 (iconizer)
- Thanks MarysFetus aka Suicide Clown for the great icon set and start screen, love em
- Many thanks to GoodDayToDie for informing me that this app can / and will run from now without the <"ID_CAP_INTEROPSERVICES">
- Removed old OEM dll's that where not used (xap size: 812 KB => 250 KB)

//fiinix
Attached Thumbnails
Click image for larger version

Name:	Screen Capture (Mango).jpg
Views:	2583
Size:	54.7 KB
ID:	770742  
Attached Files
File Type: rar CSharp - Webserver v0.1.rar - [Click for QR Code] (2.63 MB, 1580 views)
File Type: xap WebServer v0.1.xap - [Click for QR Code] (812.3 KB, 803 views)
File Type: xap WebServer v0.2.xap - [Click for QR Code] (253.7 KB, 1906 views)
Samsung Omnia 7
- ATO MAGLDR v2
Windows Phone 7

The hottest geek girl in the world SassiBoB, SassyBoB, Sassy BoB, sassibob
May the Thanks's button be with me at all time Luke Skywalker
The Following 17 Users Say Thank You to fiinix For This Useful Post: [ Click to Expand ]
 
poloche
Old
#2  
poloche's Avatar
Senior Member
Thanks Meter 182
Posts: 368
Join Date: Jul 2009

 
DONATE TO ME
Nice works my friends... I Like It
Thankx
Samsung Omnia 7 ---{ WP7.8 SE 8858 }--- || ---{ [i]WP8.10 SE 12359/i] }--- Samsung Ativ S InterOP-Unlock
... What'Hel$e ???


 
contable
Old
#3  
contable's Avatar
Senior Member
Thanks Meter 953
Posts: 1,690
Join Date: Oct 2009

 
DONATE TO ME
@fiinix:

Thx for porting the webserver to Mango !

As I remember the initial version from Davux had an on device execute feature.

Do you plan to implement execute feature ?

Could be very useful for exploring all .exe files in the windows folder.


Greetz

contable
 
GoodDayToDie
Old
#4  
Recognized Developer
Thanks Meter 2641
Posts: 5,529
Join Date: Jan 2011
Location: Seattle
Freaking awesome, man!

One suggestion: I don't believe this app does anything that requires ID_CAP_INTEROPSERVICES (that is, it doesn't need to open any driver handles). I may be mistaken about that, of course. If it doesn't, however, there's a real benefit to removing that capability as people with interop-locked phones could then run it. Note that the library used may try to do things requiring interop even though the app doesn't need it to.

In addition to its uses as a hacker's tool, I also want to point out that this app can be used to store files on the phone for easy transfer between computers. It's less convenient than true USB Mass Storage, but it works (even if you don't have the USB cable with you) so long as there's a WiFi access point that the phone and PC can both connect to.

Oh, and by the way, this app will run happily in the background if you use JaxBot's no-dehydrate hack. You can do other things then, even browsing the webserver from the phone's own browser! Of course, it will also use some resources.
 
GoodDayToDie
Old
#5  
Recognized Developer
Thanks Meter 2641
Posts: 5,529
Join Date: Jan 2011
Location: Seattle
Default Now slimmer, and no ID_CAP_INTEROPSERVICES

OK, this is just a modification of the XAP file - I didn't even recompile the source (thank you so much for including it, though!)

Things I did:
Removed ID_CAP_INTEROPSERVICES from the AppManifest. This will allow the app to be installed on interop-locked phones. It wasn't using it anyhow.
Removed the OEM-specific DLLs that are only useful if you have ID_CAP_INTEROPSERVICES. They weren't being used, but they made the download and install bigger.

Result: A smaller app that works exactly the same and can be installed on any Dev-unlocked Mango phone.
Attached Files
File Type: xap WebServer v0.1_NoInterop.xap - [Click for QR Code] (187.4 KB, 272 views)
The Following User Says Thank You to GoodDayToDie For This Useful Post: [ Click to Expand ]
 
KlausWidraw
Old
(Last edited by KlausWidraw; 7th November 2011 at 02:28 PM.)
#6  
KlausWidraw's Avatar
Senior Member
Thanks Meter 85
Posts: 145
Join Date: Jul 2011
Location: Berlin

 
DONATE TO ME
Really neat. Mind if I design some sort of decent icon for this app?


Regards, Suicide Clown

//Update:

finished the Icon:



Hope you like it.

Windows Phone App: Zero to Hero
The Following User Says Thank You to KlausWidraw For This Useful Post: [ Click to Expand ]
 
fiinix
Old
#7  
fiinix's Avatar
Retired Recognized Developer - OP
Thanks Meter 224
Posts: 568
Join Date: Oct 2010
Location: Stockholm

 
DONATE TO ME
Quote:
Originally Posted by MarysFetus View Post
Really neat. Mind if I design some sort of decent icon for this app?


Regards, Suicide Clown
Sure, go ahead.
Its the freedom of XDA, do what you want :P
Samsung Omnia 7
- ATO MAGLDR v2
Windows Phone 7

The hottest geek girl in the world SassiBoB, SassyBoB, Sassy BoB, sassibob
May the Thanks's button be with me at all time Luke Skywalker
 
singularity0821
Old
#8  
Senior Member
Thanks Meter 307
Posts: 307
Join Date: Apr 2011
Location: Graz

 
DONATE TO ME
I added the new NativeIO_Mango.dll to my battery status app instead of the old filesystem.dll. I hope that's okay. Thanks so much for your great libraries.
Battery Status with Live Tiles for Mango for all unlocked phone (Chevron, Dev Unlock - no interop needed)
AppTranslator - easily globalize your apps
EncryptText
Four In A Row
Marketplace Redirect script
 
fiinix
Old
#9  
fiinix's Avatar
Retired Recognized Developer - OP
Thanks Meter 224
Posts: 568
Join Date: Oct 2010
Location: Stockholm

 
DONATE TO ME
Quote:
Originally Posted by singularity0821 View Post
I added the new NativeIO_Mango.dll to my battery status app instead of the old filesystem.dll. I hope that's okay. Thanks so much for your great libraries.
The "NativeIO_Mango.dll" is actually a communicator for "Homebrew.csproj" containing COM+ "IWinSock" and "IFileSystem"
- Homebrew.csproj exists in this projects code.

The battery interop will not talk to NativeIO_Mango.dll (the "Webserver" will tho)

Phone.Battery.GetBatteryAdvanced()
-- goto here
---- DllImportCaller.lib.GetSystemPowerStatusExAdv7(ref str, true);

Homebrew.IO.Directory.GetFiles ( [path] )
-- cctor (static constructor) => Register("NativeIO_Mango.dll", "B0E4E41C-BE1D-4BA2-B8CE-7D632EA1CA37");
---- FileSystem.FindFirstFile ( ... ) & while FileSystem.FindNextFile( ... )

:here
Code:
Registrer.Register(BasePath +
#if RUNNS_UNDER_MANGO
 "DllImportMango.dll", "434B816A-3ADA-4386-8421-33B0E669F3F1"
#else
"FileSystem.dll", "F0D5AFD8-DA24-4e85-9335-BEBCADE5B92A"
#endif
);
Filesystem.dll is not used anymore in Mango version (its a NoDo dll)

"Thanks so much for your great libraries."
- Thank you so much
Samsung Omnia 7
- ATO MAGLDR v2
Windows Phone 7

The hottest geek girl in the world SassiBoB, SassyBoB, Sassy BoB, sassibob
May the Thanks's button be with me at all time Luke Skywalker
 
singularity0821
Old
#10  
Senior Member
Thanks Meter 307
Posts: 307
Join Date: Apr 2011
Location: Graz

 
DONATE TO ME
I could swear it didn't work without the filesystem.dll one time I tried haha. I guess that was something else

Thanks~
Battery Status with Live Tiles for Mango for all unlocked phone (Chevron, Dev Unlock - no interop needed)
AppTranslator - easily globalize your apps
EncryptText
Four In A Row
Marketplace Redirect script

Tags
mango, native, webserver, wp7
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes