JingMatrix / LSPatch

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

Modules not loaded in the release version #10

Closed mario6714 closed 1 month ago

mario6714 commented 1 month ago

Steps to reproduce/复现步骤

  1. Open the app Netease

Expected behaviour/预期行为

See the module inside in the app

Actual behaviour/实际行为

wont show the module inside the app

Xposed Module List/Xposed 模块列表

com.raincat.dolby_beta

LSPatch version/LSPatch 版本

7093

Android version/Android 版本

14

Shizuku version/Shizuku 版本

N/A

Version requirement/版本要求

Apk file/Apk 文件

No response

Logs/日志

``` # Replace this line with the log / 将此行用日志替换 ```

logcat.txt

mario6714 commented 1 month ago

About the "debug" version, i use "release" version because is where is the problem

JingMatrix commented 1 month ago

If you don't speak English well, you may upload a video to show the issues. I don't understand clearly what you mean.

mario6714 commented 1 month ago

Easy, i open the app and is like the module don't exists

Like install a clean apk (no modules), like the original apk

mario6714 commented 1 month ago

Why you remove the "bug" part?

LsPatch > apk > local> module for the apk > patch > install> open the app > no module in the app

Correct (using debug version):

imagen

Using "Release", dont show the module:

imagen

mario6714 commented 1 month ago

Here the logcat:

imagen

JingMatrix commented 1 month ago

Did you actually enable the module?

mario6714 commented 1 month ago

Did you actually enable the module?

I cant enable or disable the module because is like i say, is like you install the original apk...

mario6714 commented 1 month ago

The module by default is enable

JingMatrix commented 1 month ago

I meant enable the module from the LSPatch manager.

mario6714 commented 1 month ago

I meant enable the module from the LSPatch manager.

You only can do that inside the app

mario6714 commented 1 month ago

You cant use the module alone

mario6714 commented 1 month ago

Is not like "AllTrans" for example, that you can open the module and configured

mario6714 commented 1 month ago

For use the module "com.raincat.dolby_beta" you need add the module in the apk and inside the apk (netease cloud music) you can use and configure the module

mario6714 commented 1 month ago

imagen for use this you need open from inside the app (netease cloud music), you can configure the options or disable or enable the module

JingMatrix commented 1 month ago

How do you patch the NetEase apk? You should do the patching of the original APK inside the manager and enable modules for the patched APK. I guess that you didn't re-patch the original APK when you switched to the release version.

mario6714 commented 1 month ago

LsPatch > unpatched apk > integrate > module for the apk > patch > install> open the app > no module in the app

mario6714 commented 1 month ago

all the time i use the unpatched when i want update the module or modify the module

mario6714 commented 1 month ago

Here the repo for the module:

https://github.com/luoxingran/dolby_beta

The description is from the original Repo

JingMatrix commented 1 month ago

LsPatch > unpatched apk > local > module for the apk > patch > install> open the app > no module in the app

Then you need to long press the patched APK and enable the module for it.

mario6714 commented 1 month ago

How do you patch the NetEase apk? You should do the patching of the original APK inside the manager and enable modules for the patched APK. I guess that you didn't re-patch the original APK when you switched to the release version.

Ah sorry my mistake, is not the local option, is the integrate option

mario6714 commented 1 month ago

Did you actually enable the module?

Is using the integrate option, not the local option

mario6714 commented 1 month ago

imagen

JingMatrix commented 1 month ago

As a test, try the local option and enable the module using LSPatch.

mario6714 commented 1 month ago

As a test, try the local option and enable the module using LSPatch.

If I remember correctly it is worse, the app no longer opens.

mario6714 commented 1 month ago

i always use "Integrate" option, because in that way i only need the patched apk

mario6714 commented 1 month ago

As a test, try the local option and enable the module using LSPatch.

Already tried but is worse, the app no longer open

JingMatrix commented 1 month ago

Could you please follow my advice? And then enable the module from the context menu of LSPatch

mario6714 commented 1 month ago

Could you please follow my advice? And then enable the module from the context menu of LSPatch

Already tried but is worse, the app no longer open

mario6714 commented 1 month ago

One moment, i am going to try one more time using the local and see what happen one more time

JingMatrix commented 1 month ago

Please show me a video how that happens.

mario6714 commented 1 month ago

imagen

mario6714 commented 1 month ago

https://github.com/user-attachments/assets/b13f9888-0618-4b6a-970f-e6cdb94928e7

mario6714 commented 1 month ago

Please show me a video how that happens.

Done

JingMatrix commented 1 month ago

imagen

So the module is selected each time you open the setting ? App crashed because that no module is enabled.

mario6714 commented 1 month ago

Yes, is enable all the time, but let me show you in video.

But i dont want use the "local" i want use the option i always use for this app "integrate"

mario6714 commented 1 month ago

https://github.com/user-attachments/assets/c25acf4e-e58e-40de-9ac3-a3ab2665b147

mario6714 commented 1 month ago

video_2024-09-15_01-38-37.mp4

New video

mario6714 commented 1 month ago

New logcat:

logcat.txt

JingMatrix commented 1 month ago

Please record the logs when the crash happens.

mario6714 commented 1 month ago

New logcat:

logcat.txt

Here

JingMatrix commented 1 month ago

In case that it is a bug of GitHub Actions, you may try my local build of release version: release_local.zip

mario6714 commented 1 month ago

In case that it is a bug of GitHub Actions, you may try my local build of release version: release_local.zip

Let me try, thx

mario6714 commented 1 month ago

and sorry for the problems and the hour jaja

