[ContextSync] Disable ContextSync flag by default
Bug: 281069627 Test: AssociateTest Change-Id: Iafac64d60c4c3251864257fc69876089f4070ecc
This commit is contained in:
@@ -288,7 +288,7 @@ class AssociationRequestsProcessor {
|
||||
final AssociationInfo association = new AssociationInfo(id, userId, packageName,
|
||||
macAddress, displayName, deviceProfile, associatedDevice, selfManaged,
|
||||
/* notifyOnDeviceNearby */ false, /* revoked */ false, timestamp, Long.MAX_VALUE,
|
||||
/* systemDataSyncFlags */ ~0);
|
||||
/* systemDataSyncFlags */ 0);
|
||||
|
||||
if (deviceProfile != null) {
|
||||
// If the "Device Profile" is specified, make the companion application a holder of the
|
||||
|
||||
@@ -133,7 +133,7 @@ import java.util.concurrent.ConcurrentMap;
|
||||
* revoked="false"
|
||||
* last_time_connected="1634641160229"
|
||||
* time_approved="1634389553216"
|
||||
* system_data_sync_flags="-1"/>
|
||||
* system_data_sync_flags="0"/>
|
||||
*
|
||||
* <association
|
||||
* id="3"
|
||||
@@ -145,7 +145,7 @@ import java.util.concurrent.ConcurrentMap;
|
||||
* revoked="false"
|
||||
* last_time_connected="1634641160229"
|
||||
* time_approved="1634641160229"
|
||||
* system_data_sync_flags="-1"/>
|
||||
* system_data_sync_flags="1"/>
|
||||
* </associations>
|
||||
*
|
||||
* <previously-used-ids>
|
||||
@@ -432,7 +432,7 @@ final class PersistentDataStore {
|
||||
out.add(new AssociationInfo(associationId, userId, appPackage,
|
||||
MacAddress.fromString(deviceAddress), null, profile, null,
|
||||
/* managedByCompanionApp */ false, notify, /* revoked */ false, timeApproved,
|
||||
Long.MAX_VALUE, /* systemDataSyncFlags */ -1));
|
||||
Long.MAX_VALUE, /* systemDataSyncFlags */ 0));
|
||||
}
|
||||
|
||||
private static void readAssociationsV1(@NonNull TypedXmlPullParser parser,
|
||||
@@ -466,7 +466,7 @@ final class PersistentDataStore {
|
||||
final long lastTimeConnected = readLongAttribute(
|
||||
parser, XML_ATTR_LAST_TIME_CONNECTED, Long.MAX_VALUE);
|
||||
final int systemDataSyncFlags = readIntAttribute(parser,
|
||||
XML_ATTR_SYSTEM_DATA_SYNC_FLAGS, -1);
|
||||
XML_ATTR_SYSTEM_DATA_SYNC_FLAGS, 0);
|
||||
|
||||
final AssociationInfo associationInfo = createAssociationInfoNoThrow(associationId, userId,
|
||||
appPackage, macAddress, displayName, profile, selfManaged, notify, revoked,
|
||||
|
||||
Reference in New Issue
Block a user