Commit Graph

141 Commits

Author SHA1 Message Date
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
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
emancebo c92c4b6a3a SetupWizard: check if mobile data is enabled from telephony API
System property ro.com.android.mobiledata is no longer used

issue-id: JALEBI-135
Change-Id: Iac088d50dc50227e805b58b537c38082b6797291
2015-07-21 10:12:44 -07:00
d34d 6d93813829 Move fingerprint setup to end of OOBE
Fingerprint setup should occur after the user has setup any accounts
and before the customization page.

Change-Id: I1305d89e17da1f8d405c8bd5b8b8b5268a2ba38c
2015-07-13 12:36:39 -07:00
Brandon McAnsh eff742708f WifiSetup: Pass the correct componentName and data for captivePortal
* CaptivePortal expects the networkid, which was not being passed on via the intent
* Also use the correct componentName to bring up the sign in page

Change-Id: I83d80dc3ec026d7a5a5d4b8bf4cf577214a13da4
Signed-off-by: Brandon McAnsh <brandon.mcansh@gmail.com>
2015-07-13 13:52:21 -04:00
d34d b28f9c0a76 Enroll fingerprint via SetupWizard [2/2]
Change-Id: Ieabfb0f3b789b02ddd1e17aba1eadfda52b21384
2015-07-10 10:34:48 -07:00
Ethan Chen ee89d29fb4 Clarify touch event consumption logic
* Make it clear that both onInterceptTouchEvent and onTouchEvent need to
  occur.

Change-Id: I951a470ad073f85a9a006c7f440872839d26cd26
2015-06-30 09:41:22 -07:00
Matt Garnes b31cb54361 Fix incorrect retrieval of SIM Network Operator.
We were incorrectly passing the phone ID to TelephonyManager instead of
the subscription ID. Pass the correct identifier to retrieve the network
operator name.

Change-Id: I266d2ce39c72db6e97eff5a36c5fec6242d516cc
2015-06-19 15:43:58 +00:00
Raj Yengisetty b72e820a96 SetupWizard: protect against IllegalStateExceptions in telephony
Telephony throws this exception in some cases when retrieving SIM state

Change-Id: I87e14aaa328d46ebba4990559f6531de4e961d68
2015-06-18 16:21:08 -07:00
emancebo ffc0dbd2fb SetupWizard: add overlay to uncheck cyanogen theme option by default
Change-Id: I278dcb3b2d8099b71a66d90250c40836dd8ec7fc
(cherry picked from commit 7a255f6e5c34b7abe49333eb8f623904a8576a67)
2015-06-18 16:57:57 +00:00
cretin45 c5e926d67f SetupWizard: Add hook to finish setup for CTS automation
Change-Id: Ifd7edda671fd8011a9b9ed894333c292cd0c3331
2015-06-17 13:56:09 -07:00
cretin45 b7c51828ed SetupWizard: Ensure setup complete flags are set for secondary users
Change-Id: If96abdb6ccc52f7049018dcae6576dd1b886fc0f
2015-06-12 12:24:30 -07:00
emancebo b2ceb1f8bb OOBE: fix NPE in choose data sim page
Change-Id: Ib6228e7cd223d29ac48200e9a50c0900d35f8a4e
2015-05-18 16:25:14 +00:00
Roman Birg bfd3abd0c7 SetupWizard: hide WhisperPush if it's not installed
Change-Id: I7576a2ee0f851e1222b6ed4d53188950b20b6a16
Signed-off-by: Roman Birg <roman@cyngn.com>
2015-05-13 19:33:58 -07:00
cretin45 7710855b72 SetupWizard: Add kill switch implementation
Change-Id: I1335cddf0dcc94eb8d2defeebdc47cb61abffd06
2015-05-08 11:44:34 -07:00
cretin45 4d08b90df3 SetupWizard: Use the system property mobile data page visibility
Change-Id: I3a3301bcdbc2200ba62067188e59c886a0891788
2015-05-07 14:05:29 -07:00
cretin45 b076a55991 SetupWizard: Use new LegaleseViewer for privacy policy web views
WebViews are no longer allowed in priv-apps.

