Compare commits

...

532 Commits

Author SHA1 Message Date
LineageOS Infra
9b7a17fb4a Automatic translation import
Change-Id: If941b445a9e36f86f1d2a15db85804d33d9ca2d7
2025-08-15 20:43:35 +00:00
LineageOS Infra
c5496e7742 Automatic translation import
Change-Id: Ia395f2861346e3f1e0e8eab1b18a2fa82a5e8f5b
2025-08-01 19:45:06 +00:00
LineageOS Infra
d21d89ec8d Automatic translation import
Change-Id: I1f0b9a6e2fdb1a5dbb6e9a99ab6bb38692a085a8
2025-07-15 15:29:31 +00:00
LineageOS Infra
35b5bcf7a3 Automatic translation import
Change-Id: Ic8f7ae5a853d171afe0ea9c77d5a1cf8c86d474a
2025-06-15 12:32:04 +00:00
LineageOS Infra
e4b8d06d6e Automatic translation import
Change-Id: Ie0e514d0ae337da5f0a4e709066ca6123ff662b2
2025-05-01 18:32:40 +00:00
LineageOS Infra
f723d5a4f3 Automatic translation import
Change-Id: Id44bd0d1d7819d4d4c22c099f05803a8e03969d3
2025-04-15 15:35:51 +00:00
LineageOS Infra
63135029da Automatic translation import
Change-Id: I4a0abe48ea2e4ab8c344f11e92e0d24563bd0a61
2025-04-01 13:19:52 +00:00
LineageOS Infra
8867874f6c Automatic translation import
Change-Id: I8b37ee5ae33eed7a43f65d898998a264677c3a99
2025-03-15 16:57:47 +00:00
LineageOS Infra
2bb1e70a14 Automatic translation import
Change-Id: Ie51abfe1d05642afda057b829d1837788979b460
2025-02-15 14:07:43 +00:00
LineageOS Infra
1e78edb5c0 Automatic translation import
Change-Id: I26d74b0b0e80b247a18888b22b9f8b2d5da9916f
2025-02-01 16:27:21 +00:00
LineageOS Infra
43c8ccf750 Automatic translation import
Change-Id: I5de661285f5486674f007ded94c683517b69efb9
2025-01-15 09:14:17 +00:00
LineageOS Infra
726a5a7876 Automatic translation import
Change-Id: Ic4776794b76428c959f9c7157995dd9499efef83
2024-12-16 04:51:05 +00:00
LineageOS Infra
db7f073b02 Automatic translation import
Change-Id: I9938157a3615ac86cdebd87e82e3820597d6519a
2024-12-02 04:48:03 +00:00
LineageOS Infra
ae6ef3aa56 Automatic translation import
Change-Id: I1818d5928bc9b42171bd0032d93e851324617b73
2024-11-16 05:06:40 +00:00
LineageOS Infra
0a2408af21 Automatic translation import
Change-Id: I0e0146bf5bf0f09ab4499f1711b4073cde192ef7
2024-11-02 01:04:46 +00:00
Michael W
3ffe906e2c Remove values-lu
* Luxemburgish (lb) was accidentially mapped to "lu" for all of the
  non-AOSP projects.
* Since the next sync will download "lb" now, just remove "lu"

Change-Id: I1911df5cec057fd61126109ecacd70f198d0decf
2024-10-31 13:48:01 +01:00
Alexander Koskovich
cae1abc267 SetupWizard: Enable dynamic color in GMS SetupWizard
Change-Id: Ia83d664023f5423f8247df34f544fe3f5438aa3e
2024-10-27 18:29:02 -04:00
Alexander Koskovich
da50cca4ce SetupWizard: Do not advertise Google Pay during setup
This is dependent on working integrity which is broken a lot of
the time, which is bad UX.

Change-Id: I0acf86ad8c08e915ad30877113965fbda6fe7467
2024-10-27 18:26:26 -04:00
Michael Bestas
139ed346e5 SetupWizard: Replace deprecated .reuse/dep5 with REUSE.toml
Test: pipx run reuse lint
Change-Id: Ifa0218ebb1330f2093dc367b52dc9e6a9f7b667a
2024-10-22 03:24:10 +03:00
LineageOS Infra
b7e8fd69f5 Automatic translation import
Change-Id: Ia9264dbdfe2602974c79e7ec98303fb38a08fee8
2024-10-16 21:27:46 +00:00
LineageOS Infra
75fd9fdb15 Automatic translation import
Change-Id: I15ba41138f21eb1907ca41343c910d696c00f3a3
2024-09-15 16:02:36 +00:00
Tommy Webb
0d3264d67f Fix ActivityResultLauncher lifecycle issues
If an activity is re-created, its result launchers that were registered
during instantiation are not available, so register those in onCreate
instead and unregister in onDestroy.

Change-Id: I7fd2a61ddbb056e0bf761b6918dc371db8ddbe33
2024-08-15 19:36:27 +03:00
Tommy Webb
4ed687c330 Workaround for back press through SIM Missing page
Make sure the prior activity (NetworkSetupActivity) knows that back was
pressed - as it must have been - when the user returns to it. Otherwise,
the wizard gets stuck on a "Just a sec" page forever.

Change-Id: I35f7a78c4decc13b9dee267bfaf195fb2241395d
2024-08-15 19:31:17 +03:00
Tommy Webb
8dad806a61 fixup! Rework activity launching and result handling
SubBaseActivity cares if back was pressed, not what the result code was.

Change-Id: If8cc19de6a6300c906228dbe99fc7fdf4e6b47c8
2024-08-15 19:29:35 +03:00
Tommy Webb
a4dd79f78d Adapt FinishActivity and outro for 14 QPR3
windowShowWallpaper behaves unexpectedly with transitions as of 14 QPR3.
As a result, the changes of "Revamp outro animation" were causing the
transition into the final page of the wizard to instantaneously have
a transparent wallpaper background, even before the animation finished.
This was jarring and odd, so now we use a regular theme until we are
ready to start our animation, at which point we recreate the activity
with the EdgeToEdgeWallpaperBackground (windowShowWallpaper) theme
before running the animation.

Change-Id: Ib19918d7d2a615aff44a48066b17ec9d2f04bac6
2024-07-31 20:51:30 +00:00
Tommy Webb
1d833219d8 SimMissingActivity is a regular SUW activity
Remove unused subactivity code and change to BaseSetupWizardActivity.

Change-Id: I50492f6d533543ae1ea46965b299a20ee44d0ca0
2024-07-25 19:25:41 +00:00
Tommy Webb
5948809bb4 Rework activity launching and result handling
* Rename or eliminate methods that could be easily confused for AOSP
  methods due to the reuse of AOSP names.
* Separate out the handling of results for subactivites and for the
  next action (intent), each using its own activity launcher and
  callback.
* Add a StartDecoratedActivityForResult contract to ease the launching
  of activities without the caller needing to add SUW-related extras.

Change-Id: Iffaba4c51b2c90c42b8b243874a62cdea9e0c793
2024-07-25 19:25:37 +00:00
Tommy Webb
635998c42d Refactor activity decorations and transitions
Reuse some code, and prevent the need to have to apply transitions
in multiple places.

Change-Id: I5319e49136d6d05de3eb03eff8dae0f3560e509a
2024-07-25 19:25:02 +00:00
Oliver Scott
3ba6626aab Remove unused function disableComponentsForMissingFeatures
Change-Id: Ib4b3099f37ed089809ba5d06dec235512bfe10e3
2024-07-20 11:49:44 +01:00
Oliver Scott
ddd0c8d7ac Check bluetooth status when relevant
Change-Id: Ie67a28cb89bf68ef0d57f36ee2d875cfc44e29cc
2024-07-20 11:49:29 +01:00
Oliver Scott
5584669c2e Check wifi/telephony/ethernet status when relevant
Change-Id: I5d34b0fc5059f2b2eaceaf459180002b525c4249
2024-07-20 11:48:11 +01:00
Tommy Webb
2db34a23d7 Check biometrics availability when relevant
Check the availability of biometrics when we need to know, waiting until
then to decide the presence of ScreenLockActivity, rather than checking
once during initialization and permanently disabling pages of the setup
wizard. Otherwise, a race condition may cause the system to report that
the hardware is unavailable, even though it will be ready when needed.

Reorder pages such that biometrics comes first, allowing screen lock
to act as the fallback.

Issue: calyxos#2544
Change-Id: I654ce25569b983035f1df453623c7a4acd54931d
2024-07-19 17:21:34 -04:00
Oliver Scott
ab9a5ea27b Replace actionId and scriptUri extras with wizardBundle
https://cs.android.com/android/platform/superproject/main/+/main:frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/util/WizardManagerHelperTest.java;l=307;drc=93689222672ea2da9e3948785ab3c8d53d771c84

Change-Id: I084fee70a4fcd4617d788eb6e609e0d00c9ee103
2024-07-19 14:50:22 -04:00
LineageOS Infra
0e299f2129 Automatic translation import
Change-Id: I2347bd4d8e1e1ef040ee9417b6f98589d2f8f5a1
2024-07-01 18:54:41 +00:00
LineageOS Infra
d7dd5b0d0f Automatic translation import
Change-Id: Iea9fb9a5ce56189f03575f3cb0ed7827037b50aa
2024-06-01 22:14:27 +00:00
Oliver Scott
a1a6530ddd Fix restore page back navigation
Issue: calyxos#2284
Change-Id: I72249924d4b0c56b6bcceea1c5a4adbfa5c54fb2
2024-05-18 12:27:11 +03:00
Tommy Webb
ac47a02936 LocaleActivity: Handle unexpected MCC strings
Don't crash if MCC string is empty or not a number.

Issue: calyxos#2269
Change-Id: I5efee6e826600869efe133a8a097d9d24337602c
2024-05-18 12:27:11 +03:00
Oliver Scott
1bbf009729 Keep activities in recents
When exiting, all activities are finished and therefore no longer in recents. For the work profile, we want users to be able to come back to it

Issue: calyxos#2020
Change-Id: Id236c193e5822568dc445ea561fe18a4664e73cc
2024-05-18 12:27:11 +03:00
Oliver Scott
ecaeda6224 Simplify exit code
Change-Id: Ied4a7cb143ef979fd70da81cda6472f85e750739
2024-05-18 12:27:11 +03:00
Oliver Scott
3616338149 Replace hardcoded references to Settings intents
Where required, move hardcoded strings into the files which use them

Change-Id: I411d18739459b46095667f85cf5e0a82fd52b0d2
2024-05-18 12:27:11 +03:00
Oliver Scott
12c7da294f Fix improper SIM Missing automatic navigation
* Properly allow the user to go backwards to prior to the SIM Missing
  page, if it had ever appeared and then a SIM became available.
* Ignore the activity result. Wizard remains on SIM Missing page until
  user chooses to leave or returns to wizard with SIM present.

Change-Id: I3edac6cbb03d76c66b04673d6104e98189ce365c
2024-05-18 12:27:11 +03:00
Oliver Scott
8792be5031 Apply proper backward and forward transitions
Currently, we hardcode TRANSITION_FADE_THROUGH because it is the default
as of now and it is also what Settings uses. It appears to match stock's
transition animations, too.

Issue: calyxos#1743
Change-Id: Iffe19e5b4fd552aab6c5a93bc3788a27b5eba00b
2024-05-18 12:27:11 +03:00
Bruno Martins
8b77e3eea4 SuW: Use the same Welcome activity layout for ATV and tablets
This way platlogo and welcome text is centered and looks
better on tablets.

Change-Id: I77c161a6cde289eb91875d8b6fb26c53f9cffb98
2024-05-16 20:01:52 +00:00
LineageOS Infra
c09271bb1b Automatic translation import
Change-Id: I0c765dcbf6db61dfb87d9f64f2bfdbfacf98abc7
2024-05-15 15:50:37 +00:00
LineageOS Infra
62e48dcaa0 Automatic translation import
Change-Id: Ieee700dd804254b9ed7e7178e3bb0c24b51af49a
2024-05-01 16:33:50 +00:00
Aaron Kling
3ed0a33ee7 Don't start wizard flow on atv when gms is present
This matches the behaviour prior to the Lineage suw revamp on 21.
Setupwraith hooks things in a completely different manner to the mobile
gms suw. The Lineage suw should not run at all when atv gms is present,
but the apk still needs to be available should the tvsetup intent hooks
get implemented.

Change-Id: Ic4943e8fd55d30fbd2856dc5eadc5a0ce6282f29
2024-04-27 15:59:13 +01:00
Bruno Martins
5dd3549573 SetupWizardUtils: Check if active Ethernet network reaches the Internet
Extend the current Ethernet connectivity validation to check
if network is active (can receive and send data).

Change-Id: I1017df7740000774acc713a419c8572ee4ea588f
2024-04-27 15:58:48 +01:00
Bruno Martins
2ec7da3228 SetupWizardUtils: Properly test for Ethernet transport presence
NetworkCapabilities#hasCapability tests for the presence of a
capability, not of a transport. Use the proper method to fix the
Ethernet connectivity validation.

Change-Id: I7e1828cca420e9a84080ede51807ab12ec9eedcb
2024-04-27 15:52:33 +01:00
Bruno Martins
5b49c1fa4c BaseSetupWizardActivity: Handle NPE when WiFi service is unavailable
Do not let SetupWizard crash in case the WiFi service is not available,
which can happen in case of devkits without built-in WiFi support.

Change-Id: Iba72e941b5e4995e865c70cb6c2b6be9a721addc
2024-04-27 14:21:05 +01:00
LineageOS Infra
6665ca7958 Automatic translation import
Change-Id: I994ed355617fc673c9872cdff3584a9b0684f57e
2024-04-15 12:55:29 +00:00
Oliver Scott
d9d285909a Fix system locale
System locale update API isn't deprecated. Call was erroneously replaced in https://review.lineageos.org/c/LineageOS/android_packages_apps_SetupWizard/+/379324/12/src/org/lineageos/setupwizard/LocaleActivity.java#b65

Issue: calyxos#2265
Change-Id: Ic4b4e7ce70f0eb9106401da95feabc576954e381
2024-04-09 19:45:23 +00:00
LineageOS Infra
10343a5e1f Automatic translation import
Change-Id: Ifd4ac5636c1a8d87e6ca8d365f64e1fab11d2b1f
2024-03-27 09:21:50 +00:00
Michael Bestas
79e9f1cdbd Fix QPR2 build
Change-Id: I03bdfacf5d8432ac9e4c66723ecacbf5a4464154
2024-03-20 19:06:16 +00:00
Timi Rautamäki
935ba6902d SUW: center welcome text on TV
Change-Id: I4c984d78137b65e29f60769d3c5a368568c7e79c
2024-03-05 15:20:42 -05:00
Aaron Kling
6cb268b222 BluetoothSetupActivity: ignore cancel results
Change-Id: I9e7f62b2a11d8b2af0c075b0151a29c4485e8931
2024-03-05 15:19:43 -05:00
Aaron Kling
a09594c415 WelcomeActivity: do nothing on back press
Devices with a hardware back button, such as atv remotes, can press back
on the welcome screen and trigger a transition to a waiting screen then
back to welcome. This should not be allowed.

Change-Id: I2273d0d74fb1ef018074d4facc8e3793e7470f6f
2024-03-05 15:14:58 -05:00
razorloves
112f926f77 fixup! Remove unused colors
Change-Id: Id28f03acaa50663748617d94bc1c390424348e60
2024-03-01 21:48:40 -06:00
Chirayu Desai
2b605d17bb welcome: Use a separate string for work profile start
* Intentionally not touching this for secondary users
  so that it doesn't look different from the main user.
* We don't explicitly support that, but let's also not
  go out of our way to break something like this.

Change-Id: I374b45feb7d6dd17e5d03d0f7fbaf6d9e22f1d55
2024-03-02 03:39:05 +02:00
Michael Bestas
db86c22c41 Remove unused View
Change-Id: I2625cd9a3d59afded84621f0ceea4984d755eb5a
2024-03-02 03:39:05 +02:00
Michael Bestas
b69c30c4ed Remove unused colors
Change-Id: I91f16a43c935d8c6d52e6d3ff665145df1466a88
2024-03-02 03:39:05 +02:00
Michael Bestas
f3d2943c38 Remove unused import
Change-Id: I7660d5e51aa8a063ba118caa57d7d6898e5211f4
2024-03-02 03:39:04 +02:00
Tom Pratt
ab27e602cb Don't disable mobile data, AOSP has props for this
Mobile data during and after setupwizard can be controlled with:

ro.com.android.mobiledata
ro.com.android.prov_mobiledata

Change-Id: Ia4ef25f55ab32e8c13f9683b5db73438a29a192b
2024-02-28 17:05:26 +02:00
Michael Bestas
95cf350cc0 SetupWizard: Update backup page description
Seedvault backups can be restored from any OS that includes Seedvault,
they are not restricted to LineageOS.

Change-Id: Ie3d896d0377c8d2fe47558ae6a2bb54a0864498c
2024-02-26 00:25:44 +02:00
Michael Bestas
ee0104638c Match U setupdesign dark theme
Change-Id: Ifac33e5fc792e4a19cee645dbc355f56fcfada89
2024-02-26 00:25:44 +02:00
Michael Bestas
965cd0c223 Specify theme when launching external activities
Change-Id: Ia2db8a1b3753bdc3d9bd646be68e98367c2aed39
2024-02-26 00:25:44 +02:00
Michael Bestas
ec05005cfe SetupWizard: Make it REUSE compliant
* Ignored all the strings.xml since they are auto-synced

Change-Id: I5d9e7aa5ae7b0079f792450f7e6dbf83216ebac4
2024-02-26 00:25:43 +02:00
Oliver Scott
1db317b962 Remove old tests
Change-Id: I4344408d7e72093606e0cf90ada4f6bc02831a6b
2024-02-26 00:25:43 +02:00
Oliver Scott
feadacc46b Cleanup exit code
Change-Id: I5fe6165d87afa63887025c3635eafae9f968c062
2024-02-26 00:22:27 +02:00
Oliver Scott
fd0fdb8a49 Fix various java warnings
Change-Id: I4c4381e1755831df2c4f41279800fd6af173e4ed
2024-02-26 00:22:03 +02:00
Oliver Scott
7664461e5f Reformat code
Run automated code reformatting in Android Studio and manually fix
unwanted/broken style changes

Change-Id: Iaf14a08a275f9b11e1ae17f69201ab61a9c6ade1
2024-02-26 00:22:02 +02:00
Michael Bestas
f609cd21c8 SetupWizard: Remove unused resources
Change-Id: I42513b52e97c4f6fdf7ead2d2fa0f3bc6147755c
2024-02-26 00:19:23 +02:00
Jake Florence
9e8aa8c9ff SetupWizard: skip missing subactivities
when a subactivity is missing the setup wizard crashes and puts the user back to the previous page

this patch allows the user to continue as if they skipped

Change-Id: Icb4937b1751d9612c32cb3012f9fc05de2640891
2024-02-26 00:19:23 +02:00
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
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
Timi Rautamäki
3ca81566d1 SUW: use Gliflayout descriptions
Set description via getGlifLayout().setDescriptionText instead of
writing it in layout to display it properly in two columns when
in landscape. No visual change in portrait.

Change-Id: I7465a7fbc5819d429bb886a5582fb1f1d4db9a47
2022-01-15 22:24:58 +00:00
Michael Bestas
3d7c828448 Update wizard scripts for 12
Change-Id: I712c8bab09392ef51d334b04907d399d0841a5c8
2022-01-13 21:19:59 +01:00
Timi Rautamäki
86e4dc4861 SUW: remove EXTRA_THEME flags
Let Settings return the default theme.

