-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
*.iml | ||
.gradle | ||
/local.properties | ||
/.idea/workspace.xml | ||
/.idea/libraries | ||
.DS_Store | ||
/build | ||
/captures | ||
.externalNativeBuild |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
|
||
library目录下有反调试,防so注入等代码,修改jni代码后,运行rebuild project即可重新生成so | ||
|
||
inject目录下有so注入例子 | ||
|
||
|
||
### Inject说明 | ||
|
||
1. 真机先进行root | ||
|
||
2. android6.0/7.0禁掉Selinux | ||
|
||
adb shell setenforce 0 | ||
|
||
3. local.properties配置好NDK目录 | ||
|
||
4. cd 进入 inject目录,执行 ndk-build 命令 | ||
|
||
5. 将so和可执行文件inject导入真机,执行 inject | ||
|
||
adb root | ||
adb remount | ||
adb push libs/armeabi-v7a/libqever.so /data/local/tmp | ||
adb push libs/armeabi-v7a/inject /data/local/tmp | ||
adb shell | ||
cd /data/local/tmp | ||
./inject ... ... ... | ||
|
||
|
||
|
||
# Thanks | ||
|
||
https://github.com/fourbrother/android_anti_debug | ||
|
||
https://bbs.pediy.com/thread-194080.htm | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/build |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
apply plugin: 'com.android.application' | ||
|
||
android { | ||
compileSdkVersion Integer.parseInt(rootProject.android_compileSdkVersion) | ||
buildToolsVersion rootProject.android_buildToolsVersion | ||
defaultConfig { | ||
applicationId "com.wiseyq.sojni" | ||
minSdkVersion Integer.parseInt(rootProject.android_minSdkVersion) | ||
targetSdkVersion Integer.parseInt(rootProject.android_targetSdkVersion) | ||
versionCode 1 | ||
versionName "1.0" | ||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" | ||
|
||
ndk { | ||
moduleName "ccprotect" | ||
ldLibs "log", "z", "m" | ||
abiFilters "armeabi", "armeabi-v7a", "x86" | ||
} | ||
} | ||
buildTypes { | ||
release { | ||
minifyEnabled false | ||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | ||
} | ||
} | ||
|
||
sourceSets { | ||
main { | ||
jniLibs.srcDirs = ['libs'] | ||
assets.srcDirs = ['assets'] | ||
} | ||
} | ||
|
||
} | ||
|
||
dependencies { | ||
compile fileTree(dir: 'libs', include: ['*.jar']) | ||
compile "com.android.support:appcompat-v7:${android_support_libs}" | ||
compile 'com.jaredrummler:android-processes:1.0.9' | ||
compile project(':library') | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Add project specific ProGuard rules here. | ||
# By default, the flags in this file are appended to flags specified | ||
# in /Users/luffyjet/Documents/android-sdk/tools/proguard/proguard-android.txt | ||
# You can edit the include path and order by changing the proguardFiles | ||
# directive in build.gradle. | ||
# | ||
# For more details, see | ||
# http://developer.android.com/guide/developing/tools/proguard.html | ||
|
||
# Add any project specific keep options here: | ||
|
||
# If your project uses WebView with JS, uncomment the following | ||
# and specify the fully qualified class name to the JavaScript interface | ||
# class: | ||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview { | ||
# public *; | ||
#} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="com.wiseyq.sojni" > | ||
|
||
<application | ||
android:allowBackup="true" | ||
android:icon="@mipmap/ic_launcher" | ||
android:label="@string/app_name" | ||
android:supportsRtl="true" | ||
android:theme="@style/AppTheme" > | ||
<activity android:name=".MainActivity" > | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN" /> | ||
|
||
<category android:name="android.intent.category.LAUNCHER" /> | ||
</intent-filter> | ||
</activity> | ||
</application> | ||
|
||
</manifest> |