Closed JopSchaap closed 8 months ago
@pbhaskaran and I were able to fix the bug, when the user downloads the apk whilst using the plus, so from an Https site. The solution was in making the apk file read only after creating the output stream. see this commit on how we did this. A similar solution should probably also exist for torrented APKs. However, we could not really find the location in the code were the APK were written in this case.
The app right now sets all files to be read only in the cache dir. When relaunching the app we get an error since the wallet.db.lck
file also is read only and we try to recreate this file on app launch.
I think the populateKnownTorrents
needs to include a check that the file is actually one of the downloaded apks.
Some extra information:
android team on dynamic code loading
android team on changes on dynamic code loading for java version 14