://github.com/facebook/redex.gitAbout the APK slimming we summed up here, there should be a lot of better solutions, if there are mistakes, welcome to add.For more Android beauty, read the "Android beauty from 0 to the best of the Road" series article
The level is limited, if have errors and omissions, welcome
After a busy week and finally having time to write something, we continue to introduce another way for Android APK to prevent anti-compilation technology. Top two we talked about Shell technology (http://my.oschina.net/u/2323218/blog/393372) and runtime modification bytecode (http://my.oschina.net/u/2323218/blog/396203) , if there is something you can see in the first two articles of my blog about both of t
documentation. There are two ways of signing: one is to use the Jarsigner tool signature provided in the JDK, and the other is to use the SIGNAPK tool provided in the Android source code, which is located in the source build\tools\signapk directory of the Android system.Seventh step: Align the apk file after the signature. "Input" after signing the.
Service (Packagemanagerservice) does not care about this encryption bit (which we call it for the time being) during APK installation, and does not affect the operation of the APK.Two, zip file formatZIP file format usually consists of three parts: compressed file source data, compressed directory source data, directory end identity. The three sections that are related to the encryption bits we're talking about are the compressed directory source dat
call it for the time being) during APK installation, and does not affect the operation of the APK.Two, zip file formatZIP file format usually consists of three parts: compressed file source data, compressed directory source data, directory end identity. The three sections that are related to the encryption bits we're talking about are the compressed directory source data section, which we'll cover in detail next.The compressed directory source data s
publishing organization is difficult to disguise. We can think of it as not camouflage for the time being.
With the theoretical foundation, we can start to practice. So how can I obtain the public key information of the APK file? Because the Android system installer will certainly obtain the APK information for comparison, we can get some ideas and help through
we need to use the signature method to package our software. The procedure is very simple. Right-click the project --- Android-Tools --- Export Android Application -- and we will not introduce it later! Follow your own needs!
Iii. Implementation Process of apk Decompilation
(6 steps in progress, we have produced a signed APK
, click the Project right button---android-tools---Export Android application--and then the back is not introduced! Follow your own needs!Third, the APK's anti-compilation implementation process(6) In the previous step, we have generated a signed apk file test.apk then we use decompression software, unzip,is both the extracted directory, various configuration fil
import-module,tools/simulator/libsimulator/proj.android), which is preceded by the # sign, comments.7. Select Project-build all on the menu bar, the process is long because all the library files are compiled.8. After compiling, you can see: [Armeabi] Install:libcocos2dlua.so = libs/armeabi/libcocos2dlua.so9. Package your signature. omitted here.In the virtual machine or mobile phone run, you can see the last: Really ugly oh.650) this.width=650; "src=
that some of the Android SDK's command tools are available directly to the terminal, such as the ADB command.
The code is as follows:
Android_home= $HOME/android-sdk-linux
Export path= "$PATH: $ANDROID _home/tools: $ANDROID _home/platform-tools"
Exprot Android_home
Make environment variables effective
The code i
then aligns the APK with the Zipalign tool. The whole process does not require manual intervention.
Debug certificate ExpirationThe certificate used for signing in debug mode expires after 1 years from the date it was created. When the certificate is invalidated, a compilation error is obtained and the ant error is as follows:
View Sourceprint?1 Debug:
2 [echo] packaging bin/samples-debug.apk, and signing it with a debug key ...
3 [EXEC] Debug ce
B's menifest file to declare the use of the appropriate permissions, App B sends the message, a is not received.In addition, you can also add android:protectionlevel= "signature" When declaring permissions in App B's Menifest file, specifying that app B can only receive messages sent by apps signed with the same certificate.The mutual invocation of data between the two Android apps is an issue that we often encounter, and this article focuses on the
{}, Landroid/os/debug;->waitfordebugger () VThis is Smali syntax, in fact, the corresponding Java code is:Android.os.Debug.waitForDebugger ();Here the Java language translated into Smali grammar, not difficult, online has Smali syntax parsing, here do not want to explain.Step three: Compile the APK and sign the installation againJava-jar Apktool_2.0.0rc4.jar b-d Out-o debug.apkor use Apktool to compile backAfter compiling, will get debug.apk file, bu
The example described in this article is the Android code for a weather report, which includes downloading and installing APK, checking apk updates, displaying ' already up-to-date ' or ' unable to get version Information ' dialog box, getting current client version information, displaying the Version Update Notification dialog box, displaying the Download dialog
Use of the Signing tool
the Signapk.jar of the Android source code can either be signed by the APK or signed by the ROM. Use format:
Java–jar Signapk.jar [W] publickey.x509[.pem] privatekey.pk8 Input.jar Output.jar
-W refers to the parameters that need to be used when signing a ROM
PUBLICKEY.X509[.PEM] is a public key file
PRIVATEKEY.PK8 refers to the private key file
How to slim down your Android Installation File (APK)
It is an indisputable fact that the apk file of Android is getting bigger and bigger. In Android or the original version, the apk file size of an app is only about 2 MB. Now,
How to slim down your Android Installation File (APK) and androidapk
Source Address: How to slim down your Android Installation File (APK)
It is an indisputable fact that the apk file of Android is getting bigger and bigger. In
Bruce ZhangRecently, because I wanted to invoke the interface of Android's activity in the script component of scene, we needed to figure out the actual correspondence between scene and activity, and studied some of the principles that unity calls Android.This article focuses on the relationship between scene and activity, and where is the difference between Unity Pack apk and Android Studio pack
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.