- In reinitializeAfterRestore, use db path instead of grid name to check if migration is necessary, so migration will still happen if grid names are renamed. Also, only remove the target db path instead of all non source db paths, which are not necessary to be removed.
- In LauncherBackupAgent, remove old files before restoring to avoid old files from overriding restored files e.g. grid name in shared preferences
- Make sure InvariantDeviceProfile is intialize before we set pending to false, so unsupported grids can still be initialized and then be migratead
- Renamed 6x5 grid so it no longer collides with 4x4
Fix: 218500583
Test: Restore backup from supported and unsupported grids
Change-Id: Ic78e0bc7dc44ad86bd217c736b88708ad488ac0b
> Also enabling fileLog when the device is debug build (even when
launcher is not dogfood build)
Bug: 30735662
Change-Id: Ieab2c962d57f6f7f972f8111070d4ecbef06b3e7
this was self-consistent on the device, but the host tool
treats lack of padding in a different way.
Bug:10778984
Change-Id: I47f653a98f23ff0ce54218d100e0c8e2f92b67fa
Only allow a small number of icons to be backed up in any given pass.
Also refactor common code out of favorite and screen backups.
Bug: 10778984
Change-Id: I54bc769c1d1c1c9087ea4bc58f258bd15c167aea