문제

If you take an apk off the android filesystem and change the extention to .zip then open one of the xml files it won't work because it's encoded in dex. But you can run ./adb dexdump -l xml layout.xml > ~/Desktop/layout.xml then edit it to your likeing. I can't figure out how to get it back in the apk though. I think I need to encode it back into dex then just add it back in the archive. Can anyone tell me how to encode it into dex?

도움이 되었습니까?

해결책

The binary XML format is unrelated to the Dalvik EXecutable format.

The "aapt" tool will re-package the APK. You will also need to re-sign it with the modified files.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top