FORUMS
Remove All Ads from XDA

[APP][4.0.3+][v.8.4.14.403] Patched Ad-Free Spotify APKs

328 posts
Thanks Meter: 1,243
 
View First Unread Post Reply Email Thread
Hey y'all. As Xposed is not ready for Nougat just yet and since many users don't wish to root I decided to dabble with some apps. Spotify ad free was born from this project.

EDIT:

Note:
**This does not require root. **

Requirements: Android 4.0.3+, no dpi, should work with both arm & arm64 (only lib differences), min API 15

Code:
/*Features: */
 -Hooray no more ads!
- built in ota downloader - new builds will be available for download on your device immediately after I upload them  Edit: Ota has been discontinued, many users experienced FCs while downloading new builds and hosting each build was costing  a bit more than I expected) 
 Where's everything else? That's it. This project is NOT intended to replace Spotify Premium.
Code:
[8/9/17] /*Changelog: */
Change: rebase stable to v.8.4.11.1283
Change: rebase experimental to v.8.4.14.404.b

*Note: I don't have the time to merge in requests and other features atm. I'm too busy with work and school right now. Rebasing on the other hand is fast and mostly automated on my end as recent Spotify releases have generally been very minor incremental improvements. Just need to pull  new builds from apkmirror and I have a script setup to auto apply all patches. If there's no error while building, I'm notified, and I upload the build to telegram and then afh. Since I don't really use Spotify anymore (Play Music is where it's at :p), I rely on you guys for logs and feedback. Anyways, if something is screwed up, then please capture a log and let me know so I can take a look at it, otherwise I am assuming that everything is A-OKAY. 

[7/30/17] /*Changelog: */
Change: rebase stable to v.8.4.9.271
Change: rebase experimental to v.8.4.11.1277.b
Change: switched back channels
Change: package name - com.spotifyadfree.music
Fix: FC for MIUI users
Fix: completely removed "30 minutes for adfree" popup
Fix: random hang during chromecast
Fix: [ALPHA] another opt patchset for Chromecast (please provide logs and feedback)
Fix: removed more unnecessary code

[6/11/17]/*Changelog: */
Fix: an issue where an ad appeared that forced users to watch a video for '30 minutes of adfree streaming'
Fix: an issue where ads would fail to load, resulting in a 'black screen' of death
Fix: an issue where the app would hang and then fc
Fix: videos fail to load
Fix: [Experimental] persistent ads on chromecast
Fix: some code cleanup/removed some more unnecessary libs
Fix: other minor optimizations

[Older changelogs removed]

Upcoming changes: */ 
Fix: remove upgrade banners
Fix: replace " premium only popup" with transparent overlay
Fix: keep ad blocking persistent after updates (really depends on Spotify's end but from what I've seen from recent releases I think I have it somewhat working, well at least for now anyways) Until then keep auto update disabled​ for Spotify in the Play Store.  Edit: Completely broken, worked last release but Spotify has patched it up, now requires manual editing again each release 
Feature: added quickshare button
Feature: **New package name**-Users will now be able to use this version​ of Spotify simultaneously with other Spotify instances. This is for users who do not wish to deal with auto updates and features breaking or who just want to use this patched version simultaneously with an official build or if a device comes preinstalled with Spotify as a system app.
Feature: [ALPHA] lockscreen blurred media playback option directly embedded within app settings
Note:

This project is still centered around ad blocking. Other features simply exist because of curiosity and lack of Xposed support on Nougat. Features may break after future updates and I will eventually migrate back to just ad blocking. Also as this was more of a proof of concept/learning build I will update the app when I get the time. I provide no guarantees to support newer Spotify versions. I am currently very busy with school.


Additional notes:

There is nothing I can do about offline downloads or exporting downloaded media. These features will never be incorporated even if I could as this project was never intended to replace Spotify Premium. I was annoyed at seeing intrusive ads take over the screen while using the application and as I barely use Spotify anyway I couldn't justify premium. ( I have a Google Play Music subscription). I originally intended to build a native ad blocker (that project is still in the works), however due to limitations on some older devices I owned that could not be rooted, I changed track and began working on a rootless solution. Also I understand that many users with premium are aggravated that they cannot export and easily move around their downloaded media or even play media using another music player. I've looked into this and it is not currently possible. Spotify stores offline media in Ogg Vorbis codec format. They also use their own encryption so only their own player can play the downloaded media. In fact, decryption keys are not stored locally at all. Instead they are individually linked to the subscription holder. So yes, technically in theory the downloaded media can be exported but the exported media will be rendered useless as there is no way of decrypting and playing it.

Also there is nothing that can be done locally to block ads on Chromecast. Chromecast does not mirror your spotify app when you cast. Instead it recognizes the stream and plays it independently, meaning unless you have a premium account there is no way to get rid of ads. I've tested a couple of spoofing methods the last few builds but they all failed as Spotify checks per account. The only alternative atm is to mirror your display or just use bluetooth. If you do that, then it will actually stream from the app itself without triggering any ads.


Android Auto README


The Android Auto app checks where the app was installed from before displaying the app on the Android Auto dashboard. This means that if you didn't install spotify from the play store then it won't just work on Android Auto. The workaround for now is this command via adb.
Code:
pm install*-i*"com.android.vending"*-r/sdcard/(file location of where you saved the spotify apk)

/*This changes "com.google.android.packageinstaller" to "com.android.vending" so that Android Auto thinks Spotify is installed from the Play store and not sideloaded. */
Read more about it here, Kudos to Mishaal Rahman https://www.xda-developers.com/psa-s...o-heres-a-fix/


