Commit Graph

392 Commits

Author SHA1 Message Date
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