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; }