Code cleanup in Installer
This commit is contained in:
parent
17f712870b
commit
834c08db3c
@ -162,10 +162,7 @@ public abstract class Installer {
|
||||
return false;
|
||||
}
|
||||
Hasher hasher = new Hasher(hashType, apkFile);
|
||||
if (hasher != null && hasher.match(hash)) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
return hasher.match(hash);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -173,7 +170,7 @@ public abstract class Installer {
|
||||
*/
|
||||
public void installPackage(File apkFile, String packageName, String urlString)
|
||||
throws InstallFailedException {
|
||||
SanitizedFile apkToInstall = null;
|
||||
SanitizedFile apkToInstall;
|
||||
try {
|
||||
Map<String, Object> attributes = AndroidXMLDecompress.getManifestHeaderAttributes(apkFile.getAbsolutePath());
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user