Add counter for bulk sync and check namespace in comparison
This commit changes the following
1. Add counter to bulk sync. The code will compare the local counter and
the server counter to decide if a bulk sync should be executed. As
continue fixing issues in the new storage system, we need to force
the bulk sync after each fix. This change enable to trigger the
update on the server side.
2. check namespace in comparison. Some flags have changed their
namespace, but the server, and device keep the old flags. When the
comparison is running it will pick the first flag it meets, which
might be the old one. So this change will check the namespace, and
only pick the right one.
Test: atest
SettingsProviderTest: com.android.providers.settings.SettingsStateTest
Bug: 349855915
Change-Id: Ib54f5217b96fa9a66bafc6a2adfee483f5f093bb
2 files changed