A readable file, a native app
Plugins use Python 3.11 through Chaquopy and render native Jetpack Compose UI inside ErikrafT Multi-tool.
.dolphypluginapplication/x-dolphy-pluginPython 3.11 (Chaquopy)UTF-8SDK 36 / API 26+Build tools from Compose components, callbacks and plugin state.
Register modules and use the explicit hooks and extension points exposed by the app.
Check the device, permission and accessory requirements before offering a hardware feature.
Plugin files are executable code; review what they do before installing them.
ErikrafT Multi-tool supports .dolphyplugin packages from its upstream Dolphy-App lineage. The .erikraftplugin extension is also supported. Both are readable UTF-8 Python files; compatibility does not guarantee identical device APIs across app versions.
Three honest capability classes
The same feature can need different hardware or privileges on different Android devices. The app distinguishes what is built in, what needs an accessory and what needs elevated support.
Android 12+ exige permissões de Bluetooth em runtime. Recursos dependem do rádio e da versão do sistema.
Precisa de NFC e suporte a Host Card Emulation no dispositivo.
IR requer emissor integrado ou adaptador compatível; USB requer Host e hardware suportado.
Descoberta local precisa de acesso à rede; multicast depende da rede e do sistema.
Só para operações específicas que não são expostas pelas APIs Android comuns.
Um recurso listado não significa que o telefone tenha o componente, que o Android permita a operação ou que o acessório esteja conectado. Verifique as condições locais antes de iniciar uma ação.
Quick start: um módulo simples
Salve um arquivo de texto UTF-8 com a extensão .dolphyplugin. Esse exemplo registra um cartão e devolve uma tela nativa.
__id__ = "hardware_lab"
__name__ = "Hardware Lab"
__version__ = "1.0.0"
__author__ = "Your Name"
__description__ = "A local hardware learning workspace"
__icon__ = "rounded:developer_board"
class HardwareLab(BasePlugin):
def on_plugin_load(self):
self.add_module(
title="Hardware Lab",
description="A local hardware learning workspace",
icon="developer_board",
screen="main",
section="PLUGINS",
)
def screen_main(self, ui, api, state):
return ui.scaffold(
title="Hardware Lab",
content=ui.column(
[
ui.card([
ui.text("Ready to explore", "headlineSmall"),
ui.text("Check your device capabilities before use.", "bodyMedium"),
]),
],
padding=16,
spacing=12,
),
)
Compare the runnable starter in plugin-examples/hello_erikraft.erikraftplugin with the current app runtime before relying on an API.
Expressive UI, rendered natively
Plugins describe a UI tree in Python; the app renders native Jetpack Compose components using its current theme.
ui.scaffoldui.columnui.lazy_columnui.cardui.textui.buttonui.icon_buttonui.text_fieldui.switchui.sliderui.tabsMaterial 3Components follow the active app theme; plugin UI is not a browser page.callbacksCallbacks connect UI events to plugin functions and state.api / uiThe runtime exposes the bridge to plugin code; use documented APIs and check their return values.Plugin settings & lifecycle
Keep plugin setup and teardown explicit. State and settings should be resilient to a screen being opened more than once.
Register modules and initialize lightweight state.
Render the screen and connect user actions.
Persist only values the plugin needs.
Stop work and release owned resources.
Do not assume plugin code is sandboxed. Keep hardware access scoped, handle unavailable permissions and make recovery behavior clear.
Integrate at documented extension points
Plugin hooks are intentional integration points in the app, not unrestricted interception of arbitrary Kotlin code.
Add a plugin entry point in a supported section and render its screen through the UI bridge.
Hooks run only where the app dispatches an exposed hook or named action.
Access depends on the platform API, permission state, device feature and optional accessory.
A plugin cannot assume it can patch every screen, action, system service or app function. A new named hook requires a corresponding integration point in the app code.
Screen hooks
Where supported, screen hooks can contribute plugin UI to an app route. Their effect and priority depend on the hook mode.
overlayAdds a plugin layer over a supported route.top / bottomPlaces plugin UI at a supported edge of the screen.fabAdds a compact floating action UI where the route supports it.replaceProvides replacement UI at the hook point; this does not patch bytecode or guarantee that the underlying screen stops running.Use only route names and patterns supported by the current app build. Route names and available hooks may change; inspect the matching source and examples when targeting a specific screen.
Actions & services
Named action hooks and service providers run only through explicit dispatch points that the app currently exposes.
hook_actionParticipates in a named action pipeline where the app calls that action hook.provide_serviceOffers an implementation for a service explicitly requested by the app.priorityOrdering is meaningful only within the hook or provider dispatch supported by the runtime.The public integration surface is tied to the version of ErikrafT Multi-tool installed. Review the current repository examples and plugin bridge before relying on a particular hook name or hardware service.
Build & SDK
The project uses Kotlin, Jetpack Compose, Chaquopy, Android SDK 36 and a minimum Android API level of 26.
./gradlew testDebugUnitTest lintDebug assembleDebug bundleDebug
Install a compatible JDK and Android SDK, then run the command from the repository root. CI workflow artifacts are debug builds; releases are published separately.
DEX & libraries
Advanced plugins may package compatible DEX code or share library plugins. These capabilities are version- and runtime-dependent.
Use only trusted, reviewed code that matches the app's Android runtime and supported plugin APIs.
Declare dependencies explicitly and make startup order and failure behavior clear.
Where a bridge accepts a checksum, verify the expected artifact before loading it.
An API present in one build may not exist in another; validate against the current source.
Authorized research, safety & GPL
Use the app and plugins only for learning, testing and diagnostics on devices and networks you own or are explicitly authorized to assess.
Do not use the project to clone payment or transit cards, steal credentials, jam radio communications, conduct denial-of-service, or send spam. Respect consent, applicable law and platform rules.
Review a plugin's source before installing it. A plugin may have access to app capabilities granted at runtime; do not install code from a source you do not trust.
ErikrafT Multi-tool is a fork evolved from unvoiddd/Dolphy-App. The project is distributed under GNU GPL v3.0 and retains clear upstream attribution.