how convert manifest.xml to binary for apk with programming in android

1.2k views Asked by At

I want to replace the AndroidManifest.xml in an APK file.

How can I encode an AndroidManifest.XML without apktool with programming in android and replace it in APK file?

May someone give an example?

2

There are 2 answers

2
0x52 On

You could decompile your apk with the APK-Tool. Then you could just edit your manifest and compile it (& create a new apk). You will however still have to sign your App.

Here's the link for the APK-Tool

2
Ed Holloway-George On

Without using software such as APKtool to unpack and then re-sign a decompiled apk, it is not possible to change a signed app's manifest.