Tommy Webb
ed1a968160
Revamp outro animation
...
Use the wallpaper as part of the window background rather than trying
to replicate it with WallpaperManager. This allows us to perform a
circular hide to whatever the wallpaper currently looks like exactly,
rather than needing to obtain the wallpaper Bitmap or Drawable and
guess. Display the Finish activity edge-to-edge. Fade out rather
than slide out.
Change-Id: I1154043178a04ca0ced7e8365e338dc10f3377cb
2024-02-26 00:19:23 +02:00
Tommy Webb
63bbec0258
Only finish Setup Wizard Activity when fully done
...
Wait for the ACTION_FINISHED broadcast before finishing the Activity.
This prevents the Setup Wizard from being re-launched when it is still
set as the default home screen, which it continues to be until the
exit worker changes as part of its finishSetupWizard call.
Skip SetupWizardExitActivity during the normal finish process, moving
common exit operations to SetupWizardUtils.
Change-Id: I1c59553e7dcaf934fb81dce9bf901ec0f2bb7b59
2024-02-26 00:19:22 +02:00
Oliver Scott
f58c0f4b83
Update deprecated code
...
Change-Id: I1b128b0f8b654c5c76464c12145d927ec10da26e
2024-02-25 23:45:38 +02:00
Tommy Webb
83338c4ae6
Consolidate PhoneMonitor into SetupWizardUtils
...
Moved and refactored missingSim and its helper functions into
SetupWizardUtils, making them static. This was the only part of
PhoneMonitor that was used anymore.
Change-Id: I220e82e83bdb301206c4286b562f69c223de56e2
2024-02-25 23:45:38 +02:00
Oliver Scott
51fde0aa49
Automated code cleanup + copyright update
...
Change-Id: I6deb788643d639f11ce9a5dc09eda701a2664c4a
2024-02-25 23:45:38 +02:00
Michael Bestas
bd92956625
SetupWizard: Remove unused strings
...
Change-Id: I774fb1c4b06922dbbc7e2cacb7edf3c99df57b31
2024-02-25 23:45:38 +02:00
Oliver Scott
973660d02e
Optimize imports
...
Change-Id: I8e47e86d7c92a7e1a824cf0c052ac9eb9d1a3605
2024-02-25 23:45:38 +02:00
Oliver Scott
f515276ebd
Launch restore step early
...
During restore, Settings which the user may have set earlier during setup may be overwritten. Avoid this by restoring before allowing the user to set new values
Change-Id: Id64378fb44e00da1c666cba7a737f03f9f0b88b8
2024-02-25 23:45:38 +02:00
Oliver Scott
554f63530a
SetupWizard: Add step for changing theme
...
Change-Id: Ib28e752583926e9740dd7e954d208d4fe62e3c08
2024-02-25 23:45:37 +02:00
Oliver Scott
04c9f463d5
Use WizardManagerHelper NEXT intent and result codes
...
The helper function copies all relevant extras
Change-Id: I1ebb48dd2e2a2ba0881c6a3382996c2243d84140
2024-02-25 23:02:28 +02:00
Oliver Scott
86ed621eff
Launch Settings activities for lockscreen and biometrics setup
...
Issue: calyxos#1420
Change-Id: If6145a7f5a8bd0acc648a3b3ce4aa0d59a5157e0
2024-02-25 23:02:28 +02:00
LineageOS Infra
11e55ab3b2
Automatic translation import
...
Change-Id: Ie570df0326ae7b6ff4a30a4fe7fac9e3b9e4a19d
2024-02-18 19:38:54 +00:00
LineageOS Infra
11b7f4cb1b
Automatic translation import
...
Change-Id: If4b7687e49f569487802eb901fad259982ce2a60
2024-02-10 19:04:54 +00:00
Oliver Scott
0dc2e90fad
fixup! Simplify biometric detection
...
Change-Id: Idff88839377f78b86f469dd744115ba0d55f9d46
2024-01-05 11:12:24 -05:00
Oliver Scott
9b3f1afb50
fixup! Simplify biometric detection
...
Change-Id: I2964746a5d648dc51328bac28e4fe5893341d1a6
2023-12-27 11:50:53 -05:00
Oliver Scott
e54fdc16cc
Validate URI intent scheme in WizardAction
...
Change-Id: If6b2553737e08e906145aef9f4a310e075161849
2023-12-11 19:23:36 -05:00
Oliver Scott
4959595167
Always set EXTRA_IS_SETUP_FLOW when starting activities
...
Some activities behave differently if launched during setup (e.g. https://cs.android.com/android/platform/superproject/main/+/main:packages/apps/Settings/src/com/android/settings/biometrics/BiometricUtils.java;l=203;drc=7f8197da822dea3ce92d3aedb61715d372d7a8e1 https://cs.android.com/android/platform/superproject/main/+/main:external/setupcompat/main/java/com/google/android/setupcompat/util/WizardManagerHelper.java;l=243;drc=d4035b6eb1192f71af7adae47bf17d22c7356fa1 )
This change defaults to using the setup flow variant of all launched activities (if applicable)
Change-Id: I0448f2ec5b2789a094d69b1614596d96260edbf5
2023-12-11 19:23:36 -05:00
Oliver Scott
5fb7fc2f4b
Simplify biometric detection
...
Change-Id: I078c269d1463fbbb69685970d32702715ad325ac
2023-12-11 19:23:32 -05:00
Oliver Scott
3a685cceed
Fix PhoneMonitor unregistered receiver crash
...
Fix crash caused by attempting to unregister an unregistered broadcast receiver when the instance is registered but the broadcast receiver is not during setup finish
Change-Id: I0e85492fe5c3a273ed6a2d16fe41bdd7539ffb4b
2023-12-11 17:58:28 -05: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
LuK1337
c98b8c2c11
SetupWizard: Update wizard scripts for 14
...
Change-Id: Ic82c0c955e7b26f1a13b54e40d1685afc61e9de0
2023-10-24 17:03:39 +02:00
Michael Bestas
0ace5b6bd4
SetupWizard: Fix build after getDefaultDataPhoneId removal
...
40dfa97392
Change-Id: Ie853c7e789023814c83fed5f318c4910a1169a04
2023-10-22 12:33:26 +00:00
LineageOS Infra
2e8785ecb9
Automatic translation import
...
Change-Id: Ic702daf6f872e711e844522ac92bf769315a0549
2023-10-15 20:43:21 +00:00
Bruno Martins
cb5f357b1c
SuW: Remove obsolete dimension resources
...
These are no longer used.
Change-Id: I139b1fe80c597ae88d28a78fbab741210375ac4b
2023-10-13 10:04:47 +00:00
Bruno Martins
0a77fdb0e9
WelcomeActivity: Only show emergency call button if supported
...
Change-Id: I569af46dfd3a026439817bb43ee55fdc855c6298
2023-10-09 23:46:40 +01:00
Bruno Martins
0e05ffc9d0
SuW: Make restore apps and data subtitle generic
...
Change-Id: Ie8fd2e5105154bebda5cc01cf07030ac7f1ebcd0
2023-10-08 11:09:05 +00:00
Bruno Martins
a40c802d0c
SuW: Add lockscreen setup title string for "device" product type
...
Change-Id: I8d5cc849b12adb1041a123d4ab348317942b716a
2023-10-08 11:09:05 +00:00
LineageOS Infra
cfa23a111a
Automatic translation import
...
Change-Id: I110a82f0f851a639950754893c3750b7cf5f73ba
2023-10-01 16:32:58 +00:00
LineageOS Infra
faf57f3609
Automatic translation import
...
Change-Id: I0181153d9a047de01c15eba4f863398a28b2120c
2023-09-01 14:42:23 +00:00
LineageOS Infra
6ab8d24231
Automatic translation import
...
Change-Id: I2d16787034f486620cd1561aa3fbd8901b75e818
2023-08-15 17:53:07 +00:00
LineageOS Infra
ec40f087f0
Automatic translation import
...
Change-Id: I6ee95dec3879ae1fab17f41e70635e0ee22220a1
2023-08-01 15:48:59 +00:00
Michael Bestas
0456a86d80
Remove landscape layout for missing SIM page
...
It's missing the EUICC toggle and makes SUW crash. Just remove it since
it's the only landscape layout and not really required.
Change-Id: Ie6c8485a91a1b428d83cbb086be1bf19ec8411e2
2023-07-25 19:23:20 +03:00
Michael Bestas
a5ba5dfaad
Hide navigation hint checkbox when taskbar is enabled
...
Change-Id: Idb29572be5f5b070f71d90889a5ad150a222206b
2023-07-17 14:49:57 +02:00
Michael Bestas
eecf4a91ad
Fix PhoneMonitor crash on WiFi only devices
...
This prevented SetupWizardExitActivity from running,
leaving the tablet in non provisioned state.
Change-Id: Ic3224b348b8ad4ec4c5f11d37f0bfc41b4249cd8
2023-07-17 14:49:57 +02:00
LineageOS Infra
66c117f2c2
Automatic translation import
...
Change-Id: Ie9def6ae7e7178353e7859f206b924aaf21e4598
2023-07-15 18:08:08 +00:00
Tommy Webb
344e6b8aea
Add navigation settings step for secondary users
...
Change-Id: Idae1fefe81aafb6a70b86dff60beb67852fe55c5
2023-07-13 15:07:08 +02:00
Oliver Scott
7ad1585886
Enable biometric and lockscreen steps for secondary users
...
Change-Id: I9972cfab77038a8ba13ec064fce6f719bd2cad3d
2023-07-13 15:07:08 +02:00
Oliver Scott
d4425ac708
Match Google wizard script flow
...
Change-Id: I9b2cb9bf1240897835de9fd7931a18fd5fe2bd8f
2023-07-13 15:07:08 +02:00
LineageOS Infra
aff7773c4d
Automatic translation import
...
Change-Id: I43a27876e2c336e4d44185bfe509fb2024e1464d
2023-07-01 16:12:31 +00:00
LineageOS Infra
11f7a3408a
Automatic translation import
...
Change-Id: I93794cbee3bac77d612d46ddc4776dbb24a80279
2023-06-20 16:28:28 +00: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
31769160ec
Add checkbox for AGPS
...
Issue: calyxos#1490
Change-Id: I68770035040846088c0d468e7e82ac53c00ce55b
2023-06-06 22:10:37 +02:00
Oliver Scott
963195cd88
Apply location settings on Next button press
...
Change-Id: I330aefc2ba3b4cfed5a5cc753fed11f6881e3ca0
2023-06-06 22:10:00 +02: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
0002daed48
Only modify network settings on system user
...
Captive portal, wi-fi and mobile data should not be modified for secondary users without user intervention
Issue: calyxos#1025
Change-Id: Ic24d18268d05b5a1535b3993bdd0a614055847f6
2023-06-06 22:10:00 +02:00
Chirayu Desai
8e8329a05c
Show location settings for managed profiles
...
Location settings for managed profiles are managed by user restriction DISALLOW_SHARE_LOCATION
Change-Id: I76a64def18de7502ee118e03a699d1a05d9a6ce9
2023-06-06 22:10:00 +02:00
Chirayu Desai
6059326b6d
Add some pages to the user wizard script
...
Change-Id: Ib555ea6fa97c8542bf65b80aefcaf6cb4f4a489d
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
LineageOS Infra
8813787d3f
Automatic translation import
...
Change-Id: I0057a0cf73e9c8724a3dc53c387641d3897fdc7c
2023-06-01 12:49:40 +00:00