Skip to content

Android Sync V2

Sriram edited this page Aug 12, 2020 · 4 revisions

Standalone Sync chain

Create a standalone Sync chain using QR code

  • Clean install
  • Go to Settings -> Advanced -> Sync
  • Click on Allow for camera access
  • Click on Start a new sync chain
  • Click on Add a mobile device
  • Verify QR code loads correctly
  • Click on Done
  • Verify device is listed correctly

Create a standalone Sync chain using Code words

  • Clean install
  • Go to Settings -> Advanced -> Sync
  • Click on Allow for camera access
  • Click on Start a new sync chain
  • Click on Add a computer
  • Verify code words is shown correctly
  • Click on Done
  • Verify device is listed correctly

Remove a sync chain when device is offline

  • Clean install
  • Create a sync chain on the device
  • Disconnect network on device
  • Go to Settings -> Advanced -> Sync -> Remove device
  • Make sure error message is shown for no network connectivity

Remove sync chain on device

  • Create a sync chain on the device
  • Go to Settings -> Advanced -> Sync -> Remove device
  • Ensure sync chain is removed and goes back to optin page
  • Ensure Credentials/Identity is removed on brave://sync-internals

Offline Sync

Sync chain creation

  • Clean install
  • Disconnect network on device
  • Go to Settings -> Advanced -> Sync -> Start a new sync chain
  • Ensure device name is not listed
  • Verify Categories button is enabled
  • Verified you Add another device button is enabled
  • Verify QR code shows up when Add a mobile option is selected
  • Verify code words shows up when Add a Computer option is selected
  • Verify if device goes online sync setup process is complete and shows the device name

Sync chain removal

  • Clean install
  • Join a sync chain either by scanning QR code or by adding code words
  • Put the device in aeroplane mode or disconnect network
  • Got to Settings -> Advanced -> Sync
  • Click on Remove this device
  • Bring device back online, ensure device is removed from sync chain

Sync Internals check

Verify Identity of sync chain

  • Clean install
  • Create a standalone sync chain on the device
  • Go to chrome://sync-internals copy/make note of Username and sync Client ID under Identity
  • Go to settings and remove the sync chain
  • Recreate a standalone sync chain again on the same device
  • Verify values are different from the one created in step 3

Verify Credentials of sync chain

  • Create a standalone sync chain on the device
  • Go to chrome://sync-internals
  • Verify under Credentials in brave://sync-internals, Has token is set to True

Verify Encryption of sync chain

  • Create a standalone sync chain on the device
  • Go to chrome://sync-internals
  • Verify under Encryption heading,
    • Encryption Types lists Bookmarks, Preferences, Passwords, Autofill Profiles, Autofill, Autofill Wallet Metadata, Themes, Typed URLs, Extensions, Search Engines, Sessions, Apps, App settings, Extension settings, Dictionary, Favicon Images, Favicon Tracking, Device Info, App List, Arc Package, Printers, Reading List, Send Tab To Self, Wifi Configurations, Web Apps, OS Preferences
    • Passphrase Type is PassphraseType::kCustomPassphrase

Invalid Sync codes

No code words

  • Clean install
  • Go to Settings -> Advanced -> Sync
  • Select Scan or enter sync code
  • Select Enter code words
  • Click on Confirm
  • Ensure warning message is shown that says `Sync could not be setup [Incorrect number of words]

Wrong code words

  • Clean install
  • Go to Settings -> Advanced -> Sync
  • Select Scan or enter sync code
  • Select Enter code words and type in incorrect sync codes
  • Click on Confirm
  • Ensure warning message is shown that says `Sync could not be setup [Wrong sync code]

Leading and trailing spaces

  • Clean install
  • Go to Settings -> Advanced -> Sync
  • Select Scan or enter sync code
  • Select Enter code words
  • Add whitespace leading to sync code and after the code words
  • Click on Confirm
  • Ensure Sync chain is created successfully

Multi-device sync

Android <> Android Sync

  • Clean install on Device A
  • Create a sync chain on the device
  • Click on Add another device
  • Click on Add a mobile device
  • Scan the QR code on a Device B
  • Ensure sync chain is created on Device B and is listed under devices on Device A
  • Verify code words is same on both the devices
  • Verify Username under Identity in brave://sync-internals is same on both devices

