Skip to content

ojilon/Wayer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

10 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ“ฑ Wayer - File Transfer System

Transfer files between your PC and Android phone through hotspot connection.

Wayer is a two-component project:

  • ๐Ÿ“ฑ Android Client - Browse and transfer files from your phone
  • ๐Ÿ’ป PC Server - Manage file transfers from your computer

๐Ÿš€ Quick Navigation

๐Ÿ“ฑ Android Client (This Repository)

Build and run the Android app to connect to your PC and transfer files.

# Build debug APK
./gradlew assembleDebug

# Find APK at: app/build/outputs/apk/debug/app-debug.apk

๐Ÿ“– โ†’ Full Android Setup Guide


๐Ÿ’ป PC Server (Separate Repository)

Set up the Python server on your PC to handle file requests from the phone.

# Install dependencies
pip install -r requirements.txt

# Start the server
cd python
python server/app3.py

๐Ÿ“– โ†’ Full PC Server Setup Guide
๐Ÿ”— โ†’ Go to WayerPC Repository


๐Ÿ—๏ธ Project Architecture

Wayer (Complete File Transfer System)
โ”œโ”€โ”€ ojilon/Wayer (This Repo)
โ”‚   โ”œโ”€โ”€ ๐Ÿ“ฑ Android Application
โ”‚   โ”œโ”€โ”€ Language: Java (100%)
โ”‚   โ”œโ”€โ”€ Build: Gradle
โ”‚   โ””โ”€โ”€ Purpose: Client app for file browsing & transfer
โ”‚
โ””โ”€โ”€ ojilon/WayerPC (Separate Repo)
    โ”œโ”€โ”€ ๐Ÿ’ป Python Server + C DLL
    โ”œโ”€โ”€ Languages: Python, C, C++, CMake
    โ”œโ”€โ”€ Purpose: File server for handling requests
    โ””โ”€โ”€ Role: Backend processing & file search

๐Ÿ“‹ System Requirements

For Android Client

  • Android SDK (API 26+)
  • Gradle build system
  • Android Studio (optional)

For PC Server

  • Python 3.x
  • MinGW64 or GCC (for C DLL compilation)
  • CMake 3.10+

๐ŸŽฎ How It Works

Setup Flow

  1. Start PC Server

    # On your PC, navigate to WayerPC repo
    cd python
    python server/app3.py
    # Server listens on <HOST>:<PORT>
  2. Connect Android Phone to PC Hotspot

    • Enable hotspot on PC or use existing WiFi network
  3. Open Wayer App on Phone

    • Connect to the same network as the PC
  4. Transfer Files

    • Use commands: ls, cd, /ask, /upload

๐Ÿ”„ Workflow Example

Phone (Android App)         PC (Python Server)
        |                            |
        |------- ls ------โ†’          | (List files)
        |โ†------ response -------|
        |
        |------- cd Documents --|
        |
        |------- /ask photo.jpg|    (Request file)
        |โ†------ photo.jpg -----|
        |
        |------- /upload file --โ†’   (Send file)
        |        (received folder)

๐Ÿ“š Complete Guides

๐Ÿ“ฑ Android Client Documentation

๐Ÿ’ป PC Server Documentation

  • Location: README_PC_END.md
  • Covers: Server setup, configuration, file operations, DLL compilation

๐ŸŽฏ Key Commands

Command Device Purpose
ls Phone List files/folders on PC
cd <path> Phone Navigate directories
/ask <filename> Phone Download file from PC
/upload <filepath> Phone Upload file to PC

๐Ÿ“‚ Repository Structure

ojilon/Wayer (Android Client)

Wayer/
โ”œโ”€โ”€ app/
โ”‚   โ”œโ”€โ”€ build.gradle
โ”‚   โ””โ”€โ”€ src/main/
โ”‚       โ”œโ”€โ”€ AndroidManifest.xml
โ”‚       โ”œโ”€โ”€ java/          # Source code
โ”‚       โ””โ”€โ”€ res/           # Resources
โ”œโ”€โ”€ build.gradle
โ”œโ”€โ”€ gradle.properties
โ”œโ”€โ”€ settings.gradle
โ”œโ”€โ”€ README.md              # Main documentation
โ””โ”€โ”€ README_ANDROID_END.md  # Detailed guide

ojilon/WayerPC (PC Server)

WayerPC/
โ”œโ”€โ”€ python/
โ”‚   โ”œโ”€โ”€ server/
โ”‚   โ”‚   โ”œโ”€โ”€ app3.py        # Entry point
โ”‚   โ”‚   โ”œโ”€โ”€ socket_server3.py
โ”‚   โ”‚   โ”œโ”€โ”€ Locate.py
โ”‚   โ”‚   โ”œโ”€โ”€ transfer.py
โ”‚   โ”‚   โ””โ”€โ”€ config.py
โ”‚   โ””โ”€โ”€ Filesmanager/
โ”œโ”€โ”€ c/                     # C DLL source
โ”œโ”€โ”€ CMakeLists.txt
โ”œโ”€โ”€ README.md              # Quick overview
โ””โ”€โ”€ README_PC_END.md       # Detailed guide

๐Ÿ”— Links


๐Ÿšจ Troubleshooting

Connection Issues

  • Verify both devices are on the same network
  • Check PC server is running and listening
  • Confirm firewall is not blocking connections

File Transfer Errors

  • Use ls command to verify file exists
  • Check file paths are correct
  • Ensure Android app has file permissions

Build Issues

  • Android: ./gradlew clean then rebuild
  • PC Server: Verify Python 3.x and dependencies installed

๐Ÿ“ License

MIT License - See LICENSE file in each repository


Get started: Android Setup Guide โ†’ | PC Server Guide โ†’

About

Project for transfer of files between PC and android phone, through hotspot connection

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages