Skip to content

Commit 989b733

Browse files
committed
update for api 6
1 parent 65afd5a commit 989b733

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

module.example.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ext {
22
moduleId = "template" // FIXME replace with yours
3-
riruApiVersion = 5
3+
riruApiVersion = 6
44

55
moduleProp = [
66
name : "Template", // FIXME replace with yours

module/src/main/cpp/main.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ EXPORT void nativeForkAndSpecializePre(
99
JNIEnv *env, jclass clazz, jint *_uid, jint *gid, jintArray *gids, jint *runtimeFlags,
1010
jobjectArray *rlimits, jint *mountExternal, jstring *seInfo, jstring *niceName,
1111
jintArray *fdsToClose, jintArray *fdsToIgnore, jboolean *is_child_zygote,
12-
jstring *instructionSet, jstring *appDataDir, jboolean *isTopApp, jobjectArray *pkgDataInfoList) {
12+
jstring *instructionSet, jstring *appDataDir, jboolean *isTopApp, jobjectArray *pkgDataInfoList,
13+
jboolean *bindMountAppStorageDirs) {
1314
}
1415

1516
EXPORT int nativeForkAndSpecializePost(JNIEnv *env, jclass clazz, jint res) {
@@ -26,7 +27,7 @@ EXPORT __attribute__((visibility("default"))) void specializeAppProcessPre(
2627
JNIEnv *env, jclass clazz, jint *_uid, jint *gid, jintArray *gids, jint *runtimeFlags,
2728
jobjectArray *rlimits, jint *mountExternal, jstring *seInfo, jstring *niceName,
2829
jboolean *startChildZygote, jstring *instructionSet, jstring *appDataDir,
29-
jboolean *isTopApp, jobjectArray *pkgDataInfoList) {
30+
jboolean *isTopApp, jobjectArray *pkgDataInfoList, jboolean *bindMountAppStorageDirs) {
3031
// this is added from Android Q, but seems it's disabled by default
3132
}
3233

0 commit comments

Comments
 (0)