Skip to content

Feat: Add Cast support#308

Merged
aghontpi merged 10 commits into
release/v0.8.0from
feature/chromecast_exploration
Dec 25, 2025
Merged

Feat: Add Cast support#308
aghontpi merged 10 commits into
release/v0.8.0from
feature/chromecast_exploration

Conversation

@aghontpi

@aghontpi aghontpi commented Dec 21, 2025

Copy link
Copy Markdown
Owner

This PR adds casting support to the app, additionally uses androidx.mediarouter:mediarouter hence will increase the app size, but since its a majorly requested feature... the pro's outweigh the app size.

  • This additonally adds a test "MUTE" / "UNMUTE" button that correctly mutes the casted device or this device directly.
  • In the debug view, we have a status text for reporting the current status of casting.
  • added debug log based on the current status of the system.
Screenshot_20251221-153049

Tested on a pixel device using Spotify while casting to android tv.

edit:

using the androidx.mediarouter.. library, inceases final buid size to 750+ KB, will have to use https://developer.android.com/reference/android/media/MediaRouter native library since Im only targetting android 5 and above. if removing language files from lib the size gets reduced to 650+, still I dont use any of the functions from the library, so have to remove it and change the implementation.

Screenshot 2025-12-21 at 5 00 56 PM

update/ edit 2:

removed using androidx library as its increasing app size, I want it to be minimal, we dont use the functions from androidx library.. just use 3 imports from the whole library.. instead of that used native functions.. dont need backward compatibility also as I am targeting android v5 and above for app, its changed here 1cdb9e1 and the prod build size now is back to 148kb.. ~150kb.

@aghontpi aghontpi changed the title Feat: Add chromecast support Feat: Add Cast support Dec 21, 2025
@github-actions

Copy link
Copy Markdown

A debug APK build is available for this pull request.

Download ad-silence-v0.8.0-dev-debug APK

Certificate SHA-256: CE:85:A4:F2:D4:3F:04:B6:BD:CF:1D:85:5F:B9:26:6F:C4:9B:F2:54:BF:14:C5:65:F5:AC:A1:6D:ED:2E:9C:4C (Extracted from build artifact)


️Google Play Protect Notice

Google Play Protect might block the installation of this app because it requests notification permissions. This is a known issue due to recent verification changes, and an appeal has already been raised with Google.

If you encounter this, you may need to temporarily pause Google Play Protect to install the app.

Security Verification

The app is built via GitHub Actions. You can trust debug/release builds downloaded directly from:

  • This GitHub repository
  • F-Droid
  • Google Play Store

Please do not trust builds from other sources.

Certificate Fingerprint

Signer #1 Certificate SHA-256: ce85a4f2d43f04b6bdcf1d855fb9266fc49bf254bf14c565f5aca16ded2e9c4c

Verification Commands:

On PC (Java/Android SDK):

# Option 1: Using apksigner (Android SDK)
apksigner verify --print-certs <apk-file>

# Option 2: Using keytool (Java)
keytool -printcert -jarfile <apk-file>

On Android:
You can use open-source apps like LibChecker to view the certificate signature of the installed app.

github-actions Bot added a commit that referenced this pull request Dec 21, 2025
This was referenced Dec 21, 2025
@aghontpi aghontpi assigned aghontpi and unassigned aghontpi Dec 21, 2025
@aghontpi

Copy link
Copy Markdown
Owner Author

@paras03 as we previously discussed, will you be able to test this?

@paras03

paras03 commented Dec 22, 2025

Copy link
Copy Markdown

Give me few days. Am traveling. Will shsre feedback by weekend
Thanks

@github-actions

Copy link
Copy Markdown

A debug APK build is available for this pull request.

Download ad-silence-v0.8.0-dev-debug APK

Certificate SHA-256: CE:85:A4:F2:D4:3F:04:B6:BD:CF:1D:85:5F:B9:26:6F:C4:9B:F2:54:BF:14:C5:65:F5:AC:A1:6D:ED:2E:9C:4C (Extracted from build artifact)


️Google Play Protect Notice

Google Play Protect might block the installation of this app because it requests notification permissions. This is a known issue due to recent verification changes, and an appeal has already been raised with Google.

If you encounter this, you may need to temporarily pause Google Play Protect to install the app.

Security Verification

The app is built via GitHub Actions. You can trust debug/release builds downloaded directly from:

  • This GitHub repository
  • F-Droid
  • Google Play Store

Please do not trust builds from other sources.

Certificate Fingerprint

Signer #1 Certificate SHA-256: ce85a4f2d43f04b6bdcf1d855fb9266fc49bf254bf14c565f5aca16ded2e9c4c

Verification Commands:

On PC (Java/Android SDK):

# Option 1: Using apksigner (Android SDK)
apksigner verify --print-certs <apk-file>

# Option 2: Using keytool (Java)
keytool -printcert -jarfile <apk-file>

On Android:
You can use open-source apps like LibChecker to view the certificate signature of the installed app.

@aghontpi aghontpi merged commit 5e8026a into release/v0.8.0 Dec 25, 2025
@aghontpi aghontpi mentioned this pull request Dec 25, 2025
13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants