From 133090a90ca4db236d292890f0506ceddf9f2fd3 Mon Sep 17 00:00:00 2001 From: Marvin W Date: Sun, 17 Sep 2023 19:18:20 +0200 Subject: [PATCH] Ignore exceptions in fake signature InitProvider --- .../main/java/com/huawei/signature/diff/InitProvider.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fake-signature/src/main/java/com/huawei/signature/diff/InitProvider.java b/fake-signature/src/main/java/com/huawei/signature/diff/InitProvider.java index 1747b1a..e687b72 100644 --- a/fake-signature/src/main/java/com/huawei/signature/diff/InitProvider.java +++ b/fake-signature/src/main/java/com/huawei/signature/diff/InitProvider.java @@ -23,7 +23,10 @@ public boolean onCreate() { Log.d(TAG, "onCreate"); if (!isServiceRunning(getContext(), getContext().getPackageName(), SignatureService.class.getName())) { Intent intent = new Intent(getContext(), SignatureService.class); - getContext().startService(intent); + try { + getContext().startService(intent); + } catch (Exception ignored) { + } } return false; }