Change-Id: Ifbd0e85e8ec8317d1a6b834cbe377943ffd8a0aa
2022-01-13 13:49:59 +01:00
Timi Rautamäki
0def1c4d18 SUW: use accent_device_default_light as accent
Use accent_device_default_light as accent instead of hardcoded accent.

Change-Id: I625786dc2fd1b407624f19b7e212fe687bbabd50
2022-01-13 12:32:45 +01:00
Timi Rautamäki
fead20a238 SUW: update theming for 12
Change-Id: I9ae3849f0cba92018a6f2b436a429f595ba307a6
2022-01-13 12:32:45 +01:00
Michael Bestas
7ad9eea889 Automatic translation import
Change-Id: I5e918d38e0f932f65d1b06a883f9f317b07d9ae8
2022-01-12 15:46:52 +02:00
Chirayu Desai
ef59e075f8 tests: Add uses-library information
Change-Id: Ice5f0a2cd0a52ec2f088da50c62993e2d56d1ee9
2021-12-29 01:05:25 +02:00
Michael Bestas
9c4edc08b4 Temporarily remove broken captive portal code
Change-Id: I8afce8bbc5b504e1376c62aec9e8c2aa39eedc00
2021-12-29 01:05:24 +02:00
Michael Bestas
334cd1bce7 Changes for new network setup flow
* Remove mobile data/choose data sim pages
* Rename Wi-Fi setup to network setup
* Switch to the new NetworkProviderSettings which contains
  both Wi-Fi and mobile data setup.

Change-Id: I1c618d629628740e39dbed313d468d1efe971ed7
2021-12-29 01:05:24 +02:00
Timi Rautamäki
0e9b6ebcbf 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 19:40:16 -05:00
Timi Rautamäki
7560c3b0b6 SUW: use https for privacy policy link
Change-Id: I6cbdb30f08c16233cf75af6bb407974411002dcf
2021-12-01 19:40:09 -05:00
Timi Rautamäki
9b2f137fb6 SUW: show the link to privacy policy
Change-Id: Icd1d193b74db963a12262deca0e6fbb028d4d504
2021-12-01 19:40:01 -05:00
Timi Rautamäki
829c0d85c9 SUW: remove privacy policy link on large-notouch
TV's don't have any way to open links.

Change-Id: Ia7123e37668199b76e1e12803223b1cef4e25175
2021-12-01 19:28:35 -05:00
Timi Rautamäki
161a3a68a6 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-19 12:31:17 -05:00
Timi Rautamäki
3282e73de7 SUW: use DayNight theme for TV
* As the TvSettings are always dark too, it looks better to follow it.

Change-Id: Ifa3d2f21b18ffb3bcc791205c271f76221db2a95
2021-11-19 12:19:41 -05:00
Timi Rautamäki
40215f654c SUW: update Wifi setup for TV
* Enable skipping Wifi setup on TV

Change-Id: I252a0d901a0a49e3919f7d1076fe8649f9507196
2021-11-19 12:18:05 -05:00
Timi Rautamäki
dde31123ba 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-19 12:16:14 -05:00
Timi Rautamäki
21b49c9e51 SUW: remove translations for updated strings
Change-Id: Ie20e4a10a844c3ac5d39ce5a902cd93d09e869e5
2021-10-15 14:34:44 +00:00
Michael Bestas
f103c56988 Add exported flags in manifest
Targeting S+ (version 31 and above) requires that an explicit value
for android:exported be defined when intent filters are present

Change-Id: I2ce2b2cd1dcd69e343ae8577587483b19d825fdc
2021-10-15 14:34:43 +00:00
Michael Bestas
7d134a7047 LocalePicker: Use DecimalFormatSymbols instead of using LocaleData
* LocaleData is not accessible anymore, use the public API provided by ICU4J.

Change-Id: Ie7b60f7acd2babd417b7840dc116a839debe6cd0
2021-10-09 18:26:27 +03:00
Michael Bestas
dd2b20274a SUW: Remove old accessibility toggle
* This has been replaced by a different gesture in 2016

Change-Id: I86aa43f52077c1f82150eb0ddb4b59ba99005e6e
2021-10-09 18:26:27 +03:00
Michael Bestas
070a852f7d SUW: Remove hardcoded string references to LineageOS
* Use os_name string

Change-Id: I1d59482122d85e39aaa4cbf15ac9e43b8598251d
2021-09-22 03:14:58 +03:00
Michael Bestas
79ce7a4f62 SUW: Remove unused strings
* The relevant code has been removed in 2016

Change-Id: Ib33c38257a45ec914ead5e8943de4e64936ec5c2
2021-09-22 01:29:11 +03: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
Chirayu Desai
e372bc0542 Switch fingerprint setup to biometric setup instead
* Generic, handles both face and fingerprint
* Works the same as before for fingerprint
* Works the same as fingerprint for face
* What else could one ask for?

Change-Id: I9ddd7b46548c8107239fdec457bbaae6b12876e6
2020-11-13 22:29:36 +01:00
Torsten Grote
da1355a5c5 Hide activities when setup finishes, so they don't pop up at the end
Change-Id: Ica6b5babf7df7a7d8033ecd7694e3f45144b363a
2020-11-13 22:29:36 +01:00
Alessandro Astone
35eda3a50b SetupWizard: Distinguish interactive and wrapper subactivities
We were using the SubBaseActivity class for two different kind of
activities:
 (1) "Wrapper" activities, where we define an activity that on
     start simply launches another one
 (2) "Interactive" activities, where the user has to manually
     trigger the start of the subactivity, or skip the step.

When the subactivity ends, only in case (1) we want to finish our
activity as well, since we wouldn't have anything to show.

Change-Id: I1a3ae51f6146ac32b5e7542d9a18b0b032efe144
2020-11-13 22:29:36 +01:00
Christian Oder
cff638652a LSW: Properly set page transition and cleanup definitions on the way
Set slide animation by default and use it in all pages.
Fix wrong/missing slide animations on various transitions like WiFi
and the backup subpage.

Change-Id: I78c87f38eb615379d39c89b43a016ed2ffb98695
2020-11-13 22:29:36 +01:00
Christian Oder
b05350b920 LSW: Fix backtrack to LineageSettings fragment
The current handling results in the followup activity to ignore it for
backtracks which means when going from Location -> LineageSettings -> Fingerprint
the move backwards from Fingerprint leads up in Location and not the expected
LineageSettings.

The custom handling is necessary to process the result in the Google SUW,
so it has been fixed to properly work now.

Change-Id: Ifae5dc8fda07b61bd0271da1d1589059ab40cd39
2020-11-13 22:29:36 +01:00
Arne Coucheron
48f460889b Remove save/restore of button brightness timeouts
This is not really needed.

Change-Id: I826c31f484d745d6176105856fa9ddeb66673f1f
2020-11-12 01:08:35 +01:00
razorloves
64dd898409 suw: Update wizard scripts for R
The google suw flow has changed a little bit in Android 11, so
this change syncs our scripts to google's so that they match.

Change-Id: I59e9643fad8c48c22a090a29e621e2761ef7e0d0
2020-11-03 02:31:55 +02:00
Renlord
4027defd55 Update api usage for android 11
Change-Id: I50ff347c2c75afa43f462ce57329090ecf40a2dd
2020-11-03 02:31:55 +02:00
Daniel Micay
c2b6a18b9b Use system captive portal URL
The captive_portal_server setting is deprecated, and hard-wiring it as a
string is also probably a bad idea. Since it's deprecated, this code
will miss an override via the modern settings. This also hard-wired a
slightly different fallback than ConnectivityService, and simply
adjusting it here wouldn't stop that from happening again. It's best to
just use the privileged API for obtaining the proper value. The choice
of LOCAL_MAC_ADDRESS as the permission for this is a bit strange, but
that's what is required, probably because a better fit didn't exist.

Change-Id: I78d07d5ff96598cebf6d4ed032fe1516791836fe
2020-11-03 02:31:55 +02:00
LineageOS Builder
f1bfe7e2de Automatic translation import
Change-Id: I53493956b430e361439075d55bb1d73cd072ed9e
2020-11-01 11:28:17 +00:00
Torsten Grote
fc026fcadc Add an activity for launching a restore from backup
Change-Id: Ibd73f8549bb3ec9e829ad9082399dbbf0a6ca4f5
2020-10-26 18:20:34 +02:00
LineageOS Builder
a96ccce7b3 Automatic translation import
Change-Id: Ic89eb7cb05f0963234df509cf999a0532d92ecc7
2020-09-20 10:11:21 +00:00
LineageOS Builder
d63ae5e692 Automatic translation import
Change-Id: Ib26dafca8e3eed3fb88a8a5f177a2c73446b184c
2020-09-12 02:53:19 +00:00
Aaron Kling
5d1780f595 ATV: Disable custom SUW if GMS SetupWraith is available
This sets the partner customization flag to allow adding hooks
later if necessary.

Change-Id: Ie8dcb0f2eae8916ef00f812ea85661c020dce53b
(cherry picked from commit 68b11675e1)
2020-09-10 23:34:31 +02:00
Michael Bestas
0523274cc8 Automatic translation import
Change-Id: I71a33469e9df5ff49f187536d986546571479c22
2020-06-22 00:57:02 +03:00
Chirayu Desai
297b16f4bc tests: Add privapp permissions whitelist
Change-Id: I080784198bdc726e49ed8d2c3fd9874220548b0f
2020-06-01 20:37:44 +03:00
Michael Bestas
dd5da5e0e2 Automatic translation import
Change-Id: I93568bd54e0117dcf5d6cb5ba64c01a415b67b6f
2020-05-23 18:21:37 +03:00
Michael Bestas
7e295e98ed SetupWizard: Add privapp permissions xml
Change-Id: Ib4d54f12a40eda3a4d2f8811d804ac98f82b8850
2020-05-06 20:43:06 +03:00
Michael Bestas
222d58e56e Automatic translation import
Change-Id: I5d49cc8b2a645023521e236c5dd383ce79a613b4
2020-04-23 16:49:12 +03:00
Bruno Martins
92f16dc6ad LocationSettingsActivity: Account for deprecated location modes
LOCATION_MODE_HIGH_ACCURACY, LOCATION_MODE_SENSORS_ONLY and
LOCATION_MODE_BATTERY_SAVING are deprecated.

Take one further step and refactor the entire logic to call
LocationManager#setLocationEnabledForUser(boolean, int) instead
of setting location mode and LocationManager#isLocationEnabled()
to check if location is enabled.

Change-Id: Ibe1930902f6bfff99eb2c2d852ab600620e25f08
2020-04-19 01:10:04 +01:00
Michael Bestas
011b5e951a Automatic translation import
Change-Id: Ie5abf327b893a763d2f67e3d3317879c4396ec42
2020-03-30 20:29:56 +03:00
Luca Stefani
999d40eb5e Fix build warning
* Missing positional annoation

Change-Id: Ieb167491f28f94fad6a6472eb5ef256b7f2f485b
2020-02-22 14:51:36 +01:00
Michael Bestas
231bcbde0c Automatic translation import
Change-Id: I2e49007812d3178db86123740a15613e73fdca98
2020-02-01 23:17:19 +02:00
Chirayu Desai
ec3e5ccaaa Account for PhoneMonitor API change
* Needed after:
84a90870aa

Change-Id: Ie6c28388f28b97af273f7c93fc6b5b56b518370a
2020-01-22 23:25:50 +02:00
Bruno Martins
b0f5aa9540 SuW: Remove PG bits
Change-Id: Ic7297e0dcf1c9b438171e5ebe688e83e5cb121e9
2019-11-04 22:17:14 +00:00
Chirayu Desai
d463bce3c5 Add new method from ICaptivePortal
Change-Id: I13a5b4b5e2269ac53fd78862defe1ef5edeb1994
2019-10-04 08:51:50 +02: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
Bruno Martins
dc49637898 SetupWizard: Migrate to androidx
Change-Id: Iade6aeca1338c1e543d09aff83f8cf39d7c78e22
2019-09-11 16:03:45 +01:00
Michael Bestas
30b301f1fe Automatic translation import
Change-Id: I0028aa949499e4da41c449d6e9845767ec998b41
2019-08-25 19:27:54 +03:00
Bruno Martins
8b4804d822 SetupWizard: Add tablet specific strings for secure lock screen
Change-Id: Ib09e48953e1ec9af136a96a3715b998083489dd0
2019-08-18 14:29:17 +01:00
Michael Bestas
3a90e81eb2 Automatic translation import
Change-Id: I8321525c67f420f0ad326993bc008260514d40b7
2019-08-04 16:24:30 +03:00
Michael Bestas
9a75b2bd0a Automatic translation import
Change-Id: I4a5fac85dcc331d00d08356ed3af8f9c8cf94da0
2019-06-19 21:21:11 +03:00
Rashed Abdel-Tawab
97b6bc3efe suw: Disable ScreenLockActivity if a secure lockscreen is already set
Currently, devices that have a fingerprint prompt to add a fingerprint and
lockscreen via FingerprintActivity. However, since ScreenLockActivity is
always active, we end up with a second prompt for screen lock security.

This adds a check to see if a secure lockscreen has already been set, and
if so, just skip ScreenLockActivity.

Change-Id: I877835e8fa8628c01c96ab9732146720c1234f31
2019-06-15 21:22:31 -07:00
Michael Bestas
a3c24ddbbc Automatic translation import
Change-Id: I2a1c97c7febd4d305d6e0cc2b8e498248a849b54
2019-06-08 18:58:36 +03:00
Michael Bestas
1383018b2c Automatic translation import
Change-Id: I3df364f5789d4b6e6336e0896e39aa213a14adad
2019-04-07 21:58:59 +03:00
Michael W
03f1ab4f94 Automatic translation import
Change-Id: Icf6a0b3829ad1e648f4dd18f50931b184a1e1535
2019-03-11 00:22:04 +01:00
razorloves
2f9034668b SUW: Don't make google suw use material_light
The material_light theme causes gms to crash with "Error inflating
class TextView" when attempting to do a device to device restore in
google suw. This change allows it to use the default glif_light.

Also removed the "Partner SUW Strings" comment, as the theme_type
was the only one.

Change-Id: I287f201799aba81c19869000e3aadb47ef67299b
2019-03-08 05:18:31 +01:00
razorloves
c7f0c5496f SUW: Update wizard scripts for Pie
The google suw flow has changed a little bit and added some new flow
choices in Pie, so our scripts need to be updated to match it. This
fixes the restore choice screen being shown twice.

Also reorganized the order of the wizard action results to move the
resultcode from the beginning to the end. This is a noop change that's
just to bring it inline with google's suw scripts.

Change-Id: Ia3ac9d1fdae62132c377e8ac2f767a795790d092
2019-03-05 03:50:27 +01:00
Michael Bestas
a63e7dc9f7 Automatic translation import
Change-Id: Ie9d61aa612f6f600d300e0549c8aa6987d4e4faf
2019-02-26 19:01:28 +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
Bruno Martins
6c2dd2f452 FinishActivity: Do not write the currently set FORCE_SHOW_NAVBAR value
* Check if the value for the setting is already applied and do not
   attempt to write it again. During the testing of SuW it was found out
   that there can be an edgecase where softkeys don't show up neither
   hardware keys work, even though the setting is applied (judging
   by the status of the KeyDisabler switch).

Change-Id: I902f26fe131e508974116f7607fd0b88921395d9
2019-01-18 23:15:44 +00:00
Bruno Martins
3872830620 FinishActivity: Remove useless call to LineageHardwareManager
* This is properly handled in fw/b once the setting is changed

Change-Id: I98acd00204b3f741e34069fbd9ba016fbc15c8dc
2019-01-18 14:18:53 +00:00
Bruno Martins
0277e73429 LineageSettingsActivity: Account for user stored KeyDisabler setting
* This ensures the proper switch status is set
   when migrating from older versions

Change-Id: Ie6b79a5269418ec7eae205e30558449098202e54
2019-01-18 10:57:16 +00:00
Michael Bestas
e159adc164 Automatic translation import
Change-Id: I3ad2754a45590cc4662e32c59b87667c2bf3577c
2019-01-12 20:04:20 +02:00
Bruno Martins
a8e278d031 SetupWizard: Update for moved force show navbar setting
Change-Id: I8b883dcc078b314bc209cb5186a49c0e762a47dd
2018-09-28 10:10:01 +02:00
Bruno Martins
33636d146a LineageSettingsActivity: Remove useless check for navbar toggle
* The only condition for "Use on screen navigation keys instead
   of hardware keys" option to be shown is the availability
   of KeyDisabler feature. There is really no need to check if the
   device "needs" a software navbar (because it has no hardware keys).

Change-Id: Id716d766927f440292a6d18d8fa77bed76ad90b3
2018-09-18 22:43:06 +01:00
Bruno Martins
9da385fc3d LocationSettingsActivity: Send broadcast as user
* Specify the user the broadcast will be sent to,
   in order to avoid the warnings as seen in the logs:

     W ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.startService:1531 android.content.ContextWrapper.startService:664 org.lineageos.setupwizard.SetupWizardExitActivity.onCreate:53 android.app.Activity.performCreate:7136 android.app.Activity.performCreate:7127

Change-Id: I26a0b4ab2dc94bbe6eff065875901bf347aec85b
2018-09-03 17:46:22 +01:00
Bruno Martins
4b465ba426 SetupWizardTests: Properly depend on Lineage SDK
* Platform apps that depend on the SDK must only link
   against org.lineageos.platform.internal

Change-Id: Ibf63433f0961572d118361f984270f56accf8409
2018-08-22 22:48:34 +02:00
Bruno Martins
cd247e92b8 SetupWizard: Remove bogus Lineage SDK dependency
* Platform apps that depend on the SDK must only link
   against org.lineageos.platform.internal

Change-Id: I9d06246fbf0fbe076b9a884e2bf27fcba8bf5468
2018-08-22 12:30:51 +02:00
Bruno Martins
059ca6c729 SetupWizard: Build with AAPT2
* This is now mandatory, in order to use setup wizard lib

Change-Id: I9644eda4bc3f6bdea551480bcf373ca9563981b5
2018-08-22 01:03:20 +01:00
Anton Hansson
42c4cc3d5b SetupWizard: Set LOCAL_PRIVATE_PLATFORM_APIS
This change sets LOCAL_SDK_VERSION for all packages where
this is possible without breaking the build, and
LOCAL_PRIVATE_PLATFORM_APIS := true otherwise.

Setting one of these two will be made required soon, and this
is a change in preparation for that. Not setting LOCAL_SDK_VERSION
makes the app implicitly depend on the bootclasspath, which is
often not required. This change effectively makes depending on
private apis opt-in rather than opt-out.

Bug: 73535841
Change-Id: Iabb0556dc1c80c7fc7f6c76d61d5e441b03cdce0
2018-08-22 00:55:45 +01:00
Bruno Martins
beb04a1051 SetupWizard: Migrate to the currently maintained setup wizard lib
* Common platform variant is no longer maintained.
   Google advises to use common-gingerbread instead, so do it.