Downloads, Updates, Installation & Logs:

Installation:
1. Download the apk
2. Install the apk
(Pretty straightforward isn't it )

(It would be greatly appreciated and very helpful if people could provide feedback, preferably including your device model and if there are crashes or lags or god forbid, any ads, provide a log via adb or an app like matlog)

Keep up with updates: https://www.pushbullet.com/channel?tag=spotifyadfree

Telegram for updates/test releases: t.me//spotifyadfree

Latest supported release: v.8.4.11.1283.s.21237514
Latest experimental TEST build: v.8.4.14.403.b.21759162

Downloads:

Stable Ad-free: Link
Experimental Builds: Link
All builds: Link

Donation: (You really don't need to, but if you really want to here ya go, it'll certainly be appreciated and help projects and costs. https://paypal.me/guitar1238751


Credits & Thanks:

Huge thanks to:
- sbeb
-snakewall
- mateok.

Without these awesome guys this project would not have been possible.


**PS: Patched YouTube coming soon... **
The Following 130 Users Say Thank You to guitar1238751 For This Useful Post: [ View ] Gift guitar1238751 Ad-Free
 
 
17th March 2017, 10:16 AM |#2  
guitar1238751's Avatar
OP Senior Member
Flag New York City
Thanks Meter: 1,243
 
Donate to Me
More
Moved Android TV builds here as reference.

Note:
**This does not require root. **

Requirements: Min API 21 (5.0+), no dpi, Android TV

Code:
 /*Features/Changelog: */
-Intial Release
- ads removed (all of those suckers should be gone)
Code:
 /*7/25/17 Changelog*/
-updated base to lastest Spotify Android TV release 
-ads removed
Downloads:


Latest supported version: 1.4.0.104000
Link


All Builds: Link
The Following 62 Users Say Thank You to guitar1238751 For This Useful Post: [ View ] Gift guitar1238751 Ad-Free
17th March 2017, 11:14 PM |#3  
Bingley's Avatar
Senior Member
Flag Netherfield
Thanks Meter: 117
 
More
Possible to cast to Chromecast Audio without a premium subscription?
The Following User Says Thank You to Bingley For This Useful Post: [ View ] Gift Bingley Ad-Free
18th March 2017, 05:47 PM |#4  
guitar1238751's Avatar
OP Senior Member
Flag New York City
Thanks Meter: 1,243
 
Donate to Me
More
Quote:
Originally Posted by Bingley

Possible to cast to Chromecast Audio without a premium subscription?

Lol I didn't even know casting to Chromecast was restricted only to pro. My main goal from this project was to just remove ads but I'll look into it.
The Following 20 Users Say Thank You to guitar1238751 For This Useful Post: [ View ] Gift guitar1238751 Ad-Free
18th March 2017, 08:52 PM |#5  
Junior Member
Thanks Meter: 27
 
More
Thank you sooo much! Ive been looking for something like this for so long
The Following User Says Thank You to Siderk21 For This Useful Post: [ View ] Gift Siderk21 Ad-Free
18th March 2017, 08:55 PM |#6  
Bingley's Avatar
Senior Member
Flag Netherfield
Thanks Meter: 117
 
More
Any chance you could share what you're doing to remove/block ads?
19th March 2017, 12:53 AM |#7  
Junior Member
Thanks Meter: 1
 
More
Hi does anyone know if this works on the Xiaomi redmi 3s?
19th March 2017, 04:29 AM |#8  
Member
Flag Islamabad
Thanks Meter: 7
 
More
Quote:
Originally Posted by Bingley

Possible to cast to Chromecast Audio without a premium subscription?

Yes its possible. Working on my side..

Thank you for this OP. Life's better without the ads..
The Following User Says Thank You to thinkinggrey For This Useful Post: [ View ] Gift thinkinggrey Ad-Free
19th March 2017, 11:44 PM |#9  
guitar1238751's Avatar
OP Senior Member
Flag New York City
Thanks Meter: 1,243
 
Donate to Me
More
Quote:
Originally Posted by Bostros

Hi does anyone know if this works on the Xiaomi redmi 3s?

I don't see a reason​ it wouldn't. There are no arch or device specific restrictions. Try it and see what happens.

Quote:
Originally Posted by thinkinggrey

Yes its possible. Working on my side..

Thanks for the feedback. I'm finalizing a few changes, some code cleanup, should have a new build out soon
The Following 23 Users Say Thank You to guitar1238751 For This Useful Post: [ View ] Gift guitar1238751 Ad-Free
20th March 2017, 01:32 PM |#10  
Bingley's Avatar
Senior Member
Flag Netherfield
Thanks Meter: 117
 
More
Any chance you'd work on a more recent version? apkmirror lists latest as 7.9.0.746
The Following User Says Thank You to Bingley For This Useful Post: [ View ] Gift Bingley Ad-Free
20th March 2017, 04:56 PM |#11  
guitar1238751's Avatar
OP Senior Member
Flag New York City
Thanks Meter: 1,243
 
Donate to Me
More
Quote:
Originally Posted by Bingley

Any chance you'd work on a more recent version? apkmirror lists latest as 7.9.0.746

Yes I am working on it. I'm in class now and I have an exam soon. Almost done with the new build. I'll finish it when I get home and I should have it up either tonight or tomorrow.
The Following 16 Users Say Thank You to guitar1238751 For This Useful Post: [ View ] Gift guitar1238751 Ad-Free
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread