Skip to content
maxhayimPublic

About

A photoreal virtual car stereo for Android head units, with your own vehicle branding: logos, badges, illumination and startup. Offline, no root, Android 4.4+.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

2 stars

Watchers

1 watching

Forks

Repository files navigation

RetroDeck Logo

A retro car stereo for Android head units, branded to match your own vehicle

Android 4.4+ License 35 skins 1024x600 and up Network: GIPHY search and update checks

RetroDeck

RetroDeck is an open-source virtual car stereo for Android head units. It turns the head unit's screen into a period faceplate, one of 35 skins from a 1965 chrome radio to a 2013 touch screen, each modelled in 3D after the stereos of its time. It plays your own music, and when the head unit's radio, Bluetooth audio or another music app plays, it shows that song and controls that app instead, with a visualizer that follows what you hear.

Its Vehicle Branding module makes it yours: your car's manufacturer and model, your own logos on the faceplate and display, a startup sequence that lights up your badge, a station chime when it comes on, and illumination that matches your dashboard. Themes travel between head units as branding packs.

There is no account and no cloud service, and it needs no root and no Google Play Services. RetroDeck goes online only while you search GIPHY for a visualizer animation, and to check GitHub for a new version of itself, which you can switch off. It ships with no car logos: you import your own.

Screenshots

Most clips were recorded from the running app on a TV playing a song: the visualizer follows the music, the display shows the song's own title and artist, and the knob turns as the volume goes up and back down. B110 Factory 1971, its Modern remake, R34 Factory 1999, CP 2013 and the seven factory units of 2005 to 2012 show Blender renders of the skin by day and by night until they're recorded too. Each clip starts by day and fades to night. Every skin has its own page in themes, with more screenshots and day and night renders.

The Classic 1985 skin playing, fading between day and night
Classic 1985, a single-DIN radio set into the dash, with the visualizer screen above it: brushed aluminium, a spun-metal knob, a fluorescent display and a cassette door

Single DIN

Chrome 1965, playing, fading between day and night
Chrome 1965: a 1960s-style radio with a thick chrome frame, a black face ribbed in silver, big knurled chrome knobs, fluted chrome push-buttons and a window lit blue-white, with no visualizer
Chrome 1965 Modern, playing, fading between day and night
Chrome 1965 Modern: the same radio as made again today, with black keys and a visualizer
B110 Factory 1971, fading between day and night
B110 Factory 1971: an early-1970s factory radio, woodgrain and chrome, with a slide-rule dial whose red needle moves with the song
B110 Factory 1971 Modern, fading between day and night
B110 Factory 1971 Modern: the same radio as made again today, in black, with a visualizer
Amber Glow 1982, playing, fading between day and night
Amber Glow 1982: in the style of the early 1980s, matt black with a red segment display, a knob in a ring lit orange and orange legends that glow at night
Heritage 1983, playing, fading between day and night
Heritage 1983: in the style of the early 1980s, with clear red presets that glow and an orange dot-matrix display
Hi-Fi 1984, playing, fading between day and night
Hi-Fi 1984: black anodised aluminium, champagne print, slim keys and tape switches
Split Tone 1986, playing, fading between day and night
Split Tone 1986: split tone keys either side of an open cover over a card slot, a four-way pad and an amber dot-matrix display
Tape Deck 1987, playing, fading between day and night
Tape Deck 1987: a cassette deck with a green-lit LCD, tone sliders and clear presets that glow green at night
Matte CD 1988, playing, fading between day and night
Matte CD 1988: matt black with a CD slot, a knob in a chrome ring and a white dot-matrix display
Digital 1996, playing, fading between day and night
Digital 1996: grained plastic, rubber keys and a dot-matrix display
Detachable 1998, playing, fading between day and night
Detachable 1998: curved graphite with chrome trim, a big encoder and bars that shade into the accent colour
Bluetooth 2016, playing, fading between day and night
Bluetooth 2016: gloss black, a big knob in a lit ring and keys edged with light strips that glow in the dash colour at night
Red Line 2019, playing, fading between day and night
Red Line 2019: matt black with a red segment display, a knob in a red ring and keys that light red at night

Double DIN