Change-Id: Icacb123c42a10f1813fc8189f3a6d01a86f0b0a1
2018-08-22 00:51:30 +01:00
Michael Bestas
6ef80d996b Automatic translation import
Change-Id: I23dcbb2d869cc76e98c2a464a610038f7468d808
2018-08-16 19:08:09 +03:00
Michael Bestas
7249cb548d Automatic translation import
Change-Id: I93c8661f63c5b9b26ceebf81abd31991c09bfee8
2018-08-05 17:33:09 +03:00
Michael W
2236d29199 SUW: (Not-really-)Spring Cleanup
* Remove unused imports
* Fix a few line length issues
* Convert a few anonymous classes to lambda expressions
* Convert a few global vars to locals
* Remove unused methods
* Add a small local method in MobileDataActivity to shorten repeated calls

Change-Id: Ia10be8b8c98ef3956949f913ddb6bddc185cf1a5
2018-07-25 13:34:51 +02:00
Michael Bestas
e5741b0e76 Automatic translation import
Change-Id: I831b3569c305782c6672bda686c83e69b3ccbc18
2018-07-09 22:03:28 +03:00
Michael Bestas
9d0b647909 Automatic translation import
Change-Id: I6cd3c70e06d026d892225dd6f9769ea762654d1f
2018-06-19 20:20:58 +02: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
Luca Stefani
e30af770bd SetupWizard: Pass proper value to wifi back text
* We are currently passing a Boolean value while the
  value should be a String ( null in our case )

Change-Id: I6bc69793485c44f2a65baeab62d7266934500038
2018-06-14 10:07:06 +02:00
Michael Bestas
d3b0cbf211 Automatic translation import
Change-Id: I6738f90f613f24b4ed4980e1c3fb95b4a6b83da3
2018-05-08 22:38:47 +03:00
Michael Bestas
9466d4ee8c Automatic translation import
Change-Id: I8da2dad24b5ca71df11d93a9e76de0d522c5c433
2018-04-01 22:32:28 +03:00
Rashed Abdel-Tawab
5364cce5ff SuW: Explicitly include java support packages
Change-Id: Ie80e18abb3b8d7b30734fbe6727c2978dbc30543
2018-03-21 22:51:28 +00:00
Aaron Kling
e7ec39571e Remove code to disable setupwraith
Setupwraith from 8.0 no longer needs to be platform signed

This reverts commit e0605c03f4.
This reverts commit 092d0fa892.

Change-Id: Ic9801ee52d931e87b6568a1faa4de39b32c3629d
2018-03-20 01:15:58 +00:00
Abhisek Devkota
3e80db1c16 SUW: Don't consume clicks on Finish Activity
Fixes ATV accessory navigation for 'start' action

Change-Id: Ia4fee80809490d235cf06f22a7371c05aa9d831c
2018-03-09 19:46:57 -08:00
Michael Bestas
4d3774d807 Automatic translation import
Change-Id: Ic1587c51db5430ca7907b081b3d4d5668848339e
2018-03-09 00:35:41 +02:00
Abhisek Devkota
7a315e894f ATV: Also set TV_USER_SETUP_COMPLETE
New provisioning flag was introduced in f/w/b
  0390fff82c37c705670a6c8937c11b52e2af4cb6

Change-Id: I342681927bd4f8d3f73dd8b0e0047eb8e1db6d2c
2018-03-04 20:09:13 -08:00
Michael Bestas
5d66190658 Automatic translation import
Change-Id: I53b8e9f364850b2a64341c6bfc806b50a64b8d45
2018-02-25 22:03:57 +02:00
Michael Bestas
422e8d5158 Automatic translation import
Change-Id: I66fdae0e2cd48ab737f0906ec23a75cacf4ef796
2018-02-22 03:49:32 +02:00
Michael Bestas
9ca7cf45f1 SUW: Fix keydisabler setting on non-gms case
* Fixes:
  W LineageSettings: Setting dev_force_show_navbar has moved from
  LineageSettings.Secure to LineageSettings.Global, value is unchanged.

Change-Id: Id22886ea5767c6adf254618ecec84b338e11979b
2018-02-05 15:55:44 -08:00
Michael Bestas
709054b0dd SUW: Fix crash on fingerprint capability check
* Check if the device supports the fingerprint feature before proceeding

Change-Id: I9cda52500c1e45499b5647fccff3d7d37c8311ef
2018-02-05 15:55:39 -08: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
Michael Bestas
adfbcbdeac SUW: Remove unused permissions
Change-Id: I54fed318ec65ab1982cf4dd2abca0fd9b3203ca5
2018-02-05 15:55:18 -08:00
Abhisek Devkota
cdff407f88 SUW: Don't export our WizardManager
Even though we disable this class when GMS is present, the
 intent-filters are still active and cause an activity resolver
 to be presented to the user. Disable export of this activity to
 work around this.

Change-Id: I5888c71b5fdb95e59e15366b66f56e7968e51f1a
2018-02-05 15:55:12 -08:00
Abhisek Devkota
fe68605330 SUW: Integrate with GMS flow
Change-Id: Ibb010da847deebec83520b752dacc9e743971878
2018-02-05 15:55:07 -08:00
Abhisek Devkota
aadbc730e4 SUW: Update Intent for Wifi connect
Change-Id: I22e52795cc408ea7093b788c31babb2d127a7f5b
2018-02-05 15:55:01 -08:00
Abhisek Devkota
cc839c9d87 SUW: Update for LineageOS platform & sdk
Change-Id: Idb765ea4808b4ba3c01414974e40ccf735f77f9d
2018-02-05 15:54:56 -08:00
Abhisek Devkota
e0605c03f4 Disable SetupWraith, if GMS not present
This reverts commit 092d0fa892.

Change-Id: I9b075ff1d4d91318920050c26b3fa6eb9130d5c9
2017-12-17 13:25:20 -08:00
Abhisek Devkota
5e6b2a571f Automatic translation import
Change-Id: I57712bc08d68e61c676d54d3236ec6a0fb22564e
2017-12-17 08:56:27 +00:00
Abhisek Devkota
9a86ff6a7b Automatic translation import
Change-Id: I1520d3d323bdbd7d861713a30e595fbc123af6ca
2017-12-12 20:16:02 +00:00
Abhisek Devkota
c347cee0d3 Fix result on skipping Fingerprint setup
Change-Id: I7534d2f95b4f846e2fd5d1ee096efef558cc368a
2017-11-18 06:46:59 +00:00
Aaron Kling
aba4f6f13e WifiSetup: If an ethernet connection is active, skip wifi setup
Change-Id: I6dc08e5e7d07c3650449fcf4374a375827eb3743
2017-10-25 04:38:15 +00:00
Abhisek Devkota
356dcde83f [Fugu] Fix bluetooth setup loop
As we launch a new activity, the results are auto-cancelled.

- ActivityManager: Activity is launching as a new task, so cancelling activity result.
- SubBaseActivity: subactivity result {(5), RESULT_CANCELED(0), null}

Change-Id: I724832fc0fea8930136fbf9878ae6e2f82b909b3
2017-10-23 20:00:37 +00:00
Abhisek Devkota
e7dce25fe8 Revert "The bluetooth pairing page cannot be exited, disable it for now."
This reverts commit d82d392226.

Change-Id: I844fad7da76cc18e8f1d7f1e9aed2ba36a46e107
2017-10-23 20:00:31 +00:00
Abhisek Devkota
74191b026e Automatic translation import
Change-Id: Ibd7690f6795c22337c5cbc76368da30ff10e8ef9
2017-10-21 11:11:23 -07:00
Michael W
c3b2008d56 SetupWizard: Set min date to build date
* Use "ro.build.date.utc" as a base
* Fallback to beginning of 2017 if the date can't be determined for
  whatever reason

Change-Id: I48cd9eb1928f5e3e3240a75508549712f5e53413
2017-10-12 12:49:47 +00:00
Michael Bestas
712fb3a25e Remove obsolete values-be translations
* values-be-rBY is used now

Change-Id: If8f3f6865b1560ab0f4b086745a58fcf536c02bc
2017-09-30 18:39:59 +03:00
Abhisek Devkota
2266ca7cff Automatic translation import
Change-Id: Iffd2a50f66c4b567b2ab7cc10cd877c8a3a59f71
2017-09-18 11:48:10 -07:00
Gabriele M
f7d9926b91 SetupWizard: Fix the accessibility services gesture
Returning false from onInterceptTouchEvent() or onTouchEvent() causes
getPointerCount() to never be greater than 1, therefore enabling the
accessibility services is currently impossible. Fix this and simplify
the code merging onInterceptTouchEvent() into onTouchEvent().

Change-Id: Ieadbb41f9f3f3fb62d11f5a29986630d35e7e8c4
2017-09-03 12:57:33 +00:00
Michael W
77ef7901a4 SetupWizard: Remove Themes related code
* CMTE is not coming back in 14.1 anyway
* Instead of fixing stuff around it, just remove remainders of it

Change-Id: Ib0e3261d970779aa6dd30db5c8869a0f5198d2d3
2017-09-01 22:55:07 +02:00
Abhisek Devkota
f79f8cfcff Automatic translation import
Change-Id: I93ae89a50152195c66bfbcc9ec1654d5846ea411
2017-08-19 15:34:42 -07:00
Abhisek Devkota
3deda346f1 Automatic translation import
Change-Id: I6454fe0d5581ee33c49766d1a67517067ef4043b
2017-08-03 22:47:36 -07:00
Michael W
d261c7a60e SetupWizard: Don't show ChooseDataSimActivity on single sim devices
* There is only once choice, no need to ask the user

Change-Id: I5bff265ae7f32679498b3fe9adc568807f12bf6f
2017-07-28 20:23:24 +02:00
TheScarastic
6971663571 SetupWizard: Fix crash when sims are absent
Change-Id: I3e37f78f1c96be1630ea9fde866ce978f9ecf1d8
2017-07-28 19:26:16 +02:00
Michael W
b1dd4299c4 SetupWizard: Fix a few possible NPEs
* Accessing SparseArrays with zero-based indexes can fail due to non-used
  indexes
* mCheckBoxes and mRows should always be accessed with the key they were
  added
-> use keyAt(index) when iterating the SparseArray
-> use the simSlotIndex when iterating the subInfoRecords

BUGBASH-318
BUGBASH-610 (partially)

Change-Id: Ib831c3623dafa5bd7d0c95acfa69f4a686644be6
2017-07-28 19:03:51 +02:00
Abhisek Devkota
fe4f010710 Automatic translation import
Change-Id: I6a0dc02678d693a0076551cdd653f8d6ef4481f2
2017-07-25 20:25:09 -07:00
Abhisek Devkota
32892fdb40 Automatic translation import
Change-Id: Ibd0ee384b5dd7954b71111534eb7d23c1c762e02
2017-07-22 12:42:02 -07:00
Abhisek Devkota
50da943b90 Automatic translation import
Change-Id: If8f6a8efae301dbbfe79c9d2f460d662693d383a
2017-07-07 21:20:12 -07:00
Abhisek Devkota
3ff607b91a Automatic translation import
Change-Id: I71e9acf069ffb424b59905fbd8e4814de1a97107
2017-06-30 22:06:43 -07:00
Aaron Kling
092d0fa892 Disable SetupWraith, the ATV SUW.
SetupWraith currently crashes after the finshed screen, causing
devices to remain unprovisioned.

Change-Id: I9f494158ea11210014eaec9faa48fddcedd968d4
2017-06-24 01:36:43 +00:00
Abhisek Devkota
33b449123d Automatic translation import
Change-Id: Iba0b8a45d54b3cf316f96c0f08d3679eb2e4f3ea
2017-06-22 20:56:23 -07:00
Aaron Kling
d82d392226 The bluetooth pairing page cannot be exited, disable it for now.
Change-Id: Ife3d13a77da7e40a1a5e1963eb164c44cb088f2d
2017-06-17 14:00:39 -05:00
Abhisek Devkota
0f1683789a Automatic translation import
Change-Id: I1a96e317a8085e36cfb7e566e1d15ce654f92324
2017-05-31 20:10:03 -07:00
Abhisek Devkota
4972a32e04 Automatic translation import
Change-Id: Ibd453397604fa6c0dfe52e91ffaad89f7f77102d
2017-05-17 22:22:48 -07:00
Abhisek Devkota
8518aa375c Automatic translation import
Change-Id: I2163e6c58a296b4fef97bc71d1fe3b5e165195da
2017-04-28 15:16:53 -07:00
Abhisek Devkota
e8e7a5475b Automatic translation import
Change-Id: I906f2016a644133073f46770b62268d509ac9734
2017-04-20 12:09:00 -07:00
Abhisek Devkota
cd33504245 Automatic translation import
Change-Id: I574a1fa4a2430de24b94fc826066924fde73509e
2017-03-29 14:25:52 -07:00
Abhisek Devkota
f834d213ea Automatic translation import
Change-Id: I00797f4cfb32b596311193a40201c2e22b13857b
2017-03-20 13:55:09 -07:00
Abhisek Devkota
27662e2ff4 Automatic translation import
Change-Id: I09d63b216c13bb51f7bdf6999182633245966fc3
2017-03-15 13:37:23 -07:00
Abhisek Devkota
281d2655be Automatic translation import
Change-Id: I29e91ae1b977976e028ca213bbfa93b1a1fab465
2017-03-08 14:05:08 -08:00
Michael W
be35cfc91b Automatic translation import
Change-Id: Ic3721132a38816d5e5b024a4101a95c8d67bcc62
2017-03-02 15:45:35 +01:00
cretin45
50cb6ac113 SetupWizard: Remove uneeded category
Change-Id: I1124721da3c6a4a7839ad8dd03aad09c7d595e15
2017-02-27 20:20:32 -08:00
cretin45
0c7b92ad7a SetupWizard: Fix landscape
Change-Id: Ia77596aa63d3efabcdbcde81d2b9c8b7e5f89b4f
2017-02-26 10:22:18 -08:00
Abhisek Devkota
66ac309842 Automatic translation import
Change-Id: I8d7346276e90279b0772558b0a817143c5706d49
2017-02-24 18:54:33 -08:00
Abhisek Devkota
9365fb1c53 Automatic translation import
Change-Id: Idbe2092234d521008d973025e77aa19954e83ce5
2017-02-23 19:17:21 -08:00
cretin45
ec3dcce5a6 SetupWizard: Increment version
Change-Id: I601d5f1d5711654601e03ecaa28a37fad785df42
2017-02-22 16:47:00 -08:00
Harry Youd
63aaa30ba1 SetupWizard: Don't crash when missing Google SUW
If com.google.android.gms is installed when
   com.google.android.setupwizard is not,
our setup wizard crashes.

Fix this by checking Google's setupwizard exists,
and if not, not attempting to launch it.

Change-Id: I6120304dd13dddf07c2769245765a3e98dec51fc
2017-02-22 15:08:02 +00:00
Abhisek Devkota
3ecb352c17 Automatic translation import
Change-Id: Id112ef19c0bef67082a9534925c66d2c37d88268
2017-02-19 15:05:33 -08:00
Luca Stefani
765f0e6249 SetupWizard: Include tests makefile
Change-Id: I37d52ea0789653a668ec514df47924f0280da12d
2017-02-18 16:03:59 +00:00
cretin45
fc2ca45177 SetupWizard: Allow skip of optional screens
Change-Id: I018d0d86a0aa711926c32f172a4d7ece6a095454
2017-02-16 23:03:36 -08:00
Abhisek Devkota
4161a57ccc Automatic translation import
Change-Id: I0a85a818d43cf1ea109119382df4d3efd18547f0
2017-02-16 10:42:22 -08:00
cretin45
d4cea55dd7 SetupWizard: Part 2: Implement new OOBE using custom wizard manager
Change-Id: Ie6beb6395c5a4936384e78d57c95262e302220f9
2017-02-13 19:47:36 -08:00
cretin45
3593f035fc SetupWizard: Part 1: Initial wizard manager conversion
Part 1 implements SetupWizard support if GMS is present.

Change-Id: I0d465a9d84f0c477acc8309511894e9b194762f7
2017-02-12 16:13:34 -08:00
Abhisek Devkota
167ac2cad8 Automatic translation import
Change-Id: Id472254edf099eba0a27901cd6eae161ab690499
2017-02-11 12:42:38 -08:00
Abhisek Devkota
3d3519ea7c Automatic translation import
Change-Id: I0ed7a1aafecc1a0c87c3dc2b184018b2230fa8a8
2017-02-09 14:33:44 -08:00
Abhisek Devkota
42a4e5530c Automatic translation import
Change-Id: Ida75d5275726f4289ed269908ff049024787e88c
2017-02-07 13:43:50 -08:00
Abhisek Devkota
54311c0f1e Automatic translation import
Change-Id: Ibd28d2c38bfd659210ae657b46eb381ef64fab8a
2017-02-04 16:20:46 -08:00
Abhisek Devkota
fdf1c879cd Automatic translation import
Change-Id: I25dfee0b517f5ee7ba8d35f4296556a5cd8cf63e
2017-02-02 02:00:29 +00:00
Luca Stefani
cd34a5865f Build org.cyanogenmod.platform.internal as static library
Change-Id: I5668aef0f1e396e373e92c8f1815ae359255f6bf
2017-02-01 16:25:04 +00:00
Marvin W
4e218b65f0 Remove Google Play Services dependency
PS2: inline hasGms usage, don't use addprefix for a single entry,
     remove unused imports

Change-Id: I1eb1fb76e4b80e26992599e3511d265abbfa1cd7
2017-02-01 02:04:08 +00:00
cretin45
a0cd24724e SetupWizard: Update test app icon
Change-Id: I359ad1c185f982d6ba564138547fadc8cb01d35f
2017-01-26 22:03:03 +00:00
Abhisek Devkota
70bfefd2f4 Automatic translation import
Change-Id: If10dae8f9665d1d232d5642238b91a011440c621
2017-01-25 13:47:38 -08:00
Abhisek Devkota
d86ccbe678 Temp: Always disable D2D since its broken atm
We are working towards a totally new SetupWizard model, so a temp fix
 here will get jettisoned when that merges

Change-Id: I01d5cde69515bb46b54e896a1005fe0ffcdb002c
2017-01-24 21:23:33 +00:00
Joey Rizzoli
52a78fd21c SetupWizard: rebrand to LineageOS
* Rebrand UI
* Add privacy guard to setup
* Disable Cyngn inc MOD platform and account setup
* Make privacy policy view-able again

