JingMatrix / LSPatch

LSPatch: A non-root Xposed framework extending from LSPosed
GNU General Public License v3.0
349 stars 34 forks source link

Dex Modification Modes #19

Closed xihan123 closed 6 days ago

xihan123 commented 2 weeks ago

This pull request introduces a new feature to handle different dex modification modes in the patching process, along with some minor updates and refactoring. The most important changes include adding support for dex modification modes in the Patcher and LSPatch classes, updating the UI to allow users to select the dex modification mode, and adding corresponding string resources.

New Feature: Dex Modification Modes

Updates to LSPatch Class

String Resources

JingMatrix commented 2 weeks ago

Thanks for you work! I think it is better to use a check box, and call it Inject loader dex, with default option off. For description in the manage, I would like to use

For applications with isolated services, such as the render engines of browsers, please turn on option to ensure that they work properly.

Its Chinese translation could be

对那些需要孤立服务进程的应用程序,譬如说浏览器的渲染引擎,请勾选此选项以确保他们正常运行。

For command line description, use

Inject directly the loder dex file into the original application package
xihan123 commented 2 weeks ago

QQ20241111-001305

release.zip

JingMatrix commented 1 week ago

Sorry, I am very busy with my thesis recently. I would like to use a boolean valued variable to indicate the dex injection option in the Java codes, intead of 0 or 1, since there will be no other alternative patching approches under consideration. If you are not available for this modification, I will push changes to your branch in few days (when I find more free time).

Thanks again for you help, I appreciate it!

JingMatrix commented 6 days ago

Congratulations to your contributions, it is merge! Thanks for your patience, I appreciate it!