Skip to content

AMARadio 1.49 (179)

Latest

Choose a tag to compare

@ounben ounben released this 19 Nov 12:45

[1.49] - 2026-11-16

Signed by ounben
Google Play Release: 2026-11-19: No Recording function->Test with F-Droid users and waiting for feedback.

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

Get it on Google Play Get it on F-Droid

Thanks to our contributors:
@adriangalbincea: Fix Cast discovery permissions for Android 17
@Verlintas: Use Locale.ROOT for country codes and format labels, Use collectAsStateWithLifecycle() for lifecycle-aware state collection, Fix LICENSE link (the file is named LICENCE)
@str0ng4le: Car tablet landscape
@jpantonow: Use SHA-256 for cache file names

Special thanks to our testers :
@Vrihub, @famewolf, @serzhshakur, @jmozmoz, @thegipper

Added

  • Lossless Direct ADTS AAC Stream Recording: Replaced fragile M4A container encapsulation with direct, lossless ADTS .aac file recording (audio/aac), eliminating 0-byte file corruptions and ensuring 100% full audio capture on all AAC/AAC+ streams.
  • Search Query Retention & Smart Cursor Positioning: Retains the user's typed search query when clicking on stations or temporarily closing search, automatically re-running the search and placing the text cursor at the end of the query (TextRange(searchQuery.length)) upon reopening search.
  • Google Play Flavor Build Isolation: Implemented show_recorder_button Gradle build flavor boolean resource (play = false, foss = true), hiding recording buttons and tabs in the Google Play Store build while keeping 100% of the recorder backend code intact in the project.
  • Local Database Update: Updated offline station cache database radio_browser_database.db to 2026-11-16.

