How the Android program is changed from the source code to the APK that can be installed using
Original link http://sparkyuan.github.io/2016/04/01/from source to apk/, reprint please indicate sourceProcess official versionDetailed versionAbove is a typical flowchart of the build process.
AAPT (Android Asset Pa
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. The first two we talked about the shell technology and the runtime to modify the bytecode, if there is not clear can see my blog in the first two of the introduction of these two technologies. Next we will introduce another easy-to-use technology that pre
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
location and password for the keystore export, and remember the password. It will be used in the next use existing keystore.Step 3: Enter the keystore information, password of some APK files, expiration time, and organization unit information.Step 4: generate an APK file with a signature, and this will end.Step 5: Use the previously generated keystore to sign the next release.
Step 6: Next, next, end!
Meth
to compile Java, make sure the system is using the Keytool in the JDK, not the GCJ. If Keytool is already in path, it may be a symbolic link to/usr/bin/keytool. In this case, check the target of the symbolic link to make sure it is pointing to the keytool in the JDK.
If you want to publish your application, you also need the Jarsigner tool. Both Jarsigner and Keytool are included in the JDK.
Signature in debug modeThe Android compiler tool provides
app Cottage Crazy Love encryption APK encryption platform anti-cracking, Android system because of its open source, now occupy the global Smart machine near 80% WP system and Apple's ios system. However, it is also due to open source, android piracy app
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
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
As an Android developer, the job is to decompile others ' apk, of course, the main purpose is to learn more, take the long, make up for the short. Let's summarize some of the knowledge about Android Decompile and two packaging today. First of all, the purpose of this article is to explain the principles and methods of decompile and two-pack by example, and then a
A lot of people have appeared java.lang.RuntimeException:Unable to instantiate activity componentinfo{*****activity}: Java.lang.ClassNotFoundException:Didn ' t find Class "*****activity" on path:/data/app/*******.apk error, in Android development, I also encountered this problem, tangled up for two days, finally resolved, combined with my own online to find, is n
The apk file is actually in the zip format, but the suffix name is modified to APK, after decompression through unzip, you can see the Dex file, Dex is the full name of Dalvik VM executes, that is, Android Dalvik execution program, not Java The bytecode of me is the Dalvik byte code.Since the APK file itself is a compr
Our idea is that each member of the team uploads their code to SVN at a specified time (for example, 18:30) and then updates the code at a specified time (for example, 18:30), executes the ant Packaging command, Finally, the APK package will be stored in the specified directory (or upload the specified FTP directory), other departments or colleagues can access the specified address to download the latest APK
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
.: Modify the suffix of the apk file to obtain the class. dex file;
B. Execute Decompilation: Copy classes. dex to the dex2jar directory and run./D2j-dex2jar.sh classes. dexCommand;
--Execution result:
octopus@octopus:~/decompiler/linux/dex2jar-0.0.9.15$ ./d2j-dex2jar.sh classes.dex dex2jar classes.dex -> classes-dex2jar.jar
C. view source code in jd-gui: Drag the classes-dex2jar.jar file into jd-gui to view the source code;
3. obfuscation code
very simple, by comparing the unity packaged apk, with the common Android apk file differences, find the Unity file storage directory, then corresponding to the Android Studio project directory, and finally through the Android Studio completes the packaging of the unity-rel
In the work, often encountered the need to modify the APK package in the resource files, to verify the different configuration of the program running conditions.The process is as follows:1. First connect the phone, enter the command line, enter:adb root, so that the ADB gain root privileges.2. Input:adb shell, enter Android shell3. Enter:Mount-oremount/system, mount the system path as readable executable, o
1) Copy the APK files that need to be installed into the Tools folder of the Android SDK (APK and Emulator.exe same folder), here we demonstrate the installation of the renren_android_1.5.apk (everyone client) file2) Execute Windows Start menu \ = All Programs = + Accessories + = Command Prompt or via Win+r combo key t
To delete the APK under the system/APP directory, because the/system/APP directory is read-only by default, to delete these APK, you must first obtain the permission to delete the system directory. Follow these steps to delete the APK file under system/
;
21}
Application scenarios of APK signature comparison
After the above discussion, we must have understood the principles of signature comparison and my implementation methods. So when can we use signature comparison to ensure the security of Android APK software?
I personally think there are three main scenarios:
1. program self-detecti
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.