Skip to content
This repository has been archived by the owner on Jun 14, 2024. It is now read-only.

Commit

Permalink
Use original function when prop not match
Browse files Browse the repository at this point in the history
  • Loading branch information
eebssk1 committed Jul 5, 2021
1 parent dbf7b0a commit 7119129
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions module.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ ext {
moduleName = "mph"
moduleAuthor = "eebssk1"
moduleDescription = "Hook system prop function with dobby to simulate miui for MiPushFOSS"
moduleVersion = "v25.4.1"
moduleVersionCode = 34
moduleVersion = "v25.4.2"
moduleVersionCode = 35
}
4 changes: 3 additions & 1 deletion module/src/main/cpp/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,9 @@ namespace Hook {

void
my__system_property_read_callback(const prop_info *pi, callback_func *callback, void *cookie) {
callback(cookie, pi->name, pi->value, pi->serial);
if(UNLIKELY(Config::Properties::Find(pi->name)))
return callback(cookie, pi->name, pi->value, pi->serial);
return orig__system_property_read_callback(pi,callback,cookie);
}

int (*orig__system_property_get)(const char *key, char *value);
Expand Down

0 comments on commit 7119129

Please sign in to comment.