WebDAV Server

WebDAV Server


With this application you can mount any directory on your phone, including memory card, as a drive on Windows or Linux. You can also use a WebDAV client to browse a phone directory.

This application has been tested using Windows8 Explorer (should also work with Windows7 but it will not work on WindowsXP) and WebDAV client bitkinex. You can download it from http://www.bitkinex.com/

Special thanks to: Beatriz Vera, Peter Ulrich, Gabor Fodor, Manuela Merino García and Anna Rainieri.

Implemented Intents
com.theolivetree.webdavserver.StartWebDavServer
com.theolivetree.webdavserver.StopWebDavServer

You can find a lock setting to specify how the device should be kept awake while server is running. There are three modes available:
New locks used
*SCREEN_DIM_WAKE_LOCK : Existing mode. Screen is on so energy consumption is higher. Use this mode if connections is dropped.
*WIFI_MODE_FULL : New mode. Screen is off so device will use less energy while server is running but data connection can be dropped. It is not recommended to use this mode.
*WIFI_MODE_FULL_HIGH_PERF: New mode only available on Android >= 3.1. Screen is off so energy consumption should be less than in the first mode. This mode is recommended to save energy but you might find problems so you might to select default lock mode.

How to connect with WebDAV server using USB cable:

This can useful when you have USB cable and no network available.
1) On your phone go to Settings->Applications->Development and set option "USB debugging".
2) Connect your phone to your PC using USB cable.
3) Start adb server. On your PC run command "adb start-server".
adb is a program that you can find on android sdk. Usually you will find it on android-sdk\platform-tools\adb.
4) Forward needed ports from your PC to your phone. On your PC run command "adb forward tcp:8080 tcp:8080"
With this, any connection in your pc to 127.0.0.1:8080 will be forwarded to your phone in port 8080.
5) Run WebDAV server in your phone, open settings and in "Network interfaces" select "Loopback (127.0.0.1)"
6) Start WebDAV server.
7) In your PC connect your WebDAV client to http://127.0.0.1:8080 (port might be different, it depends on your WebDAV Server configuration).

Permissions needed:

INTERNET
ACCESS_NETWORK_STATE
ACCESS_WIFI_STATE

Network permission to enable server to open network communication with WebDAV clients.

WRITE_EXTERNAL_STORAGE

Enables WebDAV server write received files from WebDAV clients on sdcard.

WAKE_LOCK

Keeps phone wake only while server is running. If phone is not wake WebDAV server can not be accessed.

Problems with big files:

If you have problems handling big files it might be due to a limitation in Windows webdav client. You can try the following to increase the size of files that Windows webdav client is able to manage:

1) You have to turn on BasicAuth via regedit to allow accessing the App's server by username and password.

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\WebClient\Parameters]
"BasicAuthLevel"=dword:00000002

2) You have to change Window's limit to file size when using the integrated WebDAV client.

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\WebClient\Parameters]
"FileAttributesLimitInBytes"=dword:000f4240

3) Restart windows.

This allows file sizes up to 4 Gigabytes handled by the client.

Recent changes:
Material design
Bug fixing
Add to list
Free
82
4.1
User ratings
305
Installs
10,000+
Concerns
0
File size
2468 kb
Screenshots
Screenshot of WebDAV Server Screenshot of WebDAV Server Screenshot of WebDAV Server Screenshot of WebDAV Server
About WebDAV Server
With this application you can mount any directory on your phone, including memory card, as a drive on Windows or Linux. You can also use a WebDAV client to browse a phone directory.

This application has been tested using Windows8 Explorer (should also work with Windows7 but it will not work on WindowsXP) and WebDAV client bitkinex. You can download it from http://www.bitkinex.com/

Special thanks to: Beatriz Vera, Peter Ulrich, Gabor Fodor, Manuela Merino García and Anna Rainieri.

Implemented Intents
com.theolivetree.webdavserver.StartWebDavServer
com.theolivetree.webdavserver.StopWebDavServer

You can find a lock setting to specify how the device should be kept awake while server is running. There are three modes available:
New locks used
*SCREEN_DIM_WAKE_LOCK : Existing mode. Screen is on so energy consumption is higher. Use this mode if connections is dropped.
*WIFI_MODE_FULL : New mode. Screen is off so device will use less energy while server is running but data connection can be dropped. It is not recommended to use this mode.
*WIFI_MODE_FULL_HIGH_PERF: New mode only available on Android >= 3.1. Screen is off so energy consumption should be less than in the first mode. This mode is recommended to save energy but you might find problems so you might to select default lock mode.

How to connect with WebDAV server using USB cable:

