I have an APK, which I unzip, replace a file, re-sign with jarsigner and zipalign. The new apk installs fine, no warnings. However it fails on run, when trying to access /assets/control.bal with "An error has occurred in sub:main_activity_create(Java line:375) java.io.FileNotFoundException:control.bal".
The file is present in the APK.
The only difference I can see is that before the unpacking, signing, repacking, the manifest.MF uses forward slashes:
whereas afterwards it has backslashes
would that be enough to break this:
.. and if so any ideas on how to solve it? (just replacing the slashes breaks the APK integrity)
G.
The file is present in the APK.
The only difference I can see is that before the unpacking, signing, repacking, the manifest.MF uses forward slashes:
B4X:
Manifest-Version:1.0
Created-By:1.8.0_112(OracleCorporation)
Name: assets/longblackbar.png
SHA1-Digest:1Fq7U1Y/dLAVflFmTzLcC0tvKu4=
whereas afterwards it has backslashes
B4X:
Manifest-Version:1.0
Created-By:1.8.0_111(OracleCorporation)
Name: assets\longblackbar.png
SHA1-Digest: vaky9S8cGhJIvh7a4LmmtWOpqAg=
would that be enough to break this:
B4X:
Activity.LoadLayout("Control")
.. and if so any ideas on how to solve it? (just replacing the slashes breaks the APK integrity)
G.