Skip to content
This repository was archived by the owner on Sep 19, 2023. It is now read-only.

Commit 133090a

Browse files
committed
Ignore exceptions in fake signature InitProvider
1 parent 0498ef7 commit 133090a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

fake-signature/src/main/java/com/huawei/signature/diff/InitProvider.java

+4-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@ public boolean onCreate() {
2323
Log.d(TAG, "onCreate");
2424
if (!isServiceRunning(getContext(), getContext().getPackageName(), SignatureService.class.getName())) {
2525
Intent intent = new Intent(getContext(), SignatureService.class);
26-
getContext().startService(intent);
26+
try {
27+
getContext().startService(intent);
28+
} catch (Exception ignored) {
29+
}
2730
}
2831
return false;
2932
}

0 commit comments

Comments
 (0)