从 apk Google Play 恢复文件 [英] Recover files from apk Google Play

查看:48
本文介绍了从 apk Google Play 恢复文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

前段时间我上传到谷歌播放我的家庭餐厅的应用程序,它类似于显示菜单、时间表、价格......所有这些东西.它仍在 google play 中,我可以通过 google 开发人员访问它,但问题是我丢失了所有代码.

Some time ago i uploaded to google play an app for my family restaurant which was something like showing the menu, timetable, prices..all that stuff. It's still in the google play and i have access to it by google developers but the problem is that i lost all the code.

有没有办法恢复数据以添加一些新信息然后更新我的应用程序?

Is there any way of recovering the data to add some new info and then update my app?

非常感谢.

推荐答案

为此,您需要一个有 root 权限的设备:

You'll need a rooted device for this:

将应用程序安装到您的设备上,然后使用以下命令从设备上取下 apk:

Install the app to your device, and then take the apk off of the device using:

  1. 通过随附的 USB 数据线将已植根"的 Android 设备插入计算机.
  2. 从你的 adb 命令行(通常是 C:\android-sdk-windows\tools\)输入 adb shell 并按回车
  3. 切换到root用户,输入su并回车
  4. 输入cd data/app"并按回车
  5. 列出所有已安装的apk文件,输入ls并回车(找到你要解压的那个)
  6. 在另一个命令窗口中,通过键入以下命令将其中一个文件拉到您的计算机上:adb pull/data/app/application.apk name.apk 然后按回车
  1. Plug your "Rooted" Android device into your computer via the included USB cable.
  2. From your adb command line (usually C:\android-sdk-windows\tools\) type adb shell and press enter
  3. Switch to root user, type su and press enter
  4. type "cd data/app" and press enter
  5. List all the installed apk files, type ls and press enter (find the one you want to extract)
  6. In another command window, pull one of the files on to your computer by typing: adb pull /data/app/application.apk name.apk and press enter

获得 apk 后,将其重命名为 whatever.zip 并将其解压缩为 zip 文件.您现在将看到一堆文件夹.现在可以立即恢复资产文件夹中的任何内容.对于java代码,必须使用dex2jar来转换classes.dex.jar 文件.之后,您可以使用 JD-GUI 从 .jar 文件中读取代码.

Once you have the apk, rename it to whatever.zip and extract it as a zip file. You will now see a bunch of folders. Anything in your assets folder can be recovered now right away. For the java code, you must use dex2jar to convert classes.dex to a .jar file. After that, you can use JD-GUI to read the code from the .jar file.

要提取 AndroidManifest.xml 和 res 文件夹中的所有内容(布局 xml 文件、图像等),您必须使用 APKTool运行以下命令:

To extract AndroidManifest.xml and everything in res folder(layout xml files, images etc.) you must use APKTool Run the following command :

apktool.bat d sampleApp.apk

它还提取了所有.class文件的.smali文件,但这些文件很难阅读,你应该使用dex2jar中的代码.

It also extracts the .smali file of all .class files, but these are difficult to read, and you should use the code from dex2jar instead.

这篇关于从 apk Google Play 恢复文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