Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

日志加载patch成功,但是修复失败 #474

Open
shiduan opened this issue Apr 18, 2022 · 1 comment
Open

日志加载patch成功,但是修复失败 #474

shiduan opened this issue Apr 18, 2022 · 1 comment

Comments

@shiduan
Copy link

shiduan commented Apr 18, 2022

日志加载patch成功,但是修复失败
log.txt
,执行方法异常

异常类型:app运行时异常/编译异常

手机型号:如:Nexus 5(如是编译异常,则可以不填)

手机系统版本:如:Android 5.0 (如是编译异常,则可以不填)

Robust版本:如:0.4.99

Gradle版本:如:2.5.3

系统:如:Windows

堆栈/日志:

2022-04-18 18:06:04.524 26494-26561/? I/robust: /storage/emulated/0/robust/patchfalse
2022-04-18 18:06:04.524 26494-26561/? D/robust: patchManipulate list size is 1
2022-04-18 18:06:04.525 26494-26561/? I/robust: start copy

--------- beginning of system

2022-04-18 18:06:04.533 26494-26561/? I/robust: end copy
2022-04-18 18:06:04.536 26494-26561/? E/test.testbust: Dex checksum does not match for dex: /data/user/0/comtest.testbust/cache/robust/patch_temp.jar.Expected: 4216212090, actual: 2464193007
2022-04-18 18:06:04.537 26494-26561/? D/robust: patch patch_info_name:comtest.testbust.PatchesInfoImpl
2022-04-18 18:06:04.538 26494-26561/? D/robust: current path:comtest.testbust.MainActivity
2022-04-18 18:06:04.538 26494-26561/? D/robust: oldClass :class comtest.testbust.MainActivity fields 1
2022-04-18 18:06:04.538 26494-26561/? D/robust: current path:comtest.testbust.MainActivity find:ChangeQuickRedirect comtest.testbust.MainActivityPatchControl
2022-04-18 18:06:04.539 26494-26561/? D/robust: changeQuickRedirectField set success comtest.testbust.MainActivityPatchControl
2022-04-18 18:06:04.539 26494-26561/? D/robust: patch finished
2022-04-18 18:06:04.539 26494-26561/? D/RobustCallBack: onPatchApplied result: true
2022-04-18 18:06:04.539 26494-26561/? D/RobustCallBack: onPatchApplied patch: common
2022-04-18 18:06:04.539 26494-26561/? D/robust: patch LocalPath:/storage/emulated/0/robust/patch.jar,apply result true
2022-04-18 18:06:07.940 26494-26494/? W/System.err: java.lang.NoSuchMethodError: No direct method q()V in class Lcomtest.testbust/MainActivityPatch; or its super classes (declaration of 'comtest.testbust.MainActivityPatch' appears in /data/user/0/comtest.testbust/cache/robust/patch_temp.jar)
2022-04-18 18:06:07.941 26494-26494/? W/System.err: at comtest.testbust.MainActivityPatch.RobustPublictest(Unknown Source:0)
2022-04-18 18:06:07.941 26494-26494/? W/System.err: at comtest.testbust.MainActivityPatchControl.accessDispatch(Unknown Source:86)
2022-04-18 18:06:07.941 26494-26494/? W/System.err: at com.meituan.robust.PatchProxy.accessDispatch(PatchProxy.java:9)
2022-04-18 18:06:07.941 26494-26494/? W/System.err: at com.meituan.robust.PatchProxy.proxy(PatchProxy.java:4)
2022-04-18 18:06:07.941 26494-26494/? W/System.err: at comtest.testbust.MainActivity.q(Unknown Source:12)
2022-04-18 18:06:07.941 26494-26494/? W/System.err: at comtest.testbust.MainActivity$a.onClick(MainActivity.java:3)
2022-04-18 18:06:09.268 26494-26494/? W/System.err: java.lang.NoSuchMethodError: No direct method q()V in class Lcomtest.testbust/MainActivityPatch; or its super classes (declaration of 'comtest.testbust.MainActivityPatch' appears in /data/user/0/comtest.testbust/cache/robust/patch_temp.jar)
2022-04-18 18:06:09.269 26494-26494/? W/System.err: at comtest.testbust.MainActivityPatch.RobustPublictest(Unknown Source:0)
2022-04-18 18:06:09.269 26494-26494/? W/System.err: at comtest.testbust.MainActivityPatchControl.accessDispatch(Unknown Source:86)
2022-04-18 18:06:09.269 26494-26494/? W/System.err: at com.meituan.robust.PatchProxy.accessDispatch(PatchProxy.java:9)
2022-04-18 18:06:09.269 26494-26494/? W/System.err: at com.meituan.robust.PatchProxy.proxy(PatchProxy.java:4)
2022-04-18 18:06:09.269 26494-26494/? W/System.err: at comtest.testbust.MainActivity.q(Unknown Source:12)
2022-04-18 18:06:09.269 26494-26494/? W/System.err: at comtest.testbust.MainActivity$a.onClick(MainActivity.java:3)
2022-04-18 18:06:10.054 30762-30855/? I/RemoteGuardClient.DWB.ActivityMonitor: topActivities = [comtest.testbust]
2022-04-18 18:06:10.103 30762-30855/? I/RemoteGuardClient.DWB.ActivityMonitor: topActivities = [comtest.testbust]
2022-04-18 18:06:10.118 30762-30855/? I/RemoteGuardClient.DWB.ActivityMonitor: topActivities = [comtest.testbust]
2022-04-18 18:06:10.139 30762-30855/? I/RemoteGuardClient.DWB.ActivityMonitor: topActivities = [comtest.testbust]
2022-04-18 18:06:55.893 30762-30855/? I/RemoteGuardClient.DWB.ActivityMonitor: topActivities = [comtest.testbust]
2022-04-18 18:08:41.330 1757-2061/? V/WindowManager: Changing focus from Window{b455972 u0 comtest.testbust/comtest.testbust.MainActivity} to null,diplayid=0
2022-04-18 18:08:41.333 1757-2061/? I/OplusHansManager: front pkg: com.android.launcher, uid: 10099, prev pkg: comtest.testbust, prev uid: 10546
2022-04-18 18:08:41.333 1757-3635/? I/OplusHansManager: uid=10546, pkg=comtest.testbust enter SM
2022-04-18 18:08:41.333 1757-3635/? I/OplusHansManager: uid=10546, pkg=comtest.testbust R enter()
2022-04-18 18:08:41.337 1757-3910/? D/OplusEapManager: mTargetExitName :comtest.testbust
2022-04-18 18:08:41.337 1757-3910/? V/DCSEX-AppSwitchManager: OnAppSwitchObserver: onAppExit , info = OplusAppExitInfo = { targetName = comtest.testbust hasResumingActivity = true resumingPackageName = com.android.launcher resumingActivityName = com.android.launcher.Launcher resumingWindowMode = 1 isResumingMultiApp = false isResumingFirstStart = false extension = Bundle[{taskId=5, uid=10099}]}
2022-04-18 18:08:41.339 1757-3910/? D/VRR [OPlusFrontAppManager]: OnAppSwitchObserver: onAppExit , info = OplusAppExitInfo = { targetName = comtest.testbust hasResumingActivity = true resumingPackageName = com.android.launcher resumingActivityName = com.android.launcher.Launcher resumingWindowMode = 1 isResumingMultiApp = false isResumingFirstStart = false extension = Bundle[{taskId=5, uid=10099}]}
2022-04-18 18:08:41.339 1757-12760/? D/DCSEX-AppLaunchEventRecorder: onAppSwitch from = comtest.testbust to = com.android.launcher
2022-04-18 18:08:41.339 1757-12760/? D/DCSEX-AppLaunchEventRecorder: recordExitApp = comtest.testbust
2022-04-18 18:08:41.339 1757-2174/? D/VRR [OPlusExternalRefreshRateManager]: setFrontPackageName pkgName: null CurPkgName: comtest.testbust
2022-04-18 18:08:41.344 1757-3910/? I/OplusResourcePreloadManager: resume pkg: com.android.launcher, uid:10099, prev pkg: comtest.testbust, prev uid: 10546
2022-04-18 18:08:41.353 1757-4371/? D/VRR [OPlusRefreshRateService]: setFrameRateTargetControl [ 0.0 , comtest.testbust , false , com.oplus.battery ]
2022-04-18 18:08:41.353 1757-4371/? D/VRR [OPlusExternalRefreshRateManager]: [FRTC] FrameRate : 0 comtest.testbust false com.oplus.battery
2022-04-18 18:08:41.353 1757-2174/? D/VRR [OPlusSurfaceFlingerController]: add frtc FrameRate : 0 comtest.testbust false com.oplus.battery
2022-04-18 18:08:41.353 1296-1387/? I/VRR [FRTC]: setFrameRateTarget with [0, comtest.testbust, 0, com.oplus.battery]
2022-04-18 18:08:41.353 1296-1387/? W/VRR [FRTC]: invalid param { fps 0, proc_name comtest.testbust, strict_mode 0, description com.oplus.battery, rate_status 0, backend Surface, enable at 2022-04-18 18:08:41, disable waiting } for current status.
2022-04-18 18:08:41.703 1757-5604/? V/OplusZoomWindowManagerService: onAnimationFinished: r = ActivityRecord{3e8850b u0 comtest.testbust/.MainActivity t7828}
2022-04-18 18:08:41.730 30762-30903/? I/RemoteGuardClient.DWB.ActivityMonitor: onForegroundActivitiesChanged 26494,10546,foreground false pkg= comtest.testbust
2022-04-18 18:08:41.734 1296-1296/? D/OplusLayer: ~Layer() sequence=427321, name=comtest.testbust/comtest.testbust.MainActivity#0
2022-04-18 18:08:44.120 1757-3560/? D/OplusAppListInterceptManager: shouldFilterTask::packageName = comtest.testbust
2022-04-18 18:09:01.334 1757-3635/? I/OplusHansManager: uid=10546, pkg=comtest.testbust can transition from R to M
2022-04-18 18:09:01.334 1757-3635/? I/OplusHansManager: uid=10546, pkg=comtest.testbust M enter()
2022-04-18 18:09:11.338 1757-3635/? I/OplusHansManager: uid=10546, pkg=comtest.testbust can transition from M to F
2022-04-18 18:09:11.338 1757-3635/? I/OplusHansManager: uid=10546, pkg=comtest.testbust F enter()
2022-04-18 18:09:11.342 1757-3635/? I/OplusHansManager: freeze uid: 10546 comtest.testbust pids: [26494] scene: LcdOn
2022-04-18 18:09:11.346 1757-3638/? I/OplusHansManager: p_BC uid=10546 pkg=comtest.testbust
2022-04-18 18:09:26.951 1757-5881/? D/OplusAppListInterceptManager: shouldFilterTask::packageName = comtest.testbust
2022-04-18 18:09:26.955 1757-3560/? D/OplusAppListInterceptManager: shouldFilterTask::packageName = comtest.testbust
2022-04-18 18:09:27.087 1757-3450/? D/OplusAppListInterceptManager: shouldFilterTask::packageName = comtest.testbust
2022-04-18 18:09:28.819 1757-4137/? D/OplusAppListInterceptManager: shouldFilterTask::packageName = comtest.testbust
2022-04-18 18:09:53.345 1757-5881/? D/OplusAppListInterceptManager: shouldFilterTask::packageName = comtest.testbust
2022-04-18 18:09:55.967 1757-5604/? D/OplusAppListInterceptManager: shouldFilterTask::packageName = comtest.testbust
2022-04-18 18:10:29.425 1757-4268/? D/OplusAppListInterceptManager: shouldFilterTask::packageName = comtest.testbust
2022-04-18 18:10:31.402 1757-2809/? D/OplusAppListInterceptManager: shouldFilterTask::packageName = comtest.testbust

.

@shiduan
Copy link
Author

shiduan commented Apr 19, 2022

com.meituan.robust.patch 目测写给成这个包名可以,之前是写自己的包名,不行。。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant