Skip to content

AMARadio 1.46

Choose a tag to compare

@ounben ounben released this 24 Oct 16:29
· 155 commits to master since this release

[1.46] - 2026-10-23

FOSS: AMARadio_1.46_foss.apk
F-Droid: https://gitlab.com/fdroid/fdroiddata/-/merge_requests/54129

Note: Releases on Google Play and F-Droid may lag behind the latest version.

Get it on Google Play Get it on F-Droid

Added

  • Multi-Tag Filter Engine & Logical Operators: Added support for up to 3 filter tags with dynamic logical operators (AND, OR, NOT) in the local offline database (StationDao.kt), allowing advanced genre filtering (e.g. pop AND 80s, or excluding genres with NOT).
  • Codec & Bitrate Filtering: Added dedicated Codec selection (MP3, AAC, AAC+, OGG, FLAC) and Bitrate selection (32 to 320 kbps) with flexible operators (>=, =, <=) using compact, instant dropdown fields.
  • Multi-Country Selection for Filter Tabs: Implemented MultiSearchableSelectionDialog with checkboxes in the Filter Tab sheet, enabling multi-country selection (e.g., DE, CH, AT) with fast local OR database queries.
  • Local Country Preference in Settings: Added a "Local Country" preference setting allowing users to manually set their preferred local region (e.g. CH, US, ZA, DZ) or stick to System Default. Updates both app tab labels and Android Auto root folders dynamically.
  • Seamless Stream Transfer to Cast: Implemented automatic, seamless stream handoff from local phone speaker to Chromecast when connecting to a Cast device during active playback.

Changed

  • Cast Protocol & Metadata Optimization: Refactored Google Cast loading to use direct RemoteMediaClient.load() with MEDIA_TYPE_GENERIC (0), STREAM_TYPE_LIVE, and exact DB station titles, eliminating Invalid Request errors and stale WebSocket buffers.
  • Unified Cast Logging: Standardized all Cast logging tags across CastManager, CastPlayerWrapper, CastButton, and RadioPlayer to the concise ama_cast_<filename> format ($\le 23$ characters).
  • Standardized UI Dialog Theming: Uniformed all Compose dialogs (History Delete, Custom Station, Sleep Timer, Filter Delete, Proxy Settings) to the standardized AMARadio theme (AmaradioAmber primary actions, SolidRedError delete actions, onSurfaceVariant cancel buttons).
  • Search & Selection Dialog Prioritization: Upgraded search and sorting in category selection dialogs (Tags, Countries, Languages, Codecs) to a 4-tier priority system (Exact $\rightarrow$ Starts With $\rightarrow$ Word Boundary $\rightarrow$ Substring) with station count tie-breaking.

Fixed

  • Whole-Word Tag Matching: Replaced substring LIKE '%tag%' matching in StationDao.kt with exact word boundary matching (instr), preventing partial matches like tag "rap" matching "discography" or "trap".
  • Material 3 TabRow Crash Prevention: Fixed a potential IndexOutOfBoundsException: Index: 0, Size: 0 in SecondaryScrollableTabRow (TabRow.kt:622) during page transitions or tab updates by enforcing non-empty guards and safe index bounds in TabsScreen.kt, HistoryScreen.kt, and StarredScreen.kt.
  • Android 13+ Predictive Back Callback: Added android:enableOnBackInvokedCallback="true" in AndroidManifest.xml to support Android 13+ Predictive Back gestures and eliminate system warnings.
  • Direct App Info Details Navigation: Updated openBatteryOrAppSettings in Utils.kt to launch Settings.ACTION_APPLICATION_DETAILS_SETTINGS with fallback to general settings and toast notification.
  • Selection List Key Uniqueness: Fixed IllegalArgumentException: Key ... was already used in LazyColumn during language/region changes by enforcing unique indexed keys in selection lists.

[1.45] - 2026-10-21

