Commit Graph

32 Commits

Author SHA1 Message Date
Roman Birg
7680dda7ca SetupWizard: GMS page controls the next step
Ticket: CYNGNOS-2533
Change-Id: Icf7dc1de653d18ac60ddfa52dddbe9412dbc8eda
Signed-off-by: Roman Birg <roman@cyngn.com>
(cherry picked from commit af828584ae)
2016-04-25 09:01:35 -07:00
Adnan Begovic
29becef918 SetupWizard: Don't reprompt setup if account already exists.
If a user goes through the gms flow, logging in, disabling
  backup, getting kicked over to restore, and deciding to
  set the device up as new, the existing logic would reprompt
  since the flow causes the load action to happen again.

  Now check for account existance, and skip the setup if true.

Change-Id: I3502294d54fcb4e202dca37ff7c6165da4401808
TICKET: CYNGNOS-2459
(cherry picked from commit fe7ac15220)
2016-04-14 13:22:54 -07:00
Adnan Begovic
ab1588bd6f SetupWizard: Fix regression on GMS account setup skip.
If a user skips through google setup, make sure we're handling
  the result correctly.

Change-Id: Ie2385dbd45c187dc1a90eab4a519094eae2caa72
TICKET: CYNGNOS-2258
(cherry picked from commit 0410f846bb)
2016-03-21 11:39:39 -07:00
Adnan Begovic
64967cb3e8 SetupWizard: Conditionally supress d2d on lack of nfc.
If a device lacks NFC feature, pass an extra to googles
  setup wizard to spress the device to device setup.

Change-Id: I05341f14c4a4753cb5a595734eb337eb10d505a4
TICKET: CYNGNOS-2258
(cherry picked from commit d114a09647)
2016-03-21 10:26:43 -07:00
Adnan Begovic
67c9493be8 SetupWizard: Handle both restore scenarios.
If a user logs into Google's SetupWizard with their
  gmail account, they need to be prompted with a restoration
  picker -- otherwise, if they have a valid restoreToken
  and restoreAccount, we can assume that they came from a
  Tap & Go scenario and begin restoring as needed.

Change-Id: Ifa9ce978822f365996a509edeb3023001a07be84
TICKET: CYNGNOS-2233
(cherry picked from commit 6baab03bd8)
2016-03-18 10:54:29 -07:00
Adnan Begovic
45f2e9a6cc SetupWizard: Adapt to new GMS tap & go expectations.
Googles SetupWizard expects a specific flow for the restoration
  process -- amend the intent for gms restore to abide.

Change-Id: Idf4c3b813676c5456770627067a42697ab756bb0
TICKET: CYNGNOS-2233
(cherry picked from commit 744827989c)
2016-03-18 10:51:21 -07:00
Adnan Begovic
577187ff54 SetupWizard: Fixup backup/restore for Marshmallow.
Since Marshmallow broke the ability to utilize complex
  matrix queries against the SettingsProvider because it
  is now backed by XML, rewrite the logic for the backup
  enabled flag to work within the new constraints.

Change-Id: I8ad993564184fa14b5a3267689c69af2f7e8638e
TICKET: CYNGNOS-2233
(cherry picked from commit 0d83f7c062)
2016-03-16 16:22:44 -07:00
Adnan Begovic
307e587a3a SetupWizard: Temporary compile fixes.
Change-Id: Iffdbb3b38aef75f14dcb0957df8dda13f844159b
2015-10-15 15:18:58 -07:00
Brint E. Kriebel
4ea986255f SetupWizard: remove crash-inducing debug line
Introduced in Ia1a81c4443cfd5bc3c3e5fd84758ff0ba2a2a140, this causes
an NPE in some situations.

Change-Id: I13239eb92b69087fe2c91b46482ff76748ab1c19
Ticket: CYNGNOS-707
2015-08-10 16:57:03 -07:00
Ricardo Cerqueira
649a5ec162 SetupWizard: Adjust FRP-enforcing logic
* Always pass ALLOW_SKIP to GMS, it's smart enough to know when it
   can't be applied.
 * Don't bring up the authentication screen if no-network and canSkip

Still CYNGNOS-707

