thatmarcel / crunchyrold

Jailbreak tweak that makes older versions of the Crunchyroll app work again so you can watch on iOS 14
GNU Affero General Public License v3.0
5 stars 1 forks source link

Add a way to automatically update API credentials when new app versions are released #1

Open Cimmerian-Iter opened 6 months ago

Cimmerian-Iter commented 6 months ago

We have the "your version is outdated" message. I even reinstalled Crunchyroll and rerun the tweak to get latest creds from latest apk it doesn't work anymore.

thatmarcel commented 6 months ago

It seems like Crunchyroll disabled the API keys from the version of the Android app that was used for automatic extraction.

I've updated the tweak to use the latest APK version (3.54.0) for automatic extraction in commit 583d1cc, so the newest version of the tweak (v1.0.1) should fix the issue (haven't tested it on my device yet though).

Cimmerian-Iter commented 6 months ago

It works, is there a way to automatically update the API keys when a Crunchyroll update is released?

thatmarcel commented 6 months ago

Currently, the location of the API keys in the Android app are hardcoded in the tweak and need to be manually updated for each version of the app. To do that automatically, we'd need to dynamically find the keys, e.g. by programmatically using a decompiler to find the keys in the app or getting the keys from a different source.

thatmarcel commented 4 weeks ago

I've written a script that should automatically extract and update the API credentials in a repo and made it so the tweak reads the values from there when doing the automatic extraction in v1.2.0.

If this works as planned and as long as they don't change the API again, this should make it so the tweak doesn't need to be updated when the credentials expire.

Cimmerian-Iter commented 4 weeks ago

Perfect, will test it

Edit : it works, let's hope that it'll be resilient with time