This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
compile project(":shared") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
出错输出 | |
Dalvik VM unable to locate class 'HelloWorld' | |
------------------------------------------------------------------ | |
这个问题我也碰到过,不知道跟你原因是否一样, | |
我用smali.jar编译HelloWorld.smali文件的时候输出的dex文件名定义为HelloWorld.dex,结果出错,后来按照书里的java -jar smali.jar -o classes.dex HelloWorld.smali执行,最后测试运行结果就正确了。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%o 八进制 | |
%x 十六进制 | |
%c 字符 | |
%和小数点之间表示宽度 | |
小数点和标识之间表示精度 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. 安装smalidea(https://github.com/JesusFreke/smali/wiki/smalidea) | |
2. 在IDEA中选择New Project -> New project from exit source | |
3. 将smali源码文件夹右键 -> Make as source folder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package tonghu.com.wechatdicecrack; | |
import android.app.ActivityManager; | |
import android.content.pm.ApplicationInfo; | |
import android.content.pm.PackageInfo; | |
import java.util.ArrayList; | |
import java.util.List; | |
import de.robv.android.xposed.XC_MethodHook; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int daytab[][x]:每行x个元素的二位数组 | |
int (*daytab)[x]: 同上 | |
int *daytab[x]: 一维数组,有x个元素,元素类型为int指针 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LOCAL_MODUEL := HelloWorld # 生成的模块名称 | |
LOCAL_SRC_FILES := HelloWorld.c # 包含的源文件 | |
LOCAL_ARM_MODE := arc # 指令集 | |
include $(BUILD EXECUTABLE) # 表示生成可执行文件,如果so库文件,则需要编写为"include $(BUILD_SHARED_LIBRARY)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
查看CPU型号:cat /proc/cpuinfo | |
Processor : AArch64 Processor rev 2 (aarch64)对应的是arm64-v8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
一般逻辑放在dll中。如安卓平台中的: | |
-rw-r--r-- 1 yi staff 162K Mar 14 22:58 ./assets/bin/Data/Managed/Assembly-CSharp-firstpass.dll | |
-rw-r--r-- 1 yi staff 2.1M Mar 14 22:58 ./assets/bin/Data/Managed/Assembly-CSharp.dll | |
-rw-r--r-- 1 yi staff 132K Mar 14 22:58 ./assets/bin/Data/Managed/DOTween.dll | |
-rw-r--r-- 1 yi staff 8.0K Mar 14 22:58 ./assets/bin/Data/Managed/DOTween43.dll | |
-rw-r--r-- 1 yi staff 16K Mar 14 22:58 ./assets/bin/Data/Managed/DOTween46.dll | |
-rw-r--r-- 1 yi staff 5.5K Mar 14 22:58 ./assets/bin/Data/Managed/DOTween50.dll | |
-rw-r--r-- 1 yi staff 15K Mar 14 22:58 ./assets/bin/Data/Managed/DOTweenPro.dll | |
-rw-r--r-- 1 yi staff 5.0K Mar 14 22:58 ./assets/bin/Data/Managed/DemiLib.dll | |
-rw-r--r-- 1 yi staff 28K Mar 14 22:58 ./assets/bin/Data/Managed/GAEAMOBILE.Unity.Platform.dll |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
virual: A use virtual and B use override | |
A a = new B(); | |
a.foo() calls B.foo() | |
new: | |
just like override in java. Just let compier know I konw it override A's method | |
override: | |
use with virtual or abstract |
OlderNewer