InstallerFragment: Remove native and aurora services from choices

* Both are deprecated and shouldn't be promoted to users

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
Aayush Gupta
2023-10-24 18:27:20 +05:30
parent 645177bfa7
commit 08b418aea7
2 changed files with 1 additions and 26 deletions

View File

@@ -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",

View File

@@ -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,