marcantony / android-smb-provider

An app to plug SMB shares into Android's system file picker (Storage Access Framework)
MIT License
9 stars 3 forks source link

May I know how to use it? There is nothing change in the system's filemanager after running App. #1

Open ooyellow58 opened 2 years ago

ooyellow58 commented 2 years ago

Can you show with a few screenshots?

ooyellow58 commented 2 years ago

From SAF, the network is shown but the message always shows "The content is temporily unavailable"

marcantony commented 2 years ago

Hey, sorry. I kind of go in- and out- of development on this since it's just a personal project, and it seems like I don't have notifications for new issues either!

To use this app:

  1. Install it. (There aren't any built APKs right now, so you'll have to build and deploy the app to your phone manually with Android Studio.)
  2. Open the SMB Provider app.
  3. Click the "+" button and enter the SMB server information.
  4. Click "Save". You should see the server information in the list now. (From here, you can tap a server listing to edit/delete it if need be.)
  5. Open the Storage Access Framework through any means.[^1] You should see your server in the list and be able to browse it.

[^1]: Some Android devices have a "Files" app or similar preinstalled that just opens SAF as a file browser/manager. My Samsung device didn't, so I found this app to work well: https://play.google.com/store/apps/details?id=com.marc.files. (The dev has a similar username to mine, but it's not me!)

marcantony commented 2 years ago

From SAF, the network is shown but the message always shows "The content is temporily unavailable"

For now, you're gonna be on your own here. You may want to run the app off the emulator or your phone with Android Studio open so you can check logs. It seems like a connection issue, so I would double-check the server information and make sure you can access it from other devices on your network. I'm able to access my server both while on my LAN and while VPN'd into my network, so I know it can work.

NanyangTaiji commented 2 years ago

I am using LINKSYS router, and it could be approached by my default system manager, VLC-android, and the apps I created myself. After I looking into your code, I found it uses smbj and jcifs-ng socket only, which have many limitations. I would like you to extend this App by unifying additional smb providers such as smbj-rpc、smbj、and jcifs. (LINKSYS accessible by jcifs only).

A good reference project for such approach is https://github.com/xyoye/SmbPlayHelper, which can be adopted directly with minimum effort.