Change-Id: Iacd60886992ca72d3f75bb21a905d612432751fc
Signed-off-by: Joey Rizzoli <joey@lineageos.it>
2017-01-09 14:21:08 +01:00
pinky@build01
b1933751ba Automatic translation import
Change-Id: I1797cf5e0aaee630466617a6f0119d6136c66d6c
Ticket: -
2016-12-24 18:45:22 -08:00
clyde@build01
a6daa27003 Automatic translation import
Change-Id: If4e64c10c125b8d7b1fea32ce3346c5ecd794a12
Ticket: -
2016-12-21 18:28:56 -08:00
pinky@build01
2e1593cfe6 Automatic translation import
Change-Id: I450fad76bd52dcc88b4d81cbc68d5d5afc27d8fc
Ticket: -
2016-12-17 18:36:35 -08:00
Joey Rizzoli
e89bc04ad7 SetupWizard: always prompt the user to setup a lockscreen
Change-Id: I1a7eaaa7646d04c167b99b7cf9cea3bf7c812d69
Signed-off-by: Joey Rizzoli <joey@cyanogenmoditalia.it>
2016-12-12 20:17:45 +01:00
pinky@build01
4ec9f97c34 Automatic translation import
Change-Id: I29d8db93962f1b64340d84aea92ee052fe45fcca
Ticket: -
2016-12-10 19:08:07 -08:00
inky@build01
dad38709ca Automatic translation import
Change-Id: Idb5503a0b9a4f722f736c0aa2d7ee97544980e2c
2016-12-08 22:51:54 -08:00
Ricardo Cerqueira
3408466848 GmsAccount: If there's no network and FRP isn't enforcing, skip GMS
The current version of GMS's SuW has the main activity return as
CANCELED when no network is available. This is the same result as
an actual cancellation (by pressing "Back"), and there's no extra
data to distinguish the two, so the user gets stuck in a loop between
the "no network" page and the one preceding it, unless connectivity
is somehow established. Making connectivity mandatory for OOBE isn't
acceptable, so skip GMS entirely if network is absent (and FRP
isn't enforcing). The only thing it was presenting was a "you
have no network" dialog anyway.

Change-Id: I2abadc79a0823e94da7d3a875ce6db8eae8f143b
(cherry picked from commit d82b2dc88a)
2016-11-02 14:30:41 -07:00
Diogo Ferreira
58443a8620 SetupWizard: Don't show wifi setup on wifi-less devices
Altough uncommon, development boards and emulators don't have a wireless
interface. In those cases, don't show the wireless setup page.

Change-Id: I0017b2277defdccf7f0bd61cb9606254509f78cc
2016-09-07 17:44:31 +01:00
Brandon McAnsh
83f8afa3a1 SetupWizard: Updates for N
Change-Id: I501d6aaf37f993f77ecc605db9f67d9da66c71ee
Signed-off-by: Brandon McAnsh <brandon.mcansh@gmail.com>
2016-09-02 22:34:16 -04:00
Brandon McAnsh
615f709c03 [TEMP]: SetupWizard: Remove themeChange from configChanges
Change-Id: Ia7b0ba9a6f09735dd634ce98b9a8382ae1fc3f5d
Signed-off-by: Brandon McAnsh <brandon.mcansh@gmail.com>
2016-09-02 22:33:45 -04:00
Ricardo Cerqueira
8331602e94 If the device has FRP, prompt the user to set up a lockscreen
FRP is kind of pointless if the device is freely accessible. Suggest
setting up a secure lockscreen during setup.

Ref CYNGNOS-3252

Change-Id: Ia807142ab08f388d533b5ee45d1fcbe81071f6d1
2016-08-11 03:38:54 -07:00
blinky@build01
3dce293b18 Automatic translation import
Change-Id: I7909d7f8367c82e6784befba3909e0185fd2bb50
Ticket: -
2016-08-07 19:27:43 -07:00
clyde@build01
aafff03d75 Automatic translation import
Change-Id: I3fbd2b131cc763624162f20ac2722542e2f4d935
Ticket: -
2016-07-27 12:19:20 -07:00
blinky@build01
739026aa87 Automatic translation import
Change-Id: Ic6c6b5ac1bdeeda63bad13571f84706702344324
Ticket: -
2016-07-25 11:49:03 -07:00
blinky@build01
af36bfb798 Automatic translation import
Change-Id: I40dfc1caf710a2e105f46778efeb8975a2859b69
Ticket: -
2016-07-24 13:43:47 -07:00
inky@build01
ad287f7167 Automatic translation import
Change-Id: I55bcdf977f6befa05abe3c7aa44a53f5d7270162
Ticket: -
2016-07-22 12:04:59 -07:00
pinky@build01
653d79c7d4 Automatic translation import
Change-Id: I06a77daadebf1f6d98f5c917400815d1b29ad6da
Ticket: -
2016-07-21 11:19:22 -07:00
clyde@build01
7158d4de8b Automatic translation import
Change-Id: Ic1eb28693004337c124b443e0f9b4d2a9a462152
2016-07-19 13:47:19 -07:00
pinky@build01
8bc74d5aeb Automatic translation import
Change-Id: Ib097aa26cb3321afd1bb431dc00320065ff69066
Ticket: -
2016-07-16 09:43:01 -07:00
Luis Mejia
b31e14b835 Replaced last panel with ModGuide panel.
- Created and added ModGuide panel.
- Added the ability to chnage navigation color.
- Added the ability to start an app after wizard completion.

Issue-Id: MSC-14
Change-Id: I8e17735d1a9edbd529339982981f8270cde83d96
2016-07-14 19:27:13 -07:00
Ricardo Cerqueira
7c1cf5a232 MobileData: Don't let wait-for-radio trample wait-for-data
Both waiting for radio and waiting for data used "is the progress
bar visible" as the "allow to continue" clause. If radio service
state changes arrived while the wait-for-data was ongoing, this'd
terminate the progress bar and make it wait forever.

Additionally, if wifi is connected, don't wait for data at all

Ref CYNGNOS-3126

Change-Id: I81792ac8be00c6a6746af88a62220c727cddc6d8
2016-07-14 04:04:00 -07:00
Ricardo Cerqueira
3ebea2fb6d ChooseDataSim: Use the extra data from the intent to validate the sub
Instead of waiting for the telephony stack to catch up to the default,
take advantage of the fact that the intent already carries the ID as
an extra.

Also, we were using slotId and phoneId interchangeably, and they're not
the same thing. While it's likely they'll match on a freshly reset
phone, don't assume that. Index everything to subId for consistency.

Ref CYNGNOS-3126

Change-Id: Ibcd767d0124b05d669886190f5d9a98f1a6e5bd7
2016-07-14 04:03:45 -07:00
clyde@build01
07c44c4467 Automatic translation import
Change-Id: I11ce4a23dd7fdddb4987ff91ccde38c41ae0ac86
Ticket: -
2016-07-11 17:09:44 -07:00
Bharadwaj Narasimha
10a58d25fd SetupWizard: Handle ActivityNotFoundException in LoadingFragment
Handle the possibly thrown ActivityNotFoundException.Changed the generic catch block into a specific catch block to handle ActivityNotFoundException.

Change-Id: Ica1106bab3e569aaa7883898ce6adb3a1a2dd99f
2016-07-08 11:03:14 -07:00
inky@build01
20037b7ae9 Automatic translation import
Change-Id: I1687e147e7b2c14a8cf5ccd49572f4baea5e66ae
2016-06-29 10:50:31 -07:00
inky@build01
b62056b354 Automatic translation import
Change-Id: I77c27bad469445b9ece67c02317fdc073aa1a7aa
2016-06-17 14:02:02 -07:00
inky@build01
73d56b4d76 Automatic translation import
Change-Id: I7e13ca1c1f966375c419fc463d30ee3c8fda5cf9
2016-06-01 12:02:42 -07:00
Jessica Wagantall
6476f1bc9d Automatic translation import
Change-Id: I6aadeadde4f69553311dc712fd11f27e886b899a
Ticket: RM-214
2016-05-26 18:57:53 -07:00
cretin45
4981bc9888 SetupWizard: Ensure language picker is enabled onResume
Issue-id: FEIJ-559

Change-Id: Iafe0467fc4130074ce86fe5f28b215d4774dc50e
2016-05-23 14:18:12 -07:00
cretin45
334c00f437 SetupWizard: Use proper CMSetting for soft keys option
Issue-id: CYNGNOS-2842

Change-Id: I5ab75d9d90d79b66fa9b10f011272fc0090a78dd
2016-05-15 10:54:37 -07:00
Abhisek Devkota
df3662581a Automatic translation import
Change-Id: Icc4bf7d7a12df03e99a9774e6fbd0c54bf678f6c
2016-05-14 11:18:02 +02:00
cretin45
36f15ef169 SetupWizard: Alway show google pages if gms present
Helps with an issue where qsb widget doesn't work when
running through oobe without network.

Also set the cm setup finished setting for test receiver.

CYNGNOS-2833

Change-Id: I83666deea5a27d74669691c4ab991b1b618edb0a
2016-05-13 15:40:51 -07:00
Michael Bestas
44026d9007 Automatic translation import
Change-Id: I4969f65738f203c9b383f743b05731870eea6b01
2016-05-10 18:38:36 +03:00
cretin45
d35618baef SetupWizard: Run as com.android.wizard task affinity
Issue-id: FEIJ-254

Change-Id: Ib841e7dd82d900150229e99ca01f97dfed6bcde9
2016-05-02 12:24:46 -07:00
Michael Bestas
f06305a9eb Automatic translation import
Change-Id: I351b91a5c30fc8963f622f1b18051c048114fd38
2016-04-29 01:27:58 +03:00
cretin45
635504813a SetupWizard: Add Mod disovery language for mod ready devices
Issue-id: CYNGNOS-2566

Change-Id: If88d2d62b5d2175ffe857d45dd9f6ce132129f2a
2016-04-27 12:39:52 -07:00
cretin45
8109277755 SetupWizard: Ensure compliance with GMS TOS
* Launches GMS TOS per documentation
* Filters out redundant location page if GMS present
* Uses setupwizardlib for some helper functions
* Hide notification icons

Issue-id: CYNGNOS-2599

Change-Id: I4b59592f0b84d0eb0eafe365eab3bad77c1f76ff
2016-04-27 10:35:48 -07:00
cretin45
941aa1e1e2 SetupWizard: Handle register theme change listener crash
Issue-id: FEIJ-84

Change-Id: I8ffca77418702f04328ae7d0581ab8cc316a04e8
2016-04-26 11:15:48 -07:00
cretin45
2e75c4ee04 SetupWizard: Fix test app building
Ticket: CYNGNOS-2431

Change-Id: I75249f0bbb6e59f47e4a30608bb63b42c93c6e37
2016-04-26 10:52:45 -07:00
Roman Birg
af828584ae SetupWizard: GMS page controls the next step
Ticket: CYNGNOS-2533
Change-Id: Icf7dc1de653d18ac60ddfa52dddbe9412dbc8eda
Signed-off-by: Roman Birg <roman@cyngn.com>
2016-04-25 09:00:59 -07:00
Roman Birg
fccccda787 SetupWizard: add a CM-specific setup-complete settings key
Android uses Settings.Global.DEVICE_PROVISIONED and
Settings.Secure.USER_SETUP_COMPLETE and the system responds to those
database entries, such as allowing the keyguard to be visible, or maybe
pulling the statusbar down.

Since we still depend on some of Google's setup wizard, it also keys off
the same table rows and it may decide that the device is now provisioned
when we still haven't finished our own setup wizard, so let's add
another key that we have control over to show the real state of OUR
setup wizard.

Ticket: CYNGNOS-2431

Change-Id: Ic21689625f6d80e209161762ace741918b972aba
Signed-off-by: Roman Birg <roman@cyngn.com>
2016-04-22 08:29:40 -07:00
Ricardo Cerqueira
e5c2b92590 Prefer SIM carrier name over network carrier
People generally identify their SIMs by the emitting carrier, not
the network they attach to. In roaming or MVNO scenarios, these
are likely not to be the same, leading to confusion in SIM selection.

Ref CYNGNOS-2496

Change-Id: I0ecd8e7511fd4229d6ce7629b1f97aa83a1a6254
2016-04-18 17:55:06 +01:00
Michael Bestas
4082d3a7ab Automatic translation import
Change-Id: I5b54fcd2848c07798c9a4a18a9c4d050dfbf782b
2016-04-16 21:00:27 +03:00
Adnan Begovic
fe7ac15220 SetupWizard: Don't reprompt setup if account already exists.
If a user goes through the gms flow, logging in, disabling
  backup, getting kicked over to restore, and deciding to
  set the device up as new, the existing logic would reprompt
  since the flow causes the load action to happen again.

  Now check for account existance, and skip the setup if true.

Change-Id: I3502294d54fcb4e202dca37ff7c6165da4401808
TICKET: CYNGNOS-2459
2016-04-14 12:59:25 -07:00
Dave Kover
c8c765c2b5 Update the theme apply label string
More expressive and specifically calls out two components most
likely to be included.

Change-Id: Ied32d53f308b3fa9fea65a77524c7e3729c52f06
Ticket: CYNGNOS-2085
2016-04-13 11:45:46 -07:00
cretin45
763af1265c SetupWizard: Wait for data connection
Issue-id: CRACKLING-786

Change-Id: I54ef75ffa8da87d829ce7ce45a7f42ca1ce54732
2016-04-08 11:40:20 -07:00
Michael Bestas
ac93a6765d Automatic translation import
Change-Id: I4541f0e56eb0b84ae47a1b2da57ade2e1903dc0b
2016-04-06 01:18:54 +03:00
Michael Bestas
f9fe68cdfa Automatic translation import
Change-Id: I8c171f98bf44f4aa2ac3db1e4e91bbc374e0ba7d
2016-03-28 00:46:36 +03:00
Adnan Begovic
4da02b0881 SetupWizard: Update for themes api changes.
Change-Id: I8d97d43f655bcdc32e5d94d7c844fe1b64919898
TICKET: CYNGNOS-2295
2016-03-25 10:56:27 -07:00
Adnan Begovic
0410f846bb SetupWizard: Fix regression on GMS account setup skip.
If a user skips through google setup, make sure we're handling
  the result correctly.

Change-Id: Ie2385dbd45c187dc1a90eab4a519094eae2caa72
TICKET: CYNGNOS-2258
2016-03-21 11:38:48 -07:00
Adnan Begovic
d114a09647 SetupWizard: Conditionally supress d2d on lack of nfc.
If a device lacks NFC feature, pass an extra to googles
  setup wizard to spress the device to device setup.

Change-Id: I05341f14c4a4753cb5a595734eb337eb10d505a4
TICKET: CYNGNOS-2258
2016-03-21 10:21:06 -07:00
Michael Bestas
7de4615eeb Automatic translation import
Change-Id: I6255a0cc02592fd491ae80de174c459b9f0fa7c6
2016-03-18 16:02:15 -07:00
Adnan Begovic
6baab03bd8 SetupWizard: Handle both restore scenarios.
If a user logs into Google's SetupWizard with their
  gmail account, they need to be prompted with a restoration
  picker -- otherwise, if they have a valid restoreToken
  and restoreAccount, we can assume that they came from a
  Tap & Go scenario and begin restoring as needed.

Change-Id: Ifa9ce978822f365996a509edeb3023001a07be84
TICKET: CYNGNOS-2233
2016-03-17 19:22:58 -07:00
Adnan Begovic
57080c360c SetupWizard: Restore last page on setup wizard death.
Since the restore process (or any external setup wizard
  process) can take a long time to finish execution, save
  the current page and restore it on recreation when necessary.

Change-Id: I575cf58047eb307c95408a0955dd7e5b50a62107
TICKET: CYNGNOS-2233
2016-03-17 14:04:25 -07:00
Adnan Begovic
744827989c SetupWizard: Adapt to new GMS tap & go expectations.
Googles SetupWizard expects a specific flow for the restoration
  process -- amend the intent for gms restore to abide.

Change-Id: Idf4c3b813676c5456770627067a42697ab756bb0
TICKET: CYNGNOS-2233
2016-03-16 19:21:33 -07:00
Adnan Begovic
0d83f7c062 SetupWizard: Fixup backup/restore for Marshmallow.
Since Marshmallow broke the ability to utilize complex
  matrix queries against the SettingsProvider because it
  is now backed by XML, rewrite the logic for the backup
  enabled flag to work within the new constraints.

Change-Id: I8ad993564184fa14b5a3267689c69af2f7e8638e
TICKET: CYNGNOS-2233
2016-03-16 11:04:23 -07:00
Michael Bestas
2009ae2ec4 Automatic translation import
Change-Id: Ibbc2c231c4c041742dbac6f1d607b883f5699602
2016-03-04 16:25:40 -08:00
d34d
8104310592 Themes: Refactor themes to CMSDK [6/6]
Change-Id: I26214e9a71f4d2f5f1b61cf3cabdcdb8bcc098b1
TICKET: CYNGNOS-2126
2016-03-01 09:58:55 -08:00
cretin45
ca63326151 SetupWizard: Modify intent for CaptivePortalLogin
Issue-id: CYNGNOS-2048

Change-Id: I6e9b0ab56c59013aa1bf4d47de2a222c938d53b2
2016-02-26 12:15:39 -08:00
Michael Bestas
01e57cdf28 Automatic translation import
Change-Id: I8e97ae46a19d8e1bb8d8364f5c7a11178ec05776
2016-02-22 05:14:26 +02:00
cretin45
56bf4365cf SetupWizard: Request READ_PRIVILEGED_PHONE_STATE perm for sim change events
Issue-id: CYNGNOS-2057

Change-Id: Ie3b0c617249ead069125c13e40b497a3328b0563
2016-02-16 12:34:33 -08:00
Michael Bestas
6bce9d5e1d Automatic translation import
Change-Id: Idaecb2359c426de380340ff10e5dea4c0541dde7
2016-02-14 16:25:36 +02:00
Edward Wang
4e1c4f5eba SetupWizard: fix build break for incorrect java lib linking
Issue-Id: CYNGNOS-1969

Change-Id: Ia13390739737063a9ab0cd0c3907389f3a587191
2016-02-09 16:33:15 -08:00
Danesh M
d6b937a567 SetupWizard : Don't update locale if sim locked
If the sim is locked, or the setup wizard is not visible, don't
change the locale as it creates a unpleasant experience for the user.

CYNGNOS-1797

Change-Id: Ib696e83cfcdaef18bcf24ef649e6268b7142961a
2016-02-03 16:25:26 -08:00
razorloves
228ffe700a String update, change wording from "Mobile" to "Cellular"
Bring inline with AOSP's terminology

Change-Id: Id2e62140da23f4eefe206d9f9baeb5979886086f
2016-02-02 20:04:45 -06:00
Michael Bestas
a11d93627a Automatic translation import
Change-Id: I74487a8b430467ca969fe8fff5dc6c4fe9dc0704
2016-02-02 09:20:40 -08:00
Zdrowy Gosciu
13539517cf SetupWizard: Remove useless WhisperPushUtils
WISP-41

Change-Id: Ia93d9f9d5d1b2f4d2613491e203451247ca9b474
Signed-off-by: Zdrowy Gosciu <ZdrowyGosciu+GITHUB@gmail.com>
(cherry picked from commit 9710862296)
2016-02-02 07:44:35 -08:00
cretin45
1b1b991da5 SetupWizard: Ensure UI doesn't show when user is guest
Issue-id: CYNGNOS-1736

Change-Id: Ibcd85ca3f90a6ab35a3ae6da622f59786ddcbcd3
2016-02-01 15:23:19 -08:00
cretin45
5b276ea335 SetupWizard: Bring back software nav keys option
Issue-id: OPO-402

Change-Id: Id04105a48dfbb494dddc757f8fe9bcad16796937
2016-02-01 15:14:54 -08:00
cretin45
d40d8b83c3 SetupWizard: Fix test app building in 13
Change-Id: I53d5317070950d75637182c9284a7a38ec99c222
2016-02-01 13:53:56 -08:00
cretin45
962f9a89d4 SetupWizard: RIP Whisperpush
Change-Id: I20363cc80dbb1481bd66abb4bd4202212ff37028
2016-02-01 13:52:54 -08:00
Danesh M
95246f2063 SetupWizard : Use MccTable for mcc -> locale lookup
Some sims such as T-Mobile return incorrect languages for their
PL(Preferred languages). Lookup the locale via the MccTable instead,
and fallback to trusting the sim.

Change-Id: I612d4952355ce4a42b35579e1f9aa879417c4cd4
2016-01-28 10:56:27 -08:00
d34d
06aa3eb165 Themes: Re-enable applying theme in OOBE
Change-Id: I0b027bff18c3b33fc0a925ee756766ed31740b35
TICKET: OPO-361
2016-01-28 08:04:18 -08:00
Michael Bestas
578df09d02 Automatic translation import
Change-Id: I521c0301a8a3fff426b15dd7645b6e5b59496bac
2016-01-25 12:21:00 -08:00
Danesh M
00ad2213ff SetupWizard : Ensure we don't override user locale picks
Take scroll events into consideration when deciding whether to override
user locale with sim locale.

Also move locale fetching to be async so we don't cause any unecessary
blocking.

CYNGNOS-1521

Change-Id: I0c4c1b89dd227f661c1a1cdcce445349fe4a206f
2016-01-25 11:24:33 -08:00
Danesh M
d59304c730 SetupWizard : Switch to mcc/mnc locale
Also ensure we only send stats event once and
only if the user actually changed the locale.

CYNGNOS-1521
CYNGNOS-1326

Change-Id: I7b0451137e6bf80bf71350da28fe391fc8c52ce8
2016-01-20 10:33:08 -08:00
Danesh M
f8e4ab690f SetupWizard : Set min date to Jan 1, 2016 GMT
In the event that the current time returns us epoch,
hard code the time so the user doesn't have to
scroll all the way to 2016 when setting the time.

CRACKLING-721

Change-Id: I7a4122320c80e941154b84f306565c0f9b452a7d
2016-01-15 14:53:35 -08:00
cretin45
f5ec6ac071 SetupWizard: Upgrade sdk to 23
Also remove uneeded perms.

Change-Id: I953e341c30d8d02beffe2031f102379586da4e81
2016-01-12 16:14:41 -08:00
cretin45
1141611f91 SetupWizard: Don't disable packages on main thread
Issue-id: YAM-69

Change-Id: I81ea039a7444d3db5d97b1d798bffe9a6b8ec498
2016-01-12 14:47:32 -08:00
Michael Bestas
3e68503d9e Automatic translation import
Change-Id: I41eb1f3ba6fdec2a332fc63f8f45c39d4c87bc99
2016-01-11 22:43:23 +02:00
Roman Birg
f4f43c6edd Revert "SetupWizard: declare setupwizard category in manifest"
This reverts commit 62f145793a.

Change-Id: Icb686765d4438fb3c8ba919e091d4561a198de73
2016-01-08 10:34:50 -08:00
Roman Birg
62f145793a SetupWizard: declare setupwizard category in manifest
In case there's more than one setup wizard package, we can only grant
permissions to one by default. That is queried by the
Intent.CATEGORY_SETUP_WIZARD which needs to be declared so we are in the
line up to receive the permission.

Change-Id: Ia9bf7ef2dfdaedfc567f038cd860abafa0e2d657
Signed-off-by: Roman Birg <roman@cyngn.com>
2016-01-07 07:54:19 -08:00
Michael Bestas
8c472fc564 Automatic translation import
Change-Id: I1f5120b5affa555a034c43060b3dc300e2a144ad
2015-12-25 19:36:45 +02:00
Matt Mower
7ab7f3c6d9 SetupWizard: Conditionally run account setup
If the package defined by cm_account_type (which can be overlayed)
exists, then add CyanogenSettingsPage. Otherwise, omit.

PS3: On the cyngn side, the account type and package name don't match. Added a new string to overlay.

Change-Id: I15e032e21281aaf51ca32ac9cc0861e033201f19
2015-12-21 14:07:11 -08:00
d34d
68d2ba7728 Fingerprint: Use M fingerprint setup action
Change-Id: I2af048649aed4e8c81e2e31e1ad42612ad9dc6a4
2015-12-03 16:54:16 -08:00
d34d
a2f4c5812e Revert "Fingerprint: Use AOSP fingerprint setup"
This reverts commit 070fbeaf5d.

We still need to show the fingerprint setup screen which allows
the user to skip setting up a fingerprint if they choose to do so.

Change-Id: Ifa49ad1ac0e5cf113290b973ac5e9cd8abdbed9a
2015-12-03 16:53:37 -08:00
d34d
070fbeaf5d Fingerprint: Use AOSP fingerprint setup
Switch to AOSP fingerprint setup now that Marshmallow supports it.

Change-Id: I55ef80671c758034be324027f168af03dda66aef
2015-11-29 17:16:31 -08:00
Matt Mower
ea2d42d654 SetupWizard: Update Location services page
* Remove usage of deprecated setLocationProviderEnabled and
  isLocationProviderEnabled
* Use BroadcastReceiver to listen for changes to mode
* Replace GPS option with Battery Saving option (there is no longer a
  mode available in Android which disables GPS)

TODO: Create CMStats entry for ENABLE_BATTERY_SAVING_LOCATION

Change-Id: I2efe69125518637ae9b7d0dce285c39dae654d4c
2015-11-14 23:43:55 -06:00
cretin45
b64d5e7676 SetupWizard: Fix locale picker styling
Change-Id: If336a8321b09513ec8b22f8138a47fb4d94e5913
2015-10-27 12:44:11 -07:00
cretin45
41801b0ca2 SetupWizard: Update proguard for play services 8115000
Change-Id: Ia3dfa3190b08fac70de2fe088da419d96b0ffa9e
2015-10-23 15:23:38 -07:00
Adnan Begovic
307e587a3a SetupWizard: Temporary compile fixes.
Change-Id: Iffdbb3b38aef75f14dcb0957df8dda13f844159b
2015-10-15 15:18:58 -07:00
Yvonne Wong
f29f92dcac Switch SetupWizard to use CMSettings for settings unrelated to bootclasspath
Issue-Id: CYNGNOS-831
Change-Id: Iba8ab05f327360332383c6e93f6a0401e57e846e
2015-10-14 12:40:40 -07:00
Adnan Begovic
56ccf8676f SetupWizard: Remove themechange config change for now.
Change-Id: I4ccaab30a6719723e2d3e92edb5eaa0977e51d1b
2015-10-09 12:36:16 -07:00
Roman Birg
5780dade7e SetupWizard: fix stats permission
Ref: CYNGNOS-1144

Change-Id: I3c9ed01b883134c2c10b1be64ae7e1d319c3df9e
Signed-off-by: Roman Birg <roman@cyngn.com>
2015-09-28 16:50:11 -07:00
Michael Bestas
14bb4e512f Automatic translation import
Change-Id: I6a030395a7027ca91bffcb5bb2fcc6a93b6225ac
2015-09-24 22:00:55 +03:00
cretin45
edaab88f13 SetupWizard: Tweak logic for showing/hiding sim missing page
CYNGNOS-1021

Change-Id: I6139ca4368eb1bf49b07a95ac60ca28831e2cd3a
2015-09-17 13:48:55 -07:00
Danesh M
fa1be773ce Revert "Bump HOME intent priority"
Breaks sim unlock

This reverts commit 4fb57dc022.

Change-Id: I0e90a471b508b9c0c4bc692ff5ca4508cbe5862b
2015-09-15 09:15:46 -07:00
Michael Bestas
aa2af7154c Automatic translation import
Change-Id: Id71fb96b7e72b372d5e0e2d0f525f6d84ac46cc5
2015-09-12 06:18:07 -07:00
Raj Yengisetty
4fb57dc022 Bump HOME intent priority
Other applications have a higher priority causing some poor
behavior during OOBE (e.g. CryptKeeper). Bumping this to get rid of
some jank during first boot.

issue-id: CYNGNOS-983

Change-Id: I272d1541e22933aa3abd86d2e73c7140eaa4df91
2015-09-11 12:56:06 -07:00
martincz
6c1d791534 SetupWizard: Allow SetupWizard to use CMHW
Change-Id: Ic47824e7219bbf214bd388ad888e2af67ff62f39
2015-09-10 10:13:25 -07:00
cretin45
97af685bbd SetupWizard: Handle xfinity captival portal
CYNGNOS-691

Change-Id: I62ef349da48ffd3e9b148e68e946fe550cea2ff7
2015-09-01 16:44:53 -07:00
cretin45
97c37bef11 SetupWizard: Check for frp in finish receiver
CYNGNOS-886

Change-Id: I97af3285d9321f2f153676eaac081e5408300661
2015-09-01 16:32:48 -07:00
Michael Bestas
9ce4c4f0d6 Automatic translation import
Change-Id: If2f9f1e7f813e675382a712c62bcc6737b9fa4f0
2015-09-01 01:33:04 +03:00
Tom Powell
837f27e6c2 Automatic translation import
Change-Id: Ibdd3f4c2b7fcd45add1d855f72f61f67de93ea6f
2015-08-21 11:20:19 -07:00
Tom Powell
c407a527cc Automatic translation import
Change-Id: Id4e0ec397f0fb74bc7adf0490ab43be933cd3830
2015-08-20 14:34:51 -07:00
Ricardo Cerqueira
7e1a0aaffa SetupWizard: Don't wait for data connection to present the data toggle
We can proceed to the data enablement screen as soon as the device
confirms the requested slot is active. Waiting for an actual data
connection kinda breaks the point of that screen :)