Added

  • Android 17 Local Network Permission: Added ACCESS_LOCAL_NETWORK permission declaration and on-demand permission dialog for Google Cast discovery on Android 17 (API 37).
  • Dynamic Battery Optimization Setting: Added a dynamic warning entry in Settings when background playback is restricted, featuring a prominent red warning icon that disappears automatically once unrestricted access is granted.

Changed

  • 7-Day Database Sync Interval: Configured WorkManager background database update schedule and startup sync threshold to a fixed 7-day interval.
  • Direct System Battery Settings Navigation: Updated battery optimization setting clicks to launch Android's system battery settings via a robust three-tier fallback chain without requiring high-risk manifest permissions.

Fixed

  • Database Broken Station Filtering: Fixed Room entity mapping bug in StationMapper.kt where LastCheckOK was hardcoded to 1, ensuring offline/broken stations (LastCheckOK = 0) are properly filtered out of all lists and search tabs.
  • Playlist Resolution Memory Safety: Fixed a potential OutOfMemoryError in PlayStationTask when parsing large or malformed playlists by enforcing a 128 KB byte limit and catching Throwable errors.

[1.44] - 2026-10-18

Added

  • Google Cast & DLNA Discovery (Android 13–17 & One UI 9): Full integration with AndroidX Media3 Cast and Google Play Services Cast SDK. Added CHANGE_WIFI_MULTICAST_STATE and NEARBY_WIFI_DEVICES permissions to discover remote Chromecast, Smart TVs, and DLNA speakers in local Wi-Fi networks.
  • On-Demand Permission Overlay: Implemented CastButtonWithPermission with a transparent click overlay that requests NEARBY_WIFI_DEVICES (or location permission on legacy Android) strictly on-demand when tapping the Cast button, keeping app startup 100% quiet and pop-up free.

Changed

  • Wi-Fi MulticastLock: Added active WifiManager.MulticastLock management in PlayerService during Wi-Fi playback/scanning, preventing Android 14+ / One UI 9 battery optimization from dropping mDNS/SSDP discovery signals.
  • Favicon & Station Logo Styling: Removed rounded corners from station logos and expanded logo rendering to fill the full height of list items (52dp height) with a clean white background for transparent PNGs.
  • Filter UI Refinement: Streamlined the top sticky filter header button padding by 50% for a sleek, compact layout, and hid the station count display in the country selection dialog.

Fixed

  • CastButton Theme Integration: Wrapped native MediaRouteButton with dynamic ContextThemeWrapper (Theme_AppCompat_NoActionBar vs Theme_AppCompat_Light_NoActionBar) so the Cast icon and picker dialog automatically match Dark and Light mode.

[1.43] - 2026-10-18

Added

  • Complete Localization & Legacy Locale Sync: Comprehensive audit, correction, and translation across all 88 supported languages in values-*/strings.xml, ensuring 100% domain-specific terminology for Internet Radio and Android System UI (including legacy codes values-iw, values-in, values-ji).

