Skip to content

Commit

Permalink
Temporary fix for #35
Browse files Browse the repository at this point in the history
  • Loading branch information
RikkaW committed Apr 9, 2022
1 parent 731adad commit 9a7f050
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions module/src/main/java/rikka/sui/server/SuiService.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
import rikka.rish.RishConfig;
import rikka.shizuku.ShizukuApiConstants;
import rikka.shizuku.server.ClientRecord;
import rikka.shizuku.server.ConfigManager;
import rikka.shizuku.server.Service;
import rikka.sui.model.AppInfo;
import rikka.sui.server.bridge.BridgeServiceClient;
Expand Down Expand Up @@ -185,6 +186,11 @@ public boolean checkCallerManagerPermission(String func, int callingUid, int cal

@Override
public boolean checkCallerPermission(String func, int callingUid, int callingPid, @Nullable ClientRecord clientRecord) {
// Temporary fix for https://github.com/RikkaApps/Sui/issues/35
if ("transactRemote".equals(func)) {
SuiConfig.PackageEntry packageEntry = configManager.find(callingUid);
return packageEntry != null && packageEntry.isAllowed();
}
return false;
}

Expand Down

0 comments on commit 9a7f050

Please sign in to comment.