Addresses CYNGNOS-660 and CRACKLING-503

Change-Id: I975508852b37c0e4b112612ac10aacb71ded97b3
2015-08-20 09:25:15 -07:00
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
Michael Bestas
ca721f949c Automatic translation import
Change-Id: Ia4c3c61a0f9e3d5741319ba5d8451283f7ec0089
2015-08-17 20:01:39 +03:00
Tom Powell
11225341d4 Automatic translation import
Change-Id: I6067047c137f92974969558373e25356ee1e5996
2015-08-12 11:02:34 -07:00
Tom Powell
91d0a935a6 Automatic translation import
Change-Id: Ie68bf98b4eac46b5584b34fd117712d51524f7c8
2015-08-11 15:49:18 -07:00
Tom Powell
76840ea9fe Automatic translation import
Change-Id: I8d9db21a4c4287b8da9c9d247fa949469c9b52fb
2015-08-11 14:20:10 -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
Michael Bestas
48115dde4c Automatic translation import
Change-Id: Ie00039c8ccea2c1aecdcef5f4fb1a9d37ca78b02
2015-08-05 20:19:39 +03:00
Roman Birg
1d26db14eb SetupWizard: add Kiev timezone to match Settings
Ref: CYNGNOS-453

Change-Id: Ide11d2be1c97806a674035a322cf32b1014fd8ac
Signed-off-by: Roman Birg <roman@cyngn.com>
2015-07-29 16:26:45 -07:00
Michael Bestas
c7a58bcc60 Automatic translation import
Change-Id: I736deda8d6c87196050022ac0e7b6bf8b56dbba2
2015-07-27 22:05:19 +03: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
Michael Bestas
c10e45a55c Automatic translation import
Change-Id: Id3f47c59d6fa731a38b9459096aedfffc1433091
2015-07-19 15:49:03 +03:00
d34d
c78801e2e7 Reword strings on FingerprintSetupPage
Change-Id: Iacfeb3f4c7324df825ab9c3a67d5bfa225fbdf1c
2015-07-13 15:52:13 -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
Michael Bestas
79f63d23c1 Automatic translation import
Change-Id: I557f278a00d76536615ee4b6fbc0ff006c5be140
2015-07-13 01:02:02 +03:00
black
1125b8dd34 SetupWizard: Fix translatability
In case that there are 2 or more "%s" strings within a line, the order can't be changed.

Change-Id: I8f68d0ed6b6e5b9ac07316e7c6295df0fa1c4e74
2015-07-11 05:37:20 -07:00
d34d
b28f9c0a76 Enroll fingerprint via SetupWizard [2/2]
Change-Id: Ieabfb0f3b789b02ddd1e17aba1eadfda52b21384
2015-07-10 10:34:48 -07:00
Michael Bestas
a1c8217e77 Automatic translation import
Change-Id: I6ac0b00fea1c482c3f87ae10600a1c913afcc8af
2015-07-02 00:20:33 +03:00
Ethan Chen
ee89d29fb4 Clarify touch event consumption logic
* Make it clear that both onInterceptTouchEvent and onTouchEvent need to
  occur.

Change-Id: I951a470ad073f85a9a006c7f440872839d26cd26
2015-06-30 09:41:22 -07:00
Michael Bestas
e8ae2d7cdf Automatic translation import
Change-Id: I0b037995358cde955daf940e5f0bfaf9beec5431
2015-06-23 01:02:02 +03: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 7a255f6e5c)
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
Roman Birg
1fc47a0a79 SetupWizard: allow FINISH_SETUP to be granted via whitelist
Required by http://review.cyanogenmod.org/#/c/100839/

Change-Id: Id3b62c396b5be3497be004f0f3807d8627c4e4da
Signed-off-by: Roman Birg <roman@cyngn.com>
2015-06-15 23:26:35 +00:00
Michael Bestas
761381fd01 Automatic translation import
Change-Id: Id7898af5ac5ceb99d18b984f321166dbe780edb8
2015-06-13 21:04:23 +03:00
cretin45
b7c51828ed SetupWizard: Ensure setup complete flags are set for secondary users
Change-Id: If96abdb6ccc52f7049018dcae6576dd1b886fc0f
2015-06-12 12:24:30 -07:00
Michael Bestas
82bbed9d9c Automatic translation import
Change-Id: Ie54c22f80639bda17b1d926fac2b31137dba4620
2015-06-09 20:35:55 +03:00
Michael Bestas
b94d4434d5 Automatic translation import
Change-Id: I08c97e02da04e4f471bd7e59ce60a5a334be5623
2015-05-31 16:59:07 +03:00
Michael Bestas
a9d0039761 Automatic translation import
Change-Id: Ifa05ef59df4c397f799637fb2d8fa153c84e57fd
2015-05-24 23:36:21 +03:00
emancebo
b2ceb1f8bb OOBE: fix NPE in choose data sim page
Change-Id: Ib6228e7cd223d29ac48200e9a50c0900d35f8a4e
2015-05-18 16:25:14 +00:00
Michael Bestas
3d884cef0e Automatic translation import
Change-Id: Ib46208f9ee1b87700f5d3d19aaa0d44cf054ec0c
2015-05-16 00:03:00 +03: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
Michael Bestas
676081a4ad Automatic translation import
Change-Id: I6b8d3fb084df5abb3449b842ce02d1d6aaf2170a
2015-05-02 03:34:53 +03:00
cretin45
9dd952e3f6 SetupWizard: Increase delay for accessibility
Change-Id: Ifff7161f95e91ec7763f388206cd1d30804ad600
2015-05-01 13:14:03 -07:00
Roman Birg
3c37b0b69c SetupWizard: update stats permission and package
Change-Id: I3ef19b616422ca5cc0896840753192b1c1712525
Signed-off-by: Roman Birg <roman@cyngn.com>
2015-04-27 13:30: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
Michael Bestas
3371e61bb8 Automatic translation import
Change-Id: Ifc62c159189df11f3443defc57069ab5b78b644f
2015-04-25 01:30:10 +03: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
Michael Bestas
317a6cb891 Automatic translation import
Change-Id: I1649ba39d39b73ce351909a310041d6f6b0a99b7
2015-04-17 23:06:02 +03: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 cb09e29e29)
2015-04-09 20:36:04 +00:00
cretin45
714be1a490 SetupWizard: Aggressively hide nav bar on soft key devices
Change-Id: Ic23fd7e605a323411fe2f581235ff3ed45bfcaed
(cherry picked from commit 1d7988a4c7)
2015-04-09 20:35:42 +00:00
cretin45
317a15e0eb SetupWizard: Ensure page object isn't null if FM destroyed
Change-Id: Ia794e7656587ca803d02418d3d84d4df5027cd00
(cherry picked from commit 62b79e3880)
2015-04-09 20:35:15 +00:00
Michael Bestas
e68543ad74 Automatic translation import
Change-Id: Ifa97d2292f1ab37a21a8695a53e673f406df706b
(cherry picked from commit cc9467cfbd)
2015-04-09 20:34:34 +00:00
cretin45
6d63e95342 SetupWizard: Handle all touch events in EnableAccessibilityController
Change-Id: Icf15be21c90d32305a9c1f8b9835eb473acf1f33
(cherry picked from commit 0fde3a04cc)
2015-04-09 20:34:18 +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 9192fc6903)
2015-04-09 19:14:13 +00:00
Michael Bestas
645ffa8436 Automatic translation import
Change-Id: Icd2308a33556872fa1564058b8250c60dc1b8372
(cherry picked from commit 6fb3d23f09)
2015-04-01 02:05:09 +00:00
cretin45
27457414c8 SetupWizard: Lock orientation prior to finish animation
Change-Id: I43a69937e2deb5f55585522fe5d00c51ffdae569
(cherry picked from commit c8e4c29020)
2015-04-01 02:04:23 +00:00
Michael Bestas
b00440ec27 Automatic translation import
Change-Id: I9aa0c0cf342d79ffcdb42e8c87284ad354fc9563
(cherry picked from commit afcf65d6c0)
2015-04-01 02:03:40 +00:00
cretin45
76101714d7 SetupWizard: Initialize the nav keys bundle boolean
Change-Id: I50f2ef0fb7226c8b58437b669ca71df436d68ee8
(cherry picked from commit 33683fc2ce)
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 838248ab86)
2015-04-01 02:02:23 +00:00
cretin45
d0389e4e6e SetupWizard: Fix regression, only init pages once
Change-Id: I1207cb3975daa752a66eb8e9e40635f9a8009509
(cherry picked from commit 83be05d6ec)
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 ed5d46703e)
2015-04-01 01:59:25 +00:00
d34d
88aba00aa3 Disable theme components for secondary users
This patch is to mitigate theming problems with multiple users.
Once themes properly support multiple users we can revert this.

Change-Id: Idc89a273bc1563fc668ca2a5a591cf133e8d5406
(cherry picked from commit 836f867086)
2015-04-01 01:58:53 +00:00
Michael Bestas
2104b3f5db Automatic translation import
Change-Id: If0a158896a3ec49fb0b32c48c6f426dea4d9b653
(cherry picked from commit c7b84c2793)
2015-04-01 01:52:07 +00:00
Roman Birg
98b5eb9958 SetupWizard: don't crash without SIMs
SubscriptionManager may be null

Change-Id: Ia2112044400576a93931474a3fff2af161ccda21
Signed-off-by: Roman Birg <roman@cyngn.com>
2015-03-26 03:44:35 -07:00
Steve Kondik
c225cd58f7 setupwizard: Adapt to MR1 multisim APIs
Change-Id: Icb5bad076fe5a5e8a26befc5bedd04981c374117
2015-03-22 17:18:31 -07:00
284 changed files with 9332 additions and 9782 deletions

1
.gitignore vendored
View File

@@ -1 +0,0 @@
values-v1

42
Android.bp Normal file
View File

@@ -0,0 +1,42 @@
//
// SPDX-FileCopyrightText: 2021-2024 The LineageOS Project
// SPDX-License-Identifier: Apache-2.0
//
android_app {
name: "LineageSetupWizard",
srcs: ["src/**/*.java"],
certificate: "platform",
privileged: true,
system_ext_specific: true,
platform_apis: true,
overrides: ["Provision"],
optimize: {
proguard_flags_files: ["proguard.flags"],
},
static_libs: [
"androidx.activity_activity",
"SettingsLib",
"setupcompat",
"setupdesign",
"SystemUISharedLib",
"org.lineageos.platform.internal",
],
libs: ["telephony-common"],
required: ["privapp_whitelist_org.lineageos.setupwizard"],
}
prebuilt_etc {
name: "privapp_whitelist_org.lineageos.setupwizard",
system_ext_specific: true,
src: "privapp_whitelist_org.lineageos.setupwizard.xml",
sub_dir: "permissions",
filename_from_src: true,
}

