Introducing a new way to review your PRs.

Read the announcement

shmykelsa / aaad

The original application for downloading and installing apps made specifically for Android Auto outside of Google Play Store. Active since 2021.

View on GitHub

6 documents · Updated Nov 16, 2026

docs / resources-localization-and-assets

Resources, Localization, and Assets

Overview

This area owns AAAD's Android resource layer outside layout-specific UI flow docs: theme and value definitions under app/src/main/res/values*/, reusable drawable XML and bitmap assets under app/src/main/res/drawable*/, bundled fonts under app/src/main/res/font/, launcher assets under app/src/main/res/mipmap-*/ and app/…/ic_launcher-playstore.png, and XML resource configuration under app/src/main/res/xml/.

The default resource set in app/src/main/res/values/ is the canonical source for resource names. app/…/strings.xml defines the English fallback strings and plurals for the app name, payment/pro copy, app catalog descriptions, onboarding, install/update states, self-update prompts, support email flow, license transfer, server-side download authorization, and Android Auto setup guide. Locale folders such as app/…/strings.xml, app/…/strings.xml, and app/…/strings.xml provide partial or full translations for the same keys; Android falls back to values/strings.xml when a localized key is absent. app_name and long HTML credit blocks such as about_part_two / about_part_three are marked translatable="false" in the base file where they should not be localized.

The app theme is declared in app/…/themes.xml as Theme.AA_Apps_Downloader, a Theme.Material3.DayNight.NoActionBar theme wired to light Material 3 color tokens from app/…/colors.xml. The night override in app/…/themes.xml keeps the same theme names but points them at dark Material 3 color tokens, so manifest entries can use one style name for both modes. Theme.AA_Apps_Downloader.DynamicColors exists in both light and night theme files for Android 12+ dynamic color use, while AppTheme remains as a legacy compatibility style. app/…/AndroidManifest.xml applies @style/Theme.AA_Apps_Downloader at the application and major activity level, and uses @string/app_name, @mipmap/ic_launcher, and @mipmap/ic_launcher_round for launcher identity.

Shared component styling lives in app/…/styles.xml. It defines Raleway-backed text appearances, ButtonStyle with @drawable/button_background, menu colors, the bottom-sheet shape chain (BottomSheet and BaseBottomSheetDialog), Material image shape appearances, a tonal button override, and status chip styles. Dimensions that are reused by screens and cards live in app/…/dimens.xml, including round-device inset padding, card stroke widths, category spacing, and bottom padding for FAB clearance.

Drawable resources are small reusable building blocks. app/…/button_background.xml is a rippled rounded gradient button background using legacy colorPrimary / colorPrimaryDark; dialog_background.xml and bottom_sheet_bg.xml use bottomcolor, centercolor, and topcolor, which have night overrides in app/…/colors.xml; gradient_background_download_remainings.xml is a translucent gradient ripple for the downloads-remaining surface. app/…/w2.jpg and app/…/w3.jpg are bitmap art resources. Launcher foreground/background vectors are present in app/…/ic_launcher_foreground.xml, app/…/ic_launcher_foreground.xml, and app/…/ic_launcher_background.xml, but the adaptive launcher XML under app/src/main/res/mipmap-anydpi-v26/ points to @mipmap/ic_launcher_foreground plus @color/ic_launcher_background, with density-specific PNGs in each app/src/main/res/mipmap-*dpi/ folder.

The only XML resource configuration currently covered here is app/…/paths.xml. It is consumed by the androidx.core.content.FileProvider declaration in app/…/AndroidManifest.xml, whose authority is sksa.aa.customapps.fileProvider. The file provider exposes the app's internal files directory, cache directory, and external storage root using <files-path path="."/>, <cache-path path="."/>, and <external-path path="."/>; runtime code can then generate content URIs for downloaded APKs or support attachments without adding file-path XML elsewhere.

Route changes by resource family: string additions and copy edits belong in app/…/strings.xml first, with locale folders updated when translations are available; theme-wide color or Material token changes belong in app/…/colors.xml, app/…/colors.xml, app/…/themes.xml, and app/…/themes.xml; reusable XML backgrounds and shape styles belong in app/src/main/res/drawable*/ plus styles.xml; launcher identity changes must cover the mipmap density PNGs, adaptive icon XML, app/…/ic_launcher_background.xml, and the Play Store icon. Detailed screen layout behavior should stay with the relevant activity/dialog docs; this doc should only explain the shared resource contract those screens consume.

Coupling

Risks

  • Localization drift is easy in app/…/strings.xml: history shows repeated translation merge commits (ed43d74, f8f4d24, 9c8fe83) and many localized files do not mirror the full base app/…/strings.xml set. If a new UI string is only added to the base file, localized users will see mixed-language UI; if a translated formatted string loses a placeholder, the caller can fail at runtime.
  • The FileProvider surface in app/…/paths.xml grants broad roots (files, cache, and external_files all use path="."). If install or support-email code shares the wrong file through authority sksa.aa.customapps.fileProvider in app/…/AndroidManifest.xml, the provider configuration will not narrow it to a dedicated APK or logs subdirectory.