OSDN Git Service

Merge restored wifi APs, don't overwrite
authorChristopher Tate <ctate@google.com>
Tue, 15 May 2012 22:05:04 +0000 (15:05 -0700)
committerChristopher Tate <ctate@google.com>
Wed, 16 May 2012 00:18:22 +0000 (17:18 -0700)
commit8dfe2b9dd7b8b924177a9f67785bcd6d1b0eeada
treeed6ae40db1212ed28ea374e2b9d6c009a8707305
parent718af32a191066822262ad05cdd525a09c66094f
Merge restored wifi APs, don't overwrite

We now preserve any already-known AP configuration information when
restoring wifi from backup, instead of flatly overwriting the known
definitions with the historical ones.  This means that if you are
performing setup while connected to an AP unknown in the restored
dataset, you will retain your connection instead of seeing it drop
partway through the restore process because suddenly the supplicant
"forgot" how to connect to it.

Duplicates are resolved by retaining the currently-defined network
configuration and discarding the historical one.

Bug 6443790

Change-Id: I1f44cc6a01fc4ae7c4b680682a10fcb7a0be65dc
packages/SettingsProvider/src/com/android/providers/settings/SettingsBackupAgent.java