Android Source Code compiling apk import third-party package error, androidapk
The error message is as follows:
Make: * ** no rules are available to create the target "out/target/common/obj/APPS/AndroidWFS_intermediates/classes-full-debug.jar" required by "out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes. jar ". Stop.
Solution:
Copy the project
1. Download the anti-compilation tool dex2jar and Jd-gui from http://download.csdn.net/detail/dingyuming1991/9618125 (you can also download Google search);2. the APK package to be anti-compilation to the extension zip (apk package is actually a zip package), unzip the zip file;3. In the extracted folder there will be a classes.dex file (binary file of the program), in the download dex2jar and Jd-gui found
preparatory work
Download the anti-compilation tool Apktool, Dex2jar
Jar View tool Jd-gui for Mac
: http://download.csdn.net/detail/linsen618/86682091. Decompile The resource file
Open the terminal CD to the directory that holds the Apktool (you can use LS to view the folders in the current directory, and then keep looking for CDs to APKTOOL)
Input chmod +x apktool modify Apktool to executable
Enter ./apktool d xx.apk to perform the anti-compilation
The error content is as follows:make: *** 没有规则可以创建“out/target/common/obj/APPS/AndroidWFS_intermediates/classes-full-debug.jar”需要的目标“out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes.jar”。 停止。Solution:
Copy the project to the Packages/apps directory
New Android.mk File
Local_path:=$(Call My-dir)include $(Clear_vars)Local_module_tags := OptionalLocal_src_files :=$(Call All-java-files-under, SRC)local_java_libraries := commons-httpclient-3.0.1commons-io-2.1Core Tools
The principle is based on the multi-channel packaging tool in the previous article. We use apktool to decompress the APK file to be verified, read androidmanifest. XML, and output the package when we read the channel number line.
The source code is as follows:
Main. Java
Package COM. market5577.channelverifytool; public class main {public static void main (string
Download Apktool_2.0.1.jar (all files are available for download at the bottom of the package article): http://ibotpeaches.github.io/apktool/Apktool.bat@echo off if " %path_base% " "" Set path_base=%path%set path=%cd%;%path_base%"%~dp0\apktool.jar" % 1 %2 3 %4 5 %6 %7 % 8 9 Execute command (cmd to the directory in which it resides)123. apkDecrypt source code1. Unzip the apk file copy "Classes.dex" to the D
Decompress the two tools. As the name suggests, dex2jar is the ***. dex file into ***. jar tool, JD-GUI is graphical view ***. jar source code ToolView the source code of the Jar file:Open ***. jar directly with the JD-GUI.View the Apk and Dex
Android Source Code compiling apk import third-party package Error
The error message is as follows:
Make: * ** no rules are available to create the target "out/target/common/obj/APPS/AndroidWFS_intermediates/classes-full-debug.jar" required by "out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes. jar ". Stop.
Solution:Copy the project to the packages/
Decompile apk for Mac to obtain resource files and source code.Preparations
Download decompilation tools apktool and dex2jar
Jar viewing tool jd-gui for mac
: Http://download.csdn.net/detail/linsen618/8668209
1. decompile the contributed source file
Open the terminal cd to the directory where apktool is stored (you can use ls to view the folder unde
We do Android development, see others application of some good features, is not very want to get the source code, for reference? Since Android is developed in Java, we can easily decompile the source code to the application. Let me briefly explain how it should be done.Specific steps:1. First change the
Required Software: http://download.csdn.net/detail/suixiang888/4788195 credit is not enough, please trust me
1. First find classes. Dex in the android installation package
Change the APK file name to .zip, and decompress the classes file. dex file, which is compiled by a Java file and then packaged by the DX tool. Now we use the two tools mentioned above to export the Java source file in reverse direction
>>>>> In any Java file under javasclock, import android. OS. systemproperties; then add the user library and set the layoutlib. jar is added in. It is reasonable to say that it is enough, but eclipse compilation can be passed. Compiling APK in the source code always prompts that the symbol systemproperties cannot be found, and I am almost crashed, if you have tim
References.
1. Android Projectd Building System
VcD4KPHA + signature + 3zwvcD4KPHA + signature/Signature/WztLPwtTYtcTUtMLrxL/CvM/Signature + signature + PGJyPgo8L3A + signature + Signature = "http://www.2cto.com/uploadfile/Collfiles/20140401/20140401092726118.png" alt = "\">
At this time, the gen directory has no content, and the bin directory is not displayed in the project directory. However, you can view the content on the terminal as follows:
NO content in the classes folder
2.
The premise is that Java, SDK, NDK, CMake, Gradle, Gradlew are all installed and configured.1. Download the source code:git clone http://git-ma.xxxx.com.cn/xxxx/xxxxx-ANDROID.git2, change the actual project useful Android small framework, frame folder on the Master branch. The develop branch to be compiled does not have this folder. Need to download the nextgit submodule update--init--recursive3. Enter the Android project directory
./gradlew
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 th
Robotium is based on the instrumentation framework, and its test scripts are written in the same process as the program being tested, so this requires the test program to have the same signature as the program being tested, otherwise it will not be able to communicate.In the case of APK only, the program can be signed with the method of "sign and sign again". And no sign of the APK is not loaded into the ph
First, prefaceToday we start apk hack another way: Dynamic code debugging hack, before actually in an article on how to crack apk:Android use static way to hack apk is mainly used in static mode, the steps are very simple, first use Apktool to decompile the APK, get Smail source
Because its code is managed code placed on a Dalvik virtual machine, Android can easily decompile it into code that we can identify.
I've written an article that apk the Android package to the Smali file and then recompile the signature to implement the tamper-apk functiona
1. First create a new the3rdapk directory under the vendor directory, you will need to put the built-in apk, the directory name is arbitrary.2. On the last side of Build/target/product/common.mk, join your APK before $ (call Inherit-product, $ (src_target_dir)/product/core.mk)The first part is the path to the local apk, and/system/app/represents the directory tha
In fact, this is not a difficult thing, there are hot update technology, just record, the great God do not laugh.First of all, the idea, the first to have updated interface, as long as the app, monitoring the interface, whether updated, updated, to detect whether the local version is less than the version returned by the interface, low, then download the APK update according to the path returned. The field returned by the interface has at least update
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.