bobrofon / easysshfs

SSHFS for Android
MIT License
100 stars 15 forks source link

updater: Fix broken symlinks on apk reinstall #24

Closed bobrofon closed 3 years ago

bobrofon commented 3 years ago

Application 'files' directory looks like this: ssh -> /data/app/ru.nsu.bobrofon.easysshfs-zjRypbFx1MJ2cJBkv1wjDg==/lib/arm64/libssh.so sshfs -> /data/app/ru.nsu.bobrofon.easysshfs-zjRypbFx1MJ2cJBkv1wjDg==/lib/arm64/libsshfs.so

After application update these links may become broken. Added intermediate symlinks to resolve this issue. Intermediate links update every application start.

ssh -> libssh.so sshfs -> libsshfs.so libssh.so -> /data/app/ru.nsu.bobrofon.easysshfs-zjRypbFx1MJ2cJBkv1wjDg==/lib/arm64/libssh.so libsshfs.so -> /data/app/ru.nsu.bobrofon.easysshfs-zjRypbFx1MJ2cJBkv1wjDg==/lib/arm64/libsshfs.so