salvogiangri / KnoxPatch

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

[ISSUE] Enhanced data protection detects modifications #63

Closed ThePedroo closed 6 months ago

ThePedroo commented 6 months ago

Device name:

Galaxy A53 5G on S23 FE ROM

Device model number:

SM-A536E

OS version:

Android 14 (OneUI 6)

Software info:

S23 FE ROM from OST.

Magisk/KernelSU version:

v26.4

Hook framework app:

LSPosed (unsure)

KnoxPatch version:

v06.1 (Enhancer 0.4)

Steps to reproduce:

  1. Open Cloud
  2. Click restore from backup
  3. Select decice with enhanced protection

Expected behaviour:

Not detect that phone has modified software

Actual behaviour:

Blocks restore and detects.

Logs:

01-12 02:57:08.645 1249 1316 W libprocessgroup: SetCgroup::ExecuteForProcess: failed to open /dev/cpuctl/foreground-boost/cgroup.procs: No such file or directory 01-12 02:57:08.653 919 919 I Layer : id=5681 removeFromCurrentState DimTransitionLayer for Surface(name=ActivityRecord{46b108 u0 com.samsung.android.scpm/com.samsung.scpm.pdm.e2ee.view.MainActivity t373})/@0x2e90752#5681 (256) 01-12 02:57:08.653 919 919 I Layer : Layer [ActivityRecord{19e6e51 u0 com.samsung.android.scloud/.bnr.ui.screen.deviceinfo.restore.DashboardRestoreActivity t373}#5661] hidden!! flag(1) 01-12 02:57:08.653 919 919 I Layer : id=5675 removeFromCurrentState Transition Root: ActivityRecord{46b108 u0 com.samsung.android.scpm/com.samsung.scpm.pdm.e2ee.view.MainActivity t373}#5675 (256) 01-12 02:57:08.654 919 919 I Layer : id=5675 removeFromCurrentState Transition Root: ActivityRecord{46b108 u0 com.samsung.android.scpm/com.samsung.scpm.pdm.e2ee.view.MainActivity t373}#5675 (256) 01-12 02:57:08.654 919 919 I Layer : Layer [com.samsung.android.scloud/com.samsung.android.scloud.bnr.ui.screen.deviceinfo.restore.DashboardRestoreActivity$_28197#5663] hidden!! flag(1) 01-12 02:57:08.655 919 919 I SurfaceFlinger: id=5681 Removed DimTransitionLayer for Surface(name=ActivityRecord{46b108 u0 com.samsung.android.scpm/com.samsung.scpm.pdm.e2ee.view.MainActivity t373})/@0x2e90752#5681 (256) 01-12 02:57:08.656 1249 4812 V WindowManager: Relayout Window{c415966 u0 com.samsung.android.scloud/com.samsung.android.scloud.bnr.ui.screen.deviceinfo.restore.DashboardRestoreActivity}: viewVisibility=8 req=1080x2400 d0 01-12 02:57:08.660 1249 4812 V WindowManager: Relayout hash=c415966, pid=28197, syncId=-1: mAttrs={(0,0)(fillxfill) sim={adjust=pan forwardNavigation} layoutInDisplayCutoutMode=shortEdges ty=BASE_APPLICATION wanim=0x10302f2 01-12 02:57:08.660 1249 4812 V WindowManager: fl=81810100 01-12 02:57:08.660 1249 4812 V WindowManager: pfl=12008040 01-12 02:57:08.660 1249 4812 V WindowManager: bhv=DEFAULT 01-12 02:57:08.660 1249 4812 V WindowManager: fitSides= naviIconColor=0} 01-12 02:57:08.662 28197 28197 I ViewRootImpl@3f04fc4[DashboardRestoreActivity]: Relayout returned: old=(0,0,1080,2400) new=(0,0,1080,2400) req=(1080,2400)8 dur=5 res=0x402 s={false 0x0} ch=true seqId=0 01-12 02:57:08.662 28197 28197 I ViewRootImpl@3f04fc4[DashboardRestoreActivity]: stopped(true) old = false 01-12 02:57:08.664 1249 4812 D CompatibilityChangeReporter: Compat change id reported: 271850009; UID 5009; state: DISABLED 01-12 02:57:08.669 28197 28197 I [SC]DashboardRestoreActivity: onSaveInstanceState is called 01-12 02:57:08.669 28197 28197 I [SC]DashboardRestoreActivity: onSaveInstanceState is called 01-12 02:57:08.670 919 919 I Layer : id=5681 Destroyed DimTransitionLayer for Surface(name=ActivityRecord{46b108 u0 com.samsung.android.scpm/com.samsung.scpm.pdm.e2ee.view.MainActivity t373})/@0x2e90752#5681 01-12 02:57:08.687 1249 4812 E WindowManager: win=Window{c415966 u0 com.samsung.android.scloud/com.samsung.android.scloud.bnr.ui.screen.deviceinfo.restore.DashboardRestoreActivity} destroySurfaces: appStopped=true cleanupOnResume=false win.mWindowRemovalAllowed=false win.mRemoveOnExit=false win.mViewVisibility=8 caller=com.android.server.wm.ActivityRecord.destroySurfaces:6862 com.android.server.wm.ActivityRecord.destroySurfaces:6843 com.android.server.wm.ActivityRecord.activityStopped:7510 com.android.server.wm.ActivityClientController.activityStopped:310 android.app.IActivityClientController$Stub.onTransact:702 com.android.server.wm.ActivityClientController.onTransact:175 android.os.Binder.execTransactInternal:1380 01-12 02:57:08.687 1249 4812 I WindowManager: Destroying surface Surface(name=com.samsung.android.scloud/com.samsung.android.scloud.bnr.ui.screen.deviceinfo.restore.DashboardRestoreActivity$_28197)/@0xe0aa35 called by com.android.server.wm.WindowStateAnimator.destroySurface:789 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:472 com.android.server.wm.WindowState.destroySurfaceUnchecked:4092 com.android.server.wm.WindowState.destroySurface:4066 com.android.server.wm.ActivityRecord.destroySurfaces:6862 com.android.server.wm.ActivityRecord.destroySurfaces:6843 com.android.server.wm.ActivityRecord.activityStopped:7510 com.android.server.wm.ActivityClientController.activityStopped:310 01-12 02:57:08.690 1249 1303 D PkgPredictorService-SecIpmManagerServiceImpl: bg information pid:28197 uid:5009 pkgName:com.samsung.android.scloud 01-12 02:57:08.691 3726 7317 D BinderSender: onForegroundActivitiesChanged: pid=28197, uid=5009, foregroundActivities=false 01-12 02:57:08.703 919 919 I Layer : id=5663 removeFromCurrentState com.samsung.android.scloud/com.samsung.android.scloud.bnr.ui.screen.deviceinfo.restore.DashboardRestoreActivity$_28197#5663 (255) 01-12 02:57:08.704 919 919 I SurfaceFlinger: id=5663 Removed com.samsung.android.scloud/com.samsung.android.scloud.bnr.ui.screen.deviceinfo.restore.DashboardRestoreActivity$_28197#5663 (255) 01-12 02:57:08.720 919 919 I Layer : id=5663 Destroyed com.samsung.android.scloud/com.samsung.android.scloud.bnr.ui.screen.deviceinfo.restore.DashboardRestoreActivity$_28197#5663 01-12 02:57:08.822 1249 1535 D MdnieScenarioControlService: packageName : com.samsung.android.scpm className : com.samsung.scpm.pdm.e2ee.view.MainActivity 01-12 02:57:08.823 1249 1535 V MdnieScenarioControlService: setUIMode from UI function(3)

ThePedroo commented 6 months ago

Samsung cloud APK below. com.samsung.android.scloud_5.4.09.20.zip

salvogiangri commented 6 months ago

The logs you sent are not relevant to the issue. Moving this to #64.

ThePedroo commented 6 months ago

I'm sorry. Logcat sends way too much information.