Rechercher

PythonReactSEOPDF
OpenClaw

android-transfer-secure

Securely transfers files from macOS to Android with checksum verification and path validation.

aadipapp0 installations selon la source☆ 0 Étoiles du dépôtv0.1.0

Installation

Suivez les instructions du dépôt pour votre agent. Consultez les fichiers et dépendances avant l’installation.

SkillHub CLI

skillhub install aadipapp/android-transfer-skill

Examinez la source et la compatibilité, puis suivez les étapes d’installation.

Donnez le lien à votre agent et demandez-lui d’examiner instructions et dépendances avant d’expliquer les étapes.

Voir la source ↗Guides

Instructions

Secure Android File Transfer

This skill allows you to transfer files to an Android device with high security standards:

  • Checksum Verification: Ensures data integrity by comparing SHA256 hashes.
  • Path Validation: Prevents directory traversal and unauthorized path access.
  • Overwrite Protection: Prevents accidental data loss on the device.

Commands

  • transfer: Push a file to the connected Android device.

Informations sur la source

Source
github
Repository
openclaw/skills
Path
skills/aadipapp/android-transfer-skill
Version
0.1.0
Commit
a8e6c3f7484c56d14bd56bedc600ce35f786cb8f
Source de classification
rules
Statut
active
Visibilité
public

Ces informations proviennent de l’analyse indexée et peuvent être anciennes. Vérifiez les fichiers actuels.

README

Secure Android File Transfer Skill

This skill provides a secure way to transfer files from your Mac to an Android device.

Security Features

  1. Checksum Verification: Calculates SHA256 hash locally and remotely to ensure perfect file integrity.
  2. Overwrite Protection: Will NOT overwrite existing files on the phone unless you force it.
  3. Path Sanitization: Blocks directory traversal attempts (e.g. ../) to prevent accessing unauthorized files.
  4. Device Authorization: Verifies the device is authorized before attempting transfer.

Prerequisites

  • Android Debug Bridge (adb): Must be installed.
    • Install via Homebrew: brew install android-platform-tools
  • USB Debugging: Must be enabled on your Android phone (Settings > Developer Options).
  • Authorization: When you plug in the phone, tap "Allow" on the "Allow USB debugging?" prompt.

Usage

Transfer a file
python3 scripts/secure_transfer.py /path/to/local/file.jpg

Transfers to /sdcard/Download/ by default.

Specify destination
python3 scripts/secure_transfer.py myfile.txt --dest /sdcard/Documents/
Force overwrite
python3 scripts/secure_transfer.py myfile.txt --force

Troubleshooting

  • "adb not found": Run brew install android-platform-tools.
  • "No authorized Android device found": Check your USB cable and unlock your phone to accept the authorization prompt.
  • "checksum mismatch": The transfer was corrupted. The script automatically deleted the partial file. Try again.

Contenu extrait

SKILL.md
# Secure Android File Transfer

This skill allows you to transfer files to an Android device with high security standards:
- **Checksum Verification**: Ensures data integrity by comparing SHA256 hashes.
- **Path Validation**: Prevents directory traversal and unauthorized path access.
- **Overwrite Protection**: Prevents accidental data loss on the device.

## Commands

- `transfer`: Push a file to the connected Android device.
README
# Secure Android File Transfer Skill

This skill provides a **secure** way to transfer files from your Mac to an Android device.

## Security Features
1.  **Checksum Verification**: Calculates SHA256 hash locally and remotely to ensure perfect file integrity.
2.  **Overwrite Protection**: Will NOT overwrite existing files on the phone unless you force it.
3.  **Path Sanitization**: Blocks directory traversal attempts (e.g. `../`) to prevent accessing unauthorized files.
4.  **Device Authorization**: Verifies the device is authorized before attempting transfer.

## Prerequisites

- **Android Debug Bridge (adb)**: Must be installed.
    - Install via Homebrew: `brew install android-platform-tools`
- **USB Debugging**: Must be enabled on your Android phone (Settings > Developer Options).
- **Authorization**: When you plug in the phone, tap "Allow" on the "Allow USB debugging?" prompt.

## Usage

### Transfer a file
```bash
python3 scripts/secure_transfer.py /path/to/local/file.jpg
```
*Transfers to `/sdcard/Download/` by default.*

### Specify destination
```bash
python3 scripts/secure_transfer.py myfile.txt --dest /sdcard/Documents/
```

### Force overwrite
```bash
python3 scripts/secure_transfer.py myfile.txt --force
```

## Troubleshooting
- **"adb not found"**: Run `brew install android-platform-tools`.
- **"No authorized Android device found"**: Check your USB cable and unlock your phone to accept the authorization prompt.
- **"checksum mismatch"**: The transfer was corrupted. The script automatically deleted the partial file. Try again.

Skills associés

OpenClaw

1password

daggerkun007

Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.