Change-Id: Iddf9c79d50ea9f9d9d32218342f9948a6cbf30ef
2015-05-06 16:03:38 -07:00
cretin45 ac84dc0fce Setupwizard: Fix msim NPE where sim only in slot 2
Change-Id: I919129185cb49c51f9f02d9718e116e7d02b0d2c
2015-05-04 16:03:08 -07:00
cretin45 9dd952e3f6 SetupWizard: Increase delay for accessibility
Change-Id: Ifff7161f95e91ec7763f388206cd1d30804ad600
2015-05-01 13:14:03 -07:00
Roman Birg 3c37b0b69c SetupWizard: update stats permission and package
Change-Id: I3ef19b616422ca5cc0896840753192b1c1712525
Signed-off-by: Roman Birg <roman@cyngn.com>
2015-04-27 13:30:08 -07:00
dhacker29 2a98e6f6f6 Disable the CyanogenServicesPage if FEATURE_LEANBACK detected
TV devices will not benefit from having a CM account.

Change-Id: I5258a1442c400b35d92c22a2b0e8dcbe3516aead
2015-04-25 07:24:49 +00:00
dhacker29 218deb9952 If this is a TV device launch bluetooth pairing before Welcome page
TV devices like fugu don't have a default input method and expect to
be able to pair the bluetooth remote during setup without having to
manually initiate it with the bottom button on the device.

Change-Id: I88246fe9b28a85dc334c0108b818e78cb29491bb
2015-04-24 01:32:19 -04:00
dhacker29 de06181c7e WifiSetup: If device has Leanback feature specify tv.settings
Fugu has both com.android.settings and com.android.tv.settings so
currently it brings up a selector dialog for how to handle the wifi
intent, which leads to "Activity is launching as a new task, so
cancelling activity result." Fix this by passing the component name
in the intent if FEATURE_LEANBACK is present

Change-Id: I470590315d3f95a32b7796dd4a916a543392fcd6
2015-04-23 02:31:51 -04:00
Pawit Pornkitprasan cfc4a0db64 SetupWizard: handle skipping id in SubInfoRecords
This extends I3b4132afccc96a5d08986a3cb902bd384931f21f to actually
work.

Change-Id: I9183626b40edda6a96888dca2816ff116b64bc5e
2015-04-20 15:55:30 -07:00
Pawit Pornkitprasan dd500a1f42 SetupWizard: don't access SubscriptionController directly
SubscriptionController exists in the telephony process and cannot
be accessed by SetupWizard.

getInstance() will always return null.

Change-Id: I017682d3aad539e1954348664b1c1fec7f76009d
2015-04-20 15:53:19 -07:00
cretin45 f654deb217 SetupWizard: Give radio a 10 second chance to come up
Change-Id: Iadd817b200106783dd67edbc5ad03928ce2baa6b
2015-04-17 03:44:08 +03:00
cretin45 bfd7ca0545 Setupwizard: Make sure to advance if GMS is absent
Change-Id: Ia0c4d83c9a9f7c581208d753024f55f48326afc7
(cherry picked from commit cb09e29e29e64032fba5cfd47e71c4db38b32f20)
2015-04-09 20:36:04 +00:00
cretin45 714be1a490 SetupWizard: Aggressively hide nav bar on soft key devices
Change-Id: Ic23fd7e605a323411fe2f581235ff3ed45bfcaed
(cherry picked from commit 1d7988a4c78aa8a4c768e8ddb8e0ced2c8f8c530)
2015-04-09 20:35:42 +00:00
cretin45 317a15e0eb SetupWizard: Ensure page object isn't null if FM destroyed
Change-Id: Ia794e7656587ca803d02418d3d84d4df5027cd00
(cherry picked from commit 62b79e38809699edf47f8a4fad16fdf706ceaa5e)
2015-04-09 20:35:15 +00:00
cretin45 6d63e95342 SetupWizard: Handle all touch events in EnableAccessibilityController
Change-Id: Icf15be21c90d32305a9c1f8b9835eb473acf1f33
(cherry picked from commit 0fde3a04cc62396b524aadb6a1a30f573a4b1b38)
2015-04-09 20:34:18 +00:00
cretin45 e79aa7f0bf SetupWizard: Don't assume order of SubInfoRecords
Change-Id: I3b4132afccc96a5d08986a3cb902bd384931f21f
2015-04-09 13:32:59 -07:00