I want to replace one file in the assets folder with generated apk(in the assets folder there is sample.txt file after generating the apk i want to change the data in that file and regenerate the new apk ).
===> old APK+modified(sample.txt)=newApk
How to do this?
An APK file is a ZIP archive, and assets are not modified as part of the build process. So, on your development machine, you can:
jarsigner
to sign the APK with your production keystorezipalign
to align the results on four-byte boundaries for faster loading at runtime