Handle download fail

Co-authored-by: topjohnwu <topjohnwu@gmail.com>
This commit is contained in:
南宫雪珊
2022-02-13 18:30:09 +08:00
committed by GitHub
parent d021bca6ef
commit 936ad1aa20
2 changed files with 25 additions and 17 deletions

View File

@@ -125,7 +125,7 @@ public class DynLoad {
PackageInfo pkgInfo = pm.getPackageArchiveInfo(apk.getPath(), 0);
try {
return newApp(pkgInfo.applicationInfo);
} catch (ReflectiveOperationException e) {
} catch (ReflectiveOperationException | NullPointerException e) {
Log.e(DynLoad.class.getSimpleName(), "", e);
apk.delete();
}