Skip to content

About

Unofficial printing app for KHG dormitory residents — submit print jobs from your phone (Android). Tested in one dorm so far; report issues on GitHub.

Topics

Resources

Security policy

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

PrintInKHG — Android Studio prototype

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.

What it does

  • 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.

Run

  1. Install Android Studio and the Android SDK for API 35; use JDK 17.
  2. Unzip and open the KHGPrintPrototype folder in Android Studio.
  3. 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.
  4. Connect Android to KHG-WiFi. Select the connected Android device in Studio and press Run.
  5. Enter your KHG username/password. Tap Check IPP printer capabilities before attempting a print.
  6. If successful and application/pdf is listed, try a one-page PDF using Choose PDF to print.

Current UI architecture

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 prototype
  • build: add reproducible Gradle wrapper
  • feat(print): support page ranges and print options
  • feat(ui): migrate screens to Compose Material 3
  • polish(identity): add KHG launcher logo and app icon

Resident setup and support

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:

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.

Important limitations

  • 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.

Technical references

About

Unofficial printing app for KHG dormitory residents — submit print jobs from your phone (Android). Tested in one dorm so far; report issues on GitHub.

Topics

Resources

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages