ReVanced / revanced-patches

🧩 Patches for ReVanced
https://revanced.app
GNU General Public License v3.0
2.3k stars 268 forks source link

feat(youtube): import / export revanced specific settings #1863

Closed SodaWithoutSparkles closed 1 year ago

SodaWithoutSparkles commented 1 year ago

Application

Youtube, and any other Revanced apps that have Revenced settings (if any)

* Note that this is not for Revanced manager which theres another closed issue about.

Issue

Currently after re-installing, we must reconfigure all settings in Revenced Youtube (RYT) to match the one which we just removed.

Somehow the signitures kept changing and we cannot install over existing RYT. The old version have to be removed to install the new one. The settings will be rolled back to defaults. Which is time-consuming when you need to input all configs again.

Patch

This patch request aims to provide support for this, and before removing we could export the RYT configs into a separate file/copy to clipboard like SponsorBlock. Which can then be paste back to the new RYT and reload the settings.

An option to decide to or not to include sponsorblock configs would be nice. If so it could just be simpily appended after the RYT ones and the patch will populate the sponsorblock configs too.

This could also facilitate easier config transfer between friends. (not APK transfers)

Motivation

Acknowledgements

nochlab1 commented 1 year ago

+1

SodaWithoutSparkles commented 1 year ago

@oSumAtrIX will this be on the agenda? This makes recompiling much easier

FineFindus commented 1 year ago

@oSumAtrIX I think I have an idea how this could be done and would like to work on it, if nobody else already does. Could you please assign me?

oSumAtrIX commented 1 year ago

Looping through the SettingsEnum fields of the patched app and adding an export/import textbox to the misc settings which you can import or export a JSON, key value pairbor a base64 encoded string would suffice (the same way SponsorBlock is doing it with theirsettings enum).

SodaWithoutSparkles commented 1 year ago

Uh, is anyone in charge of this right now? It has been half a year since this issue started.

pep0w commented 1 year ago

I was just about to suggest this. I'm glad I'm not the only one who is looking for this.