'How to repack APK with custom data

I want to add the hash value of the classes.dex file of the apk into the apk. But i dont know where to start. I can't add data in to apk. If i add to apk becomes inoperable. Thanks for all helping.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source