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
- If app/…/strings.xml adds, removes, or renames a resource key, check every app/…/strings.xml locale file for stale or missing translations. The localized files are not generated from a single catalog, and Android will silently mix localized text with English fallback text when a locale file omits newer keys.
- If a formatted string in app/…/strings.xml changes placeholders, update the corresponding placeholders in locale files under app/…/strings.xml. Strings such as
about_to_download,next_download_available,status_update_to_version,update_available_message,progress_downloading,progress_installing,version_format, andpercentage_formatare consumed with runtime arguments; mismatched%1$s,%d, or%%tokens can crash formatting or show broken copy. - If
Theme.AA_Apps_DownloaderorAppThemechanges in app/…/themes.xml, mirror the intended night-mode behavior in app/…/themes.xml before changing manifest theme usage in app/…/AndroidManifest.xml. The manifest references the shared style name, so a light-only change can create an unintended dark-mode regression. - If colors
bottomcolor,centercolor,topcolor,dialog_text_color,menu_background, ormenu_text_colorchange in app/…/colors.xml, also check app/…/colors.xml and the drawables/styles that consume them: app/…/dialog_background.xml, app/…/bottom_sheet_bg.xml, and app/…/styles.xml. - If app/…/paths.xml is restricted or renamed, update the
androidx.core.content.FileProvidermetadata in app/…/AndroidManifest.xml and any code constructing URIs for APK installs or support-log attachments. Removing a path can make content URIs fail at runtime even though resource compilation succeeds. - If launcher art changes, keep app/…/ic_launcher.xml, app/…/ic_launcher_round.xml, density-specific app/…/ic_launcher*.png, app/…/ic_launcher_background.xml, and app/…/ic_launcher-playstore.png in sync. Android uses different assets for adaptive launchers, round launchers, legacy launchers, and store listing previews.
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, andexternal_filesall usepath="."). If install or support-email code shares the wrong file through authoritysksa.aa.customapps.fileProviderin app/…/AndroidManifest.xml, the provider configuration will not narrow it to a dedicated APK or logs subdirectory.