View File

@@ -1,28 +0,0 @@
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := $(call all-java-files-under, src)
LOCAL_MODULE_TAGS := optional
LOCAL_PACKAGE_NAME := CyanogenSetupWizard
LOCAL_CERTIFICATE := platform
LOCAL_PRIVILEGED_MODULE := true
LOCAL_PROGUARD_FLAG_FILES := proguard.flags
LOCAL_STATIC_JAVA_LIBRARIES := \
android-support-v4 \
android-support-v13 \
play \
libphonenumber
# Include res dir from chips
google_play_dir := ../../../external/google/google_play_services/libproject/google-play-services_lib/res
res_dir := $(google_play_dir) res
LOCAL_RESOURCE_DIR := $(addprefix $(LOCAL_PATH)/, $(res_dir))
LOCAL_AAPT_FLAGS := --auto-add-overlay
LOCAL_AAPT_FLAGS += --extra-packages com.google.android.gms
include $(BUILD_PACKAGE)

View File

@@ -1,23 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2013 The CyanogenMod Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
SPDX-FileCopyrightText: 2013 The CyanogenMod Project
SPDX-FileCopyrightText: 2017-2024 The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.cyanogenmod.setupwizard"
android:versionCode="3"
android:sharedUserId="android.uid.system">
package="org.lineageos.setupwizard"
android:versionCode="5"
android:sharedUserId="android.uid.system">
<uses-permission android:name="android.permission.CHANGE_CONFIGURATION" />
<uses-permission android:name="android.permission.STATUS_BAR" />
@@ -26,67 +16,294 @@
<uses-permission android:name="android.permission.SET_TIME_ZONE" />
<uses-permission android:name="android.permission.SET_TIME" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE"/>
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.GET_ACCOUNTS_PRIVILEGED" />
<uses-permission android:name="android.permission.READ_PRIVILEGED_PHONE_STATE" />
<uses-permission android:name="android.permission.MANAGE_ACCOUNTS" />
<uses-permission android:name="android.permission.INTERACT_ACROSS_USERS" />
<uses-permission android:name="android.permission.MANAGE_USERS" />
<uses-permission android:name="android.permission.CHANGE_COMPONENT_ENABLED_STATE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.MODIFY_PHONE_STATE" />
<uses-permission android:name="android.permission.ACCESS_THEME_MANAGER"/>
<uses-permission android:name="android.permission.EXPAND_STATUS_BAR" />
<uses-permission android:name="android.permission.HARDWARE_ABSTRACTION_ACCESS" />
<uses-permission android:name="lineageos.permission.HARDWARE_ABSTRACTION_ACCESS" />
<uses-permission android:name="android.permission.BACKUP" />
<uses-permission android:name="org.whispersystems.whisperpush.permissions.REGISTER" />
<uses-permission android:name="cyanogenmod.permission.FINISH_SETUP" />
<uses-permission android:name="com.cyngn.cmstats.SEND_ANALYTICS" />
<uses-permission android:name="android.permission.NETWORK_SETTINGS" />
<uses-permission android:name="lineageos.permission.FINISH_SETUP" />
<uses-permission android:name="lineageos.permission.WRITE_SETTINGS" />
<uses-permission android:name="lineageos.permission.WRITE_SECURE_SETTINGS" />
<permission
android:name="cyanogenmod.permission.PROTECTED_APP"
android:name="lineageos.permission.FINISH_SETUP"
android:protectionLevel="signatureOrSystem" />
<permission
android:name="cyanogenmod.permission.FINISH_SETUP"
android:protectionLevel="signatureOrSystem" />
<protected-broadcast
android:name="org.lineageos.setupwizard.LINEAGE_SETUP_COMPLETE"
android:permission="lineageos.permission.FINISH_SETUP" />
<permission android:name="org.whispersystems.whisperpush.permissions.REGISTER"
android:protectionLevel="signature" />
<protected-broadcast
android:name="org.lineageos.setupwizard.SETUP_FINISHED"
android:permission="lineageos.permission.FINISH_SETUP" />
<protected-broadcast android:name="com.cyanogenmod.setupwizard.SETUP_FINISHED"
android:permission="cyanogenmod.permission.FINISH_SETUP"/>
<application
android:label="@string/app_name"
android:icon="@mipmap/ic_launcher"
android:theme="@style/Theme.Setup"
android:uiOptions="none"
android:taskAffinity="com.android.wizard"
android:name=".SetupWizardApp">
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="21" />
<activity
android:theme="@style/NoDisplay"
android:label="@string/activity_label_empty"
android:name=".wizardmanager.WizardManager"
android:enabled="false"
android:exported="false"
android:configChanges="keyboard|keyboardHidden|mcc|mnc|orientation|screenSize"
android:immersive="true">
<intent-filter>
<action android:name="com.android.wizard.LOAD" />
<action android:name="com.android.wizard.NEXT" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<application android:label="@string/app_name"
android:icon="@drawable/icon"
android:theme="@style/Theme.Setup"
android:name=".SetupWizardApp">
<meta-data android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
<activity android:name=".ui.SetupWizardActivity"
android:label="@string/product_name"
android:launchMode="singleInstance"
android:excludeFromRecents="true"
android:uiOptions="none"
android:configChanges="themeChange|mcc|mnc"
android:immersive="true">
<activity
android:name=".SetupWizardActivity"
android:label="@string/activity_label_empty"
android:lockTaskMode="normal"
android:launchMode="singleTask"
android:configChanges="keyboard|keyboardHidden|mcc|mnc|orientation|screenSize"
android:immersive="true"
android:exported="true"
android:windowSoftInputMode="stateAlwaysHidden"
android:theme="@style/NoDisplay">
<intent-filter android:priority="9">
<action android:name="android.intent.action.MAIN" />
<action android:name="android.intent.action.DEVICE_INITIALIZATION_WIZARD" />
<category android:name="android.intent.category.HOME" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name=".BluetoothSetupActivity"
android:label="@string/activity_label_empty"
android:configChanges="mcc|mnc"
android:immersive="true"
android:exported="false"
android:windowSoftInputMode="stateAlwaysHidden">
<intent-filter>
<action android:name="org.lineageos.setupwizard.LINEAGE_BLUETOOTH_SETUP" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name=".WelcomeActivity"
android:label="@string/activity_label_empty"
android:configChanges="mcc|mnc"
android:immersive="true"
android:exported="false"
android:windowSoftInputMode="stateAlwaysHidden">
<intent-filter>
<action android:name="org.lineageos.setupwizard.LINEAGE_WELCOME" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name=".LocaleActivity"
android:label="@string/activity_label_empty"
android:configChanges="mcc|mnc"
android:immersive="true"
android:exported="false"
android:windowSoftInputMode="stateAlwaysHidden">
<intent-filter>
<action android:name="org.lineageos.setupwizard.LINEAGE_LOCALE" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name=".DateTimeActivity"
android:label="@string/activity_label_empty"
android:configChanges="mcc|mnc"
android:immersive="true"
android:exported="false"
android:windowSoftInputMode="stateAlwaysHidden">
<intent-filter>
<action android:name="org.lineageos.setupwizard.LINEAGE_DATETIME" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name=".SimMissingActivity"
android:label="@string/activity_label_empty"
android:configChanges="mcc|mnc"
android:immersive="true"
android:exported="false"
android:windowSoftInputMode="stateAlwaysHidden">
<intent-filter>
<action android:name="org.lineageos.setupwizard.LINEAGE_SIM_MISSING" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name=".NetworkSetupActivity"
android:label="@string/activity_label_empty"
android:configChanges="mcc|mnc"
android:immersive="true"
android:exported="false"
android:windowSoftInputMode="stateAlwaysHidden">
<intent-filter>
<action android:name="org.lineageos.setupwizard.LINEAGE_NETWORK_SETUP" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name=".LocationSettingsActivity"
android:label="@string/activity_label_empty"
android:configChanges="mcc|mnc"
android:immersive="true"
android:exported="false"
android:windowSoftInputMode="stateAlwaysHidden">
<intent-filter>
<action android:name="org.lineageos.setupwizard.LINEAGE_LOCATION_SETTINGS" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name=".UpdateRecoveryActivity"
android:label="@string/activity_label_empty"
android:configChanges="mcc|mnc"
android:immersive="true"
android:exported="true"
android:windowSoftInputMode="stateAlwaysHidden">
<intent-filter>
<action android:name="org.lineageos.setupwizard.LINEAGE_RECOVERY_UPDATE" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name=".DeviceSpecificActivity"
android:label="@string/activity_label_empty"
android:immersive="true"
android:exported="true"
android:windowSoftInputMode="stateAlwaysHidden">
<intent-filter>
<action android:name="org.lineageos.setupwizard.DEVICE_SPECIFIC" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name=".LineageSettingsActivity"
android:label="@string/activity_label_empty"
android:configChanges="mcc|mnc"
android:immersive="true"
android:exported="true"
android:windowSoftInputMode="stateAlwaysHidden">
<intent-filter>
<action android:name="org.lineageos.setupwizard.LINEAGE_SETTINGS" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name=".NavigationSettingsActivity"
android:label="@string/activity_label_empty"
android:configChanges="mcc|mnc"
android:immersive="true"
android:exported="true"
android:windowSoftInputMode="stateAlwaysHidden">
<intent-filter>
<action android:name="org.lineageos.setupwizard.NAVIGATION_SETTINGS" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name=".BiometricActivity"
android:label="@string/activity_label_empty"
android:configChanges="mcc|mnc"
android:immersive="true"
android:exported="false"
android:windowSoftInputMode="stateAlwaysHidden">
<intent-filter>
<action android:name="org.lineageos.setupwizard.LINEAGE_BIOMETRIC_SETTINGS" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name=".ScreenLockActivity"
android:label="@string/activity_label_empty"
android:configChanges="mcc|mnc"
android:immersive="true"
android:exported="false"
android:windowSoftInputMode="stateAlwaysHidden">
<intent-filter>
<action android:name="org.lineageos.setupwizard.LINEAGE_LOCKSCREEN_SETTINGS" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name=".backup.RestoreIntroActivity"
android:label="@string/activity_label_empty"
android:configChanges="mcc|mnc"
android:immersive="true"
android:exported="true"
android:windowSoftInputMode="stateAlwaysHidden">
<intent-filter>
<action android:name="org.lineageos.setupwizard.LINEAGE_RESTORE_BACKUP" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name=".ThemeSettingsActivity"
android:label="@string/activity_label_empty"
android:configChanges="mcc|mnc"
android:immersive="true"
android:exported="true"
android:windowSoftInputMode="stateAlwaysHidden">
<intent-filter>
<action android:name="org.lineageos.setupwizard.THEME_SETTINGS" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name=".FinishActivity"
android:label="@string/activity_label_empty"
android:configChanges="mcc|mnc"
android:immersive="true"
android:exported="true"
android:windowSoftInputMode="stateAlwaysHidden">
<intent-filter>
<action android:name="org.lineageos.setupwizard.LINEAGE_SETUP_COMPLETE" />
<action android:name="org.lineageos.setupwizard.SETUP_FINISHED" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<receiver
android:name=".PartnerReceiver"
android:exported="true">
<intent-filter>
<action android:name="com.android.setupwizard.action.PARTNER_CUSTOMIZATION" />
<action android:name="com.google.android.tvsetup.action.PARTNER_CUSTOMIZATION" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</receiver>
</application>
</manifest>

73
LICENSES/Apache-2.0.txt Normal file
View File

@@ -0,0 +1,73 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
(a) You must give any other recipients of the Work or Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

13
REUSE.toml Normal file
View File

@@ -0,0 +1,13 @@
# SPDX-FileCopyrightText: 2024 The LineageOS Project
# SPDX-License-Identifier: Apache-2.0
version = 1
SPDX-PackageName = "SetupWizard"
SPDX-PackageSupplier = "The LineageOS Project"
SPDX-PackageDownloadLocation = "https://github.com/LineageOS/android_packages_apps_SetupWizard"
[[annotations]]
path = ["res/raw/lottie_system_nav_2_button.json", "res/raw/lottie_system_nav_3_button.json", "res/raw/lottie_system_nav_fully_gestural.json"]
precedence = "aggregate"
SPDX-FileCopyrightText = "2019 The Android Open Source Project"
SPDX-License-Identifier = "Apache-2.0"

23
exit_wizard.sh Executable file
View File

@@ -0,0 +1,23 @@
#!/bin/bash
# SPDX-FileCopyrightText: 2017-2024 The LineageOS Project
# SPDX-License-Identifier: Apache-2.0
adb root
wait ${!}
has_google_suw=$(adb shell pm list packages com.google.android.setupwizard)
adb shell pm enable org.lineageos.setupwizard/.FinishActivity || true
if [[ ! -z "$has_google_suw" ]]
then
wait ${!}
adb shell pm enable com.google.android.setupwizard/.SetupWizardExitActivity || true
wait ${!}
fi
sleep 1
adb shell am start org.lineageos.setupwizard/.FinishActivity || true
if [[ ! -z "$has_google_suw" ]]
then
wait ${!}
sleep 1
adb shell am start com.google.android.setupwizard/.SetupWizardExitActivity
fi

View File

@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
SPDX-FileCopyrightText: 2017-2020 The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<permissions>
<privapp-permissions package="org.lineageos.setupwizard">
<permission name="android.permission.BACKUP" />
<permission name="android.permission.CHANGE_COMPONENT_ENABLED_STATE" />
<permission name="android.permission.CHANGE_CONFIGURATION" />
<permission name="android.permission.GET_ACCOUNTS_PRIVILEGED" />
<permission name="android.permission.INTERACT_ACROSS_USERS" />
<permission name="android.permission.MANAGE_USERS" />
<permission name="android.permission.READ_PRIVILEGED_PHONE_STATE" />
<permission name="android.permission.SET_TIME" />
<permission name="android.permission.SET_TIME_ZONE" />
<permission name="android.permission.STATUS_BAR" />
<permission name="android.permission.WRITE_SECURE_SETTINGS" />
</privapp-permissions>
</permissions>

View File

@@ -1,3 +1,16 @@
# SPDX-FileCopyrightText: 2015 The CyanogenMod Project
# SPDX-FileCopyrightText: 2017-2019 The LineageOS Project
# SPDX-License-Identifier: Apache-2.0
-keep class * extends java.util.ListResourceBundle {
protected Object[][] getContents();
}
# Needed for Parcelable/SafeParcelable Creators to not get stripped
-keepnames class * implements android.os.Parcelable {
public static final ** CREATOR;
}
# Needed when building against the Marshmallow SDK
-dontwarn org.apache.http.**
-dontwarn androidx.**

View File

@@ -1,9 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<objectAnimator android:duration="@android:integer/config_mediumAnimTime"
android:interpolator="@android:anim/accelerate_interpolator"
android:propertyName="x"
android:valueFrom="1280"
android:valueTo="0"
android:valueType="floatType"/>
</set>

View File

@@ -1,9 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<objectAnimator android:duration="@android:integer/config_mediumAnimTime"
android:interpolator="@android:anim/accelerate_interpolator"
android:propertyName="x"
android:valueFrom="0"
android:valueTo="-1280"
android:valueType="floatType"/>
</set>

View File

@@ -1,24 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
** Copyright 2009, The Android Open Source Project
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and
** limitations under the License.
*/
SPDX-FileCopyrightText: 2009 The Android Open Source Project
SPDX-License-Identifier: Apache-2.0
-->
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:interpolator="@android:interpolator/decelerate_quad">
<alpha android:fromAlpha="0.0" android:toAlpha="1.0"
android:duration="@android:integer/config_shortAnimTime"/>
android:interpolator="@android:interpolator/decelerate_quad">
<alpha
android:fromAlpha="0.0"
android:toAlpha="1.0"
android:duration="@android:integer/config_shortAnimTime" />
</set>

View File

@@ -1,24 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
** Copyright 2009, The Android Open Source Project
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and
** limitations under the License.
*/
SPDX-FileCopyrightText: 2009 The Android Open Source Project
SPDX-License-Identifier: Apache-2.0
-->
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:interpolator="@android:interpolator/accelerate_quad">
<alpha android:fromAlpha="1.0" android:toAlpha="0"
android:duration="@android:integer/config_shortAnimTime"/>
android:interpolator="@android:interpolator/accelerate_quad">
<alpha
android:fromAlpha="1.0"
android:toAlpha="0"
android:duration="@android:integer/config_shortAnimTime" />
</set>

View File

@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
SPDX-FileCopyrightText: 2015 The CyanogenMod Project
SPDX-License-Identifier: Apache-2.0
-->
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_enabled="false" android:color="@color/button_bar_text_disabled" />
<item android:color="@color/button_bar_text_enabled" />
</selector>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 967 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 KiB

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
SPDX-FileCopyrightText: 2024 The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="?android:attr/colorBackground" />
</shape>

View File

@@ -1,20 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2015 The CyanogenMod Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
SPDX-FileCopyrightText: 2015 The CyanogenMod Project
SPDX-License-Identifier: Apache-2.0
-->
<shape xmlns:android="http://schemas.android.com/apk/res/android" >
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="@color/divider" />
<size android:width="316dp" android:height="1px"/>
<size
android:width="316dp"
android:height="1px" />
</shape>

View File

@@ -1,11 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="@color/button_bar_text"
android:pathData="M15.41,7.41L14,6l-6,6l6,6l1.41-1.41L10.83,12L15.41,7.41Z" />
</vector>

View File

@@ -1,11 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="@color/white"
android:pathData="M15.41,7.41L14,6l-6,6l6,6l1.41-1.41L10.83,12L15.41,7.41Z" />
</vector>

View File

@@ -1,11 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="@color/button_bar_text"
android:pathData="M10,6L8.59,7.41L13.17,12l-4.58,4.59L10,18l6-6L10,6Z" />
</vector>

View File

@@ -1,11 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="@color/white"
android:pathData="M10,6L8.59,7.41L13.17,12l-4.58,4.59L10,18l6-6L10,6Z" />
</vector>

View File

@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
SPDX-FileCopyrightText: 2017 The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path android:pathData="M0 0h24v24H0z" />
<path
android:fillColor="?android:colorControlNormal"
android:pathData="M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99 .9 -1.99 2L3 19c0 1.1 .89 2 2 2h14c1.1 0
2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z" />
</vector>

View File

@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
SPDX-FileCopyrightText: 2021-2022 The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="?android:colorControlNormal"
android:pathData="M20,15.5C18.8,15.5 17.5,15.3 16.4,14.9C16.3,14.9 16.2,14.9 16.1,14.9C15.8,14.9 15.6,15 15.4,15.2L13.2,17.4C10.4,15.9 8,13.6 6.6,10.8L8.8,8.6C9.1,8.3 9.2,7.9 9,7.6C8.7,6.5 8.5,5.2 8.5,4C8.5,3.5 8,3 7.5,3H4C3.5,3 3,3.5 3,4C3,13.4 10.6,21 20,21C20.5,21 21,20.5 21,20V16.5C21,16 20.5,15.5 20,15.5M5,5H6.5C6.6,5.9 6.8,6.8 7,7.6L5.8,8.8C5.4,7.6 5.1,6.3 5,5M19,19C17.7,18.9 16.4,18.6 15.2,18.2L16.4,17C17.2,17.2 18.1,17.4 19,17.4V19Z" />
</vector>

15
res/drawable/ic_eye.xml Normal file
View File

@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
SPDX-FileCopyrightText: 2021-2022 The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="?android:colorControlNormal"
android:pathData="M12,9A3,3 0 0,1 15,12A3,3 0 0,1 12,15A3,3 0 0,1 9,12A3,3 0 0,1 12,9M12,4.5C17,4.5 21.27,7.61 23,12C21.27,16.39 17,19.5 12,19.5C7,19.5 2.73,16.39 1,12C2.73,7.61 7,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C15.76,17.5 19.17,15.36 20.82,12C19.17,8.64 15.76,6.5 12,6.5C8.24,6.5 4.83,8.64 3.18,12Z" />
</vector>

View File

@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
SPDX-FileCopyrightText: 2017 The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path android:pathData="M0 0h24v24H0V0z" />
<path
android:fillColor="?android:colorControlNormal"
android:pathData="M11.8 12.5v-1l1.1-.8c.1-.1 .1 -.2 .1 -.3l-1-1.7c-.1-.1-.2-.2-.3-.1l-1.3 .4
c-.3-.2-.6-.4-.9-.5l-.2-1.3c0-.1-.1-.2-.3-.2H7c-.1 0-.2 .1 -.3 .2 l-.2 1.3c-.3
.1 -.6 .3 -.9 .5 l-1.3-.5c-.1 0-.2 0-.3 .1 l-1 1.7c-.1 .1 0 .2 .1 .3l1.1 .8
v1l-1.1 .8 c-.1 .2 -.1 .3 -.1 .4 l1 1.7c.1 .1 .2 .2 .3 .1 l1.4-.4c.3 .2 .6 .4 .9
.5 l.2 1.3c-.1 .1 .1 .2 .2 .2 h2c.1 0 .2-.1 .3 -.2l.2-1.3c.3-.1 .6 -.3 .9
-.5l1.3 .5 c.1 0 .2 0 .3-.1l1-1.7c.1-.1 0-.2-.1-.3l-1.1-.9zM8 14c-1.1
0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zM19 1H9c-1.1 0-2 .9-2
2v3h2V4h10v16H9v-2H7v3c0 1.1 .9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2z" />
</vector>

View File

@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
SPDX-FileCopyrightText: 2022 The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp"
android:height="108dp"
android:viewportWidth="108"
android:viewportHeight="108">
<path
android:pathData="M0,0h108v108h-108z"
android:fillColor="#ffffff" />
</vector>

View File

@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
SPDX-FileCopyrightText: 2022 The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:aapt="http://schemas.android.com/aapt"
android:width="108dp"
android:height="108dp"
android:viewportWidth="108"
android:viewportHeight="108">
<group>
<clip-path android:pathData="M0,0h108v108h-108z" />
<path
android:pathData="M53.671,54.898C53.707,54.605 53.744,54.312 53.744,54C53.744,53.688 53.707,53.395 53.671,53.102L55.651,51.598C55.834,51.47 55.87,51.213 55.761,51.012L53.872,47.84C53.762,47.638 53.506,47.565 53.304,47.638L50.957,48.555C50.462,48.188 49.931,47.895 49.362,47.657L48.995,45.218C48.995,44.998 48.794,44.833 48.556,44.833H44.797C44.559,44.833 44.357,44.998 44.32,45.218L43.954,47.638C43.386,47.858 42.854,48.188 42.359,48.537L40.012,47.62C39.792,47.528 39.554,47.62 39.444,47.822L37.556,50.993C37.445,51.213 37.5,51.452 37.684,51.598L39.664,53.102C39.627,53.395 39.609,53.707 39.609,54C39.609,54.312 39.646,54.605 39.682,54.898L37.684,56.42C37.5,56.548 37.464,56.805 37.574,57.007L39.462,60.178C39.572,60.38 39.829,60.453 40.03,60.38L42.377,59.463C42.872,59.83 43.404,60.123 43.972,60.362L44.339,62.782C44.357,63.002 44.559,63.167 44.797,63.167H48.574C48.812,63.167 49.014,63.002 49.032,62.782L49.399,60.362C49.967,60.142 50.499,59.812 50.994,59.463L53.34,60.38C53.561,60.472 53.799,60.38 53.909,60.178L55.797,57.007C55.907,56.805 55.87,56.567 55.687,56.42L53.671,54.898ZM46.667,57.208C44.852,57.208 43.367,55.778 43.367,54C43.367,52.222 44.852,50.792 46.667,50.792C48.482,50.792 49.967,52.222 49.967,54C49.967,55.778 48.5,57.208 46.667,57.208ZM66.834,33.852L48.5,33.833C46.484,33.833 44.834,35.483 44.834,37.5V43H48.5V41.167H66.834V66.833H48.5V65H44.834V70.5C44.834,72.517 46.484,74.167 48.5,74.167H66.834C68.851,74.167 70.501,72.517 70.501,70.5V37.5C70.501,35.483 68.851,33.852 66.834,33.852Z"
android:fillColor="#167C80" />
<path
android:pathData="M28.54,28.54m-72,0a72,72 0,1 1,144 0a72,72 0,1 1,-144 0"
android:fillAlpha="0.6">
<aapt:attr name="android:fillColor">
<gradient
android:gradientRadius="72"
android:centerX="28.54"
android:centerY="28.54"
android:type="radial">
<item
android:offset="0"
android:color="#19FFFFFF" />
<item
android:offset="1"
android:color="#00FFFFFF" />
</gradient>
</aapt:attr>
</path>
</group>
</vector>

View File

@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
SPDX-FileCopyrightText: 2017 The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path android:pathData="M0 0h24v24H0z" />
<path
android:fillColor="?android:colorControlNormal"
android:pathData="M12.87 15.07l-2.54-2.51 .03 -.03c1.74-1.94 2.98-4.17
3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3
9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11 .76
-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12
17h-3.24z" />
</vector>

View File

@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
SPDX-FileCopyrightText: 2017 The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="?android:colorControlNormal"
android:pathData="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0
9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z" />
<path android:pathData="M0 0h24v24H0z" />
</vector>

View File

@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
SPDX-FileCopyrightText: Material Design Authors / Google LLC
SPDX-License-Identifier: Apache-2.0
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="?android:colorControlNormal"
android:pathData="M4.59,6.89C5.29,6.18 6,5.54 6.3,5.67C6.8,5.87 6.3,6.7 6,7.19C5.75,7.61 3.14,11.08 3.14,13.5C3.14,14.78 3.62,15.84 4.5,16.5C5.23,17.04 6.22,17.21 7.12,16.94C8.19,16.63 9.07,15.54 10.18,14.17C11.39,12.68 13,10.73 14.26,10.73C15.89,10.73 15.91,11.74 16,12.5C12.24,13.16 10.64,16.19 10.64,17.89C10.64,19.59 12.08,21 13.85,21C15.5,21 18.14,19.65 18.54,14.88H21V12.38H18.53C18.38,10.73 17.44,8.18 14.5,8.18C12.25,8.18 10.32,10.09 9.56,11C9,11.75 7.5,13.5 7.27,13.74C7,14.04 6.59,14.58 6.16,14.58C5.71,14.58 5.44,13.75 5.8,12.66C6.15,11.57 7.2,9.8 7.65,9.14C8.43,8 8.95,7.22 8.95,5.86C8.95,3.69 7.31,3 6.44,3C5.12,3 3.97,4 3.72,4.25C3.36,4.61 3.06,4.91 2.84,5.18L4.59,6.89M13.88,18.55C13.57,18.55 13.14,18.29 13.14,17.83C13.14,17.23 13.87,15.63 16,15.07C15.71,17.76 14.58,18.55 13.88,18.55Z" />
</vector>

View File

@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
SPDX-FileCopyrightText: Material Design Authors / Google LLC
SPDX-License-Identifier: Apache-2.0
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="?android:colorControlNormal"
android:pathData="M17,13L12,18L7,13H10V9H14V13M19.35,10.03C18.67,6.59 15.64,4 12,4C9.11,4 6.6,5.64 5.35,8.03C2.34,8.36 0,10.9 0,14A6,6 0 0,0 6,20H19A5,5 0 0,0 24,15C24,12.36 21.95,10.22 19.35,10.03Z" />
</vector>

View File

@@ -1,25 +0,0 @@
<!--
Copyright (C) 2014 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:autoMirrored="true"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:fillColor="#FFFFFF"
android:pathData="M2.000000,22.000000l20.000000,0.000000 0.000000,-20.000000z"/>
</vector>

View File

@@ -1,28 +0,0 @@
<!--
Copyright (C) 2014 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:autoMirrored="true"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:fillColor="#FFFFFF"
android:pathData="M2.000000,22.000000l20.000000,0.000000 0.000000,-20.000000z"/>
<path
android:fillColor="@color/accent"
android:pathData="M11.300000,12.700000l-9.300000,9.300000 9.300000,0.000000z"/>
</vector>

View File

@@ -1,28 +0,0 @@
<!--
Copyright (C) 2014 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:autoMirrored="true"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:fillColor="#FFFFFF"
android:pathData="M2.000000,22.000000l20.000000,0.000000 0.000000,-20.000000z"/>
<path
android:fillColor="@color/accent"
android:pathData="M14.000000,10.000000l-12.000000,12.000000 12.000000,0.000000z"/>
</vector>

View File

@@ -1,28 +0,0 @@
<!--
Copyright (C) 2014 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:autoMirrored="true"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:fillColor="#FFFFFF"
android:pathData="M2.000000,22.000000l20.000000,0.000000 0.000000,-20.000000z"/>
<path
android:fillColor="@color/accent"
android:pathData="M16.700001,7.300000l-14.700001,14.700000 14.700001,0.000000z"/>
</vector>

View File

@@ -1,25 +0,0 @@
<!--
Copyright (C) 2014 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:autoMirrored="true"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:fillColor="@color/accent"
android:pathData="M2.000000,22.000000l20.000000,0.000000 0.000000,-20.000000z"/>
</vector>

View File

@@ -1,25 +0,0 @@
<!--
Copyright (C) 2014 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:autoMirrored="true"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:fillColor="#FFFFFF"
android:pathData="M2.000000,22.000000l20.000000,0.000000L22.000000,2.000000L2.000000,22.000000zM20.000000,20.000000L6.800000,20.000000L20.000000,6.800000L20.000000,20.000000z"/>
</vector>

17
res/drawable/ic_sim.xml Normal file
View File

@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
SPDX-FileCopyrightText: 2017 The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="?android:colorControlNormal"
android:pathData="M19.99 4c0-1.1-.89-2-1.99-2h-8L4 8v12c0 1.1 .9 2 2 2h12.01c1.1 0 1.99-.9
1.99-2l-.01-16zM9 19H7v-2h2v2zm8 0h-2v-2h2v2zm-8-4H7v-4h2v4zm4
4h-2v-4h2v4zm0-6h-2v-2h2v2zm4 2h-2v-4h2v4z" />
</vector>

View File

@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
SPDX-FileCopyrightText: 2020 The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:fillColor="?android:colorControlNormal"
android:pathData="M17,1.01L7,1c-1.1,0 -2,0.9 -2,2v18c0,1.1 0.9,2 2,2h10c1.1,0 2,-0.9 2,-2L19,3c0,-1.1 -0.9,-1.99 -2,-1.99zM17,19L7,19L7,5h10v14zM16,13h-3L13,8h-2v5L8,13l4,4 4,-4z" />
</vector>

15
res/drawable/ic_theme.xml Normal file
View File

@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
SPDX-FileCopyrightText: 2019 The Android Open Source Project
SPDX-License-Identifier: Apache-2.0
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="?android:colorControlNormal"
android:pathData="M4,2v9c0,1.65 1.35,3 3,3h2v6c0,1.1 0.9,2 2,2h2c1.1,0 2,-0.9 2,-2v-6h2c1.65,0 3,-1.35 3,-3V2C20,2 4,2 4,2zM11,20v-6h2v6H11zM18,11c0,0.55 -0.45,1 -1,1h-2H9H7c-0.55,0 -1,-0.45 -1,-1v-0.93h12V11zM18,8.07H6V4h2.81v2.15h2V4h2.38v2.15h2V4H18V8.07z" />
</vector>

17
res/drawable/logo.xml Normal file
View File

@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
SPDX-FileCopyrightText: 2017-2022 The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="512dp"
android:height="260dp"
android:viewportWidth="512"
android:viewportHeight="260">
<path
android:fillColor="@color/lineage_accent"
android:pathData="M416,128a39.92,39.92,0,0,0-31.11,14.87l-1.5-.6A294.79,294.79,0,0,0,336,128.14s0-.09,0-.14a80,80,0,1,0-160,0s0,.09,0,.13l-1.72
.38 a293.48,293.48,0,0,0-45.67,13.76l-1.5 .6
a40,40,0,1,0,7.39,14.28h0a277.33,277.33,0,0,1,43.1-13,80,80,0,0,0,156.73,0,277.3,277.3,0,0,1,43.11,13h0A40,40,0,1,0,416,128ZM96,192a24,24,0,1,1,24-24A24,24,0,0,1,96,192Zm160,0a64,64,0,1,1,64-64A64.07,64.07,0,0,1,256,192Zm160,0a24,24,0,1,1,24-24A24,24,0,0,1,416,192ZM288,128a32,32,0,1,1-32-32A32,32,0,0,1,288,128Z" />
</vector>

View File

@@ -1,19 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2015 The CyanogenMod Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<shape xmlns:android="http://schemas.android.com/apk/res/android" >
<solid android:color="@color/page_background" />
</shape>

View File

@@ -1,50 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2015 The CyanogenMod Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/header"
android:layout_width="0px"
android:layout_height="match_parent"
android:layout_weight="1"
android:paddingTop="@dimen/header_logo_margin_top"
android:background="@color/primary"
style="@style/Header">
<ImageView
android:id="@+id/brand_logo"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/brand"
android:paddingLeft="@dimen/header_logo_margin_left"
android:paddingBottom="@dimen/header_logo_margin_bottom"
android:layout_alignParentTop="true"/>
<ImageView
android:id="@+id/powered_by_logo"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/powered_by"
android:visibility="gone"
android:paddingLeft="@dimen/header_logo_margin_left"
android:paddingBottom="@dimen/header_logo_margin_bottom"
android:layout_below="@+id/brand_logo"/>
<TextView
android:layout_width="match_parent"
android:layout_height="@dimen/page_title_height"
style="@style/PageTitle" />
</RelativeLayout>

View File

@@ -1,44 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2013 The CyanogenMod Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="match_parent">
<include layout="@layout/logo_header" />
<RelativeLayout android:id="@+id/page"
android:layout_width="0px"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center"
android:paddingLeft="@dimen/content_margin_left"
android:paddingRight="@dimen/content_margin_left"
style="@style/PageContent">
<com.cyanogenmod.setupwizard.ui.LocalePicker
android:id="@+id/locale_list"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="@dimen/min_locale_picker_height"
android:focusable="true"
android:focusableInTouchMode="true"
android:layout_centerInParent="true"/>
</RelativeLayout>
</LinearLayout>

View File

@@ -1,61 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2015 The CyanogenMod Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<include layout="@layout/header" />
<FrameLayout android:id="@+id/page"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1">
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="match_parent"
style="@style/PageContent">
<TextView
android:layout_width="0px"
android:layout_height="match_parent"
android:layout_weight="1"
android:id="@+id/sim_missing"
style="@style/PageSummaryText"
android:textSize="15sp"
android:layout_marginBottom="@dimen/summary_margin_bottom"
android:paddingLeft="@dimen/content_margin_left"
android:paddingRight="@dimen/content_margin_right"
android:text="@string/sim_missing_summary" />
<ImageView
android:id="@+id/sim_slot_image"
android:layout_width="0px"
android:layout_height="match_parent"
android:layout_weight="1"
android:scaleType="fitEnd"
android:src="@drawable/sim"/>
</LinearLayout>
</FrameLayout>
</LinearLayout>

View File

@@ -0,0 +1,86 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
SPDX-FileCopyrightText: 2016 The CyanogenMod Project
SPDX-FileCopyrightText: 2017-2022 The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
style="@style/SudContentFrame">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center_vertical"
android:weightSum="100"
android:orientation="vertical">
<ImageView
android:id="@+id/brand_logo"
android:layout_width="wrap_content"
android:layout_height="0dp"
android:layout_weight="65"
android:layout_gravity="center"
android:src="@drawable/logo"
android:adjustViewBounds="true"
android:scaleType="fitCenter"
android:gravity="center"
android:paddingTop="@dimen/content_margin_top"
android:paddingRight="@dimen/content_margin_left"
android:paddingLeft="@dimen/content_margin_left"
android:paddingBottom="0dp" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="35"
android:gravity="center_vertical"
android:orientation="vertical">
<TextView
style="@style/WelcomeTitle"
android:id="@+id/welcome_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hyphenationFrequency="none"
android:gravity="center" />
<Button
android:id="@+id/start"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="@string/start"
style="@style/SudGlifButton.Primary" />
</LinearLayout>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="center"
android:visibility="gone">
<Button
android:id="@+id/emerg_dialer"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:drawableTop="@drawable/ic_dialer"
android:text="@string/emergency_call"
style="@style/SudGlifButton.Secondary" />
<Button
android:id="@+id/launch_accessibility"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:drawableTop="@drawable/ic_eye"
android:text="@string/accessibility_settings"
style="@style/SudGlifButton.Secondary" />
</LinearLayout>
</LinearLayout>

View File

@@ -0,0 +1,86 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
SPDX-FileCopyrightText: 2016 The CyanogenMod Project
SPDX-FileCopyrightText: 2017-2022 The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
style="@style/SudContentFrame">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center_vertical"
android:weightSum="100"
android:orientation="vertical">
<ImageView
android:id="@+id/brand_logo"
android:layout_width="wrap_content"
android:layout_height="0dp"
android:layout_weight="65"
android:layout_gravity="center"
android:src="@drawable/logo"
android:adjustViewBounds="true"
android:scaleType="fitCenter"
android:gravity="center"
android:paddingTop="@dimen/content_margin_top"
android:paddingRight="@dimen/content_margin_left"
android:paddingLeft="@dimen/content_margin_left"
android:paddingBottom="0dp" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="35"
android:gravity="center_vertical"
android:orientation="vertical">
<TextView
style="@style/WelcomeTitle"
android:id="@+id/welcome_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hyphenationFrequency="none"
android:gravity="center" />
<Button
android:id="@+id/start"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="@string/start"
style="@style/SudGlifButton.Primary" />
</LinearLayout>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="center"
android:visibility="gone">
<Button
android:id="@+id/emerg_dialer"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:drawableTop="@drawable/ic_dialer"
android:text="@string/emergency_call"
style="@style/SudGlifButton.Secondary" />
<Button
android:id="@+id/launch_accessibility"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:drawableTop="@drawable/ic_eye"
android:text="@string/accessibility_settings"
style="@style/SudGlifButton.Secondary" />
</LinearLayout>
</LinearLayout>

View File

@@ -1,36 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2015 The CyanogenMod Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/button_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:background="@color/button_bar_background">
<Button
style="@style/ButtonBar.Left"
android:id="@+id/prev_button"
android:layout_width="wrap_content"
android:layout_weight="1"/>
<Button
style="@style/ButtonBar.Right"
android:id="@+id/next_button"
android:layout_width="wrap_content"
android:text="@string/next" />
</LinearLayout>

View File