Changed

  • UI Theme & Color Standardization: Standardized Material 3 ColorScheme in Theme.kt, forcing all progress indicators, containers, and dialogs to AmaradioAmber and neutral grays, eliminating M3 baseline violet/purple fallback tints.
  • Solid Red Delete Styling: Updated Delete actions and confirmation dialogs with 100% solid, opaque red (SolidRedError #FF3333 / #D32F2F) replacing M3 pastel pink/rosa fallback colors.
  • Security & Cryptography Modernization: Replaced legacy MD5 hashing in Utils.kt with SHA-256 for local feed cache filenames (cache_<sha256>), eliminating security/linter warnings.

Fixed

  • Play/Pause UI Lag & ANR Prevention: Moved audioManager.getStreamVolume() from the Main (UI) thread to Dispatchers.IO in PlayerViewModel, eliminating Binder IPC thread blocks on OPlus/OPPO/OnePlus/Xiaomi devices.
  • Database Asset Cleanup: Cleaned up pre-packaged database assets (radio_browser_database.db), removing duplicate entries and ensuring LastCheckOK = 1.

[1.42] - 2026-10-10

Added

  • Full Backup & Restore (ZIP): Added a complete backup and restore feature in Settings (AMARadio_Backup.zip). Preserves Favorites, Custom Stations, and local station icons ($uuid.jpg), restoring custom stations back to the Custom Tab with full editing capabilities intact.
  • High-Performance GZIP Snapshot Database Sync: Implemented a ultra-fast primary database sync engine fetching compressed CDN snapshots (stations.json.gz).
  • Automated & Scheduled Background Updates: Added WorkManager background scheduling for database updates (15s post-startup check when outdated and 24h periodic sync).

Changed

  • Zero-RAM Stream Parsing & DB Throttling: Stream-decodes 60,000+ stations directly from GZIP input streams without giant memory allocations, writing to Room DB in 5,000-item atomic transactions with a 200ms throttle delay between chunks to relieve CPU/eMMC load.
  • Settings UI Refinement: Streamlined Database settings with a single "Update Database" button and live status/error feedback.

Fixed

  • API Sync Failover: Added automatic failover mid-stream to backup mirrors (radiobrowser.ounben.com) and incremental lastchange fallback (last 1,000 stations) if the snapshot CDN is unreachable.
  • Silent Notification Channels: Fixed notification channel sound settings on Android 13+ to ensure playback state updates do not trigger system alert chimes.

[1.41] - 2026-10-03

Added

  • Active Station Highlighting: The currently playing radio station is now cleanly highlighted in amber (AmaradioAmber) across all station lists and reorderable grids.
  • Audio Focus Resume Toggle: Added a user setting in Player options to control whether playback automatically resumes after losing audio focus (e.g. phone calls, alarms, or other audio interruptions).
  • Automated Localization: Synchronized missing translation keys across all 74 supported languages using automated translation scripts.
  • M3U Playlist Examples: Included pre-configured M3U playlist sample files for China streams.

Fixed

  • Notification Dismissal on App Close: Swiping the app away from recent apps now immediately stops playback, releases the MediaSession, and dismisses the media control notification from the lockscreen and Quick Settings.
  • SQL Database Import Scripts: Added clean database import scripts for AMARadio data.

[1.40] - 2026-09-27

Changed

  • Privacy & Storage Modernization: Removed deprecated WRITE_EXTERNAL_STORAGE permission requirement from AndroidManifest.xml in favor of full Storage Access Framework (SAF) integration for playlist import/export.

Fixed

  • Filter Dialog Performance & ANR Fix: Optimized search sorting in SearchableSelectionDialog for TagCache and categories by pre-computing item relevance scores prior to sorting, eliminating CPU freezes on large datasets.

[1.39] - 2026-09-27

Fixed

  • Country Code Fallback & Offline Resilience: Implemented a local database fallback to US when a device's detected country code is missing or invalid (e.g. XU), preventing empty screens and eliminating unnecessary online API calls.
  • TabRow Crash Safeguard: Ensured the main tab screen always maintains a valid local tab state, eliminating potential IndexOutOfBoundsException layout crashes in Compose ScrollableTabRow.

[1.38] - 2026-09-27

Changed

  • Dependencies Updated: Updated androidx.navigation:navigation-compose to 2.10.2, androidx.work:work-runtime-ktx to 2.12.0, and Gradle build tools to 9.4.1.
  • Codebase Cleanup: Removed deprecated legacy RadioDroid XML views and redundant resources.
  • Documentation & Metadata: Updated README.md with official F-Droid badges, UML diagrams, and corrected LICENSE file links.

[1.37] - 2026-09-16

Added

  • F-Droid Reproducible Build Pipeline: Hardened the entire compilation chain to enable byte-accurate APK verification for F-Droid.
  • F-Droid VCS & Resource Determinism: Deactivated unstable native resource crunching and compiler-inserted compilation environment trails (vcsInfo), guaranteeing consistent builds regardless of the machine's host operating system or folder naming structures.