Merge "Use IApexService.stagePackages instead of stagePackage"
This commit is contained in:
@@ -115,6 +115,7 @@ import java.io.FileOutputStream;
|
|||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
import java.util.Collections;
|
||||||
import java.util.LinkedList;
|
import java.util.LinkedList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.concurrent.atomic.AtomicInteger;
|
import java.util.concurrent.atomic.AtomicInteger;
|
||||||
@@ -959,7 +960,7 @@ public class PackageInstallerSession extends IPackageInstallerSession.Stub {
|
|||||||
try {
|
try {
|
||||||
IApexService apex = IApexService.Stub.asInterface(
|
IApexService apex = IApexService.Stub.asInterface(
|
||||||
ServiceManager.getService("apexservice"));
|
ServiceManager.getService("apexservice"));
|
||||||
apex.stagePackage(mResolvedBaseFile.toString());
|
apex.stagePackages(Collections.singletonList(mResolvedBaseFile.toString()));
|
||||||
} catch (Throwable e) {
|
} catch (Throwable e) {
|
||||||
// Convert all exceptions into package manager exceptions as only those are handled
|
// Convert all exceptions into package manager exceptions as only those are handled
|
||||||
// in the code above
|
// in the code above
|
||||||
|
|||||||
Reference in New Issue
Block a user