salvogiangri / KnoxPatch

LSPosed module to get Samsung apps/features working again in your rooted Galaxy device.
GNU General Public License v3.0
818 stars 34 forks source link

[ISSUE] Can't Use Enhanced Data Protection - Root detected | Other function works #76

Closed otonieru closed 1 week ago

otonieru commented 1 week ago

Device name:

Galaxy Z Fold 4

Device model number:

SM-F936B

OS version:

Android 14 (OneUI 6.1.1)

Software info:

SAOMC_SM-F936B_OLE_XID_14_0004 XID/XID,XID/XID

Magisk/KernelSU version:

v28 (28001) Alpha

Hook framework app:

Lsposed 1.10.1 JingMatrix Fork

KnoxPatch version:

v0.7.2 (Enhancer v0.4)

Steps to reproduce:

  1. Open Setting
  2. Open Security & Privacy
  3. Open More Security Settings
  4. Open Enhanced Data Protection
  5. Bottom sheet dialog will tell Can't Use Enhanced Data Protection due to rooted device

Expected behaviour:

Can use Enhanced Data Protection

Actual behaviour:

Root detected, setting said "Can't Use Enhanced Data Protection"

Logs:

----part 2 start---- [ 2024-10-26T23:11:41.427 10120: 23583: 23583 I/LSPosed-Bridge ] Loading legacy module io.mesalabs.knoxpatch from /data/app/~~_VDzdzLKAwWkDNLfrqhPaA==/io.mesalabs.knoxpatch-2YzPMCEMR5UM_8-M9vEP9A==/base.apk [ 2024-10-26T23:11:41.436 10120: 23583: 23583 I/LSPosed-Bridge ] Loading class io.mesalabs.knoxpatch.MainHook_YukiHookXposedInit [ 2024-10-26T23:11:41.570 10120: 23583: 23583 I/LSPosed-Bridge ] [KnoxPatch][D][com.osp.app.signin] SamsungKeystoreHooks: onHook: loaded. [ 2024-10-26T23:11:43.741 5026: 23689: 23689 I/LSPosed-Bridge ] Loading legacy module io.mesalabs.knoxpatch from /data/app/~~_VDzdzLKAwWkDNLfrqhPaA==/io.mesalabs.knoxpatch-2YzPMCEMR5UM_8-M9vEP9A==/base.apk [ 2024-10-26T23:11:43.746 5026: 23689: 23689 I/LSPosed-Bridge ] Loading class io.mesalabs.knoxpatch.MainHook_YukiHookXposedInit [ 2024-10-26T23:11:43.885 5026: 23689: 23689 I/LSPosed-Bridge ] [KnoxPatch][D][com.samsung.android.app.sharelive] SamsungKeystoreHooks: onHook: loaded. [ 2024-10-26T23:11:47.762 10213: 23931: 23931 I/LSPosed-Bridge ] Loading legacy module io.mesalabs.knoxpatch from /data/app/~~_VDzdzLKAwWkDNLfrqhPaA==/io.mesalabs.knoxpatch-2YzPMCEMR5UM_8-M9vEP9A==/base.apk [ 2024-10-26T23:11:47.766 10213: 23931: 23931 I/LSPosed-Bridge ] Loading class io.mesalabs.knoxpatch.MainHook_YukiHookXposedInit [ 2024-10-26T23:11:47.829 10213: 23931: 23931 I/LSPosed-Bridge ] [KnoxPatch][D][com.samsung.android.rampart] PropSpoofHooks: onHook: loaded. [ 2024-10-26T23:11:47.836 10213: 23931: 23931 I/LSPosed-Bridge ] [KnoxPatch][E][com.samsung.android.rampart] An exception occurred in PackageParam(v9@22711f7) by [type] PACKAGE [packageName] com.samsung.android.rampart [processName] com.samsung.android.rampart [appClassLoader] dalvik.system.PathClassLoader[DexPathList[[zip file "/system/app/Rampart/Rampart.apk"],nativeLibraryDirectories=[/system/app/Rampart/lib/arm64, /system/app/Rampart/Rampart.apk!/lib/arm64-v8a, /system/lib64, /system_ext/lib64, /system/lib64, /system_ext/lib64]]] [appInfo] ApplicationInfo{18b28b8 com.samsung.android.rampart} [appResources] null [ 2024-10-26T23:11:47.836 10213: 23931: 23931 E/LSPosed-Bridge ] java.lang.NoClassDefFoundError: Can't find this Class in [dalvik.system.PathClassLoader[DexPathList[[zip file "/system/app/Rampart/Rampart.apk"],nativeLibraryDirectories=[/system/app/Rampart/lib/arm64, /system/app/Rampart/Rampart.apk!/lib/arm64-v8a, /system/lib64, /system_ext/lib64, /system/lib64, /system_ext/lib64]]]]: -> name:[java.lang.Properties] Generated by YukiHookAPI#ReflectionTool at Fi.m(Unknown Source:185) at Fi.u(Unknown Source:128) at Ub.d(Unknown Source:5) at v9.f(Unknown Source:935) at Ei.e(Unknown Source:4) at Ub.c(Unknown Source:151) at F5.b(Unknown Source:945) at na.a(Unknown Source:366) at io.mesalabs.knoxpatch.MainHook_YukiHookXposedInit.handleLoadPackage(Unknown Source:10) at uyBPJfuKbBxb.vec.cmR.f.IXposedHookLoadPackage$Wrapper.handleLoadPackage(Unknown Source:2) at uyBPJfuKbBxb.vec.cmR.f.callbacks.XCLoadPackage.call(Unknown Source:6) at uyBPJfuKbBxb.vec.cmR.f.callbacks.XCallback.callAll(Unknown Source:26) at C0.b(Unknown Source:285) at java.lang.reflect.Method.invoke(Native Method) at org.lsposed.lspd.impl.LSPosedBridge$NativeHooker.callback(Unknown Source:240) at LSPHooker.createOrUpdateClassLoaderLocked(Unknown Source:11) at android.app.LoadedApk.getClassLoader(LoadedApk.java:1143) at android.app.LoadedApk.getResources(LoadedApk.java:1463) at android.app.ContextImpl.createAppContext(ContextImpl.java:3487) at android.app.ContextImpl.createAppContext(ContextImpl.java:3479) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7702) at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2486) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loopOnce(Looper.java:230) at android.os.Looper.loop(Looper.java:319) at android.app.ActivityThread.main(ActivityThread.java:9063) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:588) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103) [ 2024-10-26T23:11:54.159 10093: 24157: 24157 I/LSPosed-Bridge ] Loading legacy module io.mesalabs.knoxpatch from /data/app/~~_VDzdzLKAwWkDNLfrqhPaA==/io.mesalabs.knoxpatch-2YzPMCEMR5UM_8-M9vEP9A==/base.apk [ 2024-10-26T23:11:54.164 10093: 24157: 24157 I/LSPosed-Bridge ] Loading class io.mesalabs.knoxpatch.MainHook_YukiHookXposedInit [ 2024-10-26T23:11:54.270 10093: 24157: 24157 I/LSPosed-Bridge ] [KnoxPatch][D][com.samsung.android.kmxservice] SamsungKeystoreHooks: onHook: loaded. [ 2024-10-26T23:11:54.295 10093: 24157: 24157 I/LSPosed-Bridge ] [KnoxPatch][D][com.samsung.android.kmxservice] KnoxMatrixHooks: onHook: loaded. [ 2024-10-26T23:12:50.522 1000: 2474: 7040 I/LSPosed-Bridge ] [ INFO] 10-26 23:12:50 (PmsHookTarget33) @shouldFilterApplication: query from io.github.vvb2060.mahoshojo [ 2024-10-26T23:12:50.524 1000: 2474: 7040 I/LSPosed-Bridge ] [ INFO] 10-26 23:12:50 (PmsHookTarget33) @shouldFilterApplication: query from id.dana [ 2024-10-26T23:12:50.527 1000: 2474: 7040 I/LSPosed-Bridge ] [ INFO] 10-26 23:12:50 (PmsHookTarget33) @shouldFilterApplication: query from com.samsung.android.voc

salvogiangri commented 1 week ago

I need the copy of your LSPosed logs zip, the logs you provided aren't relevant to the issue.

otonieru commented 1 week ago

I sent it through email reply, really not sure how to attach .zip in mobile view. It only allow me to put media.

TIA

salvogiangri commented 1 week ago

I didn't see any attachment in my mail, without the logs zip I can't see why the issue happens so I can't help you until you provide it.

otonieru commented 1 week ago

LSPosed_2024-10-26T23_12_43.231923.zip

This bl**dy github really make it hard just to upload files from mobile, the attach button doesn't give option to select file that is not a media. Need third party file explorer to finally able to do so.

Sorry for rant, i hope it uploaded properly above

salvogiangri commented 1 week ago

Please test this build app-sepBasic-release.zip

otonieru commented 1 week ago

Please test this build app-sepBasic-release.zip

It works right away. ✨👌🏻

salvogiangri commented 1 week ago

v0.7.3 with the fix in place has been released. Thanks for reporting and testing!