Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit cf71142c authored by Joanne Chung's avatar Joanne Chung
Browse files

Not allow to register for the same PackageMonitorCallback

Add a limitation for PackageManager#registerPackageMonitorCallback()
that not allow to register the same callback. We cannot limit the
count of the registered client. Most of registered clients are
different system service in the system_server, the count limitation
will crash the system.

Bug: 289567218
Test: atest FrameworksCorePackageMonitorTests
Test: atest FrameworksCorePackageMonitorWithoutPermissionTests
Test: manual. Boot success and the system registered callback can
receive callback

Change-Id: Ia79b4f49c0ac7cd8f3b11f6f2950c9b696fe2661
parent 4db2da9c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment