I have a simple in-app browser that displays html files from /assets in a fullscreen WebView.
The idea is that customer can change those scripts himself without need of recompiling the APK.
I read few articles but when I tried to simply:
- Rename .apk to .zip
- Extract .zip
- Zip the folder to .zip
- Rename to .apk
When I transfer the .apk to my phone it reads "Error during analysis of the package" (Not exact error - translation from czech).
The ultimate goal is to change the files in assets folder (edit, add, delete).
What am I doing wrong?
EDIT:
Reaction to MichaelCMS
I tried:
- Rename apk.apk to apk.zip
- Extract .zip
- Remove META-INF dir
- Zip the folder to apk2.zip
- Rename to apk2.apk
then I followed: http://developer.android.com/tools/publishing/app-signing.html
jarsigner.exe -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore release-key.keystore app2.apk alias
zipalign.exe 4 app2.apk app-aligned.apk
The problem persists. Same error as before