Change link in code remotely

anyone knows how can i change a URL link in code without building a new APK build, what options are availble out there? for both platforms

Where does the new link come from?

I want to exchange a link to a domain that is expired

Same question: Where does the new link come from?

One option is to put it on a server and download it every time the app is started.

But if it’s an existing published app, I don’t think you can, as the APK is encrypted.

Building and releasing a new APK is trivial, so you can as well make a new one, provided you have access to the account it was published on, and the source of course.