You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**shadowhook** is an Android inline hook library which supports thumb, arm32 and arm64.
10
+
**ShadowHook** is an Android inline hook library which supports thumb, arm32 and arm64.
11
+
12
+
If you need an Android PLT hook library, please move to [ByteHook](https://github.com/bytedance/bhook).
11
13
12
14
13
15
## Features
@@ -26,7 +28,7 @@
26
28
27
29
## Documentation
28
30
29
-
[shadowhook Manual](doc/manual.md)
31
+
[ShadowHook Manual](doc/manual.md)
30
32
31
33
32
34
## Quick Start
@@ -35,7 +37,7 @@ You can refer to the sample app in [app module](app), or refer to the hook/unhoo
35
37
36
38
### 1. Add dependency in build.gradle
37
39
38
-
shadowhook is published on [Maven Central](https://search.maven.org/), and uses [Prefab](https://google.github.io/prefab/) package format for [native dependencies](https://developer.android.com/studio/build/native-dependencies), which is supported by [Android Gradle Plugin 4.0+](https://developer.android.com/studio/releases/gradle-plugin?buildsystem=cmake#native-dependencies).
40
+
ShadowHook is published on [Maven Central](https://search.maven.org/), and uses [Prefab](https://google.github.io/prefab/) package format for [native dependencies](https://developer.android.com/studio/build/native-dependencies), which is supported by [Android Gradle Plugin 4.0+](https://developer.android.com/studio/releases/gradle-plugin?buildsystem=cmake#native-dependencies).
39
41
40
42
```Gradle
41
43
allprojects {
@@ -57,7 +59,7 @@ dependencies {
57
59
}
58
60
```
59
61
60
-
**Note**: shadowhook uses the [prefab package schema v2](https://github.com/google/prefab/releases/tag/v2.0.0), which is configured by default since [Android Gradle Plugin 7.1.0](https://developer.android.com/studio/releases/gradle-plugin?buildsystem=cmake#7-1-0). If you are using Android Gradle Plugin earlier than 7.1.0, please add the following configuration to `gradle.properties`:
62
+
**Note**: ShadowHook uses the [prefab package schema v2](https://github.com/google/prefab/releases/tag/v2.0.0), which is configured by default since [Android Gradle Plugin 7.1.0](https://developer.android.com/studio/releases/gradle-plugin?buildsystem=cmake#7-1-0). If you are using Android Gradle Plugin earlier than 7.1.0, please add the following configuration to `gradle.properties`:
61
63
62
64
```
63
65
android.prefabVersion=2.0.0
@@ -100,7 +102,7 @@ android {
100
102
101
103
### 4. Add packaging options
102
104
103
-
If you are using shadowhook in an SDK project, you may need to avoid packaging libshadowhook.so into your AAR, so as not to encounter duplicate libshadowhook.so file when packaging the app project.
105
+
If you are using ShadowHook in an SDK project, you may need to avoid packaging libshadowhook.so into your AAR, so as not to encounter duplicate libshadowhook.so file when packaging the app project.
104
106
105
107
```Gradle
106
108
android {
@@ -110,7 +112,7 @@ android {
110
112
}
111
113
```
112
114
113
-
On the other hand, if you are using shadowhook in an APP project, you may need to add some options to deal with conflicts caused by duplicate libshadowhook.so file.
115
+
On the other hand, if you are using ShadowHook in an APP project, you may need to add some options to deal with conflicts caused by duplicate libshadowhook.so file.
114
116
115
117
```Gradle
116
118
android {
@@ -122,7 +124,7 @@ android {
122
124
123
125
### 5. Initialize
124
126
125
-
shadowhook supports two modes (shared mode and unique mode). The proxy function in the two modes is written slightly differently. You can try the unique mode first.
127
+
ShadowHook supports two modes (shared mode and unique mode). The proxy function in the two modes is written slightly differently. You can try the unique mode first.
126
128
127
129
```Java
128
130
importcom.bytedance.shadowhook.ShadowHook;
@@ -228,9 +230,9 @@ void do_unhook()
228
230
229
231
## License
230
232
231
-
shadowhook is licensed by [MIT License](LICENSE).
233
+
ShadowHook is licensed by [MIT License](LICENSE).
232
234
233
-
shadowhook uses the following third-party source code or libraries:
235
+
ShadowHook uses the following third-party source code or libraries:
The shadowhook team and community take security bugs in shadowhook seriously. We appreciate your efforts to responsibly disclose your findings, and will make every effort to acknowledge your contributions.
3
+
The ShadowHook team and community take security bugs in ShadowHook seriously. We appreciate your efforts to responsibly disclose your findings, and will make every effort to acknowledge your contributions.
4
4
5
5
**Please do not report security vulnerabilities through GitHub issues, discussions or pull requests. This makes the problem immediately visible to everyone, including malicious actors.**
6
6
7
7
Instead, please send email to <caikelun@bytedance.com>. If possible, encrypt your message with [this PGP key](https://raw.githubusercontent.com/caikelun/caikelun.github.io/master/site/pgp-public-key.txt).
8
8
9
-
The shadowhook team will send a response indicating the next steps in handling your report. After the initial reply to your report, the security team will keep you informed of the progress towards a fix and full announcement, and may ask for additional information or guidance.
9
+
The ShadowHook team will send a response indicating the next steps in handling your report. After the initial reply to your report, the security team will keep you informed of the progress towards a fix and full announcement, and may ask for additional information or guidance.
0 commit comments