Skip to content

Tool for automatic builds/deploys for APK files to Android devices.

Notifications You must be signed in to change notification settings

p-samuel/apkmon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

👾APKMon - Delphi Android APK Deploy Monitor

A Windows console tool that monitors directories for Android shared library (.so) file changes and automatically builds/deploys APK files to connected devices.

Demo

Requirements

  • Windows
  • Delphi/RAD Studio with Android support
  • ADB in PATH
  • FFmpeg in PATH (for screen recording)
choco install ffmpeg

Environment Setup

Add to System PATH:

C:\Users\<user>\AppData\Local\Android\Sdk\emulator
C:\Users\<user>\AppData\Local\Android\Sdk\platform-tools
C:\Windows\Microsoft.NET\Framework\v4.0.30319

Environment variables:

  • BDS: C:\Program Files (x86)\Embarcadero\Studio\23.0
  • FrameworkDir: C:\Windows\Microsoft.NET\Framework\v4.0.30319
  • FrameworkVersion: v4.5

Usage

Run apkmon.exe and follow these prompts to configure watch directory, projects, build config, and deploy actions. It includes basic functionality for recording screen, logging and profiling.

Commands

Projects

Command Description
list Show current projects
add <project> Add project to monitor
build all|<name> Build project(s)
deploy all|<name> Deploy project(s)
bd all|<name> Build and deploy

Monitoring

Command Description
pause Pause auto-detection
resume Resume auto-detection

Devices

Command Description
devices List connected devices
pair <ip>:<port> Pair WiFi device (Android 11+)
qrpair QR code pairing (scan with device)
connect <ip>:<port> Connect to WiFi device
disconnect [<ip>:<port>] Disconnect WiFi device(s)

Logcat

Command Description
logcat [filter] Start logcat
logcat -s <device> [filter] Logcat on specific device
logcat stop Stop logcat
logcat pause/resume Pause/resume output
logcat clear Clear buffer
logcat status Show status

Screen Recording

Command Description
record output <path> Set output folder
record start <device> Start recording
record stop Stop and save
record status Show status

Records at 60fps, native resolution. Long recordings auto-segment and merge files via FFmpeg. Configuration path for recordings is persited between sessions.

FPS Monitoring

Command Description
fps <device> <package> Start FPS monitoring
fps stop Stop FPS monitoring

Profiling

Command Description
profile <device> <package> Start CPU/Memory/Battery monitoring
profile stop Stop profiling

General

Command Description
help Show commands
quit Exit

Notes

  • Only monitors .so files to avoid infinite loops
  • Deploy must be done manually on the first build Project > Deployment > Deploy
  • Delphi FMX requires ARM/ARM64 devices (x86 emulators need Google APIs ARM image)

About

Tool for automatic builds/deploys for APK files to Android devices.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages