Today, when I wrote the program, my Android Studio suddenly compiled the error (the error is as follows:) and then after my several times to find out that every time you have to clear project and then build on it, if you build the second time to error. Then I found the strongest teacher (Google) to try to solve! Unfortunately, what I see on Google is the solution on eclipse. Didn't find the answer I wanted, do I have to clear project every time I buil
in one of the jar bags in libs. Hide the Annotation.jar bag, delete it is OK. This is the most Orthodox solution.2. Downgrade the V4 package. Because the v4 of the high version number includes Annotation.jar, it is possible to force the setting in the outermost build.grable:{ repositories { jcenter() } configurations.{ resolutionStrategy.force ‘com.android.support:support-annotations:22.1.0‘ }}3, in the need to V4 bag exclude drop annotation bag. Note that compile will
setbackgroundresource () method to redraw the background of mmainframe.
2) The next incoming call will be followed by a large sticker used by the phone.---------Yes. This should be cleared at the end of the call. This is simple. Modify incallscreen. smali and find
.method private delayedCleanupAfterDisconnect()V
This method. Then find the return-void line of code, and insert the following code in several lines above:
... # Fixed by aimingoo # reset the background const/4 v0, 0x0 iget-object V1,
Android decompilation and Secondary packaging
As an Android developer, it is essential to decompile other people's apk at work. Of course, the main purpose is to learn more, take the leader and make up for yourself. Today I will summarize some knowledge about Android decompilation and secondary packaging. The purpose of this article is to explain the principles a
, P0, landroid/os/message;->obj:ljava/lang/object;Invoke-direct {v0, v1, p1, p2}, Landroid/os/asyncresult;-> . Line the . LocalV0,"ret": Landroid/os/asyncresult;Iput-object V0, P0, Landroid/os/message;->obj:ljava/lang/object; . Line -Return-object V0. EndMethodAnd the source code is more readable than the in
Reprinted please indicate the source: http://www.blogjava.net/zh-weir/arch...11/352099.html
APK Crack
Before writing this article, I was hesitant to start a Pandora box? Later, we thought that similar Android malware had already been released, indicating that many software security experts or hackers are familiar with this. As a evangelist, I only tell you the secrets that a few people know. As a result, I think I am contributing to the early maturity
Record it, Tinker two days and finally find out why, right-click Robotium project, Choose Build path->configure build path ..., Delete in libraries Android-support-v4.jar, Problem solving.Note: even if the source being tested has the same jar
Android-smali syntax learning and android-smali syntax
Reprinted please indicate the source: http://blog.csdn.net/goldenfish1919/article/details/40821415
The following content comes from: http://bbs.pediy.com/showthread.php? T = 151769
Dalvik bytecode can be of the original type or reference type. Objects and arrays are reference types, while others are original types.V void, which can only be used for the
From One. Configuring the Android Environment1. Installing the JDKHttp://www.oracle.com/technetwork/java/javase/downloads/index.htmldwonloads-> Download JDKThe version I downloaded isJdk-8u91-windows-x64.exeAfter you've installed it all the way, add the user variableThe Java_home value is the installation directory I:\ANDROID\JDKand add the I:\Android\jdk\bin to
modification is required for incallscreen. smali.---------Find:
.field private mMainFrame:Landroid/view/ViewGroup;
Changed:
.field public mMainFrame:Landroid/view/ViewGroup;
We need to access this member in callcard. smali, so it must be public ).
2) Modify callcard. smali for the updatedisplayforperson () method---------Find:
.method private updateDisplayForPerson(Lcom/android/internal/telephony/CallerInfo; ...
In this method, find the only showcach
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 as a follow-up explanation to prevent two pack
1. Download the Extract SDK
Download the Weibo Android SDK Pack first:
Open URL: https://github.com/sinaweibosdk/weibo_android_sdk
Download the SDK to the local, unpacked directory structure:
Click to enter the "DEMO-SRC" directory, the structure is as follows:
Import all two of the above items into eclipse!!
2. Lead Demo to eclipse
The file encoding for two items was modified
Methods.method public Constructor Lt;init> () v. Locals 0. Prologue. Line 9 Invoke-direct {p0}, landroid/support/v7/app/appcompatactivity;-> then we need to repackage the modified file directory, execute the command Apktool b app-release, will generate two folders in the App-releae directory: inside the build folder are some intermediate files (Classes.dex, etc.), The Dist folder contains a repackaged apk file. Finally, remember to sign the generate
as follows:. Class public lcom/example/Android/helloactivity;. Super landroid/APP/activity;. Source "helloactivity. Java"# Direct methods. Method public constructor . Locals 0. Prologue. Line 27Invoke-Direct {P0}, landroid/APP/activity;-> Return-void. End Method
# Virtual Methods. Method public oncreate (landroid/OS/b
Figure Description: Moving, backup after the launch of Android virtual machine appears
Solution to the problem of panic:could not open D:\java2\android\android-sdk-windows\.android\avd\test.ini
A few days ago, I am sorting some files, the previously installed on the Android
Intermittent finally to the Android development and reverse of the two books, although there is no Java, and Android development of the basis, but the overall feeling is still relatively able to receive, after all, are analogy. Of course, it is necessary to dig into the details and Chine of the language.
Here are 2 books, and I personally think it's better for Android
variables# Direct methods defines tags for static methods# virtual methods tags that define non-static methodsThe return type of the constructor is V, and the name is If-eq P1, V0,: Cond_8 represents the process of running P1 if V0 and cond_8 are equal:: Cond_8Invoke-direct {p0}, lcom/paul/test/a;->d () VCall the D () method of COM.PAUL.TEST.AIf-ne P1, V0,: Cond_b means that the process of running cond_b is not equal:: cond_bCONST/4 V0, 0x0invoke-virtual {p0, v0}, lcom/paul/test/a;->setpressed
Use the signature mechanism for program self-check-Android anti-cracking and self-check android
Self-check program written in so
Main Code
Import in File Header
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)#include
Then write Java in cpp to call the c interface
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)extern "C"{JNIEXPORT jint JNICALL Java_org_cocos2dx_cpp_AppActivity_checkAPK(JNIEnv *env, jclas
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.