-2

I am able to unpack an android apk file with apktool, but when I am repacking the apk file using apktool, it just crashes with errors, and ibotpeaches seems not patching those errors for years. Now comes my question: could you please help me to recompile that androidmanifest.xml to an apk using any other tool or techniques?

  • The aapt tool that is bundled with the android sdk is the only way I'm aware of to compile textual resource xmls back into binary xmls. – JesusFreke May 2 at 5:47
  • can you share with me cmd commands or parameters to use with it or any references. thanks – hanan May 2 at 10:24
  • It's been a long time since I've looked at it. From what I recall, the arguments to use are rather non-trivial. Your best bet is to find the arguments that are used when building an android app normally via gradle or whatever. Or the arguments that apktool calls aapt with. – JesusFreke May 2 at 18:36
  • You don't name the app and you don't name the errors you encounter. How are we supposed to answer this question without knowing why APK repackaging fails for your app? When talking about errors provide links to each error you encounter (e.g. to the issue page). And if you can you should name the app you are trying to repack. – Robert Jul 9 at 14:46
  • Look, I have provided the error link! I think you didn't read the details. – hanan Jul 10 at 15:40
0

The androidmanifest.xml file can be modified and the apk can be repackaged (I've done it before on various apks), but don't forget to use zipalign and re-sign the apk. If you miss using zipalign and re-sign the apk, that may be a reason why you are getting crashes with errors.

| improve this answer | |
  • that is not what I am talking about! actually it is not that easy. the issue is happening at the repacking the app using apktool. error like this here please understand the question before posting your comment as answer. thanks – hanan May 2 at 10:22
  • Oh, sorry, I misunderstood. I don't know the answer to that error. Would you prefer if I delete my answer? Or keep it here so people can see your comment and know what is the wrong understanding? – auspicious99 May 2 at 13:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.