Skip to content

Enhance installation and cleanup processes(#29) #33

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

xihan123
Copy link

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 the LSPApplication and Patcher classes, and enhancements to the NewPatchScreen and AppManagePage user interfaces.

Permissions and Providers:

  • Added the REQUEST_INSTALL_PACKAGES permission to the AndroidManifest.xml file.
  • Added a FileProvider to the AndroidManifest.xml to support file sharing.

Application and Patching Logic:

  • Introduced a new targetApkFile property in LSPApplication to handle APK files.
  • Updated the Patcher class to copy the APK to the external cache directory and assign it to targetApkFile.

User Interface Enhancements:

  • Modified NewPatchScreen to include a new InstallDialog2 for handling APK installations with additional uninstall logic.
  • Added functions to Utils.kt to check if an APK is fixed by LSP, install APKs, and uninstall APKs by package name.

Clean-Up and Utility Functions:

  • Added a method to clean the external temporary APK directory in LSPPackageManager.
  • Created a new XML file file_paths.xml to define paths for file sharing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant