Clean up more codes

This commit is contained in:
LoveSy
2023-03-17 20:08:31 +08:00
committed by John Wu
parent 5c325d9466
commit 54ecc001f4
10 changed files with 8 additions and 23 deletions

View File

@@ -186,7 +186,7 @@ public class DownloadActivity extends Activity {
File dir = new File(getCodeCacheDir(), "res");
dir.mkdirs();
// addAssetPath requires a directory containing AndroidManifest.xml on Android 5
// addAssetPath requires a directory containing AndroidManifest.xml on Android 6.0
try (var stubApk = new ZipFile(getPackageCodePath());
var manifest = new FileOutputStream(new File(dir, "AndroidManifest.xml"))) {
var stubManifest = stubApk.getInputStream(

View File

@@ -188,7 +188,7 @@ public class DynLoad {
mcl.set(loadedApk, new DelegateClassLoader());
} catch (Exception e) {
// Actually impossible as this method is only called on API < 29,
// and API 21 - 28 do not restrict access to these fields.
// and API 23 - 28 do not restrict access to these fields.
Log.e(DynLoad.class.getSimpleName(), "", e);
}
}