Skip to content

Commit 9180bd7

Browse files
committed
Announced support for android 10.
1 parent a49a3d4 commit 9180bd7

File tree

13 files changed

+33
-121
lines changed

13 files changed

+33
-121
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
![](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat)
66
![](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat)
7-
![](https://img.shields.io/badge/release-1.1.12-red.svg?style=flat)
8-
![](https://img.shields.io/badge/Android-4.0%20--%209.0-blue.svg?style=flat)
7+
![](https://img.shields.io/badge/release-1.2.0-red.svg?style=flat)
8+
![](https://img.shields.io/badge/Android-4.0%20--%2010-blue.svg?style=flat)
99
![](https://img.shields.io/badge/arch-armeabi%20%7C%20armeabi--v7a%20%7C%20arm64--v8a%20%7C%20x86%20%7C%20x86__64-blue.svg?style=flat)
1010

1111
[README 中文版](README.zh-CN.md)
@@ -19,7 +19,7 @@ xHook has been keeping optimized for stability and compatibility.
1919

2020
## Features
2121

22-
* Support Android 4.0 - 9.0 (API level 14 - 28).
22+
* Support Android 4.0 - 10 (API level 14 - 29).
2323
* Support armeabi, armeabi-v7a, arm64-v8a, x86 and x86_64.
2424
* Support **ELF HASH** and **GNU HASH** indexed symbols.
2525
* Support **SLEB128** encoded relocation info.

README.zh-CN.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
![](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat)
66
![](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat)
7-
![](https://img.shields.io/badge/release-1.1.12-red.svg?style=flat)
8-
![](https://img.shields.io/badge/Android-4.0%20--%209.0-blue.svg?style=flat)
7+
![](https://img.shields.io/badge/release-1.2.0-red.svg?style=flat)
8+
![](https://img.shields.io/badge/Android-4.0%20--%2010-blue.svg?style=flat)
99
![](https://img.shields.io/badge/arch-armeabi%20%7C%20armeabi--v7a%20%7C%20arm64--v8a%20%7C%20x86%20%7C%20x86__64-blue.svg?style=flat)
1010

1111
[README English Version](README.md)
@@ -19,7 +19,7 @@ xHook 一直在稳定性和兼容性方面做着持续的优化。
1919

2020
## 特征
2121

22-
* 支持 Android 4.0 - 9.0(API level 14 - 28)。
22+
* 支持 Android 4.0 - 10(API level 14 - 29)。
2323
* 支持 armeabi,armeabi-v7a,arm64-v8a,x86 和 x86_64。
2424
* 支持 **ELF HASH****GNU HASH** 索引的符号。
2525
* 支持 **SLEB128** 编码的重定位信息。

docs/overview/android_plt_hook_overview.zh-CN.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -768,6 +768,13 @@ inline hook 方案强大的同时可能带来以下的问题:
768768
建议如果 PLT hook 够用的话,就不必尝试 inline hook 了。
769769

770770

771+
## 联系作者
772+
773+
774+
775+
* https://github.com/caikelun
776+
777+
771778
## 许可证
772779

773780

libxhook/jni/xh_version.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
#include "xh_version.h"
2525

2626
#define XH_VERSION_MAJOR 1
27-
#define XH_VERSION_MINOR 1
28-
#define XH_VERSION_EXTRA 12
27+
#define XH_VERSION_MINOR 2
28+
#define XH_VERSION_EXTRA 0
2929

3030
#define XH_VERSION ((XH_VERSION_MAJOR << 16) | (XH_VERSION_MINOR << 8) | (XH_VERSION_EXTRA))
3131

xhookwrapper/app/build.gradle

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
apply plugin: 'com.android.application'
22

33
android {
4-
compileSdkVersion 28
4+
compileSdkVersion 29
55
defaultConfig {
66
applicationId "com.qiyi.xhookwrapper"
77
minSdkVersion 14
8-
targetSdkVersion 28
8+
targetSdkVersion 29
99
versionCode 1
1010
versionName "1.0"
1111
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
@@ -27,9 +27,6 @@ dependencies {
2727
implementation fileTree(include: ['*.jar'], dir: 'libs')
2828
implementation project(':xhook')
2929
implementation project(':biz')
30-
implementation 'com.android.support:appcompat-v7:28.0.0'
31-
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
32-
testImplementation 'junit:junit:4.12'
33-
androidTestImplementation 'com.android.support.test:runner:1.0.2'
34-
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
30+
implementation 'androidx.appcompat:appcompat:1.1.0'
31+
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
3532
}

xhookwrapper/app/src/androidTest/java/com/qiyi/xhookwrapper/ExampleInstrumentedTest.java

Lines changed: 0 additions & 26 deletions
This file was deleted.

xhookwrapper/app/src/main/java/com/qiyi/xhookwrapper/MainActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package com.qiyi.xhookwrapper;
22

3-
import android.support.v7.app.AppCompatActivity;
3+
import androidx.appcompat.app.AppCompatActivity;
44
import android.os.Bundle;
55
import android.util.Log;
66

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
3-
xmlns:app="http://schemas.android.com/apk/res-auto"
2+
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
43
xmlns:tools="http://schemas.android.com/tools"
54
android:layout_width="match_parent"
65
android:layout_height="match_parent"
7-
tools:context="com.qiyi.xhookwrapper.MainActivity">
6+
android:orientation="vertical"
7+
tools:context=".MainActivity">
88

99
<TextView
1010
android:layout_width="wrap_content"
1111
android:layout_height="wrap_content"
12-
android:text="Hello World!"
13-
app:layout_constraintBottom_toBottomOf="parent"
14-
app:layout_constraintLeft_toLeftOf="parent"
15-
app:layout_constraintRight_toRightOf="parent"
16-
app:layout_constraintTop_toTopOf="parent" />
12+
android:text="Hello World!" />
1713

18-
</android.support.constraint.ConstraintLayout>
14+
</LinearLayout>

xhookwrapper/app/src/test/java/com/qiyi/xhookwrapper/ExampleUnitTest.java

Lines changed: 0 additions & 17 deletions
This file was deleted.

xhookwrapper/biz/build.gradle

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
apply plugin: 'com.android.library'
22

33
android {
4-
compileSdkVersion 28
4+
compileSdkVersion 29
55
defaultConfig {
66
minSdkVersion 14
7-
targetSdkVersion 28
7+
targetSdkVersion 29
88
versionCode 1
99
versionName "1.0"
1010
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
@@ -25,8 +25,6 @@ android {
2525
dependencies {
2626
implementation fileTree(dir: 'libs', include: ['*.jar'])
2727

28-
implementation 'com.android.support:appcompat-v7:28.0.0'
29-
testImplementation 'junit:junit:4.12'
30-
androidTestImplementation 'com.android.support.test:runner:1.0.2'
31-
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
28+
implementation 'androidx.appcompat:appcompat:1.1.0'
29+
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
3230
}

0 commit comments

Comments
 (0)