mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-17 21:47:37 +00:00
Avoid crash when calling abandonSession
This commit is contained in:
parent
9279f30e89
commit
b0fc580860
@ -115,7 +115,10 @@ public final class APKInstall {
|
|||||||
var installer = context.getPackageManager().getPackageInstaller();
|
var installer = context.getPackageManager().getPackageInstaller();
|
||||||
var info = installer.getSessionInfo(id);
|
var info = installer.getSessionInfo(id);
|
||||||
if (info != null) {
|
if (info != null) {
|
||||||
installer.abandonSession(info.getSessionId());
|
try {
|
||||||
|
installer.abandonSession(info.getSessionId());
|
||||||
|
} catch (Throwable ignored) {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (onFailure != null) {
|
if (onFailure != null) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user