audioserve-android icon indicating copy to clipboard operation
audioserve-android copied to clipboard

Feature request: multiple server support

Open srd424 opened this issue 3 years ago • 3 comments

I'd love to have support for multiple servers - I am in the process of migrating from booksonic, currently I have my main server on my home network, but also a 'travel' server that runs on an RPi in my car, for long trips when I may have no data connection

(For information - newer versions of booksonic/airsonic startup extremely slowly on arm, which is why I want to move to audioserve, which starts up instantly!)

Google suggests that for now it should me possible to clone the audioserve apk and modify the app name so I can install it twice, so will give that a go.

srd424 avatar Jun 05 '22 09:06 srd424

@srd424 Now I'm focusing on new web PWA client https://github.com/izderadicka/audioserve-web

As PWA it can be easily installed on home screen , even from various servers. Idea is that this new web PWA will replace Android app in future - right now it's almost functionally equal to android client, but still under development.

izderadicka avatar Jun 05 '22 12:06 izderadicka

Ah, OK, that's very interesting - I will have a look! Thank you for your work on this, by the way!

srd424 avatar Jun 05 '22 14:06 srd424

Meanwhile, I have come up with a horrible hack to clone the apk so I can have two versions of the app installed .. I will briefly document here in case anyone wants to do similarly:

# generate private signing key
keytool -importkeystore -srckeystore my-release-key.keystore -destkeystore my-release-key.keystore -deststoretype pkcs12
# unpack apk
apktool d app-release.apk
# apply attached clone-as.diff
patch -p0 <clone-as.diff
# recompile & rebuild
apktool --use-aapt2 b app-release
# sign
apksigner sign --ks my-release-key.keystore app-release/dist/app-release.apk
# install
adb install app-release/dist/app-release.apk

clone-as.diff.txt

srd424 avatar Jun 05 '22 14:06 srd424