mario6714 commented 1 month ago

Using the "integrate" option

mario6714 commented 1 month ago

Why you remove the "bug" part?

LsPatch > apk > local> module for the apk > patch > install> open the app > no module in the app

Correct (using debug version):

imagen

Using "Release", dont show the module:

imagen

Nothing, is like this again, like i installed the unpatched apk

JingMatrix commented 1 month ago

Okay, simply keep using the debug version. The debug version basically only enable logs and didn't compress the APK. Without relevant logs, I cannot help this problem.

JingMatrix commented 1 month ago

Use the following command for relevant logs:

adb logcat -s AndroidRuntime LSPatch LSPosed LSPatch-MetaLoader LSPatch-SigBypass LSPosed-Bridge LSPlant LSPosedContext zygisk64 LSPlt Dobby LSPosedService '*:F'

Ensure that you restart the app while recording the log.

mario6714 commented 1 month ago

One moment

mario6714 commented 1 month ago

From the local version that you shared me and the "integration" option:

C:\Users\mario\Downloads\platform-tools-latest-windows\platform-tools>adb logcat -s AndroidRuntime LSPatch LSPosed LSPatch-MetaLoader LSPatch-SigBypass LSPosed-Bridge LSPlant LSPosedContext zygisk64 LSPlt Dobby LSPosedService '*:F' --------- beginning of main 09-15 02:40:35.983 32127 32127 I LSPatch-MetaLoader: Bootstrap loader from embedment 09-15 02:40:36.068 32127 32127 I LSPatch : Use manager: false 09-15 02:40:36.068 32127 32127 I LSPatch : Signature bypass level: 2 09-15 02:40:36.068 32127 32127 I LSPatch : Extract original apk 09-15 02:40:36.972 32127 32127 E LSPatch : createLoadedApk 09-15 02:40:36.972 32127 32127 E LSPatch : java.lang.NoSuchMethodError: No static method a(Ljava/lang/ClassLoader;Ljava/lang/String;)Ljava/lang/Class; in class Le; or its super classes (declaration of 'e' appears in /data/app/~~5eLJoo9vNfzJpj1dKihbzg==/com.netease.cloudmusic-JHApkpyoqfxAZuDCZ-BXwA==/base.apk!classes4.dex) 09-15 02:40:36.972 32127 32127 E LSPatch : at de.robv.android.xposed.XposedHelpers.findClass(SourceFile:3) 09-15 02:40:36.972 32127 32127 E LSPatch : at org.lsposed.lspatch.loader.LSPApplication.createLoadedApkWithContext(LSPApplication.java:147) 09-15 02:40:36.972 32127 32127 E LSPatch : at org.lsposed.lspatch.loader.LSPApplication.onLoad(LSPApplication.java:72) 09-15 02:40:36.972 32127 32127 E LSPatch : at java.lang.Runtime.nativeLoad(Native Method) 09-15 02:40:36.972 32127 32127 E LSPatch : at java.lang.Runtime.load0(Runtime.java:931) 09-15 02:40:36.972 32127 32127 E LSPatch : at java.lang.System.load(System.java:1729) 09-15 02:40:36.972 32127 32127 E LSPatch : at org.lsposed.lspatch.metaloader.LSPAppComponentFactoryStub.a(Unknown Source:395) 09-15 02:40:36.972 32127 32127 E LSPatch : at org.lsposed.lspatch.metaloader.LSPAppComponentFactoryStub.(Unknown Source:22) 09-15 02:40:36.972 32127 32127 E LSPatch : at java.lang.Class.newInstance(Native Method) 09-15 02:40:36.972 32127 32127 E LSPatch : at android.app.LoadedApk.createAppFactory(LoadedApk.java:290) 09-15 02:40:36.972 32127 32127 E LSPatch : at android.app.LoadedApk.createOrUpdateClassLoaderLocked(LoadedApk.java:1056) 09-15 02:40:36.972 32127 32127 E LSPatch : at android.app.LoadedApk.getClassLoader(LoadedApk.java:1143) 09-15 02:40:36.972 32127 32127 E LSPatch : at android.app.LoadedApk.getResources(LoadedApk.java:1463) 09-15 02:40:36.972 32127 32127 E LSPatch : at android.app.ContextImpl.createAppContext(ContextImpl.java:3487) 09-15 02:40:36.972 32127 32127 E LSPatch : at android.app.ContextImpl.createAppContext(ContextImpl.java:3479) 09-15 02:40:36.972 32127 32127 E LSPatch : at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7702) 09-15 02:40:36.972 32127 32127 E LSPatch : at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0) 09-15 02:40:36.972 32127 32127 E LSPatch : at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2486) 09-15 02:40:36.972 32127 32127 E LSPatch : at android.os.Handler.dispatchMessage(Handler.java:106) 09-15 02:40:36.972 32127 32127 E LSPatch : at android.os.Looper.loopOnce(Looper.java:230) 09-15 02:40:36.972 32127 32127 E LSPatch : at android.os.Looper.loop(Looper.java:319) 09-15 02:40:36.972 32127 32127 E LSPatch : at android.app.ActivityThread.main(ActivityThread.java:9063) 09-15 02:40:36.972 32127 32127 E LSPatch : at java.lang.reflect.Method.invoke(Native Method) 09-15 02:40:36.972 32127 32127 E LSPatch : at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:588) 09-15 02:40:36.972 32127 32127 E LSPatch : at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103)

JingMatrix commented 1 month ago

Thanks, that is relevant logs. Will try to fix it soon.