NativeLibCompression
====================
There are lots of NDK apps on Google software market. To
6 | reduce package size, some ISV will only release Separate APK. A native library
7 | compression sdk is given to solve the apk size problem. It is easy to integrate
8 | and will get max 50% size decreasing. Beside sdk, a Java tool for package is
9 | provided to convert normal apk to compressed apk.
12 | 13 |
HOW TO USE IT:
1.Include DecRawso into your project (if you use ant,
16 | please copy DecRawso_Jar to your project , and add the
17 | Decrawso.jar, do not use the jar in the sdk bin folder)
2.Call DecRawso.NewInstance before any native
20 | library loading!!!
3.Replace all system.loadlibrary(***) to
23 | system.load(DecRawso . GetInstance ().GetPath(***))
now, it is
26 | recommend to change to system.load, but system.loadlibrary also work.
--- build your apk as usual, and run your apk as usual
29 | when in your development, the apk is not compressed.
32 | 33 |
HOW TO COMPRESS THE APK: -- Use compress tool :
34 | ApkLibCompress/bin/ ComPressApk.jar
1.You can use it as: ComPressApk.jar -a
37 | C:/my/test.apk -k c:/key storepass keypass alias [your keyname] -x86
38 | http://www.test.com
2.if “-k” is missing, eclipse default test key will be
41 | used to sign this apk.
3.[you keyname] is optional, if not have it. the
44 | defalt CERT will be used
4.If -x86 with link is used, then x86 library will be
47 | stored on http://www.test.com/cloudrawso_x86, you must store the lib on
48 | the network bu manuanlly.
5.you can put arm lib on x86 folder to
51 | avoid library miss on x86 devices, use -nox86check to forbidden the
52 | check (x86 directly cal arm lib is unsafed)
6.you can copy all of "DecRawso_Jar"
55 | into your project if you use "ant" to package your project
7.new flag:
-o outputfilename define
60 | the finaly output file name
-slience
63 | no popup window, that is suitable for ant package
-nosign
66 | do not sign the apk, that is suitable for ant package , due to
67 | the ant will sign apk
-nox86check do not check x86 library missing and mix use of arm
70 | issue (x86 directly call arm library is forbidden default)
-noarm do
73 | not compress arm lib. just put x86 lib on the cloud (with –x86)
8.how to know the result (when you use ant)
76 | 77 | now will create 3 files in the
78 | ApkLibCompress.jar folder
:Done.flag you can check whether the file is exist , if
81 | exist , then compression is ok
:error.log if generation fail, the log will has the
84 | reason
:porting.log it will show the x86/arm mix using or x86 87 | lib missing issue
88 | 89 | http://blog.csdn.net/onlySound/article/details/58620502 90 | -------------------------------------------------------------------------------- /readme.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liyuming1978/NativeLibCompression/5981440802f6d701a912abd3f3b1c97cec04c6b3/readme.docx -------------------------------------------------------------------------------- /压缩工具问答.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liyuming1978/NativeLibCompression/5981440802f6d701a912abd3f3b1c97cec04c6b3/压缩工具问答.docx -------------------------------------------------------------------------------- /安卓压缩工具集说明文档.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liyuming1978/NativeLibCompression/5981440802f6d701a912abd3f3b1c97cec04c6b3/安卓压缩工具集说明文档.docx --------------------------------------------------------------------------------