Change-Id: Ia1a81c4443cfd5bc3c3e5fd84758ff0ba2a2a140
2015-08-10 13:21:01 +01:00
Roman Birg
d587f56e2e SetupWizard: don't allow skipping FRP
Change-Id: I7532c0c68418458b921a98e556ee3172b2cf1af3
Signed-off-by: Roman Birg <roman@cyngn.com>
2015-08-07 15:57:58 -07:00
cretin45
bfd7ca0545 Setupwizard: Make sure to advance if GMS is absent
Change-Id: Ia0c4d83c9a9f7c581208d753024f55f48326afc7
(cherry picked from commit cb09e29e29)
2015-04-09 20:36:04 +00:00
cretin45
dbc1ceb8ca SetupWizard: Better handling of launching into other activities
Change-Id: I4d8dc4a1b25e45c6ff35042239a0adf4c16458f1
(cherry picked from commit ed5d46703e)
2015-04-01 01:59:25 +00:00
cretin45
ef4cd78d5f SetupWizard: Add metrics for internal builds that ship with CMStats
Change-Id: Id932a105c18332e32605530d1502ff99b7cf380a
2015-03-04 13:08:00 -08:00
cretin45
bce5500e27 SetupWizard: Make sure fragment is attached in callback
Change-Id: Id492defa4c1d9bcad87311250a5f62fa046ee381
2015-02-27 17:24:32 -08:00
cretin45
01f21da16b SetupWizard: Add option to apply default theme if one exists
* A bunch of code cleanup/refactoring to make this work

Change-Id: I059fb5fa5bcd7dd8821e993218a320554f10a314
2015-02-25 14:59:06 -08:00
cretin45
d7e70040b7 SetupWizard: Refactor context type
Context is assumed to be SetupWizardActivity and blindly cast. Just make the Context reference a SetupWizardActivity.

Change-Id: I3d7ffd08980fbff0fbea51b45b28002b49813038
2015-02-23 14:33:07 -08:00
cretin45
79840ecb4e SetupWizard: Fix scenario where GMS setup disables its components
Change-Id: Ia8edd39645f83625ff06fb61903b672b774257d6
2015-02-17 17:09:32 -08:00
cretin45
be13e9b452 SetupWizard: Don't show restore page if already enabled
Change-Id: I3ed4563efe10b644d5c63fc52f409021ab749924
2015-02-11 08:45:25 -08:00
cretin45
953156f371 SetupWizard: Pretend to be the gms wizardmanager for restore page
Change-Id: I9376ed55cbb4f8cc176a2f2bb9a493fe023841a0
2015-02-10 12:30:45 -08:00
cretin45
6f1d19f572 SetupWizard: Catch case where restore activity not found
Change-Id: I4acd9c2779fc41f087942e37647f90b47d3f3d9a
2015-02-06 22:07:15 +00:00
cretin45
3441abdd57 SetupWizard: Add backup restore
Change-Id: Ide7149eee903cce11dfeb7fb919b707c614c8735
2015-02-03 17:00:17 -08:00
cretin45
f76ee499de SetupWizard: Refactor page completed to hidden
Change-Id: Ia5e84c52a711767e539adcc3b1a2fdc5d5a27b13
2015-01-28 21:35:59 -08:00
cretin45
c3d44b4b83 SetupWizard: Move fragment to correct package
Change-Id: I5cf3a876f2574cbf2160715f972101f274c27c23
2015-01-28 21:35:42 -08:00
cretin45
59730c2e75 SetupWizard: Improve some of the transitions
Change-Id: I26a9d20cf429ab137d9877970ea0d6e4eafec0ad
2015-01-23 15:26:45 -08:00
cretin45
4e0c85b7ef SetupWizard: Launch activities before loading fragments
Change-Id: Ic5f393e37e6a77ffa9812f8370d2e3ee05ec9a1d
2015-01-23 14:22:11 -08:00
cretin45
1fcde3985e SetupWizard: Add loading fragment if launching into another activity
Also always show the Wi-Fi page

Change-Id: I3be39f793403131ea07d071c3d107b1800771e65
2015-01-23 14:04:04 -08:00
cretin45
b990a954a8 SetupWizard: Use GMS AccountManager as intended
Change-Id: I1c2bac11745d0d6b9a9378e483d1b64b01f5df44
2015-01-23 11:46:39 -08:00
cretin45
30af327616 SetupWizard: Launch GMS account setup by intent
Fallback to AccountManager api if intent fails.

Change-Id: I5ec06f452d12706a0f59e2f2a85bd9b4b5e4a965
2015-01-23 10:16:38 -08:00
cretin45
9e6bebaabb SetupWizard: Launch gms setup in immersive mode
Change-Id: I22362ba382a07a65209da2fa76445bc60cdabdf3
2015-01-22 16:15:02 -08:00
cretin45
48ca24eb9b SetupWizard: Add Cyanogen services page
Change-Id: I39970b1b659a3a7ed3bb5b4350707aa0e53aba24
2015-01-19 14:29:43 -08:00
cretin45
0328b87bf6 SetupWizard: Initial commit 2015-01-15 16:04:44 -08:00