@@ -1,57 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2015 The CyanogenMod Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<include layout="@layout/header" />
<FrameLayout android:id="@+id/page"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1">
<ScrollView android:layout_width="match_parent"
android:layout_height="match_parent"
android:fillViewport="true">
<LinearLayout
android:id="@+id/page_view"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content"
style="@style/PageContent">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
style="@style/PageSummaryText"
android:textSize="15sp"
android:paddingLeft="@dimen/content_margin_left"
android:paddingRight="@dimen/content_margin_right"
android:paddingBottom="@dimen/summary_margin_bottom"
android:text="@string/choose_data_sim_summary" />
<include layout="@layout/divider" />
</LinearLayout>
</ScrollView>
</FrameLayout>
</LinearLayout>

View File

@@ -1,51 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2015 The CyanogenMod Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/sim_row"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="?android:attr/listPreferredItemHeight"
android:gravity="center_vertical"
android:paddingLeft="@dimen/content_margin_left"
android:paddingRight="@dimen/data_switch_margin_right"
android:background="?android:attr/selectableItemBackground"
android:clickable="true">
<ImageView
android:id="@+id/signal"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_signal_0" />
<TextView
android:id="@+id/sim_title"
android:layout_width="0px"
android:layout_height="wrap_content"
android:layout_weight="1"
android:textSize="14sp"
android:layout_marginLeft="@dimen/carrier_text_margin_left"
android:maxLines="4" />
<CheckBox
android:id="@+id/enable_check"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:gravity="center_vertical"
android:duplicateParentState="true"
android:clickable="false"/>
</LinearLayout>

View File

@@ -1,26 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2013 The CyanogenMod Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
SPDX-FileCopyrightText: 2013 The CyanogenMod Project
SPDX-License-Identifier: Apache-2.0
-->
<!-- Based on simple_list_item_2.xml in framework -->
<TwoLineListItem xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="?android:attr/listPreferredItemHeight"
android:mode="twoLine"
android:gravity="center_vertical">
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="?android:attr/listPreferredItemHeight"
android:mode="twoLine"
android:gravity="center_vertical">
<TextView
android:id="@android:id/text1"

View File

@@ -1,21 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2015 The CyanogenMod Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
SPDX-FileCopyrightText: 2015 The CyanogenMod Project
SPDX-License-Identifier: Apache-2.0
-->
<ImageView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:scaleType="fitXY"
android:src="@drawable/divider" />
<ImageView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:scaleType="fitXY"
android:src="@drawable/divider" />

View File

@@ -0,0 +1,49 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
SPDX-FileCopyrightText: 2016 The CyanogenMod Project
SPDX-FileCopyrightText: 2017-2024 The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<android.widget.FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/root"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
app:insetForeground="@android:color/transparent">
<ImageView
android:id="@+id/background"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/background"
android:visibility="visible"/>
<LinearLayout
android:id="@+id/linear_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
style="@style/SudContentFrame">
<ImageView
android:id="@+id/brand_logo"
android:layout_width="match_parent"
android:layout_height="0px"
android:layout_weight="1"
android:src="@drawable/logo"
android:adjustViewBounds="true"
android:scaleType="fitCenter"
android:gravity="center"
android:padding="@dimen/content_margin_left"/>
<org.lineageos.setupwizard.NavigationLayout
android:id="@+id/navigation_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</LinearLayout>
</android.widget.FrameLayout>

View File

@@ -1,29 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2015 The CyanogenMod Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/header"
android:layout_width="match_parent"
android:layout_height="@dimen/header_height"
android:background="@color/header_bg"
style="@style/Header">
<TextView
android:layout_width="match_parent"
android:layout_height="@dimen/page_title_height"
style="@style/PageTitle" />
</RelativeLayout>

View File

@@ -1,29 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2015 The CyanogenMod Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/header"
android:layout_width="match_parent"
android:layout_height="@dimen/header_condensed_height"
android:background="@color/header_condensed_bg"
style="@style/Header">
<TextView
android:layout_width="match_parent"
android:layout_height="@dimen/page_title_height"
style="@style/PageTitle" />
</RelativeLayout>

View File

@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
SPDX-FileCopyrightText: 2015 The CyanogenMod Project
SPDX-FileCopyrightText: 2017-2022 The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<com.google.android.setupdesign.GlifLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/setup_wizard_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
style="@style/SudContentFrame">
<View
android:id="@+id/page"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1" />
<org.lineageos.setupwizard.NavigationLayout
android:id="@+id/navigation_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:showSkipButton="true" />
</LinearLayout>
</com.google.android.setupdesign.GlifLayout>

View File

@@ -1,42 +1,33 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
**
** Copyright 2008, The Android Open Source Project
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and
** limitations under the License.
*/
SPDX-FileCopyrightText: 2008 The Android Open Source Project
SPDX-License-Identifier: Apache-2.0
-->
<merge xmlns:android="http://schemas.android.com/apk/res/android">
<ImageButton android:id="@+id/increment"
<ImageButton
android:id="@+id/lp__increment"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:paddingTop="22dip"
android:paddingBottom="22dip"/>
android:paddingBottom="22dip" />
<EditText
android:id="@+id/numberpicker_input"
<view
class="org.lineageos.setupwizard.widget.LocalePicker$CustomEditText"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textColor="?android:attr/textColorPrimary"
android:id="@+id/localepicker_input"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMediumInverse"
android:gravity="center"
android:singleLine="true" />
android:singleLine="true"
android:background="@null" />
<ImageButton android:id="@+id/decrement"
<ImageButton
android:id="@+id/lp__decrement"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:paddingTop="22dip"
android:paddingBottom="22dip"/>
android:paddingBottom="22dip" />
</merge>

View File

@@ -1,33 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2013 The CyanogenMod Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
SPDX-FileCopyrightText: 2013 The CyanogenMod Project
SPDX-License-Identifier: Apache-2.0
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:gravity="left"
android:paddingStart="16dp"
android:paddingTop="6dp"
android:paddingBottom="6dp"
android:paddingEnd="16dp">
android:orientation="horizontal"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:gravity="left"
android:paddingStart="16dp"
android:paddingTop="6dp"
android:paddingBottom="6dp"
android:paddingEnd="16dp">
<TextView
android:id="@+id/locale"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="left"
android:textAppearance="?android:attr/textAppearanceMedium"/>
android:textAppearance="?android:attr/textAppearanceMedium" />
</LinearLayout>

View File

@@ -1,193 +1,100 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2013 The CyanogenMod Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
SPDX-FileCopyrightText: 2013 The CyanogenMod Project
SPDX-FileCopyrightText: 2017-2024 The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.google.android.setupdesign.GlifLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/setup_wizard_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">
<include layout="@layout/header_condensed" />
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
style="@style/SudContentFrame">
<FrameLayout android:id="@+id/page"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1">
<FrameLayout
android:id="@+id/page"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1">
<ScrollView android:layout_width="match_parent"
android:layout_height="match_parent"
android:fillViewport="true">
<LinearLayout
android:orientation="vertical"
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
style="@style/PageContent">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="15sp"
android:layout_marginBottom="@dimen/summary_margin_bottom"
android:paddingLeft="@dimen/content_margin_left"
android:paddingRight="@dimen/content_margin_right"
style="@style/PageSummaryText" />
android:fillViewport="true">
<LinearLayout
android:id="@+id/backup"
android:orientation="horizontal"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingLeft="@dimen/location_margin_left"
android:paddingRight="@dimen/content_margin_right"
android:background="?android:attr/selectableItemBackground"
android:clickable="true">
android:layout_height="match_parent">
<CheckBox
android:id="@+id/backup_checkbox"
android:layout_width="wrap_content"
<LinearLayout
android:id="@+id/location"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="top"
android:layout_marginTop="5dp"
android:duplicateParentState="true"
android:clickable="false" />
android:paddingLeft="@dimen/location_margin_left"
android:paddingRight="@dimen/content_margin_right"
android:background="?android:attr/selectableItemBackground"
android:clickable="true">
<TextView
android:id="@+id/backup_summary"
android:layout_width="0px"
<CheckBox
android:id="@+id/location_checkbox"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:duplicateParentState="true"
android:clickable="false"
style="@style/SudCheckBox.Multiline" />
<TextView
android:id="@+id/location_summary"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/location_access_summary"
style="@style/SudCheckBox.Multiline" />
</LinearLayout>
<LinearLayout
android:id="@+id/location_agps"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:textSize="15sp"
android:lineSpacingExtra="@dimen/setup_line_spacing"
android:gravity="top"
android:layout_marginLeft="@dimen/location_text_margin_left"
android:layout_marginRight="@dimen/location_text_margin_right"
android:paddingBottom="@dimen/content_margin_bottom"
android:text="@string/backup_data_summary"
android:maxLines="5" />
android:paddingLeft="@dimen/location_margin_left"
android:paddingRight="@dimen/content_margin_right"
android:background="?android:attr/selectableItemBackground"
android:clickable="true">
<CheckBox
android:id="@+id/location_agps_checkbox"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:duplicateParentState="true"
android:clickable="false"
android:checked="true"
style="@style/SudCheckBox.Multiline" />
<TextView
android:id="@+id/location_agps_summary"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/location_agps_access_summary"
style="@style/SudCheckBox.Multiline" />
</LinearLayout>
</LinearLayout>
</ScrollView>
</FrameLayout>
<LinearLayout
android:id="@+id/location"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingLeft="@dimen/location_margin_left"
android:paddingRight="@dimen/content_margin_right"
android:background="?android:attr/selectableItemBackground"
android:clickable="true">
<org.lineageos.setupwizard.NavigationLayout
android:id="@+id/navigation_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<CheckBox
android:id="@+id/location_checkbox"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="top"
android:layout_marginTop="5dp"
android:duplicateParentState="true"
android:clickable="false" />
<TextView
android:id="@+id/location_summary"
android:layout_width="0px"
android:layout_height="wrap_content"
android:layout_weight="1"
android:textSize="15sp"
android:lineSpacingExtra="@dimen/setup_line_spacing"
android:gravity="top"
android:layout_marginLeft="@dimen/location_text_margin_left"
android:layout_marginRight="@dimen/location_text_margin_right"
android:paddingBottom="@dimen/content_margin_bottom"
android:text="@string/location_access_summary"
android:maxLines="5" />
</LinearLayout>
<LinearLayout
android:id="@+id/gps"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingLeft="@dimen/location_margin_left"
android:paddingRight="@dimen/content_margin_right"
android:background="?android:attr/selectableItemBackground"
android:clickable="true">
<CheckBox
android:id="@+id/gps_checkbox"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="top"
android:layout_marginTop="5dp"
android:duplicateParentState="true"
android:clickable="false" />
<TextView
android:id="@+id/gps_summary"
android:layout_width="0px"
android:layout_height="wrap_content"
android:layout_weight="1"
android:textSize="15sp"
android:lineSpacingExtra="@dimen/setup_line_spacing"
android:gravity="top"
android:layout_marginLeft="@dimen/location_text_margin_left"
android:layout_marginRight="@dimen/location_text_margin_right"
android:paddingBottom="@dimen/content_margin_bottom"
android:text="@string/location_gps"
android:maxLines="5" />
</LinearLayout>
<LinearLayout
android:id="@+id/network"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingLeft="@dimen/location_margin_left"
android:paddingRight="@dimen/content_margin_right"
android:background="?android:attr/selectableItemBackground"
android:clickable="true">
<CheckBox
android:id="@+id/network_checkbox"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="top"
android:layout_marginTop="5dp"
android:duplicateParentState="true"
android:clickable="false" />
<TextView
android:id="@+id/network_summary"
android:layout_width="0px"
android:layout_height="wrap_content"
android:layout_weight="1"
android:textSize="15sp"
android:lineSpacingExtra="@dimen/setup_line_spacing"
android:gravity="top"
android:layout_marginLeft="@dimen/location_text_margin_left"
android:layout_marginRight="@dimen/location_text_margin_right"
android:paddingBottom="@dimen/content_margin_bottom"
android:text="@string/location_network"
android:maxLines="5" />
</LinearLayout>
</LinearLayout>
</ScrollView>
</FrameLayout>
</LinearLayout>
</LinearLayout>
</com.google.android.setupdesign.GlifLayout>

View File

@@ -1,48 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2015 The CyanogenMod Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/header"
android:layout_width="match_parent"
android:layout_height="@dimen/logo_header_height"
android:background="@color/primary"
style="@style/Header">
<ImageView
android:id="@+id/brand_logo"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/brand"
android:paddingLeft="@dimen/header_logo_margin_left"
android:paddingBottom="@dimen/header_logo_margin_bottom"
android:layout_above="@+id/powered_by_logo"/>
<ImageView
android:id="@+id/powered_by_logo"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/powered_by"
android:visibility="gone"
android:paddingLeft="@dimen/header_logo_margin_left"
android:paddingBottom="@dimen/header_logo_margin_bottom"
android:layout_above="@android:id/title"/>
<TextView
android:layout_width="match_parent"
android:layout_height="@dimen/page_title_height"
style="@style/PageTitle" />
</RelativeLayout>

View File

@@ -1,96 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2013 The CyanogenMod Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<include layout="@layout/header" />
<FrameLayout android:id="@+id/page"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1">
<ScrollView android:layout_width="match_parent"
android:layout_height="match_parent"
android:fillViewport="true">
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content"
style="@style/PageContent">
<TextView
android:id="@+id/mobile_data_summary"
android:layout_width="match_parent"
android:layout_height="wrap_content"
style="@style/PageSummaryText"
android:textSize="15sp"
android:paddingLeft="@dimen/content_margin_left"
android:paddingRight="@dimen/content_margin_right"
android:paddingBottom="@dimen/summary_margin_bottom"
android:text="@string/enable_mobile_data_summary" />
<include layout="@layout/divider" />
<LinearLayout
android:id="@+id/data"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="?android:attr/listPreferredItemHeight"
android:gravity="center_vertical"
android:paddingLeft="@dimen/content_margin_left"
android:paddingRight="@dimen/data_switch_margin_right"
android:background="?android:attr/selectableItemBackground"
android:clickable="true">
<ImageView
android:id="@+id/signal"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_signal_0" />
<TextView
android:id="@+id/enable_data_title"
android:layout_width="0px"
android:layout_height="wrap_content"
android:layout_weight="1"
android:textSize="14sp"
android:layout_marginLeft="@dimen/carrier_text_margin_left"
android:text="@string/setup_mobile_data_no_service"
android:maxLines="4" />
<Switch
android:id="@+id/data_switch"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:gravity="center_vertical"
android:duplicateParentState="true"
android:clickable="false"
android:textOff="@string/no"
android:textOn="@string/yes"/>
</LinearLayout>
<include layout="@layout/divider" />
</LinearLayout>
</ScrollView>
</FrameLayout>
</LinearLayout>

View File

@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
SPDX-FileCopyrightText: 2021-2024 The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<Button
android:id="@+id/navbar_skip"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
android:text="@string/skip"
android:visibility="gone"
style="@style/SudGlifButton.Secondary" />
<Button
android:id="@+id/navbar_next"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:text="@string/next"
style="@style/SudGlifButton.Primary" />
</RelativeLayout>

View File

@@ -1,198 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2015 The CyanogenMod Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<include layout="@layout/header_condensed" />
<FrameLayout android:id="@+id/page"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1">
<ScrollView android:layout_width="match_parent"
android:layout_height="match_parent"
android:fillViewport="true">
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
style="@style/PageContent">
<!-- The caption about privacy policy -->
<TextView
android:id="@+id/privacy_policy"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="15sp"
android:layout_marginBottom="@dimen/summary_margin_bottom"
android:paddingLeft="@dimen/content_margin_left"
android:paddingRight="@dimen/content_margin_right"
style="@style/PageSummaryText"
android:text="@string/services_explanation"
android:clickable="true"/>
<!-- Whether or not to enable metrics -->
<LinearLayout
android:id="@+id/metrics"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingLeft="@dimen/location_margin_left"
android:paddingRight="@dimen/content_margin_right"
android:background="?android:attr/selectableItemBackground"
android:clickable="true">
<CheckBox
android:id="@+id/enable_metrics_checkbox"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="top"
android:layout_marginTop="5dp"
android:duplicateParentState="true"
android:clickable="false"/>
<TextView
android:id="@+id/enable_metrics_summary"
android:layout_width="0px"
android:layout_height="wrap_content"
android:layout_weight="1"
android:textSize="15sp"
android:lineSpacingExtra="@dimen/setup_line_spacing"
android:gravity="top"
android:layout_marginLeft="@dimen/location_text_margin_left"
android:layout_marginRight="@dimen/location_text_margin_right"
android:paddingBottom="@dimen/content_margin_bottom"
android:text="@string/services_metrics_label"/>
</LinearLayout>
<!-- Whether or not to enable default theme -->
<LinearLayout
android:id="@+id/theme"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingLeft="@dimen/location_margin_left"
android:paddingRight="@dimen/content_margin_right"
android:background="?android:attr/selectableItemBackground"
android:clickable="true">
<CheckBox
android:id="@+id/enable_theme_checkbox"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="top"
android:layout_marginTop="5dp"
android:duplicateParentState="true"
android:clickable="false"/>
<TextView
android:id="@+id/enable_theme_summary"
android:layout_width="0px"
android:layout_height="wrap_content"
android:layout_weight="1"
android:textSize="15sp"
android:lineSpacingExtra="@dimen/setup_line_spacing"
android:gravity="top"
android:layout_marginLeft="@dimen/location_text_margin_left"
android:layout_marginRight="@dimen/location_text_margin_right"
android:paddingBottom="@dimen/content_margin_bottom"
android:text="@string/services_metrics_label"/>
</LinearLayout>
<!-- Checkbox for using on-screen nav keys -->
<LinearLayout
android:id="@+id/nav_keys"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingLeft="@dimen/location_margin_left"
android:paddingRight="@dimen/content_margin_right"
android:background="?android:attr/selectableItemBackground"
android:clickable="true">
<CheckBox
android:id="@+id/nav_keys_checkbox"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="top"
android:layout_marginTop="5dp"
android:duplicateParentState="true"
android:clickable="false" />
<TextView
android:id="@+id/nav_keys_summary"
android:layout_width="0px"
android:layout_height="wrap_content"
android:layout_weight="1"
android:textSize="15sp"
android:lineSpacingExtra="@dimen/setup_line_spacing"
android:gravity="top"
android:layout_marginLeft="@dimen/location_text_margin_left"
android:layout_marginRight="@dimen/location_text_margin_right"
android:paddingBottom="@dimen/content_margin_bottom"
android:text="@string/services_os_nav_keys_label"/>
</LinearLayout>
<!-- Checkbox for enabling secure SMS -->
<LinearLayout
android:id="@+id/secure_sms"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingLeft="@dimen/location_margin_left"
android:paddingRight="@dimen/content_margin_right"
android:background="?android:attr/selectableItemBackground"
android:clickable="true">
<CheckBox
android:id="@+id/secure_sms_checkbox"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="top"
android:layout_marginTop="5dp"
android:duplicateParentState="true"
android:clickable="false" />
<TextView
android:id="@+id/secure_sms_summary"
android:layout_width="0px"
android:layout_height="wrap_content"
android:layout_weight="1"
android:textSize="15sp"
android:lineSpacingExtra="@dimen/setup_line_spacing"
android:gravity="top"
android:layout_marginLeft="@dimen/location_text_margin_left"
android:layout_marginRight="@dimen/location_text_margin_right"
android:paddingBottom="@dimen/content_margin_bottom"
android:text="@string/services_secure_sms_label"/>
</LinearLayout>
</LinearLayout>
</ScrollView>
</FrameLayout>
</LinearLayout>

Some files were not shown because too many files have changed in this diff Show More