mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-10-19 09:32:33 +00:00
Clean up more codes
This commit is contained in:
@@ -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(
|
||||
|
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user