zygisk: Separate path classes.dex into constant

This commit is contained in:
Danny Lin 2021-10-30 18:32:59 -07:00
parent 8015d36786
commit 2079674e3e
No known key found for this signature in database
GPG Key ID: 1988FAA1797EE5AC
2 changed files with 3 additions and 1 deletions

View File

@ -158,7 +158,7 @@ static off_t sendFile(int remote_fd, const std::string& path) {
static void companionHandler(int remote_fd) {
// Serve module dex
auto size = sendFile(remote_fd, "/data/adb/modules/safetynet-fix/classes.dex");
auto size = sendFile(remote_fd, MODULE_DEX_PATH);
LOGD("Sent module payload: %ld bytes", size);
}

View File

@ -4,6 +4,8 @@ namespace safetynetfix {
static constexpr auto TAG = "SafetyNetFix/JNI";
static constexpr auto MODULE_DEX_PATH = "/data/adb/modules/safetynet-fix/classes.dex";
#ifdef NDEBUG
#define LOGD(...)
#else