Commit Graph

269 Commits

Author SHA1 Message Date
clyde@build01
80eabf6463 Automatic translation import
Change-Id: I4565b2a59a1d6fe9e463abf3707fe83dfc49b9f5
Ticket: RM-214
2016-11-14 19:05:22 -08:00
blinky@build01
a96b66ca91 Automatic translation import
Change-Id: I8b1ea3c5c6d21825ef4dd73bf51fa8421c5a0de2
Ticket: RM-214
2016-11-04 05:42:49 -07:00
Ricardo Cerqueira
ccc35c093c GmsAccount: If there's no network and FRP isn't enforcing, skip GMS
The current version of GMS's SuW has the main activity return as
CANCELED when no network is available. This is the same result as
an actual cancellation (by pressing "Back"), and there's no extra
data to distinguish the two, so the user gets stuck in a loop between
the "no network" page and the one preceding it, unless connectivity
is somehow established. Making connectivity mandatory for OOBE isn't
acceptable, so skip GMS entirely if network is absent (and FRP
isn't enforcing). The only thing it was presenting was a "you
have no network" dialog anyway.

Change-Id: I2abadc79a0823e94da7d3a875ce6db8eae8f143b
(cherry picked from commit d82b2dc88a)
2016-10-25 15:48:39 -07:00
inky@build01
a467475682 Automatic translation import
Change-Id: I6f10d380cc15066219d217ef4da73f01ecdddca4
Ticket: RM-214
2016-10-02 21:35:35 -07:00
clyde@build01
ceef158cab Automatic translation import
Change-Id: I802d7844935b533ff5ae4807f7be9478e7c43a55
Ticket: RM-214
2016-09-27 11:54:15 -07:00
inky@build01
c2a2099d4e Automatic translation import
Change-Id: Ic0bb2fc575c8a75ffa50fe76421009ec37360199
Ticket: RM-214
2016-09-25 20:28:13 -07:00
clyde@build01
f335958dd5 Automatic translation import
Change-Id: I1de7ba3b2365ae461a3a360490e58f48a6f32447
Ticket: RM-214
2016-09-20 18:32:13 -07:00
pinky@build01
b1f6642867 Automatic translation import
Change-Id: Icfa39ec908b2ad55dd71c8aedeee78d035e41ce2
Ticket: RM-214
2016-09-20 16:35:43 -07:00
inky@build01
ea45d1d94a Automatic translation import
Change-Id: I1495cbf5f8263b73e40366c8d9e340fa98f7bcf0
Ticket: RM-214
2016-09-18 16:57:10 -07:00
inky@build01
31ccf0a676 Automatic translation import
Change-Id: I4b41580e3d54627f16e99d4198ddf7f33b3d4a7b
Ticket: RM-214
2016-09-06 20:44:40 -07:00
clyde@build01
a8a4398208 Automatic translation import
Change-Id: I761f733318d3f210bcdada43dc086f143d3ccd76
Ticket: RM-214
2016-09-02 15:16:02 -07:00
inky@build01
5aebc39649 Automatic translation import
Change-Id: I79a8c9045e9ecbaf0a38c4824271daaba9ccb29b
Ticket: RM-214
2016-09-01 22:59:55 -07:00
inky@build01
8923f87cf6 Automatic translation import
Change-Id: I11153003833e49e9075666bca04923a86c2d77b5
Ticket: RM-214
2016-08-30 15:24:08 -07:00
blinky@build01
7b940bf37b Automatic translation import
Change-Id: I70d59dbef006da1459a1af6a87a5ed897ac6592a
Ticket: RM-214
2016-08-30 15:19:51 -07:00
blinky@build01
1eee70d850 Automatic translation import
Change-Id: I6fef954e499fd2c83adc1ee78d8937400db882a9
Ticket: RM-214
2016-08-25 11:11:09 -07:00
blinky@build01
1e7001f660 Automatic translation import
Change-Id: If4f2549d6dab864c6fd312326fb8cf2ce2e2463b
Ticket: RM-214
2016-08-24 22:15:14 -07:00
clyde@build01
535120f1cd Automatic translation import
Change-Id: I6977db1483f47d10d22ba9619f029fa6aa83bf88
Ticket: RM-214
2016-08-22 11:44:34 -07:00
clyde@build01
173e4bba7d Automatic translation import
Change-Id: I2ca534fb2552bb5f1b1da98c1d2bd4e80ba6458e
Ticket: RM-214
2016-08-22 11:40:34 -07:00
blinky@build01
1a0e6dad73 Automatic translation import
Change-Id: Ifdc1acc1240541a30f6c308e52054b0046f01d89
Ticket: RM-214
2016-08-21 02:15:00 -07:00
pinky@build01
aca7c46aa1 Automatic translation import
Change-Id: If3726c49140267303cf285200c94991fc6e54177
Ticket: RM-214
2016-08-18 09:08:20 -07:00
inky@build01
9b902833b3 Automatic translation import
Change-Id: I0c2cfde74b431ac76ab73ced048abd29f36a1dab
Ticket: RM-214
2016-08-15 06:34:29 -07:00
cretin45
4e235e1351 SetupWizard: Alway show google pages if gms present
Helps with an issue where qsb widget doesn't work when
running through oobe without network.

CYNGNOS-2833

Change-Id: I83666deea5a27d74669691c4ab991b1b618edb0a
2016-08-11 11:56:24 +01:00
cretin45
9accbf0ed8 SetupWizard: Ensure language picker is enabled onResume
Issue-id: FEIJ-559

Change-Id: Iafe0467fc4130074ce86fe5f28b215d4774dc50e
2016-08-11 11:55:12 +01:00
Ricardo Cerqueira
c9f6bab091 MobileData: Don't let wait-for-radio trample wait-for-data
Both waiting for radio and waiting for data used "is the progress
bar visible" as the "allow to continue" clause. If radio service
state changes arrived while the wait-for-data was ongoing, this'd
terminate the progress bar and make it wait forever.

Additionally, if wifi is connected, don't wait for data at all

Ref CYNGNOS-3126

Change-Id: I81792ac8be00c6a6746af88a62220c727cddc6d8
2016-08-11 11:54:36 +01:00
cretin45
4e680df894 SetupWizard: Wait for data connection
Issue-id: CRACKLING-786

Change-Id: I54ef75ffa8da87d829ce7ce45a7f42ca1ce54732
2016-08-11 11:54:30 +01:00
Ricardo Cerqueira
acbf09cb4d ChooseDataSim: Use the extra data from the intent to validate the sub
Instead of waiting for the telephony stack to catch up to the default,
take advantage of the fact that the intent already carries the ID as
an extra.

Also, we were using slotId and phoneId interchangeably, and they're not
the same thing. While it's likely they'll match on a freshly reset
phone, don't assume that. Index everything to subId for consistency.

Ref CYNGNOS-3126

Change-Id: Ibcd767d0124b05d669886190f5d9a98f1a6e5bd7
2016-08-11 11:54:00 +01:00
cretin45
f023a6f256 SetupWizard: Run as com.android.wizard task affinity
Issue-id: FEIJ-254

Change-Id: Ib841e7dd82d900150229e99ca01f97dfed6bcde9
2016-08-11 11:52:47 +01:00
Ricardo Cerqueira
a34de177b5 If the device has FRP, prompt the user to set up a lockscreen
FRP is kind of pointless if the device is freely accessible. Suggest
setting up a secure lockscreen during setup.

Ref CYNGNOS-3252

Change-Id: Ia807142ab08f388d533b5ee45d1fcbe81071f6d1
2016-08-11 11:51:41 +01:00
cretin45
1883e3ef14 SetupWizard: Ensure compliance with GMS TOS
* Launches GMS TOS per documentation
* Filters out redundant location page if GMS present
* Uses setupwizardlib for some helper functions
* Hide notification icons

Issue-id: CYNGNOS-2599

Change-Id: I4b59592f0b84d0eb0eafe365eab3bad77c1f76ff
2016-08-11 11:43:25 +01:00
inky@build01
ffa161aefe Automatic translation import
Change-Id: I07e81c2ad501ab80d6975fe3cd74047453f65f73
Ticket: RM-214
2016-07-27 13:19:18 -07:00
inky@build01
acde434368 Automatic translation import
Change-Id: I71212a58b704a7fd41715403d77b3e02467b8d1c
Ticket: RM-214
2016-07-11 17:50:39 -07:00
pinky@build01
2086477e4a Automatic translation import
Change-Id: I161607fc382d2ea010eeba86a9bedab043dfeda0
Ticket: RM-214
2016-06-20 14:43:29 -07:00
Jessica Wagantall
82c33b7001 Automatic translation import
Change-Id: I453de748acdc52284d66b7cc2e91dabbd792aeb4
Ticket: RM-214
2016-05-26 17:40:44 -07:00
Abhisek Devkota
d38e956263 Automatic translation import
Change-Id: I301c30f7bf8601668768814a8dbbeccca523fd50
Ticket: RM-214
2016-05-14 10:17:43 +02:00
Michael Bestas
d4f61975cd Automatic translation import
Change-Id: I5b54fcd2848c07798c9a4a18a9c4d050dfbf782b
2016-04-27 15:47:50 -07:00
Michael Bestas
cf71c5fc2b Automatic translation import
Change-Id: I4541f0e56eb0b84ae47a1b2da57ade2e1903dc0b
2016-04-27 15:47:39 -07:00
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
Ricardo Cerqueira
c962d61b5b Prefer SIM carrier name over network carrier
People generally identify their SIMs by the emitting carrier, not
the network they attach to. In roaming or MVNO scenarios, these
are likely not to be the same, leading to confusion in SIM selection.

Ref CYNGNOS-2496

Change-Id: I0ecd8e7511fd4229d6ce7629b1f97aa83a1a6254
2016-04-18 17:55:55 +01: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
Michael Bestas
28f01461b0 Automatic translation import
RM-214
Change-Id: I8c171f98bf44f4aa2ac3db1e4e91bbc374e0ba7d
(cherry picked from commit f9fe68cdfa)
2016-03-29 23:52:31 -07:00
Michael Bestas
c8fb9d5c15 Automatic translation import
RM-214
Change-Id: I6255a0cc02592fd491ae80de174c459b9f0fa7c6
(cherry picked from commit 7de4615eeb)
2016-03-29 23:36:01 -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
3a8b0a4d9b SetupWizard: Restore last page on setup wizard death.
Since the restore process (or any external setup wizard
  process) can take a long time to finish execution, save
  the current page and restore it on recreation when necessary.

Change-Id: I575cf58047eb307c95408a0955dd7e5b50a62107
TICKET: CYNGNOS-2233
(cherry picked from commit 57080c360c)
2016-03-18 10:54:20 -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
cretin45
43465e1fee SetupWizard: Ensure UI doesn't show when user is guest
Issue-id: CYNGNOS-1736

Change-Id: Ibcd85ca3f90a6ab35a3ae6da622f59786ddcbcd3
(cherry picked from commit 1b1b991da5)
2016-03-16 08:25:14 -07:00
Michael Bestas
c124d3a561 Automatic translation import
RM-214
Change-Id: Ibbc2c231c4c041742dbac6f1d607b883f5699602
2016-03-07 11:56:31 -08:00
Michael Bestas
5500864178 Automatic translation import
RM-214
Change-Id: I8e97ae46a19d8e1bb8d8364f5c7a11178ec05776
2016-03-07 11:51:01 -08:00