From a2f25ed91c7a22b53f5fb8a9af9cf40a6fcf9cec Mon Sep 17 00:00:00 2001 From: RikkaW Date: Fri, 15 Sep 2023 13:48:06 +0800 Subject: [PATCH] Fix missing HandlerUtil.setMainHandler --- module/src/main/java/rikka/sui/server/SuiService.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/module/src/main/java/rikka/sui/server/SuiService.java b/module/src/main/java/rikka/sui/server/SuiService.java index 4b06682..e51325e 100644 --- a/module/src/main/java/rikka/sui/server/SuiService.java +++ b/module/src/main/java/rikka/sui/server/SuiService.java @@ -39,6 +39,7 @@ import android.os.Binder; import android.os.Build; import android.os.Bundle; +import android.os.Handler; import android.os.IBinder; import android.os.Looper; import android.os.Parcel; @@ -68,6 +69,7 @@ import rikka.shizuku.ShizukuApiConstants; import rikka.shizuku.server.ClientRecord; import rikka.shizuku.server.Service; +import rikka.shizuku.server.util.HandlerUtil; import rikka.sui.model.AppInfo; import rikka.sui.server.bridge.BridgeServiceClient; import rikka.sui.util.Logger; @@ -140,6 +142,8 @@ private int waitForPackage(String packageName, boolean forever) { public SuiService() { super(); + HandlerUtil.setMainHandler(new Handler(Looper.getMainLooper())); + SuiService.instance = this; configManager = getConfigManager();