-
-
Notifications
You must be signed in to change notification settings - Fork 748
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add installer status dialog #1473
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion for the "invalid" error description
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
String changes in error dialog
app/src/main/java/app/revanced/manager/ui/viewmodel/InstallerViewModel.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/app/revanced/manager/ui/component/InstallerDialog.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/app/revanced/manager/ui/viewmodel/InstallerViewModel.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/app/revanced/manager/ui/component/InstallerDialog.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/app/revanced/manager/ui/component/InstallerDialog.kt
Outdated
Show resolved
Hide resolved
Is this also for when you update the Manager? |
app/src/main/java/app/revanced/manager/ui/viewmodel/InstallerViewModel.kt
Outdated
Show resolved
Hide resolved
No it's only for installing patched apps |
ReVanced Manager Updates will also use this, but this PR focuses on patched apps |
@ Axelen123 Currently, the extra status message is not used, but I don't know which extra status messages exist so that I can implement them. For example, if an existing installation is present, but the patched app mismatches signatures, then the dialogue will say: This flag is returned from installation, and there is no way to differentiate between an APK being invalid, for example, or a signature mismatch. Furthermore, when uninstalling, the dialogue may also be shown. But once again, there is no way to differentiate between installations, uninstallations or the status message, so the dialogue may say that the installation has failed while the uninstallation failed. |
msedge_XcwCJ412Tb.mp4(The recording is cut off at the end, it shows the success dialogue when installation succeeded) |
Not sure why Android says the app is invalid. Android should give you CONFLICT on signature mismatch. What is the content of the
Isn't it possible to make a separate dialog or enum for uninstalls? |
Yes, but ideally we would have the existing Flags enum have variants of the install and uninstall strings. |
Will root install be handled in this? |
app/src/main/java/app/revanced/manager/ui/viewmodel/InstallerViewModel.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/app/revanced/manager/ui/viewmodel/InstallerViewModel.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/app/revanced/manager/ui/viewmodel/InstallerViewModel.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/app/revanced/manager/ui/viewmodel/InstallerViewModel.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/app/revanced/manager/ui/component/InstallerStatusDialog.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/app/revanced/manager/ui/component/InstallerStatusDialog.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/app/revanced/manager/ui/component/InstallerStatusDialog.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/app/revanced/manager/ui/viewmodel/InstallerViewModel.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/app/revanced/manager/ui/viewmodel/InstallerViewModel.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/app/revanced/manager/ui/component/InstallerStatusDialog.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/app/revanced/manager/ui/component/InstallerStatusDialog.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/app/revanced/manager/ui/screen/InstallerScreen.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/app/revanced/manager/ui/viewmodel/InstallerViewModel.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/app/revanced/manager/ui/component/InstallerStatusDialog.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/app/revanced/manager/ui/component/InstallerStatusDialog.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/app/revanced/manager/ui/component/InstallerStatusDialog.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/app/revanced/manager/ui/component/InstallerStatusDialog.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/app/revanced/manager/ui/viewmodel/InstallerViewModel.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/app/revanced/manager/ui/component/InstallerStatusDialog.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/app/revanced/manager/ui/component/InstallerStatusDialog.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/app/revanced/manager/ui/viewmodel/InstallerViewModel.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/app/revanced/manager/ui/viewmodel/InstallerViewModel.kt
Outdated
Show resolved
Hide resolved
4d4d682
to
962e68d
Compare
@Axelen123 I have updated the PR description with up to date information. |
app/src/main/java/app/revanced/manager/ui/viewmodel/PatcherViewModel.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/app/revanced/manager/ui/viewmodel/PatcherViewModel.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/app/revanced/manager/ui/viewmodel/PatcherViewModel.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/app/revanced/manager/ui/viewmodel/PatcherViewModel.kt
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good to me. The PR can be merged after dealing with the final comment.
Not sure, if caused by this PR but I tried patching YT via the asset produced by a workflow run on this PR, and after clicking on install, it mentioned an installation conflict and blocked installation. Saving the APK file was also disabled. ReVanced Manager Flutter did install the patched app |
Looks like I missed that. This PR does introduce a check, but it does not account for patches that change the package name. |
The issue stems from the fact that the dialog uses the input apk, but since we install the output apk, the output should be used |
Co-authored-by: Ax333l <[email protected]>
This PR shows a native dialogue after the installation finishes. It can handle all status flags. Business logic may move.
Todo
Review
Showing a SUCCESS status dialog is wanteduiSafe
has been used correctly (In some places, it seems it should be used but it seems out of scope for this PR)Warning
On installation, the install button is not greyed out, and no progress is visible, so it appears as if nothing happened.