Commit Graph

625 Commits

Author SHA1 Message Date
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
LineageOS Infra
94710707e5 Automatic translation import
Change-Id: I8b5313494430cc399007252c2415f7a0e5dacb7c
2023-05-01 10:23:56 +00:00
LineageOS Infra
278e83d12a Automatic translation import
Change-Id: Icf0c2217b2f30eac34d0824e2c7846ec2cf92378
2023-04-24 08:41:47 +00:00
Alexander Martinz
f85129e80b FinishActivity: prevent jumping layout when finishing
When setting up the finishing sequence, the navigation bar gets
hidden, resulting in the layout adjusting and moving.

Once the start button is pressed, pressing back on the navigation
bar is ignored.

Change-Id: Ibb961ab059c2b8be38e88db691d4293e180f3b1c
Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
2023-04-14 01:56:33 +02:00
Michael Bestas
78b01d53c8 Automatic translation import
Change-Id: I575a84e775df3b1754134bd6fcc4f5696a017cdf
2023-03-23 16:38:57 +02:00
Michael Bestas
6a4d8ba53e Automatic translation import
Change-Id: Ib4d15a09c39ed1a6d0c1f3a1143f283d4237e042
2023-02-13 16:05:51 +02:00
Michael Bestas
78eed39482 Automatic translation import
Change-Id: Iea9fbb38110128318e9b413881e08925b4211c1a
2023-01-10 04:42:09 +02:00
Michael Bestas
036461b523 Automatic translation import
Change-Id: I5e93ecfc61ac45980bb7d2702b80e8cdc0750396
2022-12-16 20:58:07 +02:00
Michael Bestas
ef8c57e62b Automatic translation import
Change-Id: I4f6efa38f5775abc91a405d905ddb1ef8f393286
2022-11-25 15:03:59 +02:00
Alexander Martinz
60324847fe Move privacy policy uri to strings resource
Instead of hardcoding the privacy policy uri, move it to a strings resource
which allows overlaying it.

Change-Id: Iff83ba6a7654f5c5e3f7fc8366f96fcec3517390
Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
2022-10-17 16:30:25 +02:00
Michael Bestas
b9f0caf940 Automatic translation import
Change-Id: Id47e30a0bc91275d6dc4a400b468cf00488a6bc3
2022-10-05 20:08:44 +03:00
Michael Bestas
fb30f3d270 Automatic translation import
Change-Id: Iea864d28a8cec7c835b73c4e09465500b7fa90c4
2022-09-22 15:30:21 +03:00
Aaron Kling
086a2c804d fixup! Changes for new network setup flow
Original did not account for atv wizard script

Change-Id: I9988481e4e951e129ca7e7248d893e2aae1b04d6
2022-09-15 18:18:28 -05:00
Aaron Kling
fee1c7fc94 Use -television instead of -large-notouch for atv resources
Mobile builds on devices with no touch panel are also getting these
settings applied, which is not intended.

Change-Id: Iab4e8deea1793ee1582b5e2f730bfc193cf05b41
2022-09-14 05:45:15 +02:00
Michael W
6501266331 Automatic translation import
Change-Id: I2f69fd83ec9ddccda0333115ddd0f51a7a50cd83
2022-08-15 15:49:59 +02:00
Michael Bestas
bc1e390b15 Automatic translation import
Change-Id: Ic655024f10e37947416e3965c178415960f19723
2022-08-04 20:42:34 +03:00
Michael Bestas
a67a713e81 Automatic translation import
Change-Id: I5a5df9b0a87a8b35bad60a6a0eee0cb8ac2032d6
2022-06-20 23:59:01 +03:00
Nicholas Lim
2af9f05f0d SuW: Disable BluetoothSetupActivity component with prop
* Checks if config.disable_bluetooth=true is set
* Some leanback devices do not have bluetooth chips

Change-Id: Id4d3445e24d9888e186b69a959dbaf54fc9bf31e
2022-06-08 20:51:32 +08:00
Michael Bestas
c5d773b3b5 Automatic translation import
Change-Id: Ie2d1f7dabf309d69411a650570aece1fa9211250
2022-05-10 21:58:48 +03:00
Michael Bestas
a44598827a SUW: Fix divider color for dark theme
Change-Id: I5d173da85e739c68535850b53e5f94aabe45caa9
2022-05-05 14:12:51 +03:00
Michael Bestas
bbd1630e76 SUW: Remove unused drawables
Change-Id: Ibb2f80586201defb730fd012abb69f790115c44e
2022-05-05 13:50:30 +03:00
Michael Bestas
b16ecaf00c SUW: Set EXTRA_IS_SETUP_FLOW for accessibility settings
* Fixes theming of accessibility page

Change-Id: I9739753b8b609772e42a55231bcd878d8d5dbae1
2022-05-05 13:50:26 +03:00
Timi Rautamäki
3484c40778 Revert "SUW: fix setting USER_SETUP_COMPLETE"
This reverts commit 7ffdf8d12c.

Reason for revert: 
The code change was not changing the behaviour after all.

Change-Id: Ibe335a2b94d5120b9c3f1a247d8153a0d791b796
2022-04-27 17:42:29 +02:00
Michael W
cf12c85d82 SetupWizard: Don't overlap logo and text
* Instead of using a fixed padding, use weights to align the logo