This can useful when you have USB cable and no network available.
1) On your phone go to Settings->Applications->Development and set option "USB debugging".
2) Connect your phone to your PC using USB cable.
3) Start adb server. On your PC run command "adb start-server".
adb is a program that you can find on android sdk. Usually you will find it on android-sdk\platform-tools\adb.
4) Forward needed ports from your PC to your phone. On your PC run command "adb forward tcp:8080 tcp:8080"
With this, any connection in your pc to 127.0.0.1:8080 will be forwarded to your phone in port 8080.
5) Run WebDAV server in your phone, open settings and in "Network interfaces" select "Loopback (127.0.0.1)"
6) Start WebDAV server.
7) In your PC connect your WebDAV client to http://127.0.0.1:8080 (port might be different, it depends on your WebDAV Server configuration).

Permissions needed:

INTERNET
ACCESS_NETWORK_STATE
ACCESS_WIFI_STATE

Network permission to enable server to open network communication with WebDAV clients.

WRITE_EXTERNAL_STORAGE

Enables WebDAV server write received files from WebDAV clients on sdcard.

WAKE_LOCK

Keeps phone wake only while server is running. If phone is not wake WebDAV server can not be accessed.

Problems with big files:

If you have problems handling big files it might be due to a limitation in Windows webdav client. You can try the following to increase the size of files that Windows webdav client is able to manage:

1) You have to turn on BasicAuth via regedit to allow accessing the App's server by username and password.

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\WebClient\Parameters]
"BasicAuthLevel"=dword:00000002

2) You have to change Window's limit to file size when using the integrated WebDAV client.

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\WebClient\Parameters]
"FileAttributesLimitInBytes"=dword:000f4240

3) Restart windows.

This allows file sizes up to 4 Gigabytes handled by the client.

Recent changes:
Material design
Bug fixing
User reviews of WebDAV Server
Write the first review for this app!
Android Market Comments
A Google User
Apr 5, 2015
File Transfer Simplified My basic need is finally complete. Already had access to my phone via Wifi through different android apps, but through the browser which is just to copy & pasting, but not viewing files. This app completes that and works good.
A Google User
Mar 24, 2015
Not working
A Google User
Mar 13, 2015
Not working It's not working and there is no help available anywhere. Uninstalling
A Google User
Feb 4, 2015
RegEdit errata, et al In the Read More info above, it says to set the FileAttributesLimitInBytes value to 000f4240, but that is the DEFAULT value. FFFFFFFF in hex is 4GB minus 1-byte. And, there's another key just below that one, named FileSizeLimitInBytes which I believe is the more-appropriate one on which to change its value. I changed both to FFFFFFFF. Also, in WebDAV Settings, selecting the SdCard as the "Home directory" does NOT work (setting it to Ext.SdCard doesn't select the optional micro-SD card, either)... if you set the Home dir to SdCard, when you map the windows drive (say, Z:) to \\127.0.0.1:8080 and then copy files to Z:\Music, it actually puts the files into the Phone/Music subdir, not the Card/Music subdir. To reach the optional/installed micro-SD card, select "Custom folder" for the "Home directory" then in the "Custom folder" option browse to /mnt/extSdCard and press the Select button. THAT lets you map a drive letter in Windows to the micro-SD card in your Galaxy S5 (assuming you've jumped through all the hoops, like installing the Android SDK, starting its ADB server and using that as a SOCKS proxy on the 127.0.0.1:8080 socket). Hope that helps!
A Google User
Feb 4, 2015
Doesn't work on KitKat 4.4.2? I really, REALLY wanted this to work. Google's switch from Mass Storage to MTP on Android KitKat, which removed the user's ability to map the SD card on Android devices as a Removeable Drive with a drive letter in Windows over a USB connection, has virtually crippled my Samsung Tab 3. MTP doesn't let me use TeraCopy, WinMerge, or any of the usual synchronization utilities to do file management on Android devices. My last hope was that WebDAV, adb, and BitKinex would provide a workaround, but after a full day of struggle, I simply can't make this work. adb and BitKinex seem to connect to WebDAV on the tablet - at least there are no error messages - but the file tree and folder window in BitKinex never shows any files, just the rotating circle that's Win 7's "wait/stand by" symbol (like XP's hourglass). I tried WebDAV in both USB and WiFi modes, and could not get BitKinex to show me any files on the tablet, no matter how I tried to tweak configuration settings. I don't know for sure what's wrong, but I assume this is another example of how Google has crippled Android's SD Card access and networking capabilities in version 4.4.2 KitKat.
Version 1000000
Version 1000000