Skip to content

Commit

Permalink
hook all procs
Browse files Browse the repository at this point in the history
  • Loading branch information
j-hc committed Mar 3, 2024
1 parent b6917eb commit 5fb8295
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.1.0"
edition = "2021"

[dependencies]
termion = "2"
termion = "3"

[profile.dev]
panic = "abort"
Expand Down
1 change: 1 addition & 0 deletions cli/src/colorize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ impl<D: Display> Display for Colored<D> {
}
}

#[allow(dead_code)]
pub trait ToColored: Display + Sized {
fn faint(&self) -> Colored<&Self> {
Colored {
Expand Down
2 changes: 1 addition & 1 deletion magisk/post-fs-data.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/system/bin/sh

if magisk --denylist status; then
magisk --denylist rm com.android.vending com.android.vending
magisk --denylist rm com.android.vending
fi
2 changes: 1 addition & 1 deletion zygisk/jni/module.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class Sigringe : public zygisk::ModuleBase {

void preAppSpecialize(zygisk::AppSpecializeArgs* args) override {
const char* process = env->GetStringUTFChars(args->nice_name, nullptr);
if (memcmp(process, "com.android.vending", 20)) {
if (memcmp(process, "com.android.vending", 19)) {
env->ReleaseStringUTFChars(args->nice_name, process);
api->setOption(zygisk::Option::DLCLOSE_MODULE_LIBRARY);
return;
Expand Down

0 comments on commit 5fb8295

Please sign in to comment.