Commit Graph

150 Commits

Author SHA1 Message Date
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
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
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
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 e79aa7f0bf SetupWizard: Don't assume order of SubInfoRecords
Change-Id: I3b4132afccc96a5d08986a3cb902bd384931f21f
2015-04-09 13:32:59 -07:00
Aaahh 22df00177f SetupWizard: Disable Checkbox on Resume
Change-Id: Ica6f3043b9b0d3703b6ce6f47a43b5201deb05b7
(cherry picked from commit 9192fc690306c85349b62204cb74f61a1d12edec)
2015-04-09 19:14:13 +00:00
cretin45 76101714d7 SetupWizard: Initialize the nav keys bundle boolean
Change-Id: I50f2ef0fb7226c8b58437b669ca71df436d68ee8
(cherry picked from commit 33683fc2ce0d506c5c69726a112e768684676343)
2015-04-01 02:03:03 +00:00
cretin45 2a01a24066 SetupWizard: Fix regression for devices without custom default theme
Change-Id: Ia223c1b118dbb68e596ff01cf944bc870a321752
(cherry picked from commit 838248ab868a91948fe5d63a0aba50e6dea13643)
2015-04-01 02:02:23 +00:00
cretin45 d0389e4e6e SetupWizard: Fix regression, only init pages once
Change-Id: I1207cb3975daa752a66eb8e9e40635f9a8009509
(cherry picked from commit 83be05d6ecf435be562f397e98e0ad61e5974ecd)
2015-04-01 02:01:32 +00:00
cretin45 dbc1ceb8ca SetupWizard: Better handling of launching into other activities
Change-Id: I4d8dc4a1b25e45c6ff35042239a0adf4c16458f1
(cherry picked from commit ed5d46703ea6aac1c912be114523688f3f8219e8)
2015-04-01 01:59:25 +00:00
Steve Kondik c225cd58f7 setupwizard: Adapt to MR1 multisim APIs
Change-Id: Icb5bad076fe5a5e8a26befc5bedd04981c374117
2015-03-22 17:18:31 -07:00
cretin45 bfde63c27c SetupWizard: #blamethemes
Themes keep breaking the handle themeConfig flag. This provides a workaround for cases the activity gets torn down during the finish process.

Change-Id: I6664ded3dfff5b69c1217f89f25106953cb5f92a
2015-03-13 16:18:24 -07:00
cretin45 0ed67f547c SetupWizard: Only go through OOBE if owner
Change-Id: I3886119d0d6fd69f18ea23d4b6435da75280dbf8
2015-03-12 13:50:19 -07:00
cretin45 f66c56b62f SetupWizard: Only update network state when resumed
Change-Id: Id018bf0ed4d9c54a1d6d57d53749c265b1d0e269
2015-03-11 17:14:22 -07:00
cretin45 77fce341b1 SetupWizard: Update legal link
Change-Id: I1389dbb3e7e0ba3b7db992fdef02f4c8fdc1692d
2015-03-11 09:59:24 -07:00
cretin45 0d31b31aac SetupWizard: Refactor for better transitions out of OOBE
Change-Id: If91da3f44dbc5383236b54da529953d48a475250
2015-03-09 14:49:31 -07:00
Scott Mertz 7732b7485d SetupWizard: move to CmHardwareService
Change-Id: I9413151fe307d23196ea5736dc8c50966a43a7cc
2015-03-07 00:56:09 +00:00
cretin45 ef4cd78d5f SetupWizard: Add metrics for internal builds that ship with CMStats
Change-Id: Id932a105c18332e32605530d1502ff99b7cf380a
2015-03-04 13:08:00 -08:00
cretin45 c9c13f20c9 SetupWizard: Add callback for actions to run post finish
Change-Id: Ifa62c94f61afbe33a97a66dc0acb72e303023579
2015-03-03 12:31:16 -08:00
cretin45 2ed0fae81e SetupWizard: Update legal link
Change-Id: I7fddeac0a5da34906169bcd89a3f308a8463759e
2015-03-02 12:42:39 -08:00
cretin45 bce5500e27 SetupWizard: Make sure fragment is attached in callback
Change-Id: Id492defa4c1d9bcad87311250a5f62fa046ee381
2015-02-27 17:24:32 -08:00
Adnan da8333a352 SetupWizard: Update setting constants.
Change-Id: I6d6070b3bdeaf8caf55f8c7d5fa3a54ab2d088bc
2015-02-26 18:15:56 -08:00
cretin45 01f21da16b SetupWizard: Add option to apply default theme if one exists
* A bunch of code cleanup/refactoring to make this work

