Commit Graph

466 Commits

Author SHA1 Message Date
LineageOS Infra
ed8c2c0e61 Automatic translation import
Change-Id: Id309c8dfaa3607aa6e750736c631580489d0278c
2023-05-01 09:10:25 +00:00
LineageOS Infra
945eaa56c3 Automatic translation import
Change-Id: Ic52777a91b4230a5c4829032cde3e933d799a282
2023-04-24 14:26:17 +00:00
Aaron Kling
d8caecf898 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-08-02 20:43:49 -05:00
Sean McCreary
62b331d258 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-14 17:17:42 +01:00
Michael Bestas
9cfc52286c Automatic translation import
Change-Id: I1c27631f659e488d178c81d877f120f72b964887
2022-02-13 03:10:18 +02:00
Timi Rautamäki
c2d3b09baa SUW: remove restore page on TV for now
It's not possible to enter the Seedvault PIN on TV

Change-Id: I5feb097c170ee1a25e775cf38a33fa09754b7a28
2021-12-01 15:28:56 +00:00
Timi Rautamäki
2487cf8cc7 SUW: use https for privacy policy link
Change-Id: I6cbdb30f08c16233cf75af6bb407974411002dcf
2021-11-20 15:50:51 +00:00
Timi Rautamäki
a4f7f8e610 SUW: show the link to privacy policy
Change-Id: Icd1d193b74db963a12262deca0e6fbb028d4d504
2021-11-20 15:50:47 +00:00
Timi Rautamäki
7955e86842 SUW: remove privacy policy link on large-notouch
TV's don't have any way to open links.

Change-Id: Ia7123e37668199b76e1e12803223b1cef4e25175
2021-11-14 16:15:59 +01:00
Timi Rautamäki
b975189fcc SUW: update lineage_wizard_script for TV
Removing following pages:
 * datetime
 * sim_missing
 * choose_data_sim
 * enable_mobile_data
 * location_settings
 * biometric_settings
 * lockscreen_settings

Change-Id: I29a9bd3011ecac1a582e5d3f533f7a98888edc97
2021-11-10 18:08:55 +01:00
Timi Rautamäki
4a4a3ca828 SUW: use DayNight theme for TV
* As the TvSettings are always dark too, it looks better to follow it.

Change-Id: Ifa3d2f21b18ffb3bcc791205c271f76221db2a95
2021-11-03 12:56:25 +00:00
Timi Rautamäki
795d0b9489 SUW: update Wifi setup for TV
* Enable skipping Wifi setup on TV

Change-Id: I252a0d901a0a49e3919f7d1076fe8649f9507196
2021-11-03 12:56:25 +00:00
Timi Rautamäki
782f58d2d7 SUW: layout for TV
* Hide the layout with emergency call and accessibility options.
* Make the brand logo 80% of the view height to avoid scrolling.

Change-Id: I2d56129331c0ebb9d4b9273308ec2a0fa163f4b6
2021-11-03 12:56:24 +00:00
Michael W
d6850d2558 Automatic translation import
Change-Id: I067da32505b2e0ca0883295d51e9ec5456a132ca
2021-10-26 20:49:26 +02:00
Alessandro Astone
841512bf66 SUW: Move re-enabling of status bar to FinishActivity
This is always run both in the GMS and non-GMS flows

Change-Id: If70aa4cec640bacaf7b03da505b90d6c3c5aaf8e
2021-09-05 12:12:52 +02:00
Alessandro Astone
367f321410 SUW: restore: Handle RESULT_SKIP from Seedvault
Change-Id: I634f57ba88e8b1406db90f2f2851d60c0c5a0a0b
2021-09-05 11:25:13 +02:00
Timi Rautamäki
4ce5316a37 SUW: FinishActivity: hide navigation bar & statusbar before animation
Change-Id: Ia9d421a3f63469645f19acd91f72d472573e8818
2021-09-03 11:58:29 +00:00
Michael Bestas
b3789b806f SUW: Intent changes for new Wi-Fi setup flow
Change-Id: Ib79c7e709443eea9ec202efd1279dafcfb7951ad
2021-09-03 11:58:29 +00: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
Michael Bestas
ade1361e3b Remove whitespace
Change-Id: Iaf9a56b1f8646bff8eb505050f15c24626acf47d
2021-09-03 11:58:29 +00:00
Michael Bestas
8723edec03 Ensure all files have a newline at the end
Change-Id: I55990ff367addbc24b34abe8da7fa6d52604a0d2
2021-09-03 11:58:29 +00:00
Timi Rautamäki
f6dbf84363 SUW: add accessibility settings to welcome page
Added icon is from https://materialdesignicons.com/.

Change-Id: I21daa20c59f3deb7ef862fdbe7f7ce9262094c9a
2021-09-03 11:58:29 +00:00
Timi Rautamäki
ab4f1231ae SUW: rearrange welcome activity
Hide navigation bar and relocate buttons

Change-Id: I0202c18dbcf08bac31707b7b43f10b59d88be7f2
2021-09-03 11:58:29 +00:00
Artem Borisov
fbf886e808 SetupWizard: Fix status bar managing workflow
StatusBarManager uses tokens in binder connections to identify
disable records and queue each of them accordingly. New record creates
each time an application connects to StatusBarManager and tries to change
the state. New records don't activate until previous ones are destroyed.
Records can be destroyed either when app binder dies, or when the same
binder ticket reverts its previous changes.
To accomodate this behavior, StatusBarManager was moved to a static class
that initializes first when status bar gets disabled, and then gets destroyed
when status bar is re-enabled.
While we're at it, also fix race condition between main and exit activites
by moving status bar disabling code to the application class.

Change-Id: I3b33e628da1e1881181cbe665e6aaccee3dd19ef
2021-09-03 11:58:29 +00:00
Timi Rautamäki
44fb45c421 SUW: use standard navigation method
Use software/hardware back button and add on-screen Next & Skip buttons.

Change-Id: I7bfa052f2217e51ea778df688e7169657aaad2c6
2021-09-03 11:58:28 +00:00
Timi Rautamäki
ab4d6d383f SUW: use GLIF v3 light -theme
Change-Id: I3684279ad87c82b85c93267e959e9faa2dabfdc3
2021-09-03 11:24:25 +00:00
Michael Bestas
885e3b363a SUW: Cleanup intent extras
Remove unused extras:
allowSkip: Removed in 2015
wifi_auto_finish_on_connect: Removed in 2016

Use WizardManagerHelper definitions when possible

Change-Id: I4e6a503ae030b85486921fcacfc4fe03e37c8698
2021-09-03 11:24:25 +00:00
Timi Rautamäki
5e2f7f2dfe SUW: use setupdesign layout & theming
Change-Id: I4841b701a8952035bd633d73368e80075d17e42a
2021-09-03 11:24:25 +00:00
Daniel Micay
d186af21f8 Replace LOCAL_MAC_ADDRESS with NETWORK_SETTINGS
ConnectivityManager.getCaptivePortalServerUrl now requires
NETWORK_SETTINGS instead of LOCAL_MAC_ADDRESS.

Change-Id: Idd9b7b683a48e49d97fca90bb62d81ee0629b672
2021-09-03 11:24:25 +00:00
Oliver Scott
7e04f9c361 Disable ChooseDataSimActivity if single SIM detected
Change-Id: I963a7b4f268698c048cf0eccb15198412b3e2ab3
2021-09-02 12:24:00 +00:00
Oliver Scott
1167c047be Fix SimMissingActivity never showing
Change-Id: I1a9d2539db96046c472f17a21932bc720c00eb26
2021-09-02 12:24:00 +00:00
Michael Bestas
c5232fcebd Rework isMultiSimDevice check
Move it to PhoneMonitor to be consistent with other checks

Change-Id: I560048ebdf318a92747a70ffb6fa8027b4589c1a
2021-09-02 12:24:00 +00:00
Michael W
8dc3cf8f47 SetupWizard: Use SettingsLib for Timezones
* Currently we are storing a copy of timezones.xml ourselves and parsing
  it manually
* Use ZoneGetter from SettingsLib instead to get the list of TimeZones
* That way we have less code to maintain and updates to the list are easier
  as well
* Also simplify constructTimezoneAdapter -> we never sort by name

Change-Id: Ifd690ed28c6fbecaee895b4063137e86c059e314
2021-09-02 12:24:00 +00:00
Michael Bestas
d23252fbc2 Automatic translation import
Change-Id: I8cea787038231d0b77ed6108fd153178a0077897
2021-08-21 04:07:27 +03:00
Timi Rautamäki
c84c112f8b SetupWizard: LineageSettings: fix padding on summary
Change-Id: Id99e5999f0e97990d319fe252d075b5d1d21ab70
2021-06-13 22:07:39 +02:00
Timi Rautamäki
e278fd6c1a SetupWizard: LineageSettings: correct privacy policy link span
* Some languages don't have the ´Privacy policy´-text
   as the last word of the sentence.

Change-Id: I74e342c8d6bbb038db11538905a12c7fef5a84de
2021-06-13 22:06:59 +02:00
LineageOS Builder
bee667cfd3 Automatic translation import
Change-Id: I774d03f02870c2c2189a52213b990e6968f791cc
2021-05-01 15:56:37 +00:00
Luca Stefani
6b9de1c6ee SetupWizard: Move to system_ext
* This is where system _extensions_
  should live

Change-Id: I1fc0dbf73c63e92525c8837a19b8f750fab55271
2021-03-23 22:20:19 +01:00
Luca Stefani
c102a32744 SetupWizard: Convert to Android.bp
* This allows us to move it to system_ext
  that wasn't possible to .mk

Change-Id: I3fcdfd2566b8518a921e18a39c60e69beab4cf86
2021-03-23 22:20:19 +01:00
Michael W
29e77749c5 SetupWizard: Disable mobile data at least once
* Right now, the user has to set the toggle on and off to actually get
  the setting set to "off", since the underlying default value is "on"
* Make sure to send an "off" initially right at the beginning of SuW

Change-Id: Iec2fd05ea341351f3e6d4b195a1a385f9d88d4f7
2021-03-23 22:19:55 +01:00
Luca Stefani
bc224d5750 SetupWizard: Remove libphonenumber dep
* This is likely an artifact of the {cm,lineage}sdk
  transition that included this lib

* Now the lib is only included in a separate library
  to avoid unnecessary disk waste

Change-Id: Ib12acac080f4a2271a118470951a06cd014a91aa
2021-03-17 23:18:20 +01:00
Michael Bestas
f1b90986a8 Automatic translation import
Change-Id: I1d89185ee1a43a2894bf9f42d06dda43c808e5af
2021-02-28 02:40:42 +02:00
Michael W
2b90a7f7d8 SetupWizard: Add device specific hook page
* Add a new activity DeviceSpecificActivity which acts as a jumppad
  into an activity using "org.lineageos.settings.device.SUW_SETTINGS"
  * Handles navigation (back / next)
  * Handles cases where the script contains the page but SUW_SETTINGS
    don't exist
* In order to use this, devices need to provide an activity that:
  * at least shows a back and continue button
  * returns Activity.RESULT_OK and Activity.RESULT_CANCELLED for the
    buttons
  * does whatever you need to specifically have done in setup!

Change-Id: I4956c8f5f1ad13b9adf2e5604fd4a728e261336b
2021-02-04 15:04:32 +01:00
Bruno Martins
da735e0ab3 SuW: Avoid showing exceptions if packages are not installed
Just check if the package is installed before trying to disable it.

Test: Observe that the following exception is not longer shown.

  Exception occurred while executing 'disable':
  java.lang.IllegalArgumentException: Unknown package: com.android.provision
	at com.android.server.pm.PackageManagerService.setEnabledSetting(PackageManagerService.java:21052)
	at com.android.server.pm.PackageManagerService.setApplicationEnabledSetting(PackageManagerService.java:20910)
	at com.android.server.pm.PackageManagerShellCommand.runSetEnabledSetting(PackageManagerShellCommand.java:2151)
	at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:231)
	at android.os.BasicShellCommandHandler.exec(BasicShellCommandHandler.java:98)
	at android.os.ShellCommand.exec(ShellCommand.java:44)
	at com.android.server.pm.PackageManagerService.onShellCommand(PackageManagerService.java:21736)
	at android.os.Binder.shellCommand(Binder.java:929)
	at android.os.Binder.onTransact(Binder.java:813)
	at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:4621)
	at com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:4361)
	at android.os.Binder.execTransactInternal(Binder.java:1159)
	at android.os.Binder.execTransact(Binder.java:1123)

Change-Id: I646f2803f95817d7d9f2b1dfe54a9c1f8c9988e7
2021-01-31 21:31:03 +00:00
Bruno Martins
21ae606b71 UpdateRecoveryActivity: Don't force recovery update by default
Change-Id: I0992bd257a3acc7ca6872744478121ba7f001ea0
2021-01-10 14:40:54 +00:00
Timi
e90cf31f27 SetupWizard: update recovery after setup
* Instead of doing it when going to next page

Change-Id: I65c5ca1bab1d79c8fd5906b36a02fd74547827ac
2020-12-31 18:18:24 +01:00
Timi
459dec482c SetupWizard: center text next to checkbox in recovery update -activity
Change-Id: I121c5ea0c39eef2d7eb87950432e5ec64b8edfa1
Signed-off-by: Timi <timi.rautamaki@gmail.com>
2020-12-13 15:06:31 +01:00
Alessandro Astone
d93e0e1bbd SetupWizard: Add activity to toggle recovery updates
Change-Id: I8157d812c1b616b10dd4204d12cc8fb21d4eee50
2020-11-19 01:26:28 +02:00
Michael Bestas
7423d88cd0 SetupWizard: Add seedvault restore page in GMS flow
Change-Id: I1ce86864b4a8d0477cd2db77a3820583e24c758a
2020-11-18 22:40:56 +01:00
Chirayu Desai
c61ad50de9 translations: Rename fingerprint setup string to biometric setup
For: I9ddd7b46548c8107239fdec457bbaae6b12876e6
Change-Id: Ic315f4ccf97edda45de000f41ba4cb456c249d29
2020-11-13 22:29:36 +01:00