如何拆分Android应用程序

发布于 2024-10-08 10:14:39 字数 59 浏览 0 评论 0原文

我想知道如何从apk中提取数据并将其存储在sd卡中。我知道这种方法是可行的,但我找到的所有指南都不清楚。

I would like to know how to extract the data from the apk and store it in the sd card. I know that this method is possible but all the guide I found is not clear.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

久光 2024-10-15 10:14:39

这是如何分割大量 APK 文件(如 NFS Shift、Breakbreakers、KrazyRacers、The Sims 等)的方法,所以请按照我的说明操作:
我们应该知道要拆分的应用程序/游戏的原始文件名。
例子 :
NFS 转变 = com.ideaworks3d.nfsshift
断路器 = com.ideaworks3d.tackle
KrazyRacers = com.polarbit.krazyracers
因此,要了解原始文件名..我们应该运行 Dalvik 调试软件 (ddms.bat) 并且...

按照上图的说明操作,在 Dalvik 调试器上单击您的手机名称,在日志面板上查看进程,然后搜索关键字 : runNative 了解数据文件(拆分 apk 文件的结果)在 SD 卡上的保存位置。
有标题:runNative:/data/data/com.ideaworks3d.nfsshift/files
所以我们可以得出结论,sd卡数据将存储在 sdcard://data/data/com.ideaworks3d.nfsshift/files 上
将 apk 文件重命名为 zip 文件(例如 nfsshift.apk 变为 nfsshift.zip)。然后..只需使用 winzip 或 winrar 将其解压到您的电脑上。
在提取的文件中,我们将看到“assets”文件夹。打开该文件夹,然后..检查哪个文件最大。
将最大的一个复制到: runNative 的位置(见上文!它是在 Dalvik 上发现的对象)
仅供参考,如果最大的文件扩展名是 *.jpg,只需删除 .jpg 扩展名,然后复制到 runNative 位置。 (例如:data.dz.jpg,将是data.dz)
所以..单击两次重命名的 apk zip 文件,删除 asset 文件夹中最大的文件,然后再次将 *.zip 文件重命名为 *.apk 文件。
然后,将分割后的apk文件安装到您的Android手机上(如果应用程序/游戏已经存在,只需先将其删除,然后重新安装)

来源:
http://butterflyfair.wordpress.com/2010/08/31/how-to-split-apk-file-smaller-apk-file-and-adding-sd-card-data-manually/

This is the way how to split massive APK file (like NFS Shift, Breakbreakers, KrazyRacers, The Sims, etc), so please follow my instruction :
We should know about original file name of app/game that we want to split it.
Example :
NFS Shift = com.ideaworks3d.nfsshift
Breakbreakers = com.ideaworks3d.tackle
KrazyRacers = com.polarbit.krazyracers
So, to want to know about the original file name..we should run Dalvik Debug Software (ddms.bat) and…

Follow the instruction on image above, click your phone name on Dalvik Debugger, see the process on log panel, and search keyword : runNative to know the location to save data file (result of splitting apk file) on sd card.
There is caption : runNative: /data/data/com.ideaworks3d.nfsshift/files
So we can conclusion that sd card data will store on sdcard://data/data/com.ideaworks3d.nfsshift/files
Rename apk file to zip file (example nfsshift.apk become nfsshift.zip). Then..just use winzip or winrar to extract it on your PC.
On extracted files, we will see “assets” folder. Open that folder, then..examine what file is biggest size.
Copy that biggest one to : location of runNative (see above! it’s discovered object on Dalvik )
FYI, if the biggest file extension is *.jpg, just remove .jpg extension, and copy to runNative location. (example : data.dz.jpg, will be data.dz)
So..click twice zip file of apk that renamed, delete the biggest file on assets folder, then rename back again *.zip file to *.apk file.
Then, install splitted apk file to your Android phone (if apps/games already exists, just remove it first, then reinstall it)

Source:
http://butterflyfair.wordpress.com/2010/08/31/how-to-split-apk-file-smaller-apk-file-and-adding-sd-card-data-manually/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文