Closed xihan123 closed 6 days 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
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!
Congratulations to your contributions, it is merge! Thanks for your patience, I appreciate it!
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
andLSPatch
classes, updating the UI to allow users to select the dex modification mode, and adding corresponding string resources.New Feature: Dex Modification Modes
dexMod
to thePatcher.Options
class and updated thePatcher
methods to handle this parameter (manager/src/main/java/org/lsposed/lspatch/Patcher.kt
). [1] [2]dexModLvStr
to map dex modification levels to user-friendly strings (manager/src/main/java/org/lsposed/lspatch/ui/page/NewPatchScreen.kt
).PatchOptionsBody
composable to include a dropdown for selecting the dex modification mode (manager/src/main/java/org/lsposed/lspatch/ui/page/NewPatchScreen.kt
).dexMod
to theNewPatchViewModel
class and updated the patch submission logic to include this property (manager/src/main/java/org/lsposed/lspatch/ui/viewmodel/NewPatchViewModel.kt
). [1] [2]Updates to
LSPatch
ClassdexMode
to theLSPatch
class and updated the patching logic to handle different dex modes (patch/src/main/java/org/lsposed/patch/LSPatch.java
). [1] [2] [3] [4]String Resources
manager/src/main/res/values/strings.xml
,manager/src/main/res/values-zh-rCN/strings.xml
,manager/src/main/res/values-zh-rTW/strings.xml
). [1] [2] [3]