Commit Graph

239 Commits

Author SHA1 Message Date
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
Roman Birg
62f145793a SetupWizard: declare setupwizard category in manifest
In case there's more than one setup wizard package, we can only grant
permissions to one by default. That is queried by the
Intent.CATEGORY_SETUP_WIZARD which needs to be declared so we are in the
line up to receive the permission.

Change-Id: Ia9bf7ef2dfdaedfc567f038cd860abafa0e2d657
Signed-off-by: Roman Birg <roman@cyngn.com>
2016-01-07 07:54:19 -08:00
Michael Bestas
8c472fc564 Automatic translation import
Change-Id: I1f5120b5affa555a034c43060b3dc300e2a144ad
2015-12-25 19:36:45 +02:00
Matt Mower
7ab7f3c6d9 SetupWizard: Conditionally run account setup
If the package defined by cm_account_type (which can be overlayed)
exists, then add CyanogenSettingsPage. Otherwise, omit.

PS3: On the cyngn side, the account type and package name don't match. Added a new string to overlay.

Change-Id: I15e032e21281aaf51ca32ac9cc0861e033201f19
2015-12-21 14:07:11 -08:00
d34d
68d2ba7728 Fingerprint: Use M fingerprint setup action
Change-Id: I2af048649aed4e8c81e2e31e1ad42612ad9dc6a4
2015-12-03 16:54:16 -08:00
d34d
a2f4c5812e Revert "Fingerprint: Use AOSP fingerprint setup"
This reverts commit 070fbeaf5d.

We still need to show the fingerprint setup screen which allows
the user to skip setting up a fingerprint if they choose to do so.

Change-Id: Ifa49ad1ac0e5cf113290b973ac5e9cd8abdbed9a
2015-12-03 16:53:37 -08:00
d34d
070fbeaf5d Fingerprint: Use AOSP fingerprint setup
Switch to AOSP fingerprint setup now that Marshmallow supports it.

Change-Id: I55ef80671c758034be324027f168af03dda66aef
2015-11-29 17:16:31 -08:00
Matt Mower
ea2d42d654 SetupWizard: Update Location services page
* Remove usage of deprecated setLocationProviderEnabled and
  isLocationProviderEnabled
* Use BroadcastReceiver to listen for changes to mode
* Replace GPS option with Battery Saving option (there is no longer a
  mode available in Android which disables GPS)

TODO: Create CMStats entry for ENABLE_BATTERY_SAVING_LOCATION

Change-Id: I2efe69125518637ae9b7d0dce285c39dae654d4c
2015-11-14 23:43:55 -06:00
cretin45
b64d5e7676 SetupWizard: Fix locale picker styling
Change-Id: If336a8321b09513ec8b22f8138a47fb4d94e5913
2015-10-27 12:44:11 -07:00
cretin45
41801b0ca2 SetupWizard: Update proguard for play services 8115000
Change-Id: Ia3dfa3190b08fac70de2fe088da419d96b0ffa9e
2015-10-23 15:23:38 -07:00
Adnan Begovic
307e587a3a SetupWizard: Temporary compile fixes.
Change-Id: Iffdbb3b38aef75f14dcb0957df8dda13f844159b
2015-10-15 15:18:58 -07:00
Yvonne Wong
f29f92dcac Switch SetupWizard to use CMSettings for settings unrelated to bootclasspath
Issue-Id: CYNGNOS-831
Change-Id: Iba8ab05f327360332383c6e93f6a0401e57e846e
2015-10-14 12:40:40 -07:00
Adnan Begovic
56ccf8676f SetupWizard: Remove themechange config change for now.
Change-Id: I4ccaab30a6719723e2d3e92edb5eaa0977e51d1b
2015-10-09 12:36:16 -07:00