Merge branch 'privext-updates' into 'master'
InstallerFactory: Check for privext before checking if apk to be installed is privext Closes #911 See merge request !459
This commit is contained in:
commit
e2ab447315
@ -45,12 +45,12 @@ public class InstallerFactory {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Installer installer;
|
Installer installer;
|
||||||
if (apk.packageName.equals(PrivilegedInstaller.PRIVILEGED_EXTENSION_PACKAGE_NAME)) {
|
if (PrivilegedInstaller.isDefault(context)) {
|
||||||
// special case for installing "Privileged Extension" with root
|
|
||||||
installer = new ExtensionInstaller(context, apk);
|
|
||||||
} else if (PrivilegedInstaller.isDefault(context)) {
|
|
||||||
Utils.debugLog(TAG, "privileged extension correctly installed -> PrivilegedInstaller");
|
Utils.debugLog(TAG, "privileged extension correctly installed -> PrivilegedInstaller");
|
||||||
installer = new PrivilegedInstaller(context, apk);
|
installer = new PrivilegedInstaller(context, apk);
|
||||||
|
} else if (apk.packageName.equals(PrivilegedInstaller.PRIVILEGED_EXTENSION_PACKAGE_NAME)) {
|
||||||
|
// special case for installing "Privileged Extension" with root
|
||||||
|
installer = new ExtensionInstaller(context, apk);
|
||||||
} else {
|
} else {
|
||||||
installer = new DefaultInstaller(context, apk);
|
installer = new DefaultInstaller(context, apk);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user