Android <> Desktop Sync

  • Clean install on Device A
  • Create a sync chain on the device
  • Click on Add another device
  • Click on Add a computer device
  • Copy the code words on Device B
  • Ensure sync chain is created on Device B and is listed under devices on Device A
  • Verify code words is same on both the devices
  • Verify Username under Identity in brave://sync-internals is same on both devices

Desktop <> Android Sync

  • Clean install on desktop(Device A)
  • Create a sync chain on the Device A
  • Click on Add another device
  • Click on Add a mobile device
  • Scan the QR code on a Android Device B
  • Ensure sync chain is created on Device B and is listed under devices on Device A
  • Verify code words is same on both the devices
  • Verify Username under Identity in brave://sync-internals is same on both devices

Desktop <> Android Sync

  • Clean install on desktop(Device A)
  • Create a sync chain on the Device A
  • Click on Add another device
  • Click on Add a computer device
  • Copy-paste/Type the code words on Android Device B
  • Ensure sync chain is created on Device B and is listed under devices on Device A
  • Verify code words is same on both the devices
  • Verify Username under Identity in brave://sync-internals is same on both devices

Manage Sync Settings

Default sync bookmarks

  • Clean install
  • Create a sync chain
  • Click on Categories
  • Verify Bookmarks sync is enabled by default

Sync All On/Off

  • Clean install
  • Create a sync chain
  • Click on Categories
  • Verify Bookmarks sync is enabled by default
  • Enable Sync All option
  • Ensure all sub categories gets enabled
  • Turn off Sync All
  • Ensure all sub categories remain enabled and user has to turn off them individually

Autofill Sync

Autofill On

  • Clean install on Android Device A
  • Create a sync chain and enable Autofill sync
  • Go to Settings -> Basics -> Addresses and More -> Add address
  • Save new address
  • Add Android Device B to the sync chain
  • Wait till sync connection is established and device syncs
  • Ensure address from Device A is sync'd to Device B
  • Add a desktop Device C to the sync chain
  • Ensure address is sync'd on Device C as well

Autofill Off

  • Clean install on Android Device A
  • Create a sync chain and keep defaults (Autofill disabled)
  • Go to Settings -> Basics -> Addresses and More -> Add address
  • Save new address
  • Add Android Device B to the sync chain
  • Wait till sync connection is established and device syncs
  • Ensure address from Device A is not sync'd to Device B
  • Add a desktop Device C to the sync chain
  • Ensure address is not sync'd on Device C as well

Edit Autofill

  • Clean install on Android Device A
  • Create a sync chain and enable Autofill sync
  • Go to Settings -> Basics -> Addresses and More -> Add address
  • Save new address
  • Add Android Device B to the sync chain
  • Wait till sync connection is established and device syncs
  • Ensure address from Device A is sync'd to Device B
  • Add a desktop Device C to the sync chain
  • Ensure address is sync'd on Device C as well
  • Edit address on Device B, ensure the update propagates to all devices on the chain
  • Edit address on Device C, ensure the new update is propagated to all devices on the chain

Delete Autofill

  • Clean install on Android Device A
  • Create a sync chain and enable Autofill sync
  • Go to Settings -> Basics -> Addresses and More -> Add address
  • Save new address
  • Add Android Device B to the sync chain
  • Wait till sync connection is established and device syncs
  • Ensure address from Device A is sync'd to Device B
  • Add a desktop Device C to the sync chain
  • Ensure address is sync'd on Device C as well
  • Delete address on Device B, ensure the address is removed on all devices

Bookmark Sync

Bookmarks On

  • Clean install on Android Device A
  • Add a few bookmarks
  • Create a sync chain and enable Bookmark sync
  • Add a second set of bookmarks
  • Add Android Device B to the sync chain
  • Wait till sync connection is established and device syncs
  • Ensure all bookmarks from Device A is sync'd on Device B
  • Add a bookmark on Device B
  • Ensure bookmark from Device B is sync'd on Device A
  • Add a desktop Device C to the sync chain
  • Ensure all bookmarks from Device A and Device B is sync'd to desktop

