是否可以查看Androidmanifest.xml文件?

我刚刚把apk文件的扩展名改成了zip。此zip文件包含Androidmanifest.xml文件。但是我无法查看Androidmanifest.xml的内容。它是完全加密的。

如何查看Androidmanifest.xml文件?


当前回答

文件需要被反编译(或deodex不确定哪一个)。但这里有另一种方法:

-Download free Tickle My Android tool on XDA: https://forum.xda-developers.com/showthread.php?t=1633333https://forum.xda-developers.com/showthread.php?t=1633333
-Unzip
-Copy APK into \_WorkArea1\_in\ folder
-Open "Tickle My Android.exe"
-Theming Menu
-Decompile Files->Any key to continue (ignore warning)
-Decompile Files->1->[Enter]->y[Enter]
-Wait for it to decompile in new window... Done when new window closes
-Decompiled/viewable files will be here: \_WorkArea3\_working\[App]\

其他回答

另一个有用的(基于python的)工具是Androguard,使用它的axml子命令:

androguard axml my.apk -o my.xml

这将一次性提取和解码应用程序清单。与apktool不同,它不解包其他任何东西。

Android Studio现在可以显示这个。去构建>分析APK…然后选择apk。然后你可以看到AndroidManifest文件的内容。

aapt d xmltree com.package.apk AndroidManifest.xml

将从指定的APK转储AndroidManifest.xml。它不是XML格式的,但仍然可以阅读。

aapt (Android资产打包工具)是Android SDK自带的内置工具。

Aapt2,包括在Android SDK构建工具可以做到这一点-不需要第三方工具。

$(ANDROID_SDK)/build-tools/28.0.3/aapt2 d --file AndroidManifest.xml app-foo-release.apk

从build-tools v29开始,你必须添加命令xmltree:

$(ANDROID_SDK)/build-tools/29.0.3/aapt2 d xmltree --file AndroidManifest.xml app-foo-release.apk

文件需要被反编译(或deodex不确定哪一个)。但这里有另一种方法:

-Download free Tickle My Android tool on XDA: https://forum.xda-developers.com/showthread.php?t=1633333https://forum.xda-developers.com/showthread.php?t=1633333
-Unzip
-Copy APK into \_WorkArea1\_in\ folder
-Open "Tickle My Android.exe"
-Theming Menu
-Decompile Files->Any key to continue (ignore warning)
-Decompile Files->1->[Enter]->y[Enter]
-Wait for it to decompile in new window... Done when new window closes
-Decompiled/viewable files will be here: \_WorkArea3\_working\[App]\