Connect your old usb hard drive with USB port or the thumb drive in Raspberry pi and access it anywhere in you home wireless. This application will turn you raspberry pi a FTP server. Once you mount your usb drive with the Android system, This will make it available it in your local network.
- Plug you USB drive at any of the USB port in your Raspberry Pi.
- Open adb shell by typing below command in terminal (Make sure your raspberry pi is connected via adb):
adb shell
- Mount the USB drive by running below command in adb shell (Your USB drive srould be formatted in FAT file system.):
su
mkdir /mnt/usb
mount -t vfat -o rw /dev/block/sda1 /mnt/usb
- Run "Remote Storage" application.
- Connect your rapberry pi running on Android Things via adb.
- On Android Studio, select the module in the select box by the "Run" button, and then click on the "Run" button. If you prefer to run on the command line, run following command in terminal in the root of the project.
./gradlew app:installDebug
adb shell am start com.example.androidthings.simplepio/com.kevalpatel2106.remotestorage.MainActivity
- FTP server is running on the IP on which your rapberry pi is connected. The port address is 53705.
- Port : 53705
- URL : ftp://{YOUR IP}:53705
- Username : admin
- Password : admin
- Open ftp://{YOUR IP}:53705 url in your bowser and enter username and password.
- Android : Download ES File manager and create new FTP connection under Network section. Use above credentials and connect.
Everytime raspberry pi restarts you need to mount USB drive and run the application.
Copyright 2017 Keval Patel
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.