简体   繁体   中英

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. i have got java files but i could not get XML files. when i extract APK than i get all resource and layouts files but my layouts files are encrypted my be UTF-8. Tell me how to decode android XML files.

<?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 .

Get your APK, extract its content.

You'll get the XMLs, but unreadable.

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 ).

Use the unreadable XML as input.

A simple way I found is to decompile .apk file with a tool named APKIDE.Install it, and operate as follow,

1 choose Tools -->UI language -->English

在此处输入图片说明

2 click Project --> Open Apk --->choose .apk file

在此处输入图片说明

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