EQ Stack 1989, playing, fading between day and night
EQ Stack 1989: a silver equaliser over a CD unit, its bars yellow under blue with red peaks, and an orange display
Z32 Factory 1990, playing, fading between day and night
Z32 Factory 1990: satin black plastic and gloss doors by day; at night backlit legends, and the display's icy blue behind smoked plum glass
Level Meter 1991, playing, fading between day and night
Level Meter 1991: one big window, an orange readout over a cyan spectrum analyser
Trio Stack 1993, playing, fading between day and night
Trio Stack 1993: three black units with mint green keys and a green equaliser
A80 Factory 1994, playing, fading between day and night
A80 Factory 1994: charcoal plastic and olive grey displays by day; at night the displays and legends lit lime green
Spectrum 1997, playing, fading between day and night
Spectrum 1997: a silver receiver over a CD player whose window is a spectrum analyser
R34 Factory 1999, fading between day and night
R34 Factory 1999: a navigation unit over a CD and MD changer control, titanium grey in a dark brushed panel; the small LCD olive by day and lit amber at night
Multi Control 2000, playing, fading between day and night
Multi Control 2000: nearly all display, its bars fanned round a half circle in blue
Twin Dial 2001, playing, fading between day and night
Twin Dial 2001: two round green dials in a wide silver frame, ringed with spokes that follow the music
Rainbow 2002, playing, fading between day and night
Rainbow 2002: a silver unit with an in-dash CD changer, its bars running through the rainbow from the bass to the treble
Blue Matrix 2004, playing, fading between day and night
Blue Matrix 2004: dark chrome, nearly all display, a big blue dot-matrix window over slim keys and two big polished knobs
N70 Factory 2005, fading between day and night
N70 Factory 2005: a mid-2000s factory CD unit, black, its top arched over the disc slot, a big reflective LCD lit green at night between a TUNE·FILE knob and a PWR·VOL knob, presets, and source keys with a track rocker
E150 Factory 2008, fading between day and night
E150 Factory 2008: a late-2000s factory CD unit, black, a reflective LCD lit amber at night between a TUNE·FILE knob and a PWR·VOL knob, white presets, phone keys and rockers down both sides
S35 Factory 2008, fading between day and night
S35 Factory 2008: a factory unit with a 6-disc changer, charcoal plastic, an orange display between SEEK·TRACK and TUNE rockers, and the presets and source keys split by a raised, chrome-ringed PWR·VOL knob
RES Factory 2008, fading between day and night
RES Factory 2008: a factory radio fitted to many models from 2008 to 2013, a wide black face with a row of keys across the top, a knurled, chrome-rimmed knob each side, source keys round a dot-matrix display lit teal, and the presets along the foot
XP90 Factory 2009, fading between day and night
XP90 Factory 2009: a factory CD unit in silver grey, a reflective LCD lit green at night, slim silver presets, and two big knobs in knurled chrome rings at the foot
N70 Factory 2011, fading between day and night
N70 Factory 2011: a factory unit, black, a colour screen with three presets either side of it, keys outside them, and knobs in the top corners
N70 Factory 2012, fading between day and night
N70 Factory 2012: a factory touch-screen unit, gloss black, a volume knob and keys down the left, and the song, transport buttons and a list of presets on the screen
CP 2013, fading between day and night
CP 2013: a 2013 touch screen, the song in thin white type on black glass, and a shelf of cyan keys
Modern Glass, playing, fading between day and night
Modern Glass: one sheet of black glass over the display
The full-screen visualizer on Z32 Factory 1990, A80 Factory 1994 and Modern Glass, following the music
Full screen: hold DISP, or leave it playing, and the visualizer takes the whole screen in the display's own lettering. Here it steps through Z32 Factory 1990's icy blue, A80 Factory 1994's lime and Modern Glass, following the song.

Settings

Settings → Personalization → Vehicle Branding, with the live preview
Settings → Personalization → Vehicle Branding, with the live preview
Adjusting the model badge: rotation and brightness, shown on the stereo as you go
Adjusting the model badge: rotation and brightness, shown on the stereo as you go
Placing logos in the skin's branding zones (the dashed boxes)
Placing logos in the skin's branding zones (the dashed boxes)
Dashboard illumination:
Dashboard illumination: "From logos" takes the blue from the Halcyon logo
The incandescent-glow startup, partway through
The incandescent-glow startup, partway through
The standby screen
The standby screen
Two vehicle profiles, one imported from a branding pack
Two vehicle profiles, one imported from a branding pack
Importing a branding pack
Importing a branding pack

Screen grabs from the running app on an Android TV box set to 1920×1080 at 240 dpi, like a 1280×720 HD head unit. Nothing is mocked up or retouched. "Halcyon Motor Co." and the "Mesa GT" are made up for these screenshots; their artwork is in docs/demo, with more made-up brands (Takane Motors, MIZAR, Kazetone, ryusei) and a branding pack that puts them on the Z32, Hi-Fi and Detachable skins.

Features

