Skip to content
This repository has been archived by the owner on Sep 2, 2021. It is now read-only.

Commit

Permalink
use appDataDir in specializeAppProcess
Browse files Browse the repository at this point in the history
  • Loading branch information
RikkaW committed Jul 12, 2019
1 parent 11c7859 commit 4e489e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ def moduleId = "location_report_enabler"
def moduleName = "Location Report Enabler"
def moduleAuthor = "Rikka"
def moduleDescription = "Enable Google location report by hook system_property_get (and android::base::GetProperty for API 28+)."
def versionName = "v9.1"
def versionCode = 7
def versionName = "v9.2"
def versionCode = 11
def riruApi = 4

def moduleIdMagisk = "riru_location_report_enabler"
Expand Down
4 changes: 2 additions & 2 deletions jni/main/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ __attribute__((visibility("default"))) void nativeForkAndSpecializePre(
jobjectArray *packagesForUID, jstring *sandboxId) {

uid = *_uid;
enable_hook = is_app_need_hook(env, *appDataDir, nullptr);
enable_hook = is_app_need_hook(env, *appDataDir, *packageName);

if (enable_hook)
load_config();
Expand All @@ -91,7 +91,7 @@ __attribute__((visibility("default"))) void specializeAppProcessPre(
jstring *packageName, jobjectArray *packagesForUID, jstring *sandboxId) {

uid = *_uid;
enable_hook = is_app_need_hook(env, nullptr, *packageName);
enable_hook = is_app_need_hook(env, *appDataDir, *packageName);

if (enable_hook)
load_config();
Expand Down

0 comments on commit 4e489e0

Please sign in to comment.