/WSA-Transfer

Easily transfer files to Windows Subsystem for Android

Primary LanguageBatchfileCreative Commons Zero v1.0 UniversalCC0-1.0

WSA-Transfer

Winodws Subsystem for Android runs on Hyper-V, a virtualization platform by Microsoft. If that rings a bell, you'd know that the storage used by WSA is encrypted and is not be accessible to the user.

So you have this shiny new app that you want to tranfer into WSA for installation but you can't transfer it into the damn thing. Oh well, one way could be through FTP but really, unless you have 3 minutes to waste, you're probably looking for an elegant solution.

Enter the very desciptively named "WSA Transfer". It transfers files to Windows Subsystem for Android by a simple Drag 'n Drop.


Teach me Senpai

Prerequisite : Enable Developer Mode from WSA Settings. You need to do this only once.

Screenshot (34)

  1. Click-hold the file you want to transfer.

  1. Drag it over to "Transfer to WSA.bat" and drop it.

That's it! Your file will be waiting in the Downloads folder within WSA.

How it be?

I mean, it's literally 4 lines of code, so I guess there's noting much in terms of explanaing.

The transfer is taking place via ADB (Android Debug Bridge). Once the "Dveloper Mode" is eneabled in WSA Settings, by default an adb server is opened on 127.0.0.1 port 58526.

The batch file is simply conecting to this adb instance and running an adb push to the Downloads folder for the dropped file.

Nothing fancy.

I'd recommend keeping a shortcut to this little scipt with a fancy name, maybe with a fancy icon, on Desktop if you move a lot of files to WSA regularly.