搜索

PythonReactSEOPDF
OpenClaw

android-transfer-secure

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

aadipapp0 来源安装数☆ 0 仓库 Starsv0.1.0

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

SkillHub CLI

skillhub install aadipapp/android-transfer-skill

打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。

将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。

查看来源 ↗使用指南

技能说明

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.

来源信息

Source
github
Repository
openclaw/skills
Path
skills/aadipapp/android-transfer-skill
Version
0.1.0
Commit
a8e6c3f7484c56d14bd56bedc600ce35f786cb8f
分类来源
rules
状态
active
可见性
public

这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。

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.

来源内容

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.

相关技能

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.