Android samba server no root

Использование SMB-сервера без рут-доступа

Я ищу способ для своего HTC Hero (Android 2.1), чтобы я мог обмениваться содержимым моей SD-карты и памяти телефона через сеть WiFi, как обычный файловый ресурс Windows. Мне нужен тот, который не требует, чтобы я рутировал свой телефон, и готов заплатить за правильное приложение, чтобы оно не было бесплатным.

Я думаю об использовании SMB-сервера, и все, что я нашел до сих пор:

  1. SambaAndroid, который требует root-доступа.
  2. androidsmb — это «реализация Java сетевого сервера общих файлов и принтеров SMB / CIFS для устройств Android», размещенная на Google Code, которая не имеет документации и не выпустила никаких файлов.

Возможно ли технически разработать SMB-сервер на Android, который можно установить без рут-доступа?

Поскольку на ваш первоначальный вопрос до сих пор нет ответа, и я удивился тому же, вот ответ.

Краткий ответ: Нет, без рута невозможно запустить SMB-сервер, используя порты по умолчанию, чтобы он был найден на ПК с Windows.

Длинный ответ: SMB работает на портах 137-139 (UDP и TCP) с использованием NetBIOS или в более новых системах (начиная с Windows Vista и далее) напрямую через TCP-порт 445, где в последнем случае имена компьютеров разрешаются с помощью LLMNR (Link-local Multicast) Протокол разрешения имен), который работает на UDP-порту 5355. Почему это важно? Приложения, не работающие от имени пользователя root, не могут привязываться к непривилегированным портам ( — letmaik
источник

Хотя может быть невозможно запустить сервер SMB без рута или с использованием переадресации портов , возможно запустить сервер WebDAV без рута для получения аналогичного эффекта.

Настройка сервера Android WebDAV

На своем стоковом Nexus 7 я установил WebDAV Server , открыл его, нажал кнопку «Пуск» и сразу же смог увидеть свою /storage/sdcard папку в своем веб-браузере по URL-адресу, отображаемому приложением, т.е. http://192.168.x.y:8080

Обратите внимание, что с WebDAV у вас также есть возможность выбрать Root (/) или DCIM, а также SdCard в качестве корня WebDAV .

Использование сервера WebDAV через Windows Explorer

Затем я подключился http://192.168.x.y:8080 как сетевой диск в проводнике Windows и смог получить доступ к содержимому накопителя, как если бы я был подключен через MTP, но через букву диска.

К сожалению, это решение невероятно медленное.

Каждое изменение каталога занимает от 6 до 20 секунд, как и доступ к большинству файлов. Однако при доступе к файлу он передается с разумной скоростью (копирование одного файла размером 42 МБ в проводнике Windows заняло около 60 секунд, то есть 700 КБ / с).

Таким образом, WebDAV через Windows Explorer подходит для загрузки нескольких больших файлов, местоположение которых вы знаете, но такой способ просмотра или синхронизации всего устройства не быстрый. Я синхронизировал 1,75 ГБ данных в около 6000 файлов и 400 каталогов, и это заняло 10 часов, то есть около 50 КБ / с или 10 файлов / дисков в минуту в среднем.

Использование сервера WebDAV через командную строку Windows

Даже из командной строки каждый листинг каталога занимает 5-6 секунд, как и любой доступ к файлам. Копирование того же 42 МБ файла из командной строки заняло около 20 секунд, то есть около 2,1 МБ / с.

Использование сервера WebDAV через веб-браузер

Самый быстрый вариант для WebDAV — это использовать ваш веб-браузер напрямую через указанный URL-адрес. Смена каталога редко занимает больше секунды, а загрузка того же 42 МБ файла из веб-браузера занимает около 12 секунд, то есть около 3,6 МБ / с.

Недостатком использования веб-браузера является то, что он показывает только дату (без размера и типа) и не делает различий между файлами и каталогами, поэтому если файл не имеет расширения (или каталога), то это может быть неочевидным Если щелкнуть ссылку, вы перейдете на другую веб-страницу (для каталога) или начнете загрузку (для файла).

Предостережения

По умолчанию Windows ограничивает размер загрузок WebDAV до 50000000 байт (47,6 МБ), хотя это можно изменить с помощью взлома реестра ( FileSizeLimitInBytes in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WebClient\Parameters ), если вы знаете, что делаете.

Доступ к WebDAV небезопасен . Даже если вы установили пароль на общий ресурс WebDAV, соединение по-прежнему http отсутствует https , поэтому оно не шифруется. Используйте WebDAV только в защищенной сети Wi-Fi и, конечно, не включайте сервер WebDAV, пока вы находитесь в интернет-кафе или другом незащищенном Wi-Fi.

Читайте также:  Увеличить память андроид за счет карты памяти без рут

Источник

[APP][4.0.3+][NO Root] LAN drive — Samba Filesharing Server SMB1 and SMB2

poppyto

Senior Member

Introduction:
LAN drive is an easy SAMBA Server for Android (iOS & WM10) devices.
Access all your phone files — InternalStorage,SDCard,ExternalHDD — in read/write remotely with common softwares :

  • MAC OS Finder
  • Windows File Explorer
  • ES Explorer
  • VLC
  • Kodi
  • Any SMB client capable app

You just have to be on the same network (WiFi) to make it work.

There are 3 default network sharings activated :

  • ‘LANdrive’ : storage bound with the app (deleted when you clear cache of the app)
  • ‘Root’ : «/» access
  • ‘InternalStorage’ :
  • ‘SDCard’|’HDD’: Any other external storage automatically detected

You can create your custom sharings too (bound to the app or select one with file picker)

The app is free with an InApp purchase for unlocking the bandwidth (0.5 MB/s in trial) and remove ads, otherwise all is functionnal.
We released it first at the end of January 2018 and are looking for feedback and help in making LAN drive the best it can be.

Works without ROOT:
Read the tutorial inside the app (works on Windows / MAC / Linux)

Features:

  • Copy/paste/rename files and folders on your device with MAC OS Finder, Windows File Explorer, Android ES Explorer, etc.
  • Access the ‘external’ storage (Photos and Videos included) in your device as a network shared folder.
  • Access the Root folder and all directories including SD Cards or external HDDs as network shared folders
  • View your multimedia files with embedded mediaplayer (or external app).
  • Your device name appears automatically in MAC OS Finder, Windows File Explorer, Android ES Explorer, VLC, Kodi etc.
  • Manage your device name (NetBios) and Workgroup name.
  • 3 authentication types : Anonymous with popup confirmation, Anonymous and Users with custom rights
  • Manage users and create your own shared folders with credentials.
  • View users connected and disconnect them.
  • Unlimited connections (several users can access your sharings at the same time)
  • 5 languages : English, Spanish, French, German, Italian.
  • Launched as a service in the background : Access your SMB server while using other apps
  • Optionally start the app after boot device completed
  • Protocols SMB1 (CIFS) and SMB2 protocol (enable/disable via settings)

How Does It Work?
LAN drive uses its own SMB1 & SMB2 implementation with an efficient way to announce itself on clients (your phone appears automatically in other software, even in Windows 10 File Explorer).
You can choose 3 ways to authenticate :

  • Popup confirmation (default)
  • Anonymous
  • Create users with custom rights

Even if it requires root access, LAN drive is non intrusive (not installed in app systems), nothing will stay in the system after uninstall it.

Known issues

  • App startup time could be very slow (could take 10 seconds depending the devices).
    It’s not something we can improve at the moment (framework loading Xamarin.Forms)
  • App Size : 26MB. We can’t make it better, again Xamarin.Forms have some mandatory DLL to load to work

Use cases:
Some users don’t know the powerfull use of SMB server, here some use cases:

  • Backup files, like you do with an USB key, but without the USB cable, and with security credentials.
  • Watch your movies/photos on your TV with Kodi (or VLC) streaming directly from your Phone.
  • Use a Backup utility from MAC or PC to create a scheduled task which backup|synchronize your movies/photos every days.
  • Developers|Hackers could browse Root «/» and edit/delete/copy/paste any files without using adb shell

Who Are We?
Webrox is a little french company of 2 persons, we build apps since 2011, check the Webrox store page here.
We made LAN drive to have a very easy multiplatform SMB Server.

XDA:DevDB Information
LAN drive, App for all devices (see above for details)

Version Information
Status: Stable
Current Stable Version: 1.4
Stable Release Date: 2018-05-14

Created 2018-05-15
Last Updated 2018-11-19

Источник

[APP][4.0.3+][NO Root] LAN drive — Samba Filesharing Server SMB1 and SMB2

svbarbosa

Senior Member

This is being maintained, but devs deserve to take a break every once in a while.

Читайте также:  Удаление андроид с ноутбука

There is no good alternative also being maintained. Only abandoned apps.

ozgadgetguy

Senior Member

This is being maintained, but devs deserve to take a break every once in a while.

There is no good alternative also being maintained. Only abandoned apps.

svbarbosa

Senior Member

Attachments

Rushmed

Senior Member

ccchan234

Member

the app is great and is working /w openwrt.
Previously I forget that a IP is hard code-ed in the verigio multi port forwarder and blamed
openwrt and make this post.

now it’s solved (see below) and I will remove the bulk of rubbish,
thanks

ccchan234

Member

ccchan234

Member

Limetak

Member

ccchan234

Member

It’s all MY faults, I apologize for this.
LanDrive WORKS perfectly with openwrt.

In Verigio, in the TCP tab, there is a hard code-ed IP address,
And after trial period, you can still USE it but you cannot CHANGE it.

So I setup my Tplink within the trial period, thus working well.
With the recently bought openwrt I forget/don’t remember there is a hard code-ed
IP address, so of course openwrt ‘s IP will never work with that.

Very much Thank you esp to Krazeh who helped by installing the app and software for me.
Thank you everybody.

(PS seems that one have to buy the ultimate version of
Verigio for working with LanDrive, which is 20USD….)

ps: i use landrive+multi port forwarder to transfer from old phone to new phone.
it seems you need the ULTIMATE version of verigio for using with 2 phones.
(2 hard coded IP in 2 rules, which makes it need 4 rules)
Luckily if you somehow claim to them you are a student,
you get a discount at about 50% off.
which is just USD 10 and it acceptable.
(however, it’s more expensive than landrive itself, which is 4 USD?)

JamesBolivar

New member

Actual problems with Verigio

Download the Multi Port Forwarder for my Windows 7. The driver install doesn’t work. Tried to get a license. That didn’t work either. Is there any other (working!) option to connect via unprivileged (>1024) ports? I unsuccessfully tried to use a different port forwarder and also forwarding via Fritzbox. Thanks in advance.

lukjod

Senior Member

aIecxs

Senior Member

thejulo

Member

The app looks great and works fine on my phone.
But on my MiBox S (Android TV 9), when trying to create a new share, after I tap on the Folder Picker and, I get the following error message:
0x80131500 : No activity found to handle Intent

I don’t know if I can install something that too give me a Folder Picker or if the code needs to use something else to work on this device.

MatMK

New member

DaiyuHurst

New member

DaiyuHurst

New member

ic_wan

New member

The app looks great and works fine on my phone.
But on my MiBox S (Android TV 9), when trying to create a new share, after I tap on the Folder Picker and, I get the following error message:
0x80131500 : No activity found to handle Intent

I don’t know if I can install something that too give me a Folder Picker or if the code needs to use something else to work on this device.

xdamystrik

New member

10seconds.
I assume the app is using a deprecated/slow API to access files. There were some major changes in Android 11.
Would be willing to pay a small bounty to fix this.

GJS_MA

New member

I am testing LAN Drive (8.0) for copying files between my Samsung Galaxy S9 (Android 10) and Windows 10 Home 20H2, usually over an Ethernet cable.

Setup was easy, and the tutorial on configuring the Port Forwarder on Windows was a great help. I had LAN Drive working in about an hour. Operations from Windows Explorer and from the command line work fine, and are about as fast as operations on Windows shares.

There is one problem: When LAN Drive copies files from Windows to phone, the copies have date/time stamp of the time they were copied. Normally, files copied to Windows shares preserve the original file’s modification time. This is critical for my application, and is important to anyone who wants to update modified files between Windows and Android based on time stamps.

Читайте также:  Clip studio paint animation android

I know of at least one other Android app which sets file modification times: SSH/SFTP Server-Terminal. It is able to set them based on the time stamp of incoming uploaded files.

Can LAN Drive be made to preserve uploaded files’ original modification times in the copies? It could be controlled by a setting «Preserve file modification times in uploads«, in case some users prefer the current behavior.

Similar threads

Top Liked Posts

Introduction:
LAN drive is an easy SAMBA Server for Android (iOS & WM10) devices.
Access all your phone files — InternalStorage,SDCard,ExternalHDD — in read/write remotely with common softwares :

  • MAC OS Finder
  • Windows File Explorer
  • ES Explorer
  • VLC
  • Kodi
  • Any SMB client capable app

You just have to be on the same network (WiFi) to make it work.

There are 3 default network sharings activated :

  • ‘LANdrive’ : storage bound with the app (deleted when you clear cache of the app)
  • ‘Root’ : «/» access
  • ‘InternalStorage’ :
  • ‘SDCard’|’HDD’: Any other external storage automatically detected

You can create your custom sharings too (bound to the app or select one with file picker)

The app is free with an InApp purchase for unlocking the bandwidth (0.5 MB/s in trial) and remove ads, otherwise all is functionnal.
We released it first at the end of January 2018 and are looking for feedback and help in making LAN drive the best it can be.

Works without ROOT:
Read the tutorial inside the app (works on Windows / MAC / Linux)

Features:

  • Copy/paste/rename files and folders on your device with MAC OS Finder, Windows File Explorer, Android ES Explorer, etc.
  • Access the ‘external’ storage (Photos and Videos included) in your device as a network shared folder.
  • Access the Root folder and all directories including SD Cards or external HDDs as network shared folders
  • View your multimedia files with embedded mediaplayer (or external app).
  • Your device name appears automatically in MAC OS Finder, Windows File Explorer, Android ES Explorer, VLC, Kodi etc.
  • Manage your device name (NetBios) and Workgroup name.
  • 3 authentication types : Anonymous with popup confirmation, Anonymous and Users with custom rights
  • Manage users and create your own shared folders with credentials.
  • View users connected and disconnect them.
  • Unlimited connections (several users can access your sharings at the same time)
  • 5 languages : English, Spanish, French, German, Italian.
  • Launched as a service in the background : Access your SMB server while using other apps
  • Optionally start the app after boot device completed
  • Protocols SMB1 (CIFS) and SMB2 protocol (enable/disable via settings)

How Does It Work?
LAN drive uses its own SMB1 & SMB2 implementation with an efficient way to announce itself on clients (your phone appears automatically in other software, even in Windows 10 File Explorer).
You can choose 3 ways to authenticate :

  • Popup confirmation (default)
  • Anonymous
  • Create users with custom rights

Even if it requires root access, LAN drive is non intrusive (not installed in app systems), nothing will stay in the system after uninstall it.

Known issues

  • App startup time could be very slow (could take 10 seconds depending the devices).
    It’s not something we can improve at the moment (framework loading Xamarin.Forms)
  • App Size : 26MB. We can’t make it better, again Xamarin.Forms have some mandatory DLL to load to work

Use cases:
Some users don’t know the powerfull use of SMB server, here some use cases:

  • Backup files, like you do with an USB key, but without the USB cable, and with security credentials.
  • Watch your movies/photos on your TV with Kodi (or VLC) streaming directly from your Phone.
  • Use a Backup utility from MAC or PC to create a scheduled task which backup|synchronize your movies/photos every days.
  • Developers|Hackers could browse Root «/» and edit/delete/copy/paste any files without using adb shell

Who Are We?
Webrox is a little french company of 2 persons, we build apps since 2011, check the Webrox store page here.
We made LAN drive to have a very easy multiplatform SMB Server.

XDA:DevDB Information
LAN drive, App for all devices (see above for details)

Version Information
Status: Stable
Current Stable Version: 1.4
Stable Release Date: 2018-05-14

Created 2018-05-15
Last Updated 2018-11-19

Источник

Оцените статью