Commit Graph

173 Commits

Author SHA1 Message Date
Luis Mejia
b31e14b835 Replaced last panel with ModGuide panel.
- Created and added ModGuide panel.
- Added the ability to chnage navigation color.
- Added the ability to start an app after wizard completion.

Issue-Id: MSC-14
Change-Id: I8e17735d1a9edbd529339982981f8270cde83d96
2016-07-14 19:27:13 -07:00
Ricardo Cerqueira
7c1cf5a232 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-07-14 04:04:00 -07:00
Ricardo Cerqueira
3ebea2fb6d 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-07-14 04:03:45 -07:00
Bharadwaj Narasimha
10a58d25fd SetupWizard: Handle ActivityNotFoundException in LoadingFragment
Handle the possibly thrown ActivityNotFoundException.Changed the generic catch block into a specific catch block to handle ActivityNotFoundException.

Change-Id: Ica1106bab3e569aaa7883898ce6adb3a1a2dd99f
2016-07-08 11:03:14 -07:00
cretin45
4981bc9888 SetupWizard: Ensure language picker is enabled onResume
Issue-id: FEIJ-559

Change-Id: Iafe0467fc4130074ce86fe5f28b215d4774dc50e
2016-05-23 14:18:12 -07:00
cretin45
334c00f437 SetupWizard: Use proper CMSetting for soft keys option
Issue-id: CYNGNOS-2842

Change-Id: I5ab75d9d90d79b66fa9b10f011272fc0090a78dd
2016-05-15 10:54:37 -07:00
cretin45
36f15ef169 SetupWizard: Alway show google pages if gms present
Helps with an issue where qsb widget doesn't work when
running through oobe without network.

Also set the cm setup finished setting for test receiver.

CYNGNOS-2833

Change-Id: I83666deea5a27d74669691c4ab991b1b618edb0a
2016-05-13 15:40:51 -07:00
cretin45
635504813a SetupWizard: Add Mod disovery language for mod ready devices
Issue-id: CYNGNOS-2566

Change-Id: If88d2d62b5d2175ffe857d45dd9f6ce132129f2a
2016-04-27 12:39:52 -07:00
cretin45
8109277755 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-04-27 10:35:48 -07:00
cretin45
941aa1e1e2 SetupWizard: Handle register theme change listener crash
Issue-id: FEIJ-84

Change-Id: I8ffca77418702f04328ae7d0581ab8cc316a04e8
2016-04-26 11:15:48 -07:00
Roman Birg
af828584ae SetupWizard: GMS page controls the next step
Ticket: CYNGNOS-2533
Change-Id: Icf7dc1de653d18ac60ddfa52dddbe9412dbc8eda
Signed-off-by: Roman Birg <roman@cyngn.com>
2016-04-25 09:00:59 -07:00
Roman Birg
fccccda787 SetupWizard: add a CM-specific setup-complete settings key
Android uses Settings.Global.DEVICE_PROVISIONED and
Settings.Secure.USER_SETUP_COMPLETE and the system responds to those
database entries, such as allowing the keyguard to be visible, or maybe
pulling the statusbar down.

Since we still depend on some of Google's setup wizard, it also keys off
the same table rows and it may decide that the device is now provisioned
when we still haven't finished our own setup wizard, so let's add
another key that we have control over to show the real state of OUR
setup wizard.

Ticket: CYNGNOS-2431

Change-Id: Ic21689625f6d80e209161762ace741918b972aba
Signed-off-by: Roman Birg <roman@cyngn.com>
2016-04-22 08:29:40 -07:00
Ricardo Cerqueira
e5c2b92590 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:06 +01:00
Adnan Begovic
fe7ac15220 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
2016-04-14 12:59:25 -07:00
cretin45
763af1265c SetupWizard: Wait for data connection
Issue-id: CRACKLING-786

Change-Id: I54ef75ffa8da87d829ce7ce45a7f42ca1ce54732
2016-04-08 11:40:20 -07:00
Adnan Begovic
4da02b0881 SetupWizard: Update for themes api changes.
Change-Id: I8d97d43f655bcdc32e5d94d7c844fe1b64919898
TICKET: CYNGNOS-2295
2016-03-25 10:56:27 -07:00
Adnan Begovic
0410f846bb 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
2016-03-21 11:38:48 -07:00
Adnan Begovic
d114a09647 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
2016-03-21 10:21:06 -07:00
Adnan Begovic
6baab03bd8 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
2016-03-17 19:22:58 -07:00
Adnan Begovic
57080c360c 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
2016-03-17 14:04:25 -07:00
Adnan Begovic
744827989c 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
2016-03-16 19:21:33 -07:00
Adnan Begovic
0d83f7c062 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
2016-03-16 11:04:23 -07:00
d34d
8104310592 Themes: Refactor themes to CMSDK [6/6]
Change-Id: I26214e9a71f4d2f5f1b61cf3cabdcdb8bcc098b1
TICKET: CYNGNOS-2126
2016-03-01 09:58:55 -08:00
cretin45
ca63326151 SetupWizard: Modify intent for CaptivePortalLogin
Issue-id: CYNGNOS-2048