The stereo

  • Thirty-five skins, modelled in 3D after the stereos of their era, with no brand names on them. Vehicle Branding → Radio Skin shows them as a gallery drawn at your screen's shape, filtered by single or double DIN and by decade, with the ones that fill your screen marked.
    Single DIN. On a single-DIN head unit's own wide screen (about 8:3, such as 1280×480 or 1920×720) the radio fills the screen. On a bigger screen it sits at its real slim shape across the lower half, set into the dash, with a screen above it for the visualizer, the song and the clock:
    • Chrome 1965: a thick chrome frame, a black face ribbed in silver, two big chrome knobs, fluted chrome push-buttons and a blue-white window, in the style of the 1960s, with no visualizer
    • Chrome 1965 Modern: the same radio as made again today, with black keys and a visualizer
    • B110 Factory 1971: a small saloon's factory radio of the early 1970s, a woodgrain face in a chrome edge, a slide-rule dial lit warm with a red needle that moves along the scale as the song plays, five black push-buttons and two black knobs, with no visualizer
    • B110 Factory 1971 Modern: the same radio as made again today, in black, its dial pale green with an amber needle, and a visualizer
    • Amber Glow 1982: matt black, a red segment display, a panel of ports, a knob in a ring lit orange and keys whose legends glow orange
    • Heritage 1983: a knob in a ring lit red, presets in clear red, and a flip-down cover over an orange dot-matrix display
    • Hi-Fi 1984: a black anodised Japanese hi-fi deck with champagne print, slim keys, an amber display and tape switches
    • Classic 1985: brushed aluminium, a spun-metal knob, a fluorescent display and a cassette door
    • Split Tone 1986: split tone keys, an open cover over a card slot and USB port, a four-way pad and an amber dot-matrix display
    • Tape Deck 1987: a black cassette deck with tone sliders, a green-lit LCD with dark digits and presets that glow green
    • Matte CD 1988: matt black, a CD slot, a knob in a chrome ring, a white dot-matrix display and red-printed keys
    • Digital 1996: grained plastic, rubber keys and a dot-matrix display
    • Detachable 1998: a curved graphite faceplate with chrome trim, a big encoder and a colour display
    • Bluetooth 2016: gloss black, a big knob in a lit ring, keys edged with light strips and a blue segment display
    • Red Line 2019: matt black, a red segment display, a knob in a red ring and keys with red legends
    Double DIN, filling the screen:
    • EQ Stack 1989: a silver graphic equaliser, its bars yellow under blue with red peaks, over a CD unit with an orange fluorescent display and mint green keys
    • Z32 Factory 1990: a car maker's tuner and tape deck over a three-disc changer, set into a carbon-look dash, with a fluorescent display behind black glass; the tape keys double as presets
    • Level Meter 1991: a black unit with one big window, an orange readout over a cyan spectrum analyser
    • Trio Stack 1993: three black units, an equaliser with green bars, a disc changer controller and a head unit, with mint green keys
    • A80 Factory 1994: a car maker's CD and tape unit in charcoal plastic, with a strip display numbering the presets and a reflective LCD, olive grey by day; at night the displays and legends glow lime green
    • Spectrum 1997: a silver receiver over a CD player whose window is a spectrum analyser, white bars under a green line and blue above
    • R34 Factory 1999: a car maker's navigation unit over a CD and MD changer control, titanium grey in a dark brushed panel, with a joystick, light grey source keys and a small reflective LCD, olive by day and lit amber at night
    • Multi Control 2000: nearly all display, a big blue fluorescent window whose bars fan round a half circle
    • Twin Dial 2001: two round green fluorescent dials in a wide silver frame, each ringed with fine spokes that follow the music, the volume on the left and the track on the right
    • Rainbow 2002: a silver unit with an in-dash CD changer, its wide window's bars running through the rainbow from the bass to the treble
    • Blue Matrix 2004: dark chrome, nearly all display, a big blue dot-matrix window over a strip of slim keys and two big polished knobs
    • N70 Factory 2005: a mid-2000s factory CD unit, black, its top arched over the disc slot, a big reflective LCD lit green at night between a TUNE·FILE knob and a PWR·VOL knob, presets, and source keys with a track rocker
    • E150 Factory 2008: a late-2000s factory CD unit, black, a reflective LCD lit amber at night between a TUNE·FILE knob and a PWR·VOL knob, white presets, phone keys and rockers down both sides
    • S35 Factory 2008: a factory unit with a 6-disc changer, charcoal plastic, an orange display between SEEK·TRACK and TUNE rockers, and the presets and source keys split by a raised, chrome-ringed PWR·VOL knob
    • RES Factory 2008: a factory radio fitted to many models from 2008 to 2013, a wide black face with a row of keys across the top, a knurled, chrome-rimmed knob each side, source keys round a dot-matrix display lit teal, and the presets along the foot
    • XP90 Factory 2009: a factory CD unit in silver grey, a reflective LCD lit green at night, slim silver presets, and two big knobs in knurled chrome rings at the foot
    • N70 Factory 2011: a factory unit, black, a colour screen with three presets either side of it, keys outside them, and knobs in the top corners
    • N70 Factory 2012: a factory touch-screen unit, gloss black, a volume knob and keys down the left, and the song, transport buttons and a list of presets on the screen
    • CP 2013: a touch-screen head unit as the first phone-driven car screens were shown, the song in thin white type on black glass with on-screen transport keys and a progress bar, and a shelf of cyan VOL keys, an amber-ringed power knob and a home key
    • Modern Glass: one sheet of black glass over the display
    Keys a real unit had but RetroDeck doesn't need (FM/AM, TUNE, DISC SELECT, tape switches) are there for the look and do nothing.
  • Music in other apps, found by itself: when the head unit's radio, a music player, Bluetooth audio or another app plays, the stereo switches to it. It shows the app as the source (RADIO, BT or the app's name) with the song's title and artist, its keys play, pause and skip in that app, and the visualizer follows what the head unit plays. SRC lists the head unit's radio and music apps, and RetroDeck's own music to switch back. RetroDeck's music and the other app pause each other, as two players do.
  • Your own music: audio files from the device, picked with SRC or dropped into RetroDeck's music folder.
  • Presets 1–6: a favourite song on each. Tap to play it; hold for a moment to save the song that's playing, like saving a radio station.
  • Volume, found by itself: the knob uses Android's music volume, or the volume of whatever is playing where a head unit keeps its radio on another, and says USE THE CAR'S VOLUME where the head unit allows neither.
  • Live visualizer: spectrum bars, a level ladder or an oscilloscope, drawn from the sound the head unit plays, in the display's own style (segments, dot matrix, fluorescent, LCD). DISP cycles them.
  • Full-screen visualizer: the visualizer (or your GIF) over the whole screen, with the song and clock along the bottom. Hold DISP or press a key set to it, or let it come on by itself after a while without a touch while music plays (Settings → Display; off until you choose a time). A touch or key brings the stereo back; media keys and presets keep working while it shows.
  • Animation visualizer: any GIF on the display, like the animated displays of late-1990s head units. Search GIPHY from the head unit, or import a GIF file (up to 800 pixels a side, 500 frames and 8 MB). It runs faster when the music is busy and stops when the music is paused; it can glow in the display's own colour or keep its colours, and fill the visualizer strip or the whole display behind the track text.
  • Song titles in any script: segment and dot-matrix displays show Japanese, Hebrew, Russian and other titles, with wide characters taking two cells, right-to-left text in order, and long titles scrolling.
  • Key lighting: the key legends light up at night and are plain printed paint by day, like keys that come on with the headlights, and the faceplate goes dark around them. Auto switches by the clock (lit from 19:00 to 07:00); Always on and Off are there too.
  • Melody box: a short station chime, like the melodies Japanese train platforms play, when the stereo comes on. Four original tunes (Departure, Morning Line, Harbour, Last Train) on a synthesized bell, or your own sound files. A shut-down chime can be switched on too (Settings → Audio).
  • Buttons: every key on the stereo works by touch, and any head-unit, steering-wheel or remote key can be given any action (play/pause, next, previous, volume, mute, a preset, SRC, DISP, the full-screen visualizer, power, Settings) under Settings → Buttons. Media keys, Menu and the number keys 1–6 work out of the box; any key wakes the stereo from standby.

