apktool d -f --no-src -o output your_app.apk
* `b` stands for build. * `.` represents the current directory. * `-o modified_app.apk` specifies the output APK file.
**Step 4: Signing the APK (Optional)** -------------------------------------
* `jarsigner` signs the APK. * `-verbose` enables verbose output. * `-sigalg SHA256withRSA` specifies the signature algorithm. * `-digestalg SHA-256` specifies the digest algorithm. * `-keystore your_keystore.jks` specifies the keystore file. * `modified_app.apk` is the APK file to sign. * `your_alias` is the alias.
jarsigner -verbose -sigalg SHA256withRSA -digestalg SHA-256 -keystore your_keystore.jks modified_app.apk your_alias