Change-Id: I059fb5fa5bcd7dd8821e993218a320554f10a314
2015-02-25 14:59:06 -08:00
cretin45 1d54e5207a SetupWizard: Auto advance sim missing page if sim inserted
Change-Id: I3105a264bb9ae13c513398ae19d541ae194b7331
2015-02-23 16:03:47 -08:00
cretin45 d385c7e906 SetupWizard: Fix race conditions with async callbacks
Change-Id: Ifeeec3ac74b4644bb26b9f90d0159a64b173785b
2015-02-23 15:58:21 -08:00
cretin45 d7e70040b7 SetupWizard: Refactor context type
Context is assumed to be SetupWizardActivity and blindly cast. Just make the Context reference a SetupWizardActivity.

Change-Id: I3d7ffd08980fbff0fbea51b45b28002b49813038
2015-02-23 14:33:07 -08:00
cretin45 ad4b36e063 SetupWizard: Pass accent color to CaptivePortalLogin
Change-Id: Ic4cd72b6020b3aaca7d9a39486310a795063b899
2015-02-19 15:11:33 -08:00
cretin45 e001f975db SetupWizard: Add captive portal check
Change-Id: I990b3d5c67fa9ba54e7e834b42a11a93133646d9
2015-02-19 13:01:28 -08:00
cretin45 79840ecb4e SetupWizard: Fix scenario where GMS setup disables its components
Change-Id: Ia8edd39645f83625ff06fb61903b672b774257d6
2015-02-17 17:09:32 -08:00
cretin45 9d72db9dbe SetupWizard: Reveal the default wallpaper on oobe finish
Change-Id: I68a256853f256af3464da7eba57a307a810d80cd
2015-02-16 16:52:06 -08:00
cretin45 16486aead0 SetupWizard. Don't show account pages if no connectivity
Change-Id: I36e181f67e9fc0efef39cc58f7dc80bbbfd5b49d
2015-02-13 10:51:10 -08:00
cretin45 97fdf91ee8 SetupWizard: Only show backup if a gms account was added
Change-Id: I6cadf141c330d072f8cfc51769e4f41b74ebf880
2015-02-13 10:21:37 -08:00
cretin45 be13e9b452 SetupWizard: Don't show restore page if already enabled
Change-Id: I3ed4563efe10b644d5c63fc52f409021ab749924
2015-02-11 08:45:25 -08:00
cretin45 9cce6c2fcf SetupWizard: Make location page dynamic based on GMS
Change-Id: Ia30791882f049cef632281f21f2d7653536d5818
2015-02-10 16:52:09 -08:00
cretin45 953156f371 SetupWizard: Pretend to be the gms wizardmanager for restore page
Change-Id: I9376ed55cbb4f8cc176a2f2bb9a493fe023841a0
2015-02-10 12:30:45 -08:00
cretin45 a6b56dd6f6 SetupWizard: Only show some pages if user is owner
Change-Id: Ib0e873d69fa38a2f214e0250eb8b1700011af369
2015-02-10 12:30:45 -08:00
cretin45 9906c90029 SetupWizard: Add condition for hiding secure sms option
Change-Id: I0287c8119d56fd9a055caa96c8eaba7fb844f236
2015-02-10 18:14:11 +00:00
Michael Bestas 67cc3b5c01 SetupWizard: Improve strings
Change-Id: I3b850d0772e1c3e5eddb0218c7e41360ee233470
2015-02-06 23:12:18 +00:00
cretin45 5d3bce424c SetupWizard: Use fade in/out animation for emergency dialer
Change-Id: I43a1d4b0a257e2639e5b461a541001815736a32d
2015-02-06 23:05:12 +00:00
cretin45 6f1d19f572 SetupWizard: Catch case where restore activity not found
Change-Id: I4acd9c2779fc41f087942e37647f90b47d3f3d9a
2015-02-06 22:07:15 +00:00
cretin45 7970c9b351 SetupWizard: Add generic sim missing asset
Change-Id: I2dcae095c96a020a54792a939b053ae78005d056
2015-02-06 22:06:22 +00:00
cretin45 c03556f5ae SetupWizard: Don't register for secure sms if not selected
Change-Id: If17eecb127443d1b0c691af7ff21012a618a1c85
2015-02-06 12:59:31 -08:00
Danesh M 8e52f6cac7 SetupWizard : Support rotation for date/time picker
Fix crashes