Vehicle Branding

  • Vehicle profiles: any manufacturer, model, year and trim, typed in (no online database); create, duplicate, switch and delete profiles without reinstalling.
  • Your own logos: a manufacturer logo, a model badge and an audio brand logo (the sound system's or stereo maker's), imported as PNG, JPEG, WebP or SVG, transparency kept.
  • Logo editor: crop, rotate, opacity, brightness and colour tint, all non-destructive; aspect ratio always kept unless you turn it off.
  • Placement: put each logo in the radio display header, the LCD, the faceplate, a corner badge, behind the visualizer, on the startup screen or on the standby screen; drag it or use sliders, with a live preview before saving.
  • Branding zones: every skin declares where branding may go, and a logo can never leave its zone, so it never covers a button or the track text.
  • Startup sequence: black screen, your logo lights up, the model badge appears, the dial lamps power on and the LCD types a greeting ("HELLO" and the car's name, or your own text in any language), then the stereo. Six styles (incandescent glow, 1980s green LCD, 1990s digital scan, CRT power-on, modern fade, minimal instant), 1–6 seconds or off; a tap skips it.
  • Dashboard illumination: amber, green, blue, red, white, any RGB colour, or a colour taken from your logos, on the keys, display, visualizer and volume dial; plus an accent colour.
  • Your own colours for the visualizer, the background behind it, and the radio itself: the radio's greys and blacks take the colour keeping their shading, while its displays, lamps and print keep theirs.
  • Branding packs: export one or all profiles as a ZIP, with their logos, GIF, screenshots and a video, and import them on another head unit, offline. Packs are checked before anything is imported. A pack opens straight into RetroDeck from a file manager, LocalSend or a chat app.
  • Record a video (Android 6 and newer): a silent tour of your theme to share, drawn by the app as it records: the startup animation, the stereo by day and by night with the playing song's title scrolling, the full-screen visualizer and standby. About 40 seconds, saved as an MP4 in Movies/RetroDeck, with a Share button; full HD where the head unit's encoder allows, otherwise 720p.

The app

  • Updates: Off, Notify only or Automatic (Settings → Updates; Notify only to start with). RetroDeck checks GitHub every few hours while it's open. Notify only says once when there's a new version, to install from Settings. Automatic also downloads it and installs it when you switch the stereo off with PWR or the head unit's screen goes off, never while music plays. Android 12 and newer install without asking once RetroDeck has updated itself once; older Android asks for one tap. An update signed with a different key is refused.
  • Diagnostics (Settings → About → Diagnostics): one page that shows what RetroDeck finds on your head unit, to share as text in a bug report. It lists the device and Android version (no serial number, MAC or IP address, or accounts), the permissions, every app that says what it's playing, the radio and music apps SRC lists, whether the visualizer hears the head unit, and how the volume answers. Buttons on the page test the media keys and the volume.
  • Old head units: Android 4.4 and newer, large images downsampled on import, 512 px logos on low-memory devices, the static faceplate drawn once and cached.

Requirements

  • An Android head unit, tablet or phone on Android 4.4 (KitKat) or newer, landscape; designed for 1024×600 and up, including the wide 8:3 screens of single-DIN head units (1280×480, 1920×720)
  • Android 5 or newer for song titles from other apps, and Android 6 or newer to record a video
  • Your own logo images, if you want logos (names alone work too)
  • To install: the APK on a USB stick or SD card and a file manager on the head unit, LocalSend, or a computer with ADB

Permissions

PermissionWhat it's for
Record audioThe visualizer reads the sound the head unit is playing, never the microphone. Asked once; without it the bars move on their own.
Notification accessLets RetroDeck see which app is playing and what song. It reads only the players' song information, never your notifications. Offered once, the first time music plays in another app; without it the keys are sent as media keys.
InternetGIPHY search and update checks only.
Install packagesInstalling RetroDeck's own updates.

Installation and Setup

From a release (recommended)

  1. Download RetroDeck-x.y.z.apk from the latest release.
  2. Copy it to the head unit (USB stick, SD card or LocalSend) and open it with a file manager, allowing installs from unknown sources if asked, or install it from a computer:
    adb install -r RetroDeck-x.y.z.apk
    

After that, RetroDeck updates itself from Settings → Updates. Every release is signed with the same key and installs over the one before, keeping your profiles and logos.

From source

JDK 17 and Android SDK platform 35:

./gradlew assembleDebug                       # app/build/outputs/apk/debug/app-debug.apk
./gradlew test lint                           # JVM tests, and lint for anything newer than Android 4.4

Usage

The stereo

Each skin lays out and labels its keys its own way, like the unit it's modelled on. On A80 Factory 1994, for example, CD is SRC and EQ is MENU, and on CP 2013 the transport keys are on the screen.

ControlWhat it does
PWRStandby: a black screen with the clock and your standby logo. Tap anywhere or press any key to turn it back on.
SRCChooses what plays: RetroDeck's music, or one of the head unit's radio and music apps. Also adds music files.
|<< PLAY >>|Previous (or back to the start of the track), play/pause, next, in RetroDeck's music or the app that's playing.
1–6Tap to play the song saved there; hold to save the song that's playing.
Knob or VOL−/VOL+Drag the knob up or down, or tap its top or bottom half. Sets the volume the head unit answers to.
DISPCycles the visualizer: spectrum bars, level ladder, oscilloscope, animation (if you've chosen one), off. Hold it for the full-screen visualizer.
MENUSettings.

Settings

SectionWhat's in it
PersonalizationVehicle Branding (below).
AudioThe start and shut-down chimes, the music files, and clearing the music list.
DisplayWhen the full-screen visualizer comes on by itself.
ButtonsHead-unit and steering-wheel keys: press a key, then pick its action.
UpdatesOff, Notify only or Automatic, and Check for updates now.
AboutThe version, Diagnostics, privacy and open-source notices.

Settings → Personalization → Vehicle Branding

RowWhat it does
Vehicle ProfilesSwitch, create, duplicate or delete profiles.
Manufacturer, Model, Model Year, Trim or EditionAny names you like; the year is four digits.
Import Manufacturer Logo / Model Badge / Audio Brand LogoPick an image, then adjust it. Tap again to replace, adjust or remove it.
Adjust Logo ImageCrop, rotation, opacity, brightness, tint and aspect ratio.
Edit Logo PlacementChoose a zone and a logo, then show it, size it and drag it into place.
Radio SkinThe skin gallery.
Visualizer, AnimationThe profile's visualizer, and a GIF from GIPHY or a file.
Dashboard Illumination, Accent Colour, Key LightingPreset colours, RGB sliders or the colour of your logos, and when the key legends light up.
Visualizer Colour, Visualizer Background, Radio ColourRGB sliders or the colour of your logos, or the skin's own. The background is behind the full-screen visualizer and the screen above a single-DIN radio.
Startup AnimationStyle, length, the power-on and LCD steps, the greeting, or off. Plays as you choose.
PreviewThe whole thing full screen: startup, stereo and (with PWR) standby.
Record a VideoThe silent tour of your theme, saved to Movies/RetroDeck.
Import/Export Branding PackZIP files with profiles, logos, GIFs, screenshots and a video.
Restore DefaultsReset this profile's layout, colours, skin and startup (names and logos stay), or delete everything.

Head units without a file picker

The easy way: install a file manager. We suggest Amaze File Manager: free, open source (GPL-3.0), on Google Play and F-Droid, and it runs on Android TV. Its current version needs Android 6.0; v3.10 runs on Android 4.4. With it installed:

  • RetroDeck uses it as its file picker for songs, logos, GIFs and packs, with no setup.
  • A branding pack opens straight into RetroDeck: in Amaze, open the ZIP's ⋮ menu → Open with → Other → Import into RetroDeck. (Tapping it opens Amaze's own ZIP viewer.) RetroDeck asks before importing.
  • Its FTP server lets you drop files on the head unit from a computer over Wi-Fi.

Packs sent with LocalSend open the same way, and so do ZIPs shared from a chat app.

Some head units and Android TV builds have no working file picker, or one that only shows photos (so SVG logos and ZIP packs can't be picked). RetroDeck then also lists the images, GIFs and packs in its own import folder, and songs in its music folder (press SRC). Neither needs a storage permission:

Android/data/com.maxhayim.retrodeck/files/import/
Android/data/com.maxhayim.retrodeck/files/music/

The import folder appears the first time you open an import list, and the music folder the first time you press SRC. Copy files into it with a file manager or a USB cable. On Android 11 and newer, file managers may not show Android/data, and adb push straight into it can fail, so push to Download first and copy from there:

adb push halcyon-logo.svg /sdcard/Download/
adb shell cp /sdcard/Download/halcyon-logo.svg /sdcard/Android/data/com.maxhayim.retrodeck/files/import/

Without a picker, exports go to Download/RetroDeck/ on Android 10 and newer, and to files/export/ beside the import folder on older versions.

How It Works

RetroDeck is plain Java in three Gradle modules, and its only library is AndroidSVG:

ModuleWhat's in it
coreSkins and their branding zones, the rendered faceplates, the stereo renderer (StereoView), the display fonts and text, the visualizer maths, the GIF decoder, illumination colours, the RetroDeckModule interface and the shared settings look.
brandingThe Vehicle Branding module: profiles and storage, logo import and editing, placement, the skin gallery, the startup sequence, GIPHY, video recording and branding packs. It draws into the stereo through StereoView.Overlay, so the stereo doesn't depend on it.
appThe shell: the stereo screen, the music player, following other apps (OtherApps), the live visualizer (LiveLevels), the melody box, updates, Diagnostics, and Settings, which lists the rows each registered module asks for.

Skins. Each skin lays out its controls, display and zones as fractions of the screen (Skins.java). The faceplates are modelled and lit in Blender (tools/blender) from that same layout, rendered by day, by night and with keys pressed, and shipped as WebP images in core/src/main/assets/skins. The app draws the displays, the visualizer, the knob and your logos over them as it runs, and tints the night legends with your illumination colour.

Branding zones. A logo is fitted into its zone with its aspect ratio kept, scaled by at most 100 % and clamped inside the zone. A unit test checks that no zone of any skin touches a button, the knob, the presets or the track text.

Other apps. With Notification access, RetroDeck reads the media sessions other apps publish: who's playing, the title and artist, and which keys the app takes. It switches to an app when it starts playing and back when it stops. Without that access it can still tell that something is playing, and sends the keys as media keys. The visualizer reads the head unit's output mix while following another app.

Images. An imported file is copied to a temporary file (25 MB limit), recognised by its content, decoded with a power-of-two sample size so a huge photo never loads at full size, turned upright from its EXIF data, scaled to 1024 px (512 px on low-memory devices), trimmed of transparent margins and saved as PNG in the profile's folder. SVGs are drawn by AndroidSVG at that size. Crop, rotation and colour edits are applied when drawing and cached, so the stored image never changes.

Storage. Profiles are one JSON file in the app's private storage, written atomically; logos are PNG files next to it, and animations are GIF files kept as they came in. Nothing is sent anywhere except by GIPHY search and update checks. While GIPHY's screen is open, the words you search for and RetroDeck's API key go to GIPHY, and the pictures come from GIPHY's servers over HTTPS. Unless Updates is Off, RetroDeck asks GitHub for its latest release every few hours while it's open, and downloads the APK from GitHub when you install it or in Automatic. Those are the only uses of the INTERNET permission.

Startup. The sequence is a pure function of time (StartupTimeline), drawn over the stereo, which is already running underneath; a tap skips it and it never runs longer than six seconds. Each frame only draws the cached logo bitmaps with alpha and colour filters on a hardware layer.

Branding pack format

my-vehicle.zip
├── manifest.json        {"format": "retrodeck-branding-pack", "formatVersion": 4, "name": ..., "profiles": [...], "video": ...}
└── assets/
    ├── p0-manufacturer.png
    ├── p0-model.png
    ├── p0-audio.png
    ├── p0-animation.gif
    ├── p0-screenshot-day.png
    └── tour.mp4

Each profile in profiles holds the names, palette (illumination, custom and accent colours, and the visualizer, screen and body colours when set), skin, visualizer, key lighting, startup settings, logo adjustments, placements per zone, "assets" for its logos and animation, and "screenshots". A pack is written at the lowest format version that holds what's in it (2 with an animation, 3 with an audio brand logo, 4 with a video), so an older RetroDeck says it needs an update instead of dropping what it doesn't know. Unknown fields are ignored; a newer format version is refused. Before importing, RetroDeck checks:

  • only manifest.json and assets/*.png|jpg|jpeg|webp|svg|gif|mp4; anything else (a script, an APK) fails the pack, and nothing in a pack is ever run
  • no .., absolute paths, backslashes or drive letters (zip slip)
  • sizes counted while unpacking (40 MB packed, 8 MB a file, 20 MB for the video, 48 MB in all, 40 files, 16 profiles), so a zip bomb stops early
  • each image's real format matches its extension, and its header says at most 4096 pixels a side
  • SVGs have no DOCTYPE or entities, scripts, embedded HTML or external links
  • every value is put back in range; unknown skins, presets and colours get defaults

Logos from a pack are decoded and saved again as new PNG files, like a picked image. Screenshots and the video are shown before importing and are not kept. More in SECURITY.md.

Custom themes

Make a theme for a real radio on a computer: a theme file picks the skin and puts each of your logos where the real unit had its marks, and tools/make_pack.py builds it into a branding pack, checked the way RetroDeck checks one, optionally with a video tour (--video). Work in custom-themes: git ignores everything there except its guide, so your logos and packs never reach GitHub; a template is in tools/template-z32.json. Each pack gets screenshots (the stereo by day and by night, the full-screen visualizer and the startup screen), drawn by the app's own importer and renderer, so people can see it before importing it. Packs exported in the app carry the same screenshots, showing the song that's playing.

Logos and Trademarks

Car makers' names and logos are their trademarks, and the logo artwork is usually also protected by copyright. RetroDeck is not affiliated with, endorsed by or sponsored by any car maker or stereo brand.

  • Your own logos, for your own car: import whatever logo you like into your own head unit. That's what the Vehicle Branding module is for.
  • RetroDeck ships no real logos, and its skins carry no brand names. The places where a maker's badge sat on the real units are branding zones that you fill yourself.
  • Screenshots and demos use made-up brands, like Halcyon and the Mesa GT, Takane Motors, and the stereo makers MIZAR, Kazetone and ryusei, all in docs/demo. They are original designs, not copies or look-alikes of real badges: a logo that's confusingly similar to a real one can infringe too.
  • Branding packs include the logos you imported. Only share a pack publicly if you have the right to share its logos, for example ones you made yourself. RetroDeck reminds you of this when you export.
  • Skins modelled on real units copy the period look (materials, layout, key shapes), never brand names or logos. A skin may name a car's chassis code to say what it's modelled on.

This is not legal advice; the rules differ between countries.

Known Limitations

  • RetroDeck has no tuner of its own. The radio, Bluetooth audio and other players are the head unit's own apps, shown and controlled from the stereo. A radio app that publishes no song title shows its name, and one that ignores media keys can't be controlled from RetroDeck's keys.
  • The visualizer follows the music only with the Record audio permission. Without it, or on a head unit whose visualizer gives silence, the bars move on their own (as does an animation's speed).
  • Some head units keep their volume to themselves; the knob then says USE THE CAR'S VOLUME.
  • GIPHY search uses a free key that allows 100 searches an hour for everyone using the same copy of RetroDeck. If it runs out, wait an hour, paste your own free key from GIPHY's developer site, or import a GIF file instead.
  • Animated WebP and GIF logos aren't supported (a GIF can be the visualizer animation instead).
  • SVG support is AndroidSVG's: text uses the device's fonts, and filters and some CSS are ignored. For an exact look, export the logo as PNG.
  • Some head units keep their own status bar or volume overlay on top of full-screen apps, and some video encoders limit recordings to 720p.

Tested On

An Android TV box (MOKA R8G, Android 14, 32-bit ARM), set to 1920×1080 at 240 dpi like an HD head unit, and to 1024×600 at 160 dpi and 1920×720 for single-DIN screens. Driven with a mouse, a remote and adb. Checked there across releases:

  • every skin shown full screen, most of them by day and by night with their keys tapped; the skin gallery; the wide single-DIN layout at 1920×720;
  • playing music from the music folder, presets, the live visualizer following a song, the full-screen visualizer (hold DISP, a key, the idle timer);
  • the melody box at start, wake and shut-down;
  • mapping remote keys under Settings → Buttons;
  • profiles, logo import (SVG and PNG), the logo editor, placement, illumination, the startup styles;
  • GIPHY search and GIF files as the visualizer;
  • exporting and importing packs, a pack with a ../ path being refused, and opening a pack from Amaze;
  • recording a video (720p, the box's encoder limit);
  • self-update, Notify only and Automatic, waiting for PWR before installing.

A car head unit (an aftermarket Android head unit in a car, Android 8.1): RetroDeck runs there, and following its radio and Bluetooth audio was built from what it showed. Song titles, keys and the visualizer with the head unit's own apps, the volume, and Diagnostics are still to be reported from it.

Not tried yet: a 1080p video recording, importing a pack with a video, the greeting text in Hebrew or Russian, Android between 5 and 7, and JPEG and WebP logos on a device (they are covered by the JVM tests).

The JVM tests cover zone layout and overlap, placement and crop maths, colours and colour extraction, image format sniffing, startup timing, profile JSON, pack validation (paths, sizes, formats, dimensions and SVG content), key mapping, display text in any script, finding radio and music apps by name, and the update check.

./gradlew :core:testDebugUnitTest :branding:testDebugUnitTest -Prender also draws every skin with Android's own graphics on your computer (add -Prender.size=1920x1080 for HD) and writes PNGs to core/build/skin-renders and branding/build/branding-renders. It's for checking skin changes without a device; the first run downloads Robolectric's Android runtime.

License

This project is licensed under the MIT License.

See the LICENSE file for details. Full license text: https://opensource.org/licenses/MIT

Contributing

Pull requests are welcome, and new skins especially. Open an issue first to discuss ideas or report bugs. See CONTRIBUTING.md and the Code of Conduct.

Related Projects

Acknowledgments

SVG rendering by AndroidSVG by Paul LeBeau (Apache License 2.0). Segment display characters by DSEG by keshikan (SIL Open Font License 1.1, included in core/src/main/assets/fonts). Key legends of the rendered skins are set in Barlow (SIL Open Font License 1.1) and rendered with Blender. RetroDeck is not related to RetroDECK, the emulation front end.
Android™ is a trademark of Google LLC, used here solely to describe compatibility. Vehicle manufacturer and model names and logos are the property of their respective owners; RetroDeck includes none, and you import only images you have the right to use. All other trademarks are the property of their respective owners.

About

A photoreal virtual car stereo for Android head units, with your own vehicle branding: logos, badges, illumination and startup. Offline, no root, Android 4.4+.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

2 stars

Watchers

1 watching

Forks

Releases

Sponsor this project

Packages

Contributors

Languages