Always send package registration notification.
Previously package registration notifications were only sent when a new
service was added. Now, they are also sent when an existing service is
updated.
Bug: 33109192
Test: hidl_test (twice)
Change-Id: I571476c329bcb07d37f8a20cef0ae551a190e3c2
diff --git a/ServiceManager.h b/ServiceManager.h
index e477a36..1c5ddc2 100644
--- a/ServiceManager.h
+++ b/ServiceManager.h
@@ -79,11 +79,11 @@
void addPackageListener(sp<IServiceNotification> listener);
- private:
void sendPackageRegistrationNotification(
const hidl_string &fqName,
const hidl_string &instanceName) const;
+ private:
InstanceMap mInstanceMap{};
std::vector<sp<IServiceNotification>> mPackageListeners{};