简体   繁体   English

如何解码android xml或XML的反向工程

[英]how to decode android xml or reverse Engineering of XML

here problem i loss my android projects.i just have some APK in my mobile. 这里的问题是我丢失了我的Android项目。我的手机中只有一些APK。 i have got java files but i could not get XML files. 我有Java文件,但是我没有XML文件。 when i extract APK than i get all resource and layouts files but my layouts files are encrypted my be UTF-8. 当我提取APK时,我得到了所有资源和布局文件,但我的布局文件已加密,我为UTF-8。 Tell me how to decode android XML files. 告诉我如何解码android XML文件。

<?xml version="1.0" encoding="utf-8"?>
<GridView xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/gridView1"
    android:numColumns="2"
    android:gravity="center"
    android:verticalSpacing="5dp"
    android:horizontalSpacing="5dp"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content">

</GridView>

Solution is AndroidGuard . 解决方案是AndroidGuard

Get your APK, extract its content. 获取您的APK,提取其内容。

You'll get the XMLs, but unreadable. 您将获得XML,但无法读取。

Then use androaxml.py to decode them into the original XMLs (some styles and references could be lost but hey that's better than nothing I guess ). 然后使用androaxml.py将它们解码为原始XML(某些样式和引用可能会丢失, 但是嘿,总比没有好 )。

Use the unreadable XML as input. 使用不可读的XML作为输入。

A simple way I found is to decompile .apk file with a tool named APKIDE.Install it, and operate as follow, 我发现一种简单的方法是使用名为APKIDE的工具反编译.apk文件。安装该文件,并按以下步骤操作,

1 choose Tools -->UI language -->English 1选择工具-> UI语言->英文

在此处输入图片说明

2 click Project --> Open Apk --->choose .apk file 2单击项目->打开Apk --->选择.apk文件

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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