During this time, I was learning about Android Application Development. I was thinking that since Java was used for development, it should be a good decompilation to get the source code. Google is actually very simple. Here is my practice process. I solemnly declare that the purpose of the post is not to crack the software of other people, but it is completely a learning attitude, but it seems that some foreign software can be customized in this way.1
by modifying the SMali file code.It is common practice to obtain an index value for a resource in the res Resource Directory, and then search the smali directory for the . Smali file that contains the index.0x7f0c004e /home/lionel/outdir/smali/*The command is to traverse files and subfolders that contain '0x7f0c004e ' files under the specified directory2. RePack the apk file Apktool B/home/lionel/outdir编译指定目录下文件,默认生成的apk在同目录的dist文件夹中但现在还不能安装在手机里,新生成的apk需要签名20000keytool-genkey-v-keystore ( gener
Tool Description:Apktool:: To decompile the APK, generate the program's source code and pictures, XML configuration, language resources and other files. Official address: https://ibotpeaches.github.io/Apktool/Dex2jar: Decompile The APK to Java source (Classes.dex into a JAR file) official address: Https://github.com/pxb1988/dex2jarJd-gui: View apk in Classes.dex converted into a jar file, that is, the sourc
As Android application developers, have to face an embarrassing situation, is their own hard to develop the application can be easily compiled by others.
Google also seems to have found the problem, starting with SDK2.3 we can see a Proguard folder under Android-sdk-windows\tools\
Proguard is a Java code obfuscation tool, through Proguard, others even decompile
Find class. Dex in the Android software installation package:Change the APK file name to .zip, and decompress the class. Dex file. This is the Java file compiled and then packaged with the DX tool.
Tool preparation:1. decompile the DEX file into a jar file. (Dex2jar) http://code.google.com/p/dex2jar/downloads/list 2. decompile the jar into a Java tool. JD-GUI)
Android project package apk and apk decompile, androidapkI. general principles and disadvantages of Project Packaging
(1) develop a simple project and release it as an APK file. If we do not use the signature method, find * in the bin directory *. the apk file is very convenient, but when we use it, it may be overwritten and installed by other programs. The specific explanation is as follows:
(2) We have c
I have never thought that decompiling apk is so convenient, and it can be modified and re-compiled and run. This is much easier than modifying pe in win, thanks to the authors of apktool and smali for providing such a good tool.
The common practice of tracking apk is to insert the log output in the decompiled smali code and re-compile and run the code to view the output log. This method is time-consuming and labor-consuming. It is best to debug the SDK in real time. After searching, the better
-guiAddress for online installation http://java.decompiler.free.fr/jd-eclipse/updateDownload the image file address: Http://jd.benow.ca/jd-eclipse/downloads/jdeclipse_update_site.zip(3) The installation of the image file is used.Installation process:Help->install new software->add->archive (select Zip file)/fill in url-> Select Install(4) Configure class default open mode after reboot (class file Editor) but I restarted Eclipse Discovery not configured, configured. In fact, the default open mode
need to modify it. (Modify Apksigner.bat to remove comments from the downstream)Type Apksigner.input.txt | Keytool-genkey-alias%jks%-keystore%jks%-storepass%pwd%-keypass%pwd%-keyalg rsa-validity 200006, after modifying the settings in the Apksigner.bat script (set App=demo), execute apksigner.bat to demo_unsign.apk signature, generate demo_signed_final.apk file.7. Remove the original APK app on your phone
Every time the anti-compilation is a very annoying thing, tired began to lazy. Write scripts directly to save the operation.Using Apktool,d2j-dex2jar for anti-compilationScript: reseve-complie-apk.py1 ImportOS2 ImportSYS3 Importcommands4 5 6Base_dir=""7Apktool_path="%s"%Base_dir8Dex2jar_path=".. /dex2jar-2.0"9 Ten defapktool_d (apk): Onecmd ='Apktool D%s'%apk A Printcmd - os.system (cmd) - Pass the - defApktool_b (apkdir): -cmd ='Apktool B%s'%Apkdir - Printcmd + os.system (cmd) -
Independent of the system app in the android source code, developed like a common app, Android appI personally recommend that you first import the formatted xml and import in the ide/eclipse of the android source code to your compiled eclipse. If the
(1) Android. App. Fragment: the minimum compatible version is Android: minsdkversion = "11"
Therefore, your application is not compatible with applications under 3.0.
You can use the
(2) Android. Support. v4.app. Fragment: compatible with version 1.6. The ProgramIn th
Android encapsulates this approach, and we don't have permission to call it, so we can just go through the aidl and use the Java reflection mechanism to invoke the system-level approach.
The following code: (note more detailed)
/** * Role:-----Get the size of the package-----* @param context * @param pkgname app's package name * @param appInfo entity class for storing some information about the app/PU
1. Why can third-party apps start up earlier than the system app? Android App Launch Order online there is a lot of information can be consulted, here is not detailed, here does not elaborate ROM start and bootloader, the general process of software startup should be
Start kernel
Run ServiceManager to start up some native services with commands (incl
Several projects have been developed recently, involving several development models of Android. For the original ecological development, Web application development and Mixed mode development, I think that is not what is the best, which is the worst, this is entirely based on their own needs, choose a suitable development model. They also have their own a bit, but also have their own shortcomings, we based on the actual situation, take the advantages,
July 5, 2014, 6th, AVOs Cloud Joint Move point Technology, seven Qiniu storage, Ucloud, push Network, Segmentfault, EOE Developer community, offer, csdn and Geek College come to Mordor, A two-day hacking marathon was held for developers. This event is an exclusive collaborative media with Dynamic point technology, which features a special report on developers ' ideas and products. Love encryption as the guardian of mobile application security, was invited to be the jury guest of this contest.App
During the Android Application Development Process, an exception may occur and a stack information is printed. Although the stack contains an abnormal address, use the arm-Linux-objdump command to decompile the dynamic library, but the corresponding address cannot be found. In fact, the JNI dynamic library developed by using ndk alone cannot decompile the real ad
to like love encryption such professional mobile application protection platform to provide security. ”Love encryption provides professional Android protection, providing security for user walletsIt is easy to see that "poor security" has become the most important reason for Chinese consumers not to use mobile payments. Love encryption technology team after a lot of research, the hacker to pay the malicious behavior of the
Android starts the APP in the browser, android browser appTo start an APP in a browser, follow these steps:Add intent-filter information to the ACTIVITY to be redirected:Example:Add the following link in HTML: After entering the APP, you can use getIntent () to obtain the in
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.