sPFFramework/src/main/java/it/polimi/spf/framework/local/SPFServiceManagerImpl.java
@Override
	public boolean unregisterService(String accessToken, SPFServiceDescriptor descriptor, SPFError error) throws RemoteException {
		Utils.logCall(TAG, "unregisterService", accessToken, descriptor, error);

		// try {
		// mSecurityMonitor.validateAccess(accessToken,
		// Permission.REGISTER_SERVICES);
		// } catch (TokenNotValidException e) {
		// error.setCode(SPFError.TOKEN_NOT_VALID_ERROR_CODE);
		// return false;
		// } catch (PermissionDeniedException e) {
		// error.setError(SPFError.PERMISSION_DENIED_ERROR_CODE,
		// "Missing capability: " + Permission.EXECUTE_LOCAL_SERVICES);
		// return false;
		// }
		//
		// // TODO check that the application removing the service is the one
		// that
		// // registered it
		// return SPF.get().getServiceRegistry().unregisterService(descriptor);

		Log.w(TAG, "Services cannot be unregistered by apps due to ActivityStream");
		return false;
	}
@Override
	public boolean unregisterService(String accessToken, SPFServiceDescriptor descriptor, SPFError error) throws RemoteException {
		Utils.logCall(TAG, "unregisterService", accessToken, descriptor, error);

		// try {
		// mSecurityMonitor.validateAccess(accessToken,
		// Permission.REGISTER_SERVICES);
		// } catch (TokenNotValidException e) {
		// error.setCode(SPFError.TOKEN_NOT_VALID_ERROR_CODE);
		// return false;
		// } catch (PermissionDeniedException e) {
		// error.setError(SPFError.PERMISSION_DENIED_ERROR_CODE,
		// "Missing capability: " + Permission.EXECUTE_LOCAL_SERVICES);
		// return false;
		// }
		//
		// // TODO check that the application removing the service is the one
		// that
		// // registered it
		// return SPF.get().getServiceRegistry().unregisterService(descriptor);

		Log.w(TAG, "Services cannot be unregistered by apps due to ActivityStream");
		return false;
	}
/*
(non-Javadoc)

@see
it.polimi.spf.shared.aidl.LocalServiceManager#unregisterService(java.
lang.String, it.polimi.spf.shared.model.SPFServiceDescriptor,
it.polimi.spf.shared.model.SPFError)