-
Notifications
You must be signed in to change notification settings - Fork 723
Refactor PluginManager: store plugins in private files dir #2253
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
base: master
Are you sure you want to change the base?
Conversation
|
This won't fix the issue mentioned. It still writes on internal storage in two directories which is what the issue mentioned. Also if I remember correctly there was some issue with storing here. As far as I know there is no good way for dex, the read only issue happens if you don't follow the instructions to enable all files access. In the original folder that is an issue regardless but even here under some circumstances and under some conditions (not all the time though) it will still give dex issues. |
|
I will test this more tomorrow, looking at it more and maybe it will work better because I think I tried something a little bit different then this initially which didn't properly work but I'll test this one more. |
|
Always deleting might be bad for performance though, checking certain conditionals before deleting, only deleting if they are truly stale or outdated may be more efficient though I'm not certain. |
Yes that can be done. I am working on it. |
|
Thanks a lot. I'll test this tomorrow. But I think it could probably work a lot better. Thanks for working on this. Local plugjns have proven to be a bit of a challenge due to Android security and dex handling now. |
Luna712
left a comment
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.
This does seem to work for me.
This pull request updates the plugin storage directory to the app's private files directory, ensuring a clean state before loading plugins, and improving error handling when the plugins folder does not exist.
Plugin directory management improvements:
context.filesDir) to avoidSecurityExceptionwhen loading dex files.Error handling and plugin loading logic:
Related Issues