Enhance installation and cleanup processes(#29) #33
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes several changes to improve the functionality and stability of the
LSPatch
application. The most important changes include modifications to the AndroidManifest.xml file, updates to theLSPApplication
andPatcher
classes, and enhancements to theNewPatchScreen
andAppManagePage
user interfaces.Permissions and Providers:
REQUEST_INSTALL_PACKAGES
permission to theAndroidManifest.xml
file.FileProvider
to theAndroidManifest.xml
to support file sharing.Application and Patching Logic:
targetApkFile
property inLSPApplication
to handle APK files.Patcher
class to copy the APK to the external cache directory and assign it totargetApkFile
.User Interface Enhancements:
NewPatchScreen
to include a newInstallDialog2
for handling APK installations with additional uninstall logic.Utils.kt
to check if an APK is fixed by LSP, install APKs, and uninstall APKs by package name.Clean-Up and Utility Functions:
LSPPackageManager
.file_paths.xml
to define paths for file sharing.