mirror of
https://github.com/bitwarden/android.git
synced 2024-11-25 10:56:03 +03:00
Add BitwardenLegacyAppComponents for legacy app component names (#3922)
This commit is contained in:
parent
759e926588
commit
368ca49fd6
3 changed files with 34 additions and 18 deletions
|
@ -13,15 +13,6 @@ import com.x8bit.bitwarden.data.tiles.BitwardenAutofillTileService
|
||||||
import com.x8bit.bitwarden.data.tiles.BitwardenGeneratorTileService
|
import com.x8bit.bitwarden.data.tiles.BitwardenGeneratorTileService
|
||||||
import com.x8bit.bitwarden.data.tiles.BitwardenVaultTileService
|
import com.x8bit.bitwarden.data.tiles.BitwardenVaultTileService
|
||||||
|
|
||||||
private const val LEGACY_ACCESSIBILITY_SERVICE_NAME =
|
|
||||||
"com.x8bit.bitwarden.Accessibility.AccessibilityService"
|
|
||||||
private const val LEGACY_AUTOFILL_SERVICE_NAME = "com.x8bit.bitwarden.Autofill.AutofillService"
|
|
||||||
private const val LEGACY_CREDENTIAL_SERVICE_NAME =
|
|
||||||
"com.x8bit.bitwarden.Autofill.CredentialProviderService"
|
|
||||||
private const val LEGACY_AUTOFILL_TILE_SERVICE_NAME = "com.x8bit.bitwarden.AutofillTileService"
|
|
||||||
private const val LEGACY_VAULT_TILE_SERVICE_NAME = "com.x8bit.bitwarden.MyVaultTileService"
|
|
||||||
private const val LEGACY_GENERATOR_TILE_SERVICE_NAME = "com.x8bit.bitwarden.GeneratorTileService"
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A factory class that allows us to intercept when a manifest element is being instantiated
|
* A factory class that allows us to intercept when a manifest element is being instantiated
|
||||||
* and modify various characteristics before initialization.
|
* and modify various characteristics before initialization.
|
||||||
|
|
|
@ -0,0 +1,33 @@
|
||||||
|
package com.x8bit.bitwarden
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The legacy name for the accessibility service.
|
||||||
|
*/
|
||||||
|
const val LEGACY_ACCESSIBILITY_SERVICE_NAME: String =
|
||||||
|
"com.x8bit.bitwarden.Accessibility.AccessibilityService"
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The legacy name for the autofill service.
|
||||||
|
*/
|
||||||
|
const val LEGACY_AUTOFILL_SERVICE_NAME: String = "com.x8bit.bitwarden.Autofill.AutofillService"
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The legacy name for the accessibility autofill tile service.
|
||||||
|
*/
|
||||||
|
const val LEGACY_AUTOFILL_TILE_SERVICE_NAME: String = "com.x8bit.bitwarden.AutofillTileService"
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The legacy name for the credential service.
|
||||||
|
*/
|
||||||
|
const val LEGACY_CREDENTIAL_SERVICE_NAME: String =
|
||||||
|
"com.x8bit.bitwarden.Autofill.CredentialProviderService"
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The legacy name for the generator tile service.
|
||||||
|
*/
|
||||||
|
const val LEGACY_GENERATOR_TILE_SERVICE_NAME: String = "com.x8bit.bitwarden.GeneratorTileService"
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The legacy name for the vault tile service.
|
||||||
|
*/
|
||||||
|
const val LEGACY_VAULT_TILE_SERVICE_NAME: String = "com.x8bit.bitwarden.MyVaultTileService"
|
|
@ -3,19 +3,11 @@ package com.x8bit.bitwarden.data.autofill.accessibility.manager
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import android.provider.Settings
|
import android.provider.Settings
|
||||||
import androidx.lifecycle.LifecycleCoroutineScope
|
import androidx.lifecycle.LifecycleCoroutineScope
|
||||||
|
import com.x8bit.bitwarden.LEGACY_ACCESSIBILITY_SERVICE_NAME
|
||||||
import com.x8bit.bitwarden.data.platform.manager.AppForegroundManager
|
import com.x8bit.bitwarden.data.platform.manager.AppForegroundManager
|
||||||
import kotlinx.coroutines.flow.launchIn
|
import kotlinx.coroutines.flow.launchIn
|
||||||
import kotlinx.coroutines.flow.onEach
|
import kotlinx.coroutines.flow.onEach
|
||||||
|
|
||||||
/**
|
|
||||||
* The accessibility service name as it is known in the AndroidManifest.
|
|
||||||
*
|
|
||||||
* Note: This is not the name of the actual service but the name defined in the Android Manifest
|
|
||||||
* which matches the service in the Xamarin app.
|
|
||||||
*/
|
|
||||||
private const val LEGACY_ACCESSIBILITY_SERVICE_NAME =
|
|
||||||
"com.x8bit.bitwarden.Accessibility.AccessibilityService"
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The default implementation of the [AccessibilityActivityManager].
|
* The default implementation of the [AccessibilityActivityManager].
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue