Skip to content

Commit

Permalink
[core] Fix stupid bug (LSPosed#586)
Browse files Browse the repository at this point in the history
  • Loading branch information
yujincheng08 authored May 15, 2021
1 parent c8f2dff commit 09ac0e3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -621,8 +621,8 @@ public String getCachePath(String fileName) {
}

public String getPrefsPath(String fileName, int uid) {
int userId = uid % PER_USER_RANGE;
return miscPath + File.separator + "prefs" + (userId == 0 ? "" : String.valueOf(userId)) + File.separator + fileName + File.separator;
int userId = uid / PER_USER_RANGE;
return miscPath + File.separator + "prefs" + (userId == 0 ? "" : String.valueOf(userId)) + File.separator + fileName;
}

public static void grantManagerPermission() {
Expand Down

0 comments on commit 09ac0e3

Please sign in to comment.