Revert "feat: add warning for GrapheneOS when applicable"

This reverts commit 123b2e601d.
This commit is contained in:
rushiiMachine 2025-01-22 18:36:00 -08:00
parent 137bb41287
commit 5af13c9e05
No known key found for this signature in database
GPG key ID: DCBE5952BB3B6420
2 changed files with 0 additions and 19 deletions

View file

@ -5,7 +5,6 @@
package com.aliucord.manager.ui.screens.patching
import android.os.Build
import android.os.Parcelable
import androidx.activity.compose.BackHandler
import androidx.compose.animation.*
@ -38,7 +37,6 @@ import com.aliucord.manager.ui.screens.patchopts.PatchOptions
import com.aliucord.manager.ui.util.paddings.*
import com.aliucord.manager.ui.util.spacedByLastAtBottom
import com.aliucord.manager.ui.util.thenIf
import com.aliucord.manager.util.isGrapheneOS
import com.aliucord.manager.util.isIgnoringBatteryOptimizations
import kotlinx.collections.immutable.persistentListOf
import kotlinx.coroutines.flow.filter
@ -164,22 +162,6 @@ class PatchingScreen(private val data: PatchOptions) : Screen, Parcelable {
}
}
item(key = "GOS_WARNING") {
// Refer to ManifestPatcher for more information
BannerSection(visible = remember { Build.VERSION.SDK_INT < 29 && isGrapheneOS() }) {
TextBanner(
text = stringResource(R.string.installer_gos_warning),
icon = painterResource(R.drawable.ic_warning),
iconColor = MaterialTheme.customColors.onWarningContainer,
outlineColor = MaterialTheme.customColors.warning,
containerColor = MaterialTheme.customColors.warningContainer,
modifier = Modifier
.padding(bottom = VERTICAL_PADDING)
.fillMaxWidth(),
)
}
}
item(key = "FAILED_BANNER") {
BannerSection(visible = state is PatchingScreenState.Failed) {
val handler = LocalUriHandler.current

View file

@ -89,7 +89,6 @@
<string name="installer_uninstall_aborted">Cancelled uninstallation</string>
<string name="installer_dl_verify_fail">Failed to verify download</string>
<string name="installer_minimization_warning">Since battery optimizations have not been disabled, minimizing this screen may abort the installation process!</string>
<string name="installer_gos_warning">"This device seems to be running GrapheneOS! A workaround will be applied that significantly reduces performance. Using a different ROM will avoid this."</string>
<string name="install_error_unknown">Installer failure (Unknown reason)</string>
<string name="install_error_blocked">Installation was blocked</string>