Bookmarks off

  • Clean install on Android Device A
  • Add a few bookmarks
  • Create a sync chain and enable Bookmark sync
  • Add a second set of bookmarks
  • Add Android Device B to the sync chain and disable Bookmark sync
  • Wait till sync connection is established and device syncs
  • Ensure no bookmarks from Device A is sync'd on Device B
  • Add a bookmark on Device B
  • Ensure bookmark from Device B is not sync'd on Device A
  • Add a desktop Device C to the sync chain and enable Bookmark sync
  • Ensure only bookmarks from Device A is sync'd to desktop

Edit Bookmarks

  • Clean install on Android Device A
  • Create a sync chain and enable Bookmark sync
  • Visit https://brave.com and add it as bookmark
  • Add Android Device B to the sync chain
  • Wait till sync connection is established and device syncs
  • Ensure https://brave.com from Device A is sync'd on Device B
  • Visit https://espn.com on Device B and bookmark
  • Ensure bookmark from Device B is sync'd on Device A
  • On Device B edit https://brave.com to https://basicattentiontoken.org
  • Ensure https://brave.com updates to https://basicattentiontoken.org on Device A as well
  • Add a desktop Device C to the sync chain and enable Bookmark Sync
  • Ensure Device C gets two bookmarks under Mobile Bookmarks https://basicattentiontoken.org and https://espn.com
  • Edit https://espn.com to https://formula.com on desktop
  • Ensure https://espn.com updates to https://formula.com on both Device A and Device B

Delete Bookmarks

  • Clean install on Android Device A
  • Create a sync chain and enable Bookmark sync
  • Visit https://brave.com and add it as bookmark
  • Add Android Device B to the sync chain
  • Wait till sync connection is established and device syncs
  • Ensure https://brave.com from Device A is sync'd on Device B
  • Visit https://espn.com on Device Band bookmark it
  • Ensure bookmark from Device B is sync'd on Device A
  • On Device B delete https://brave.com
  • Ensure https://brave.com is removed on Device A as well
  • Add a desktop Device C to the sync chain and enable Bookmark Sync
  • Ensure Device C gets only https://espn.com under Mobile Bookmarks
  • Delete https://espn.com on desktop
  • Ensure all bookmarks are removed from all the devices in chain

Reorder Bookmarks

  • Clean install on Android Device A
  • Create a sync chain and enable Bookmark sync
  • Visit https://brave.com and add it as bookmark under a folder Folder 1
  • Add Android Device B to the sync chain
  • Wait till sync connection is established and device syncs
  • Ensure Folder 1 folder from Device A is sync'd on Device B
  • Visit https://espn.com on Device B and bookmark it under folder Folder 2
  • Ensure Folder 2 from Device B is sync'd on Device A
  • Add a desktop Device C to the sync chain and enable Bookmark Sync
  • Ensure Device C gets two bookmarks folders under Mobile Bookmarks
  • Create a new folder called Android on bookmark toolbar and move Folder 1 and Folder 2 under it
  • Ensure both Device A and Device B gets the sync update and have a new folder called Bookmarks at root which contains Android folder

History Sync

History On

  • Clean install on Android Device A
  • Create a sync chain and enable History sync
  • Browse some sites on Device A
  • Add Android Device B to the sync chain
  • Wait till sync connection is established and device syncs
  • Ensure history from Device A is sync'd to Device B
  • Add a desktop Device C to the sync chain
  • Ensure history is sync'd on Device C as well

History Off

  • Clean install on Android Device A
  • Create a sync chain and disable History sync
  • Browse some sites on Device A
  • Add Android Device B to the sync chain
  • Wait till sync connection is established and device syncs
  • Ensure history from Device A is sync'd to Device B
  • Add a desktop Device C to the sync chain
  • Ensure history is sync'd on Device C as well

Delete History

  • Clean install on Android Device A
  • Create a sync chain and enable history sync
  • Visit https://slashdot.org on Device A
  • Add Android Device B to the sync chain
  • Wait till sync connection is established and device syncs
  • Add a desktop Device C to the sync chain
  • Visit a https://brave.com on Device C
  • Ensure https://slashdot.org and https://brave.com is listed on all three devices
  • Delete browsing history on Device B
  • Ensure history is removed on all devices

Private Tabs History

  • Clean install on Android Device A
  • Create a sync chain and enable History sync
  • Browse some sites on Device A
  • Add Android Device B to the sync chain
  • Wait till sync connection is established and device syncs
  • Ensure history from Device A is sync'd to Device B
  • Visit a site in a private tab on Device B
  • Ensure sites visited in private tab doesn't sync

