@Override public Object call(Object who, Method method, Object... args) throws Throwable { String pkgName = (String) args[0]; try { VirtualCore.get().uninstallPackage(pkgName); IPackageDeleteObserver2 observer = (IPackageDeleteObserver2) args[1]; if (observer != null) { observer.onPackageDeleted(pkgName, 0, "done."); } } catch (Throwable e) { // Ignore } return 0; }
@Override public Object call(Object who, Method method, Object... args) throws Throwable { String pkgName = (String) args[0]; try { VirtualCore.get().uninstallApp(pkgName); IPackageDeleteObserver2 observer = (IPackageDeleteObserver2) args[1]; if (observer != null) { observer.onPackageDeleted(pkgName, 0, "done."); } } catch (Throwable e) { // Ignore } return 0; }