Oly Remote is a lightweight, native Android app (Kotlin) to control an Olympus / OM System camera in Live View mode: view the real-time image stream, adjust shooting parameters (ISO, shutter speed, aperture, white balance, …), set focus and take photos.
It follows the same guidelines as its sibling oly-imageshare: build from the command line, Kotlin with as few dependencies as possible, and stay lightweight.
Status: UI mockup (v0.2). The Live View screen is fully interactive but driven by a fake camera: no network traffic yet. Its option lists are built from the same
<enum>XML the camera returns over Wi-Fi, through the same label tables the real controller will use. The camera layer (OPC "Communication Protocol for Open Platform Camera") goes in later behind theCameraControllerinterface, with no change to the UI.
A column of buttons, as in oly-imageshare: Live View · Check camera connection (placeholder) · Settings (placeholder) · About · Quit.
A 4:3 frame (the sensor aspect) in the centre, a bar of widgets above and below it, and a row of primary buttons at the bottom.
| Bar | Title | Olympus property | Shows on the button |
|---|---|---|---|
| top | ISO | isospeedvalue |
text |
| top | Speed | shutspeedvalue |
text |
| top | f-stop | focalvalue |
text |
| top | WB | wbvalue |
icon only (list: icon + label) |
| bottom | EV | expcomp |
text |
| bottom | Zoom | zoominfo |
14mm (slider, 1 mm steps) |
| bottom | Drive | drivemode |
short label (icons + text) |
- Each button shows its title and, under it, the current value. If the camera
does not expose the property (e.g.
zoominfoon a manual lens without contacts) it shows-.-. A non-motorized lens that reports its focal length shows the value but cannot be adjusted (WidgetState.READ_ONLY). - Tapping a button opens a drop-down next to it (down from the top bar, up from the bottom bar). The list shows the full labels and opens scrolled so the current value is centred.
- Primary row: a rectangular Play button (will show the last photo), the
shutter, and the round takemode button, the same size as the shutter.
Each tap on takemode cycles through the camera's
takemodevalues, showing an icon or letter glyphs (SCN,ART; unknown values use their first three letters). - Tap-to-focus: the
ic_touchbutton in the frame's corner toggles it. When it's on, the icon turns green, the green AF frame appears and follows your taps. When it's off, the icon is gray and the frame is hidden.
Mockup values: ISO Auto, Speed 125, f-stop 8.0 (list limited to 2.8–22,
as the lens bounds from the stream would do), WB 0 (Auto WB), EV 0.0, Zoom
14–42 mm at 14mm, Drive normal, takemode P.
Only LiveViewActivity uses Jetpack Compose; the menu / Settings / About
screens stay on plain Android Views, like oly-imageshare.
org.rigacci.olyremote
├── MainActivity, AboutActivity, ConnectionActivity, SettingsActivity (Views)
├── LiveViewActivity (Compose host)
├── camera/
│ ├── CameraProperty.kt CameraProperty (Olympus API names), WidgetState,
│ │ LabelPart, PropertyOption, EnumParam | RangeParam
│ ├── PropertyLabels.kt <enum> parsing + WB / drivemode / takemode tables
│ ├── CameraController.kt interface the UI depends on
│ └── FakeCameraController.kt simulated camera replies and stream data
└── ui/
├── LiveViewScreen.kt bars, live frame, primary row, drop-down overlay
├── ControlChip.kt one bar button (title + short label / "-.-")
├── CameraParameterSelector.kt option list (centred on current) | slider
├── LabelView.kt renders labels: text, icons, glyph strings, [icon]
└── GlyphMetrics.kt GENERATED letter-glyph widths (tools/svg2vd.py)
- Names follow the Olympus API.
CameraProperty.ISO_SPEED_VALUEhasapiName = "isospeedvalue",SHUT_SPEED_VALUEis"shutspeedvalue", and so on. - Labels are data. A label is a list of
LabelParts (Text,Icon,Glyphsfor the letter-shaped icons, andBracketedfor[icon]). EachPropertyOptionhas ashortLabelfor the button and afullLabelfor the list. One camera value can produce two entries:lowvib-selftimeris offered as 12s and 2s, which share the sameapiValuebut have different keys. - The UI depends only on
CameraController. AnOlympusCameraController(HTTP commands + RTP/UDP Live View stream) can be dropped in later without changing any composable.
The UI icons are your SVGs, converted into Android VectorDrawable XML. They
are single-colour and get tinted in the app. The sources live in art/, and
two scripts regenerate the resources:
pip install svgelements pillow # one-time
# SVGs -> res/drawable/*.xml, plus ui/GlyphMetrics.kt (letter widths for kerning)
python3 tools/svg2vd.py art/icons app/src/main/res/drawable \
app/src/main/java/org/rigacci/olyremote/ui/GlyphMetrics.kt
# Launcher icons (adaptive foreground/monochrome + legacy) from the artwork
python3 tools/appicon.py art/retro-camera-with-shutter-remote.png app/src/main/resSVG requirements: one <g transform="translate(x,y) scale(s)"> holding one
<path fill="currentColor"> (Inkscape's extra <defs>/<namedview> are
ignored). The viewBox starts at 0 0 and is normally 0 0 24 24. The
height is always 24; a glyph that is too wide for the square may use a wider
viewBox instead of being scaled down (ic_letter_upper_w is 0 0 30 24). The
converter keeps each icon's viewport and records it in GlyphMetrics.kt, so all
letters share the same scale. Only ic_shutter (two-colour) is hand-made and
not generated.
Wide viewBoxes are meant for letter glyphs, which the app draws at their own
width. A non-square icon used as a plain Icon in a square slot is shrunk to
fit and comes out smaller than its neighbours.
Jetpack Compose via the BOM: activity-compose, compose.ui,
compose.ui-graphics, compose.material3. These are mostly pure-JVM, but
Compose's graphics layer pulls in androidx.graphics:graphics-path, which ships
one native library (libandroidx.graphics.path.so). Without the NDK, the build
packages it unstripped, hence the "Unable to strip" warning. 16 KB pages:
Google Play will require 16 KB page-size support for app updates from February
2027, so check the release APK with zipalign -c -P 16 -v 4 <apk> (build-tools
35+). If that native library fails the check, update the Compose BOM.
The Compose compiler is the
org.jetbrains.kotlin.plugin.compose Gradle plugin, versioned with Kotlin
(2.2.20). The release build turns on R8 (isMinifyEnabled /
isShrinkResources), which also drops icons that are still unused.
# One-time SDK setup (see oly-imageshare README for the full walkthrough)
export ANDROID_HOME=$HOME/Android/sdk
sdkmanager "platform-tools" "platforms;android-36" "build-tools;36.0.0"
echo "sdk.dir=$HOME/Android/sdk" > local.properties
./gradlew clean assembleDebug
# -> app/build/outputs/apk/debug/oly-remote-0.2-build2-universal-debug.apk
./gradlew installDebug
adb shell am start -n org.rigacci.olyremote/.MainActivitycompileSdk = 36, minSdk = 24, targetSdk = 36, Java 17, Kotlin 2.2.20,
AGP 8.11.0. The version lives in app/version.properties; run ./gradlew bumpBuild, bumpVersion or bumpMajor as a separate command before building.
Implement OlympusCameraController : CameraController against the OPC protocol:
HttpURLConnection to fetch each property's <enum> (passed through
PropertyLabels) and to set values, plus a DatagramSocket and RTP/JPEG
assembler for the stream. The stream provides the frames, zoominfo and the
focalvalue bounds.
GPL-3.0-or-later (same as oly-imageshare).