From 08b418aea7e029fc11d2b74b1ae90f2e97b1b8c2 Mon Sep 17 00:00:00 2001 From: Aayush Gupta Date: Tue, 24 Oct 2023 18:27:20 +0530 Subject: [PATCH] InstallerFragment: Remove native and aurora services from choices * Both are deprecated and shouldn't be promoted to users Signed-off-by: Aayush Gupta --- app/src/main/assets/installers.json | 13 ------------- .../store/view/ui/onboarding/InstallerFragment.kt | 14 +------------- 2 files changed, 1 insertion(+), 26 deletions(-) diff --git a/app/src/main/assets/installers.json b/app/src/main/assets/installers.json index 75c44d9ee..f6074be1f 100755 --- a/app/src/main/assets/installers.json +++ b/app/src/main/assets/installers.json @@ -6,25 +6,12 @@ "description": "Best suited for devices running Android 5.0+", "url": "https://developer.android.com/reference/android/content/pm/PackageInstaller.Session" }, - { - "id": "1", - "title": "Native installer", - "subtitle": "Intent based installer, available on all devices", - "description": "Best suited for devices running below Android 4.4", - "url": "https://developer.android.com/reference/android/content/Intent#setDataAndType" - }, { "id": "2", "title": "Root installer", "subtitle": "Installer for background installations", "description": "Requires root, supports all Android versions." }, - { - "id": "3", - "title": "Aurora Service", - "subtitle": "Installer for background installations", - "description": "Requires Aurora Services to be installed as system app." - }, { "id": "4", "title": "AM Installer", diff --git a/app/src/main/java/com/aurora/store/view/ui/onboarding/InstallerFragment.kt b/app/src/main/java/com/aurora/store/view/ui/onboarding/InstallerFragment.kt index bb64d1661..85e4c2c33 100644 --- a/app/src/main/java/com/aurora/store/view/ui/onboarding/InstallerFragment.kt +++ b/app/src/main/java/com/aurora/store/view/ui/onboarding/InstallerFragment.kt @@ -29,7 +29,6 @@ import com.aurora.extensions.isOAndAbove import com.aurora.extensions.showDialog import com.aurora.store.R import com.aurora.store.data.installer.AppInstaller.Companion.hasAppManager -import com.aurora.store.data.installer.AppInstaller.Companion.hasAuroraService import com.aurora.store.data.installer.AppInstaller.Companion.hasRootAccess import com.aurora.store.data.installer.AppInstaller.Companion.hasShizuku import com.aurora.store.data.installer.AppInstaller.Companion.hasShizukuPerm @@ -143,21 +142,10 @@ class InstallerFragment : BaseFragment(R.layout.fragment_onboarding_installer) { ) } } - 3 -> { - if (hasAuroraService(requireContext())) { - this.installerId = installerId - save(PREFERENCE_INSTALLER_ID, installerId) - } else { - showDialog( - R.string.action_installations, - R.string.installer_service_unavailable - ) - } - } 4 -> { if (hasAppManager(requireContext())) { this.installerId = installerId - save(Preferences.PREFERENCE_INSTALLER_ID, installerId) + save(PREFERENCE_INSTALLER_ID, installerId) } else { showDialog( R.string.action_installations,