Changed

  • Lifecycle-Aware State Collection (#160): Refactored 15 UI screens and Composables to use collectAsStateWithLifecycle(), automatically pausing UI Flow collection when the app is backgrounded or the screen is off to save battery and CPU cycles.
  • UI Streamlining in Favorites Tab (#163): Removed redundant yellow favorite star icons from list items in the Favorites tab to give clean, prominent space to the reordering drag handle (Icons.Default.DragHandle).
  • Global Localization Audit: Fully updated translations across 89 language resource folders with complete coverage for new UI strings and proper noun corrections.

Fixed

  • Multi-Word Tag Filtering (#162): Fixed SQL query matching in StationDao.kt for tags containing spaces (e.g., "public radio", "classic rock"), ensuring REPLACE(lower(...), ' ', '') is applied to both database tags and filter search parameters.
  • Locale-Invariant Country Codes & Formats (#161): Updated country code and recording format string transformations to use Locale.ROOT, preventing Turkish/Azerbaijani Dotted-I bugs (i $\rightarrow$ İ) in flag emojis and audio format labels.
  • Native AudioTrack Crash Prevention (#158): Configured DefaultAudioSink with OFFLOAD_MODE_DISABLED and enforced 16-bit PCM output (setEnableFloatOutput(false)), eliminating native __memcpy_aarch64_simd crashes on Android 17 / Pixel 8 Pro devices.
  • External Player Exception Guard (#159): Wrapped external player launches in PlayStationTask with try-catch (ActivityNotFoundException), displaying a clean notification (R.string.error_external_player_not_found) if no external audio player app is installed.

[1.48] - 2026-11-10

Added

  • OGG Stream Recording & Synchronization: Added live Ogg stream BOS (Beginning of Stream) page synchronization, zero-basing granulepos values, and recalculating 32-bit Ogg page CRC32 checksums (RFC 3533 polynomial 0x04C11DB7) to ensure recorded .ogg files start at sample 0 and pass FFmpeg, VLC, and Musicolet validation without CRC mismatches.
  • OggFLAC Codec Detection & Extension Mapping: Added Ogg packet payload analysis (\x01vorbis, OpusHead, \x7fFLAC / fLaC) in FormatParser.kt to detect OggFLAC streams, mapping them to standard .oga extension for seamless hardware/software decoder routing.
  • Full Player Favorite Removal Confirmation: Added a confirmation dialog (R.string.detail_unstar) when tapping the filled favorite star in the Fullscreen Player, preventing accidental deletion of favorite stations.

Changed

  • MediaStore Duration Normalization: Ensured MediaStore.Audio.Media.DURATION and SQLite recording table duration always use measured wallClockDurationMs (e.g. 14s instead of live Icecast server uptime 22h), resolving 22-hour duration displays across external audio players.
  • Gradle Wrapper Upgrade: Updated Gradle build toolchain to version 9.5.1.

Fixed

  • MP3 Preroll & Xing Header Neutralization: Automatically neutralizes Xing/Info VBR headers in Frame 0 of MP3 files containing preroll ads, preventing ExoPlayer and C++ MediaPlayerNative from capping playback and seeking to 2.8 seconds.
  • Raw ADTS AAC Constant Bitrate Seeking: Configured AdtsExtractor.FLAG_ENABLE_CONSTANT_BITRATE_SEEKING in Media3 ExoPlayer, enabling fluid timeline scrubbing and timestamp jumps for raw .aac recordings (e.g. Fox News Radio).
  • Filename Special Character Sanitization: Enhanced filename sanitization (sanitizeFileName) to strip special characters (like !, #, $, %) from station names (e.g. Dance Wave!), preventing MediaStore .pending file locks.
  • Android 10 / Legacy Storage Fallback: Added explicit directory creation (targetDir.mkdirs()) for legacy Android 8.0/9.0 (API < 29) devices without requiring WRITE_EXTERNAL_STORAGE manifest permissions on Scoped Storage.

[1.47] - 2026-10-31

Added

  • Lossless Live Stream Recording Engine: Added real-time, lossless radio stream recording (.mp3 & .m4a/.aac) directly to Android MediaStore (Music/AMARadio/<StationName>/) with an independent background service (RecordService) and notification controls.
  • Standalone Thread-Decoupled Recording Architecture: Implemented a thread-decoupled Producer/Consumer engine (ThreadDecoupledRecorder) with a 256 KB in-memory ring queue and high-priority native Java thread (Thread.MAX_PRIORITY), completely isolating background stream recording from ExoPlayer station switches, GC pauses, and CPU spikes.
  • Timer & Auto-Stop Controls: Integrated recording timer choices (5 min, 15 min, 30 min, 1 h, 2 h, ∞ Infinite) directly into the Player control bar, Top Bar, and station long-press options menu.
  • Embedded ID3v2 Cover Art & Station Metadata: Automatically embeds local cached station artwork (station_icons/$stationUuid.jpg or generated placeholder) into recorded MP3 audio files (ID3v2.3 APIC) without performing external network downloads. Saves full station metadata into the recordings table.
  • Floating Recording Player Window (RecordingPlayer.kt): Added a dedicated, floating playback window (RecordingPlayerDialog) with a real-time seekbar/timeline slider, station artwork, +10s/-10s skip controls, interactive song chapter navigation, and automatic restart on playback completion.
  • HLS (.m3u8) Stream Recorder: Added real-time HLS playlist parsing (HlsResolver.kt) to stream and save raw audio segments loss-lessly without writing playlist text headers into audio files.
  • Automatic Storage Reconciliation: Added automatic background scanning on opening the Recordings tab to detect and purge orphaned database entries for audio files deleted externally via File Managers or Google Files.

Changed

  • Isolated OkHttp Recorder Client: Configured a dedicated, isolated OkHttpClient instance with its own ConnectionPool and Dispatcher for recording, eliminating socket stalls and network contention when changing stations in the radio player.
  • Android Auto Media Resumption Fix: Pre-initialized PlayerService.itsCurrentStation on cold start and added fallback to app.historyManager.first in MediaSessionCallback.onPlaybackResumption, ensuring Android Auto always resumes the exact most recently played station from AMARadio's history table instead of stale system-cached items.
  • 100% Offline Raw Resource Loading: Replaced dynamic string reflection (getIdentifier) in FilterViewModel.kt with direct resource IDs (R.raw.radio_browser_country_cache, R.raw.radio_browser_tag_cache, R.raw.radio_browser_language_cache), preventing R8 resource shrinker stripping and eliminating unwanted fallback network calls to json/countrycodes.
  • GZIP Fallback API Pause: Added a 200 ms delay between sequential 1,000-station chunk fetches in DatabaseSync.performApiFullSync() to prevent rate-limiting on Radio-Browser servers.
  • About Screen VersionCode & Website Link: Added dynamic versionCode display (e.g. Version: 1.47 (173)) and clickable website link (https://www.amaradio.org) in AboutScreen.kt.

Fixed

  • Audio Frame Dropout & Crackling Prevention: Eliminated audio frame dropouts and clicking in recorded MP3 files by enforcing exact byte reading (RecordIcyStream) and removing Icy-MetaData: 1 headers from live recording requests.
  • Musicolet & MediaExtractor Compatibility (w=0 e=4): Encapsulated raw ADTS AAC streams into M4A/MP4 containers (.m4a / audio/mp4) via AacMuxer.kt and eliminated post-stream FileDescriptor truncation, resolving container parsing errors across external players.
  • AAC ADTS Magic Byte Detection: Updated bitwise syncword masking in FormatParser.kt to evaluate layer bits ((b1 and 0x06) == 0x00) and station database codecs (station.Codec), accurately distinguishing ADTS AAC from MP3.
  • ExoPlayer Timeline Seeking for AAC/MP3: Configured AdtsExtractor (FLAG_ENABLE_CONSTANT_BITRATE_SEEKING) and Mp3Extractor (FLAG_ENABLE_CONSTANT_BITRATE_SEEKING_ALWAYS) flags in RecordingPlayerDialog, enabling smooth timeline seeking and timestamp jumps for all recorded files.
  • Graceful Disk Full Handling: Added onDiskError exception handling in ThreadDecoupledRecorder to gracefully stop recording and finalize partial audio files cleanly if physical phone storage runs out (ENOSPC), displaying a clear user notification (R.string.database_error_no_space).