@@ -92,7 +92,6 @@ private void tryLoadPatchFilesInternal(TinkerApplication app, Intent resultInten
92
92
93
93
//tinker/patch.info
94
94
File patchInfoFile = SharePatchFileUtil .getPatchInfoFile (patchDirectoryPath );
95
-
96
95
//check patch info file whether exist
97
96
if (!patchInfoFile .exists ()) {
98
97
ShareTinkerLog .w (TAG , "tryLoadPatchFiles:patch info not exist:" + patchInfoFile .getAbsolutePath ());
@@ -102,7 +101,6 @@ private void tryLoadPatchFilesInternal(TinkerApplication app, Intent resultInten
102
101
//old = 641e634c5b8f1649c75caf73794acbdf
103
102
//new = 2c150d8560334966952678930ba67fa8
104
103
File patchInfoLockFile = SharePatchFileUtil .getPatchInfoLockFile (patchDirectoryPath );
105
-
106
104
patchInfo = SharePatchInfo .readAndCheckPropertyWithLock (patchInfoFile , patchInfoLockFile );
107
105
if (patchInfo == null ) {
108
106
ShareIntentUtil .setIntentReturnCode (resultIntent , ShareConstants .ERROR_LOAD_PATCH_INFO_CORRUPTED );
@@ -173,7 +171,7 @@ private void tryLoadPatchFilesInternal(TinkerApplication app, Intent resultInten
173
171
174
172
String patchVersionDirFullPath = patchDirectoryPath + "/" + patchName ;
175
173
ShareTinkerInternals .killProcessExceptMain (app );
176
- SharePatchFileUtil .deleteDir (patchVersionDirFullPath );
174
+ SharePatchFileUtil .deleteDirAsync (patchVersionDirFullPath );
177
175
}
178
176
} else {
179
177
patchInfo .versionToRemove = "" ;
@@ -244,7 +242,6 @@ private void tryLoadPatchFilesInternal(TinkerApplication app, Intent resultInten
244
242
}
245
243
246
244
ShareSecurityCheck securityCheck = new ShareSecurityCheck (app );
247
-
248
245
int returnCode = ShareTinkerInternals .checkTinkerPackage (app , tinkerFlag , patchVersionFile , securityCheck );
249
246
if (returnCode != ShareConstants .ERROR_PACKAGE_CHECK_OK ) {
250
247
ShareTinkerLog .w (TAG , "tryLoadPatchFiles:checkTinkerPackage" );
0 commit comments