Android reengineering : extract and protect APK's resources (technical questions)

半城伤御伤魂 提交于 2020-01-06 17:18:55

问题


I'm interested in the technical details of APK files. I know already that the APKTOOL is able to extract all those layout files and so on of an APK file (including the smali sources), but I would like to khow, how the APKTOOL does the extraction of layouts, since they are crypted somehow (in case that you open it with unzip).

Does anybody know something about how Android compresses/encrypts(?) those layout files in the APK files? Is there any description out there?

Does anybody know a way to protect layouts against reengineering? (similar to ProGuard used for the source code)?

Thanks.


回答1:


As far as I know, all xml files in APKs are stored in Binary XML format. So they aren't encrypted and that's not a big deal to read them.

What about protection, I don't think there's a way to obfuscate them somehow. The only way to make layouts difficult for reading is to create view directly from code, but I don't think you should do it.



来源:https://stackoverflow.com/questions/6160304/android-reengineering-extract-and-protect-apks-resources-technical-questions

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!