How to split android applications
I would like to know how to extract the data from the apk and store it in the sd card开发者_JAVA技巧. I know that this method is possible but all the guide I found is not clear.
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/
精彩评论