Change-Id: I6e9b0ab56c59013aa1bf4d47de2a222c938d53b2
2016-02-26 12:15:39 -08:00
Danesh M
d6b937a567 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
2016-02-03 16:25:26 -08:00
Zdrowy Gosciu
13539517cf SetupWizard: Remove useless WhisperPushUtils
WISP-41

Change-Id: Ia93d9f9d5d1b2f4d2613491e203451247ca9b474
Signed-off-by: Zdrowy Gosciu <ZdrowyGosciu+GITHUB@gmail.com>
(cherry picked from commit 9710862296c94cd6d9b5d16f146e9fb4ec899009)
2016-02-02 07:44:35 -08:00
cretin45
1b1b991da5 SetupWizard: Ensure UI doesn't show when user is guest
Issue-id: CYNGNOS-1736

Change-Id: Ibcd85ca3f90a6ab35a3ae6da622f59786ddcbcd3
2016-02-01 15:23:19 -08:00
cretin45
5b276ea335 SetupWizard: Bring back software nav keys option
Issue-id: OPO-402

Change-Id: Id04105a48dfbb494dddc757f8fe9bcad16796937
2016-02-01 15:14:54 -08:00
cretin45
962f9a89d4 SetupWizard: RIP Whisperpush
Change-Id: I20363cc80dbb1481bd66abb4bd4202212ff37028
2016-02-01 13:52:54 -08:00
Danesh M
95246f2063 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.

Change-Id: I612d4952355ce4a42b35579e1f9aa879417c4cd4
2016-01-28 10:56:27 -08:00
d34d
06aa3eb165 Themes: Re-enable applying theme in OOBE
Change-Id: I0b027bff18c3b33fc0a925ee756766ed31740b35
TICKET: OPO-361
2016-01-28 08:04:18 -08:00
Danesh M
00ad2213ff 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
2016-01-25 11:24:33 -08:00
Danesh M
d59304c730 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
2016-01-20 10:33:08 -08:00
Danesh M
f8e4ab690f 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
2016-01-15 14:53:35 -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
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
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
cretin45
edaab88f13 SetupWizard: Tweak logic for showing/hiding sim missing page
CYNGNOS-1021

Change-Id: I6139ca4368eb1bf49b07a95ac60ca28831e2cd3a
2015-09-17 13:48:55 -07:00
cretin45
97af685bbd SetupWizard: Handle xfinity captival portal
CYNGNOS-691

Change-Id: I62ef349da48ffd3e9b148e68e946fe550cea2ff7
2015-09-01 16:44:53 -07:00
cretin45
97c37bef11 SetupWizard: Check for frp in finish receiver
CYNGNOS-886

Change-Id: I97af3285d9321f2f153676eaac081e5408300661
2015-09-01 16:32:48 -07:00
Ricardo Cerqueira
7e1a0aaffa SetupWizard: Don't wait for data connection to present the data toggle
We can proceed to the data enablement screen as soon as the device
confirms the requested slot is active. Waiting for an actual data
connection kinda breaks the point of that screen :)

Addresses CYNGNOS-660 and CRACKLING-503

Change-Id: I975508852b37c0e4b112612ac10aacb71ded97b3
2015-08-20 09:25:15 -07:00
cretin45
4ef509ac48 SetupWizard: Improve wait for data sim change logic
Invalid sims and bad connections causes huge delays when switching. This disallows switching to invalid sims. It also fixes a bug were the next button would get enabled while waiting on a switch.

CRACKLING-503

Change-Id: I6cf7391910cc23554bb418c3083e736a3f06e037
2015-08-19 12:01:08 -07:00
Steve Kondik
c924af3b33 setupwizard: Move CMHW to CMSDK
Change-Id: Icc898a22c17486c9e2cc7f2d9d54ca025c134b0d
2015-08-19 05:31:14 -07:00
cretin45
62db452188 SetupWizard: Wait for data sim change
When changing the default data sim for msim, disable the next action until the operation completes.
This PS also refactors how the wait for radio logic a bit.

CRACKLING-503

Change-Id: I38ba3ea00f63d3e42c260e5b0e8558c3bc9d347f
2015-08-18 16:43:34 -07:00