Open Tabs Sync

Open Tabs On

  • Clean install on Android Device A
  • Create a sync chain and enable Open tabs sync
  • Add desktop Device B to the sync chain
  • Enable Open tabs sync on desktop
  • Visit a page on desktop
  • Right click on the tab and click on Send to <device name> Phone
  • Ensure Device A gets a notification message about the page visited and shows Sent from <device name>
  • Click on notification message on Android, loads the page in a new tab
  • Visit a second page on Desktop and send it to mobile device
  • Ensure Android device gets a new notification about the site sent from desktop
  • Ensure page is automatically added in history

Open Tabs Off

  • Clean install on Android Device A
  • Create a sync chain and disable Open tabs sync
  • Add desktop Device B to the sync chain
  • Enable Open tabs sync on desktop
  • Visit a page on desktop
  • Right click on the tab and click on Send to <device name> Phone
  • Ensure Device A doesn't get any notification of the page that was sent
  • Ensure Device A doesn't have the page listed in history

Send tabs from Android -> Desktop

  • Clean install on Android device
  • Create a sync chain on Android
  • Add a desktop device to the sync chain using code words
  • Visit some page on Android
  • On active tab, press Menu -> Share -> Send to your devices
  • Select desktop device which is part of sync chain
  • Open tabs should be sent to desktop

Passwords Sync

Passwords On

  • Clean install on Android Device A
  • Create a sync chain and enable Password sync
  • Visit a site and enter password
  • Save password when prompted
  • Sign out and click on login field, ensure saved password prompt is shown
  • Add Android Device B to the sync chain
  • Wait till sync connection is established and device syncs
  • Ensure password from Device A is sync'd to Device B
  • Visit the same site on Device B and click on login field, ensure saved password prompt is shown
  • Add a desktop Device C to the sync chain
  • Ensure password is sync'd on Device C as well
  • Visit the same site on Device B and click on login field, ensure saved password prompt is shown

Passwords Off

  • Clean install on Android Device A
  • Create a sync chain and disable Password sync
  • Visit a site and enter password
  • Save password when prompted
  • Sign out and click on login field, ensure saved password prompt is shown
  • Add Android Device B to the sync chain
  • Wait till sync connection is established and device syncs
  • Ensure password from Device A is not sync'd to Device B
  • Visit the same site on Device B and click on login field, ensure saved password prompt is shown
  • Add a desktop Device C to the sync chain
  • Ensure password is not sync'd on Device C as well
  • Visit the same site on Device B and click on login field, ensure saved password prompt is shown

Delete Passwords

  • Clean install on Android Device A
  • Create a sync chain and enable Password sync
  • Visit a site and enter password
  • Save password when prompted
  • Sign out and click on login field, ensure saved password prompt is shown
  • Add Android Device B to the sync chain
  • Wait till sync connection is established and device syncs
  • Ensure password from Device A is sync'd to Device B
  • Add a desktop Device C to the sync chain
  • Ensure password is sync'd on Device C as well
  • Visit the same site on Device C and click on login field, ensure saved password prompt is shown
  • Delete password on Device B, ensure password is removed on all devices

Settings Sync

Settings On

  • Clean install on Android Device A
  • Create a sync chain and enable Settings sync
  • Go to Settings -> Privacy -> Enable Preload pages for faster browsing and searching
  • Add Android Device B to the sync chain and enable Settings sync
  • Wait till sync connection is established and device syncs
  • Ensure Preload pages for faster browsing and searching setting is enabled on Device B

Settings Off

  • Clean install on Android Device A
  • Create a sync chain and enable Settings sync
  • Go to Settings -> Privacy -> Enable Preload pages for faster browsing and searching
  • Add Android Device B to the sync chain and disable Settings sync
  • Wait till sync connection is established and device syncs
  • Ensure Preload pages for faster browsing and searching setting is not sync'd on Device B

Chromium Upgrade tests

  • Enable sync chain on Android device A
  • Connect Android device B to the sync chain
  • Ensure both devices can see each other and can sync bookmark
  • Close browser on device A via Menu -> Exit
  • Relaunch browser on device A
  • Wait a minute on device A
  • Add bookmark on device A
  • Ensure new bookmark was synced to device B