01/10/2018, 00:58

How to convert XML to android binary XML (AXML) - AndroidManifest

I’m new in Android.
Mọi người giúp mình với, mình có 1 file AndroidManifest.xml thông thường, encode sang axml, copy vào file apk rồi sign apk để cài đặt. Mặc dù, sử dụng appt hay apktool có thể làm được điều này trên PC nhưng mình muốn làm một phương thức có thể chạy trực tiếp trong apk của android.

I know on PC, appt or apk tool can do this, but i want a method could be run directly inside the APK on android itself.
i found this library on Github https://github.com/wtchoi/axml/blob/master/src/main/java/pxb/android/axml/NodeVisitor.java but i don’t know how to use it in my android app.

Kiem Tien viết 03:15 ngày 01/10/2018

@Voodoo Need your help. Thanks…

Kiem Tien viết 03:10 ngày 01/10/2018

No, I mean AndroidManiest.XML file inside the android app package (.apk). This XML type is not similar to other XML files. The real file type of it is AXML (XML has been encoded when Android studio complied and build android app) and I want to encode XML to AXML using my own method.

More: http://stackoverflow.com/questions/11367314/how-to-convert-xml-to-android-binary-xml

Kiem Tien viết 03:02 ngày 01/10/2018

Yeah, but the method in that topic is used for converting “AXML TO XML” I mean “XML 2 AXML”
Spending a lot of time to goggle it but I still have nothing, now.

Bài liên quan
0