简体   繁体   中英

Editing an APK file's resources from Android

I want to edit the resources of an APK file from WITHIN Android. I know how to do it with ApkTool in windows/linux, but I'm having problems doing it in an Android app itself.

In particular, I need to add a few files to the resouces, edit the AndroidManifest.xml and put the files back in the APK. I know APKs are simply zip files, but the resources and manifest inside them are "compiled" in binary format so they cannot be edited directly, so I need some kind of library or tool for Android that can decompile the resources and then put them back in the APK.

I know this can be done, since apps like APK Editor do it (and without needing root!) but I can't find any documentation on how to do it myself.

我用这个库来解析APK。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM