[core] Return actual uninstall status to manager

This commit is contained in:
tehcneko 2021-03-07 15:23:04 +08:00 committed by LoveSy
parent 60be0e2071
commit e5e7c3617f
1 changed files with 1 additions and 2 deletions

View File

@ -165,8 +165,7 @@ public class LSPManagerService extends ILSPManagerService.Stub {
@Override
public boolean uninstallPackage(String packageName) throws RemoteException {
try {
PackageService.uninstallPackage(new VersionedPackage(packageName, PackageManager.VERSION_CODE_HIGHEST));
return true;
return PackageService.uninstallPackage(new VersionedPackage(packageName, PackageManager.VERSION_CODE_HIGHEST));
} catch (InterruptedException | InvocationTargetException | NoSuchMethodException | InstantiationException | IllegalAccessException e) {
Log.e(TAG, e.getMessage(), e);
return false;