Skip to content

Commit 65afd5a

Browse files
committed
update for api 5
1 parent a1c359f commit 65afd5a

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
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 = 4
3+
riruApiVersion = 5
44

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

module/src/main/cpp/main.cpp

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ 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, jstring *packageName,
13-
jobjectArray *packagesForUID, jstring *sandboxId) {
14-
// packageName, packagesForUID, sandboxId are added from Android Q beta 2, removed from beta 5
12+
jstring *instructionSet, jstring *appDataDir, jboolean *isTopApp, jobjectArray *pkgDataInfoList) {
1513
}
1614

1715
EXPORT int nativeForkAndSpecializePost(JNIEnv *env, jclass clazz, jint res) {
@@ -28,10 +26,8 @@ EXPORT __attribute__((visibility("default"))) void specializeAppProcessPre(
2826
JNIEnv *env, jclass clazz, jint *_uid, jint *gid, jintArray *gids, jint *runtimeFlags,
2927
jobjectArray *rlimits, jint *mountExternal, jstring *seInfo, jstring *niceName,
3028
jboolean *startChildZygote, jstring *instructionSet, jstring *appDataDir,
31-
jstring *packageName, jobjectArray *packagesForUID, jstring *sandboxId) {
32-
// this is added from Android Q beta, but seems Google disabled this in following updates
33-
34-
// packageName, packagesForUID, sandboxId are added from Android Q beta 2, removed from beta 5
29+
jboolean *isTopApp, jobjectArray *pkgDataInfoList) {
30+
// this is added from Android Q, but seems it's disabled by default
3531
}
3632

3733
EXPORT __attribute__((visibility("default"))) int specializeAppProcessPost(

0 commit comments

Comments
 (0)