Commit Graph

12 Commits

Author SHA1 Message Date
Oliver Scott
f58c0f4b83 Update deprecated code
Change-Id: I1b128b0f8b654c5c76464c12145d927ec10da26e
2024-02-25 23:45:38 +02:00
Michael Bestas
ec63fcccc1 SetupWizard: Set package name for com.android.wizard.LOAD intent
https://developer.android.com/about/versions/14/behavior-changes-14#safer-intents

Fixes:
java.lang.RuntimeException: Unable to start activity ComponentInfo{
org.lineageos.setupwizard/org.lineageos.setupwizard.SetupWizardActivity}:
android.content.ActivityNotFoundException: No Activity found to handle Intent
{ act=com.android.wizard.LOAD flg=0x10000001 (has extras) }

Change-Id: Ia15bc000011acb05b2db06299d142cabdf4e30c8
2023-10-28 23:50:20 +03:00
Michael Bestas
b37d7e52ae Enable AGPS by default when google SUW is present
The user won't see our location page, which ends up disabling AGPS
by default with no way to toggle it and without the user knowing,
leading to poor GPS performance.

Change-Id: I90de4a061a244c9da9eaca020e3b411c62da0e3e
2023-06-07 00:09:09 +03:00
Oliver Scott
4c8cc2f348 Do not exit if setup complete for managed profiles
Previously a call to mark user setup as completed for managed profiles
was removed from the device policy manager service to avoid exiting the
setup wizard while launching it after successfully provisioning.
If a the setup wizard did not finish correctly it had side effects
(e.g. work profile apps would not remain in recent activities).

Allow managed profiles to launch the setup wizard even if user setup
is marked as completed.

Issue: calyxos#1024
Issue: calyxos#1123
Change-Id: I940937dd02f2d4991677da886bb3a4f522661210
2023-06-06 22:10:00 +02:00
Oliver Scott
fb6285a35e Add API to query managed profiles
Replace mIsPrimaryUser and UserManager calls with API

Change-Id: I4c9661c6daf3dcb714db01d5229bf4cee37648c2
2023-06-06 22:10:00 +02:00
Oliver Scott
c9359bfe37 Create managed profile setup flow
Change-Id: I42f8255bea3c7126526430b28c384538fa204c28
2023-06-06 22:10:00 +02:00
Michael Bestas
b7b34b96a9 The big code style cleanup
* Format using AOSP code style in Android Studio,
  excluding `Rearrange entries` option.
* Rename static variables to use proper naming scheme
* Remove empty lines

Change-Id: I0d193e35f071bc288050e587b1693844d68865e1
2021-09-03 11:58:29 +00:00
Chirayu Desai
0ebdabef3c Update for Q setup library changes
setupwizardlib,setupnavigationbar -> setupcompat,setupdesign

Change-Id: I8bf75028984dbf9fc2341990e93bd15ca0ad2af8
2019-10-04 08:51:08 +02:00
razorloves
85465bc433 SUW: Change WizardManager activity default state to disabled
Google's suw handles the LOAD and NEXT actions, so this creates
duplicate tasks and crashes google suw when finish() is attempted.

Change-Id: Ifdbd9365fba7f299dc041e42ae27a91da071aa99
2019-02-12 09:31:47 -06:00
Michael W
822928f090 SetupWizard: Fix Non-GMS upgrade
* Instead of resetting the wizard and relying on the call chain to disable
  the SUW properly, call the finishSetupWizard method directly and step out
* Fixes: Upgrade 14.1 -> 15.1 without gapps looping

Change-Id: I1498a86b3c407aa32faa60c542003a1d596ce031
2018-06-18 18:19:05 +02:00
Michael Bestas
c83309e963 SUW: rebrand step 2: update file contents
Change-Id: Ic04f03f82242608960bd6d9c4c2561c2bbdda1da
2018-02-05 15:55:31 -08:00
Michael Bestas
fbae0863a6 SUW: rebrand step 1: update paths
Change-Id: Ic63e83de56659750a9d75fe577187c0d9f25147f
2018-02-05 15:55:24 -08:00