Change-Id: Ibb3f271dea7c19db3876b82aa1f013b1566e4173
2022-04-25 23:28:43 +02:00
Timi Rautamäki
7ffdf8d12c SUW: fix setting USER_SETUP_COMPLETE
This setting needs to be set per user.

Change-Id: I5a312fab472d4d5f5bbe8424ddff6f34148ce69f
2022-04-13 10:31:56 +00:00
Asher Simonds
36fc88f9d2 SetupWizard: Bring in the new icon
* Part of the new iconset made by Asher Simonds

Co-authored-by: Michael W <baddaemon87@gmail.com>
Change-Id: If38285b09a79a0eceffda0cac83dcabfe22435c2
2022-04-06 23:14:45 +02:00
Michael Bestas
91dbfcb4e5 Automatic translation import
Change-Id: I73c74e36c98a77891a9c5c11950d9fb0e87db424
2022-04-05 23:20:53 +02:00
Alessandro Astone
0fa841744c NavigationSettings: Show the checkbox if requested during the hide animation
Change-Id: I17529b1db1aa7a59218828a31a36de0da1d884a9
2022-04-04 17:33:29 +02:00
Bruno Martins
2c963229ec SetupWizardUtils: Remove unused isMobileDataEnabled method
Last usage was before commit 334cd1b.

Change-Id: Ic59a47a62bb439db5d7859ea136c3334ae5257fa
2022-03-30 21:22:07 +01:00
Bruno Martins
7055198597 NavigationSettings: Make use of SetupWizardUtils#isPackageInstalled
No need to have duplicated code.

Change-Id: Ib03a2591fc5d5f7a10f5891c9e86738d58832a0f
2022-03-22 22:27:08 +01:00
Erfan Abdi
618dfb2c8a SUW: Redesign Welcome page based on Pixel
Change-Id: I2080c4d22fd5d0af1b1060f86ce1be0b7469757c
2022-03-20 14:07:30 +01:00
Erfan Abdi
c0f54a310d SUW: Set button themes
Change-Id: I7309e1e469f5c12e100e360e3e8414564a177af6
2022-03-20 14:07:30 +01:00
Erfan Abdi
ce45ea1208 SUW: Enable partner resources and switch to DayNight
Change-Id: I6c6b018a50bb987cdf1d8bf5c0f398723f2ad057
2022-03-20 14:07:30 +01:00
Timi Rautamäki
e83f9e12a1 SUW: add page for navigation mode
Skip the page if device has HW-keys and does not enable software keys.

Change-Id: I9efb49ddb1c2a101e6395c9034eacbeb0cfec6b6
2022-03-20 14:07:30 +01:00
Michael W
563a38c121 SetupWizard: exit_wizard.sh: Don't throw errors
* Instead of showing an exception when exiting the SuW via the script,
  check if we have to enable and run the Google SuW stuff and only do
  it then

Change-Id: I628e1ee40a97db9af1975825f059227446a9ee18
2022-03-20 14:06:46 +01:00
Timi Rautamäki
08d08bed26 SUW: use Lineage accent on logo
Don't use dynamic coloring on the LineageOS logo.

Change-Id: I51b6150e2c914bf7bcba7cc895ea9075a141e3b2
2022-03-16 18:40:31 +00:00
RKBDI
970967836b SUW: Drop SIM card tray illustration hint all together
* Hard to view on dark mode and it's redundant as
   another SIM icon exists on the page. We can't really
   have an "illustration" for a generic ROM as every
   device is different and doesn't have SIM in the same
   place.

Change-Id: I443360e5b75aded8645e83365cc64641e6c5638e
2022-03-10 18:12:58 +01:00
Alexander Koskovich
9eaa10c4a9 SUW: Support dark mode by default
Change-Id: Id176eb246c0b9b92456a39f295cc8251033ea987
2022-03-08 09:25:22 -07:00
Sean McCreary
9959594af9 SUW: add missing navigation bar in landsape layout
Add a navigation bar to the landscape orientation layout for the
'SIM missing' activity

Change-Id: Ic04b98e1891c9f411e658389168a45fc4fd7a103
2022-02-13 02:56:17 +01:00
Timi Rautamäki
c893e61bc9 SUW: proceed on click in language selector on TV
Change-Id: Idd4512283c18521c061dc6022fb7f2bfb5c96d7d
2022-01-27 15:41:52 +00:00
Timi Rautamäki
daef80ecaf SUW: improve navigation on D-pad devices
* Set the initial focus on a usable view instead of a whole layout.
* Set the next focus of the locale selector to next-button.

Change-Id: I4a16127c24e87b52e38892882e44b3a8d24b779b
2022-01-15 22:24:59 +00:00
Timi Rautamäki
b416c33ab6 SUW: update TV theming for 12
* setupdesign now uses a layout-land
* Rearrange welcome activity
* Add a padding of 56dp for each activity based on
  external/setupdesign/main/res/values/dimens.xml
  ´sud_glif_icon_margin_top´

Change-Id: I77ec3d1c3d62a66aeb76233eccafbea96804e701
2022-01-15 22:24:59 +00:00