[英]After Decompiling Apk file, I get numbers instead of constants. How can I get The string values of those numbers?
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 使用此站点反编译java代码: http : //www.javadecompilers.com/apk
I get something like this in the layout xml for example: 我在布局xml中得到类似的东西,例如:
<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? 如何将数字转换回原始代码中的常量?
Ok, I used apktools as I read in another duplicate and it did work better for the xml files. 好吧,我使用apktools,因为我读了另一个副本,它确实更好地为xml文件。
Extracting Android .apk and reading contents of XML file in res/layout 在res / layout中提取Android .apk并读取XML文件的内容
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.