Commit Graph

251 Commits

Author SHA1 Message Date
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
Michael Bestas
7c835d97d1 Automatic translation import
RM-214
Change-Id: Idaecb2359c426de380340ff10e5dea4c0541dde7
2016-03-07 11:50:47 -08:00
Michael Bestas
e7ae573b91 Automatic translation import
RM-214
Change-Id: I74487a8b430467ca969fe8fff5dc6c4fe9dc0704
2016-03-07 11:50:31 -08:00
Michael Bestas
4a23c19427 Automatic translation import
RM-214
Change-Id: I521c0301a8a3fff426b15dd7645b6e5b59496bac
2016-03-07 11:50:15 -08:00
cretin45
63d7bbfa00 SetupWizard: Modify intent for CaptivePortalLogin
Issue-id: CYNGNOS-2048

Change-Id: I6e9b0ab56c59013aa1bf4d47de2a222c938d53b2
(cherry picked from commit ca63326151)
2016-02-29 16:37:17 -08:00
cretin45
1f98ce4f73 SetupWizard: Request READ_PRIVILEGED_PHONE_STATE perm for sim change events
Issue-id: CYNGNOS-2057

Change-Id: Ie3b0c617249ead069125c13e40b497a3328b0563
(cherry picked from commit 56bf4365cf)
2016-02-17 12:08:41 -08:00
Edward Wang
d3766ead76 SetupWizard: fix build break for incorrect java lib linking
Issue-Id: CYNGNOS-1969

Change-Id: Ia13390739737063a9ab0cd0c3907389f3a587191
(cherry picked from commit 4e1c4f5eba)
2016-02-09 16:42:25 -08:00
cretin45
683ba98dee SetupWizard: Bring back software nav keys option
Issue-id: OPO-402

Change-Id: Id04105a48dfbb494dddc757f8fe9bcad16796937
(cherry picked from commit 5b276ea335)
2016-02-04 15:22:28 -08:00
Danesh M
1eb81e8649 SetupWizard : Don't update locale if sim locked
If the sim is locked, or the setup wizard is not visible, don't
change the locale as it creates a unpleasant experience for the user.

CYNGNOS-1797

Change-Id: Ib696e83cfcdaef18bcf24ef649e6268b7142961a
(cherry picked from commit d6b937a567)
2016-02-03 16:25:34 -08:00
cretin45
e6f70ad6c8 SetupWizard: RIP Whisperpush
WISP-41
Change-Id: I20363cc80dbb1481bd66abb4bd4202212ff37028
(cherry picked from commit 962f9a89d4)
2016-02-01 15:40:27 -08:00
Danesh M
e32f0f0a51 SetupWizard : Use MccTable for mcc -> locale lookup
Some sims such as T-Mobile return incorrect languages for their
PL(Preferred languages). Lookup the locale via the MccTable instead,
and fallback to trusting the sim.

OPO-379

Change-Id: I612d4952355ce4a42b35579e1f9aa879417c4cd4
(cherry picked from commit 95246f2063)
2016-01-28 10:57:58 -08:00
d34d
f60a71eace Themes: Re-enable applying theme in OOBE
Change-Id: I0b027bff18c3b33fc0a925ee756766ed31740b35
TICKET: OPO-361
(cherry picked from commit 06aa3eb165)
2016-01-28 08:04:27 -08:00
Danesh M
f56a0fa92c SetupWizard : Ensure we don't override user locale picks
Take scroll events into consideration when deciding whether to override
user locale with sim locale.

Also move locale fetching to be async so we don't cause any unecessary
blocking.

CYNGNOS-1521

Change-Id: I0c4c1b89dd227f661c1a1cdcce445349fe4a206f
(cherry picked from commit 00ad2213ff)
2016-01-25 11:26:48 -08:00
Danesh M
3b7093c339 SetupWizard : Switch to mcc/mnc locale
Also ensure we only send stats event once and
only if the user actually changed the locale.

CYNGNOS-1521
CYNGNOS-1326

Change-Id: I7b0451137e6bf80bf71350da28fe391fc8c52ce8
(cherry picked from commit d59304c730)
2016-01-22 15:58:42 -08:00
Danesh M
8f3308fbf4 SetupWizard : Set min date to Jan 1, 2016 GMT
In the event that the current time returns us epoch,
hard code the time so the user doesn't have to
scroll all the way to 2016 when setting the time.

CRACKLING-721

Change-Id: I7a4122320c80e941154b84f306565c0f9b452a7d
(cherry picked from commit f8e4ab690f)
2016-01-18 10:20:25 -08:00
cretin45
f5ec6ac071 SetupWizard: Upgrade sdk to 23
Also remove uneeded perms.

Change-Id: I953e341c30d8d02beffe2031f102379586da4e81
2016-01-12 16:14:41 -08:00
cretin45
1141611f91 SetupWizard: Don't disable packages on main thread
Issue-id: YAM-69

Change-Id: I81ea039a7444d3db5d97b1d798bffe9a6b8ec498
2016-01-12 14:47:32 -08:00
Michael Bestas
3e68503d9e Automatic translation import
Change-Id: I41eb1f3ba6fdec2a332fc63f8f45c39d4c87bc99
2016-01-11 22:43:23 +02:00
Roman Birg
f4f43c6edd Revert "SetupWizard: declare setupwizard category in manifest"
This reverts commit 62f145793a.

Change-Id: Icb686765d4438fb3c8ba919e091d4561a198de73
2016-01-08 10:34:50 -08:00