Commit 4af6e434 authored by Matthew Finkel's avatar Matthew Finkel Committed by Pier Angelo Vendrame
Browse files

[android] Disable features and functionality

Bug 33594: Disable data collection by default (Glean)

Bug 34338: Disable the crash reporter

Bug 40014: Neuter Google Advertising ID

Bug 40018: Disable Push service

Bug 40034: Disable PWA onboading

Bug 40072: Disable Tracking Protection

Bug 40061: Do not show "Send to device" in sharing menu

Bug 40109: Reduce requested permissions

Exclude LOCATION and NETWORK_STATE
parent db82edff
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -25,7 +25,7 @@ import mozilla.components.concept.engine.translate.TranslationSupport
 * See [TranslationsState.translationError] for session level errors.
 */
data class TranslationsBrowserState(
    val isTranslationsEnabled: Boolean = true,
    val isTranslationsEnabled: Boolean = false,
    val isEngineSupported: Boolean? = null,
    val offerTranslation: Boolean? = null,
    val supportedLanguages: TranslationSupport? = null,
+4 −0
Original line number Diff line number Diff line
@@ -37,6 +37,8 @@ import mozilla.components.compose.browser.toolbar.ui.TabCounter
import mozilla.components.compose.browser.toolbar.ui.ActionButton as ActionButtonComposable
import mozilla.components.ui.icons.R as iconsR

import mozilla.components.compose.browser.toolbar.concept.NoopAction

/**
 * A container for displaying [Action]s.
 *
@@ -122,6 +124,8 @@ fun ActionContainer(
                        )
                    }
                }

                else -> NoopAction()
            }
        }
    }
+2 −0
Original line number Diff line number Diff line
@@ -189,3 +189,5 @@ sealed class Action {
        val onClick: BrowserToolbarInteraction,
    ) : Action()
}

class NoopAction : Action()
+2 −2
Original line number Diff line number Diff line
@@ -32,7 +32,7 @@ interface AIFeatureBlock {
}

private class InMemoryAIFeatureBlock(initialBlocked: Boolean) : AIFeatureBlock {
    private val _isBlocked = MutableStateFlow(initialBlocked)
    private val _isBlocked = MutableStateFlow(true)
    override val isBlocked: Flow<Boolean> = _isBlocked

    override suspend fun block() {
@@ -40,6 +40,6 @@ private class InMemoryAIFeatureBlock(initialBlocked: Boolean) : AIFeatureBlock {
    }

    override suspend fun unblock() {
        _isBlocked.value = false
        _isBlocked.value = true
    }
}
+1 −1
Original line number Diff line number Diff line
@@ -180,7 +180,7 @@ class SettingsTest {
            cookieBannerHandlingDetectOnlyMode = true,
            cookieBannerHandlingGlobalRules = true,
            cookieBannerHandlingGlobalRulesSubFrames = true,
            emailTrackerBlockingPrivateBrowsing = true,
            emailTrackerBlockingPrivateBrowsing = false,
        )

        assertFalse(defaultSettings.domStorageEnabled)
Loading