Change-Id: I7d0a7088f2c65949ee15f4f0d05c74ffce45ba64
2015-02-06 19:29:47 +00:00
cretin45 cb291e170c SetupWizard: Improved show/hide page logic
Change-Id: I23212a97c0435ee69db46c8b478207c62e3b07cb
2015-02-04 17:13:57 -08:00
cretin45 c117b980c4 SetupWizard: Listen for network time events too
Change-Id: I64b1e6c933b5efc189684d7c197f3ea3956a0760
2015-02-03 17:06:38 -08:00
cretin45 3441abdd57 SetupWizard: Add backup restore
Change-Id: Ide7149eee903cce11dfeb7fb919b707c614c8735
2015-02-03 17:00:17 -08:00
cretin45 1e23a8f801 SetupWizard: Catch exceptions reading key disabler
Change-Id: Ib86e71ec9358db88ff4bcddd9cf26e2dd5b0b817
2015-01-30 13:57:27 -08:00
cretin45 a912fa829f SetupWizard: Use telephony check
Change-Id: If888fd9dc5865a7d131d18db38be870a8569eeb0
2015-01-30 13:56:47 -08:00
cretin45 a96968d996 SetupWizard: Let cyanogen settings page handle finish action
Change-Id: I84e383cb3db7ef32c6097e6b1912d71a5eafb4c4
2015-01-30 10:55:05 -08:00
cretin45 e39d98bdb3 SetupWizard. Let each page optionally handle deferred actions on finish
Change-Id: I040d8dd472cc73ee034b3dbe8177a5b2e3314918
2015-01-30 10:52:47 -08:00
cretin45 645354b463 SetupWizard: Fixup layout and use sim graphic based on config
Change-Id: I73dd665a526c8a025e82a6f839d3dc9055742ed1
2015-01-30 10:25:46 -08:00
cretin45 d13e105da2 SetupWizard: Fix typo
Change-Id: I644013ffed012aac30f6bdd960c4c630b5cd7a03
2015-01-30 09:59:28 -08:00
cretin45 106a127508 SetupWizard: Add receivers for sim state and time
Change-Id: I8d44623e898eaa175d69d682c8089caa1a58f287
2015-01-29 17:40:05 -08:00
cretin45 62406a3ced SetupWizard: If wifi doesn't return canceled, move to next
Change-Id: Ia52e73a7d85064e564c04d4962f3c0cd6dec2b0f
2015-01-29 15:50:31 -08:00
cretin45 f76ee499de SetupWizard: Refactor page completed to hidden
Change-Id: Ia5e84c52a711767e539adcc3b1a2fdc5d5a27b13
2015-01-28 21:35:59 -08:00
cretin45 c3d44b4b83 SetupWizard: Move fragment to correct package
Change-Id: I5cf3a876f2574cbf2160715f972101f274c27c23
2015-01-28 21:35:42 -08:00
cretin45 b7465b564f SetupWizard: Show next instead of skip on choose data sim page
Change-Id: I159eab7ef18bd0ad504cc48434cb702ad77b6e37
2015-01-28 09:52:15 -08:00
cretin45 767172a196 SetupWizard: Only call isSimMissing for missing sim page
Change-Id: I31062ac17ace92824653c6b996ff16ee564a963e
2015-01-27 15:29:04 -08:00
cretin45 031e58ebc4 SetupWizard: Move reveal finish animation up to activity
Change-Id: I983cfcfad3fcd9808442917bb8b4ae7f8a8d7c2b
2015-01-27 15:23:16 -08:00
cretin45 3ce798f2ba SetupWizard: Turn off signal strength listener prior to detach
Change-Id: I4c4b4a3e82067704b6895b9d46997d6e72b38786
2015-01-27 14:41:35 -08:00
cretin45 8f60f420e7 SetupWizard: Add config for branded devices and sim card resource
Change-Id: I6a5b0de93dd254826827d7a1501eb3e95901678e
2015-01-27 14:34:17 -08:00
cretin45 84e431e131 SetupWizard: Fix some animation derp
Change-Id: I47200c2b73a44e8af6279437afc137f4b33d0cc2
2015-01-27 14:32:53 -08:00
cretin45 0d39727f84 SetupWizard: Advance if account exists
Change-Id: I8ab1c1b4f25c31d7c97f568b923724743cd3c322
2015-01-23 21:19:15 -08:00
cretin45 b7e0ddb233 SetupWizard: Fix double advance after adding account
Change-Id: I039f0c290c4ef539df16374cb1e6f2e7b49e41cd
2015-01-23 17:13:45 -08:00
cretin45 dc8c56ba31 SetupWizard: Separate the CM services and settings page
Change-Id: Ia51404ea75cbf5a9219f354412ecb34edbb08958
2015-01-23 16:06:26 -08:00
cretin45 59730c2e75 SetupWizard: Improve some of the transitions
Change-Id: I26a9d20cf429ab137d9877970ea0d6e4eafec0ad
2015-01-23 15:26:45 -08:00
cretin45 4e0c85b7ef SetupWizard: Launch activities before loading fragments
Change-Id: Ic5f393e37e6a77ffa9812f8370d2e3ee05ec9a1d
2015-01-23 14:22:11 -08:00
cretin45 1fcde3985e SetupWizard: Add loading fragment if launching into another activity
Also always show the Wi-Fi page

Change-Id: I3be39f793403131ea07d071c3d107b1800771e65
2015-01-23 14:04:04 -08:00
cretin45 501a25032d SetupWizard: remove logspam
Change-Id: Icaa4120c404d131604a2c44f77b49e61875c6038
2015-01-23 13:20:32 -08:00
cretin45 b990a954a8 SetupWizard: Use GMS AccountManager as intended
Change-Id: I1c2bac11745d0d6b9a9378e483d1b64b01f5df44
2015-01-23 11:46:39 -08:00
cretin45 61a331f403 SetupWizard: Better handle next and previous actions
Change-Id: I239269d9313594b1d37ce3468e0c095c851946c6
2015-01-23 11:37:23 -08:00
cretin45 30af327616 SetupWizard: Launch GMS account setup by intent
Fallback to AccountManager api if intent fails.

Change-Id: I5ec06f452d12706a0f59e2f2a85bd9b4b5e4a965
2015-01-23 10:16:38 -08:00
cretin45 9e6bebaabb SetupWizard: Launch gms setup in immersive mode
Change-Id: I22362ba382a07a65209da2fa76445bc60cdabdf3
2015-01-22 16:15:02 -08:00
cretin45 8913799a97 SetupWizard: Add privacy policy popup
* Also launch cmaccount by default

Change-Id: Idf625f4f5c8bdb05a4d0b888846972c11676d12d
2015-01-22 14:17:05 -08:00
cretin45 716ffa86dc SetupWizard: More refactor to match redlines
Change-Id: I74f422ba0c294d5e91aefb9356458c681cc53b37
2015-01-21 15:55:03 -08:00
cretin45 48ca24eb9b SetupWizard: Add Cyanogen services page
Change-Id: I39970b1b659a3a7ed3bb5b4350707aa0e53aba24
2015-01-19 14:29:43 -08:00
cretin45 0328b87bf6 SetupWizard: Initial commit 2015-01-15 16:04:44 -08:00