Faisal Ashraf
Faisal Ashraf

Reputation: 1456

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>

Upvotes: 0

Views: 3746

Answers (2)

RY_ Zheng
RY_ Zheng

Reputation: 3427

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

enter image description here

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

enter image description here

Upvotes: 0

shkschneider
shkschneider

Reputation: 18243

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.

Upvotes: 1

Related Questions