Purpose: determine whether the existing KHG CUPS queue will accept direct IPP requests and PDF print jobs from Android without installing a native Linux driver.
- Connects to the hard-coded existing KHG server over verified HTTPS (
https://davinci.khg.jku.at:631/printers/P3055). - Sends an IPP Get-Printer-Attributes request and reports supported document formats, authentication and printer status.
- Lets the user select a PDF using Android's system file picker, confirms the choice and sends it as an IPP Print-Job.
- Uses HTTP Basic credentials only in memory, never written to disk, network URLs or logs.
- No CUPS server runs on Android, and there is no connection to the physical printer IP.
- Install Android Studio and the Android SDK for API 35; use JDK 17.
- Unzip and open the
KHGPrintPrototypefolder in Android Studio. - Sync Gradle. This source distribution does not include a Gradle wrapper JAR; if Studio requires it, generate a wrapper with Gradle 8.9 or copy these app sources into a new Android Studio project with the matching Gradle configuration.
- Connect Android to
KHG-WiFi. Select the connected Android device in Studio and press Run. - Enter your KHG username/password. Tap
Check IPP printer capabilitiesbefore attempting a print. - If successful and
application/pdfis listed, try a one-page PDF usingChoose PDF to print.
The app UI is implemented with Jetpack Compose and Material 3. The flow is split into onboarding, home, printer connection, PDF preparation, print review, and job status screens. Credentials are encrypted with Android Keystore when the user chooses to remember them.
The repository history is organized by milestone:
chore: initialize KHG print prototypebuild: add reproducible Gradle wrapperfeat(print): support page ranges and print optionsfeat(ui): migrate screens to Compose Material 3polish(identity): add KHG launcher logo and app icon
This is an unofficial app made with ♥ by zan-keith: https://github.com/zan-keith
The in-app setup page links to the resident resources below:
- Homepage for residents: https://davinci.khg.jku.at
- KHG-Dormlife: https://khg-dormlife.club/
- Internal mailing list: tratsch@khg.jku.at (residents are automatically assigned)
- Questions or problems: admin@khg.jku.at, or contact one of the admins directly
- App developer help: zankeith.contact@gmail.com
The configured printer endpoint and queue may change over time. If the app stops connecting, check the current KHG instructions or contact an admin; do not assume that the old URL or queue name is still valid.
The app is organized into separate resident-facing pages: Home for starting a print, Connect for network and printer setup, Tutorial for the four-step walkthrough, Settings for login/logout, and About for app behavior, privacy, debug details, and developer information.
Android Back follows the page flow normally. Leaving the PDF preparation screen requires an explicit confirmation so that the current print settings are not lost accidentally.
Newly selected PDFs default to black-and-white and double-sided printing; both settings can be changed before sending.
Privacy and security notes are available in the app under About → EU privacy & data notes and in SECURITY.md. The debug build is intentionally debuggable and is not a production security release.
Since this app is unofficial, KHG administration may not be able to help with app-specific problems. Please raise an issue on GitHub or contact the developer directly at zankeith.contact@gmail.com.
- Not tested on the KHG network, a device, or Android SDK. It is source code, not a tested APK.
- Supports HTTP Basic authentication only. If the server responds with
WWW-Authenticate: Digest, add a correct Digest handler or a vetted compatible IPP client. Never disable authentication. - Uses standard Android certificate verification. Certificate validation failures require an authorized trusted CA configuration, not an unsafe trust-all workaround.
- Uses HTTP chunked request streaming for PDF submission; a CUPS configuration that rejects chunked requests may need a fixed Content-Length fallback.
- The minimal IPP response parser handles ordinary primitive attributes but not collection-valued attributes.
- Does not yet integrate as an Android
PrintService. This is intentional; first prove a direct authenticated IPP Print-Job. - Doesn't implement a print preview, job cancellation, printer queue discovery, job progress polling, duplex controls, or password persistence.
- Only test printing your own documents, with any KHG printing policies or charges in mind.