1

Sadly I have lost my source code of an app I had uploaded to the store. Using this site to decompile the java code: http://www.javadecompilers.com/apk

I get something like this in the layout xml for example:

<ListView
    android:id="@ref/0x7f060000"
    android:background="rgb8(0xffffffff)"
    android:layout_width="-1"
    android:layout_height="dimension(1)"
    android:drawSelectorOnTop="false"
    android:layout_weight="1065353216.000000" />

<LinearLayout
    android:orientation="1"
    android:id="@ref/0x7f060001"
    android:background="rgb8(0xffffffff)"
    android:layout_width="-1"
    android:layout_height="-1">

</LinearLayout>

<RelativeLayout
    android:id="@ref/0x7f060002"
    android:background="rgb8(0xffffffff)"
    style="@style/GenericProgressBackground">

    <ProgressBar
        android:layout_width="-2"
        android:layout_height="-2"
        style="@style/GenericProgressIndicator" />
</RelativeLayout>

How can I translate the numbers back to the constants I had in the original code?

Ronen Festinger
  • 2,260
  • 1
  • 23
  • 32

1 Answers1

0

Ok, I used apktools as I read in another duplicate and it did work better for the xml files.

Extracting Android .apk and reading contents of XML file in res/layout

Community
  • 1
  • 1
Ronen Festinger
  • 2,260
  • 1
  • 23
  • 32