最新消息:20210917 已从crifan.com换到crifan.org

【未解决】Android Studio去红米Note8Pro中调试rcsjta的core的apk

Android crifan 366浏览 0评论
折腾:
【未解决】安卓项目rcsjta的core运行报错:Perf Fail to get file list com.gsma.rcs getFolderSize Exception_1 java.lang.NullPointerException: Attempt to get length of null array
期间,从这里:
android – getting nullpointerexception for no specific reason – 漫漫字节|漫漫编程
收到启发,想办法去看看,除了原先安卓手机 小米9 之外,此处的另外一款手机:红米Nonte8Pro,去调试看看,是否有同样问题
 adb devices
List of devices attached
hmucaei75ptk7szs    device
设备连上了。
Android Studio也识别了。
去调试看看
首次调试会弹框
USB安装提示
正在通过此USB安装此应用,是否继续
点击 继续安装
调试期间,会弹框显示:
Waiting For Debugger
Application RCS services (process com.gsma.rcs) is waiting for the debugger to attach
Force Close
相关log如下:
2020-08-06 10:04:40.901 7575-7575/? W/main: type=1400 audit(0.0:2579953): avc: denied { dac_read_search } for capability=2 scontext=u:r:zygote:s0 tcontext=u:r:zygote:s0 tclass=capability permissive=0
2020-08-06 10:04:40.901 7575-7575/? I/chatty: uid=0(root) main identical 2 lines
2020-08-06 10:04:40.901 7575-7575/? W/main: type=1400 audit(0.0:2579956): avc: denied { dac_read_search } for capability=2 scontext=u:r:zygote:s0 tcontext=u:r:zygote:s0 tclass=capability permissive=0
2020-08-06 10:04:40.913 7575-7575/? I/com.gsma.rcs: Late-enabling -Xcheck:jni
2020-08-06 10:04:40.945 7575-7575/? E/libc: Access denied finding property "persist.vendor.sys.activitylog"
2020-08-06 10:04:40.941 7575-7575/? W/re-initialized>: type=1400 audit(0.0:2579957): avc: denied { read } for name="u:object_r:mtk_amslog_prop:s0" dev="tmpfs" ino=13100 scontext=u:r:untrusted_app_25:s0:c512,c768 tcontext=u:object_r:mtk_amslog_prop:s0 tclass=file permissive=0
2020-08-06 10:04:41.019 7575-7575/com.gsma.rcs I/libthemeutils: Theme: libthemeutil.so load success
2020-08-06 10:04:41.021 7575-7575/com.gsma.rcs W/ActivityThread: Application com.gsma.rcs is waiting for the debugger on port 8100...
2020-08-06 10:04:41.022 7575-7575/com.gsma.rcs I/System.out: Sending WAIT chunk
2020-08-06 10:04:42.022 7575-7575/com.gsma.rcs I/System.out: Debugger has connected
2020-08-06 10:04:42.023 7575-7575/com.gsma.rcs I/System.out: waiting for debugger to settle...
2020-08-06 10:04:42.223 7575-7575/com.gsma.rcs I/System.out: waiting for debugger to settle...
2020-08-06 10:04:42.423 7575-7575/com.gsma.rcs I/System.out: waiting for debugger to settle...
2020-08-06 10:04:42.624 7575-7575/com.gsma.rcs I/System.out: waiting for debugger to settle...
2020-08-06 10:04:42.824 7575-7575/com.gsma.rcs I/System.out: waiting for debugger to settle...
2020-08-06 10:04:43.024 7575-7575/com.gsma.rcs I/System.out: waiting for debugger to settle...
2020-08-06 10:04:43.225 7575-7575/com.gsma.rcs I/System.out: waiting for debugger to settle...
2020-08-06 10:04:43.425 7575-7575/com.gsma.rcs I/System.out: debugger has settled (1400)
2020-08-06 10:04:43.430 7575-7575/com.gsma.rcs I/com.gsma.rcs: The ClassLoaderContext is a special shared library.
2020-08-06 10:04:43.672 7575-7603/com.gsma.rcs I/com.gsma.rcs: The ClassLoaderContext is a special shared library.
2020-08-06 10:04:43.673 7575-7575/com.gsma.rcs W/Binder:intercep: type=1400 audit(0.0:2579960): avc: denied { getattr } for path="/data/data/com.miui.contentcatcher" dev="sdc46" ino=1359924 scontext=u:r:untrusted_app_25:s0:c512,c768 tcontext=u:object_r:system_app_data_file:s0 tclass=dir permissive=0
2020-08-06 10:04:43.688 7575-7603/com.gsma.rcs D/ViewContentFactory: initViewContentFetcherClass
2020-08-06 10:04:43.688 7575-7603/com.gsma.rcs D/ViewContentFactory: getInterceptorPackageInfo
2020-08-06 10:04:43.688 7575-7603/com.gsma.rcs W/com.gsma.rcs: Accessing hidden method Landroid/app/AppGlobals;->getInitialApplication()Landroid/app/Application; (light greylist, linking)
2020-08-06 10:04:43.690 7575-7603/com.gsma.rcs D/ViewContentFactory: getInitialApplication took 1ms
2020-08-06 10:04:43.690 7575-7603/com.gsma.rcs D/ViewContentFactory: packageInfo.packageName: com.miui.catcherpatch
2020-08-06 10:04:43.709 7575-7575/com.gsma.rcs W/Binder:intercep: type=1400 audit(0.0:2579961): avc: denied { getattr } for path="/data/data/com.miui.catcherpatch" dev="sdc46" ino=1360175 scontext=u:r:untrusted_app_25:s0:c512,c768 tcontext=u:object_r:system_app_data_file:s0 tclass=dir permissive=0
2020-08-06 10:04:43.717 7575-7603/com.gsma.rcs D/ViewContentFactory: initViewContentFetcherClass took 28ms
2020-08-06 10:04:43.717 7575-7603/com.gsma.rcs I/ContentCatcher: ViewContentFetcher : ViewContentFetcher
2020-08-06 10:04:43.717 7575-7603/com.gsma.rcs D/ViewContentFactory: createInterceptor took 29ms
2020-08-06 10:04:43.781 7575-7575/com.gsma.rcs W/com.gsma.rcs: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (light greylist, reflection)
2020-08-06 10:04:43.782 7575-7575/com.gsma.rcs W/com.gsma.rcs: Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (light greylist, reflection)
2020-08-06 10:04:43.931 7575-7575/com.gsma.rcs I/SurfaceFactory: [static] sSurfaceFactory = com.mediatek.view.impl.SurfaceFactoryImpl@50bb1d0
2020-08-06 10:04:43.944 7575-7575/com.gsma.rcs D/ViewRootImpl[Provisioning]: hardware acceleration = true , fakeHwAccelerated = false, sRendererDisabled = false, forceHwAccelerated = false, sSystemRendererDisabled = false
2020-08-06 10:04:43.951 7575-7575/com.gsma.rcs V/PhoneWindow: DecorView setVisiblity: visibility = 0, Parent = android.view.ViewRootImpl@16d9fef, this = DecorView@4421afc[Provisioning]
2020-08-06 10:04:43.954 7575-7575/com.gsma.rcs W/Looper: Slow Looper main: Activity com.gsma.rcs/.provisioning.local.Provisioning is 2559ms late (wall=373ms running=0ms ClientTransaction{ callbacks=[android.app.servertransaction.LaunchActivityItem] lifecycleRequest=android.app.servertransaction.ResumeActivityItem }) because of 1 msg, msg 1 took 2609ms (h=android.app.ActivityThread$H w=110)
2020-08-06 10:04:44.000 7575-7575/com.gsma.rcs V/[RCS][ProfileProvisioning]: new instance
2020-08-06 10:04:44.002 7575-7575/com.gsma.rcs V/[RCS][StackProvisioning]: new instance
2020-08-06 10:04:44.700 7575-7575/com.gsma.rcs V/[RCS][ProfileProvisioning]: displayRcsSettings
2020-08-06 10:04:46.626 7575-7575/com.gsma.rcs V/[RCS][StackProvisioning]: displayRcsSettings
2020-08-06 10:04:47.892 7575-7575/com.gsma.rcs D/View: [ANR Warning]onMeasure time too long, this =android.support.v4.view.ViewPager{a56904e VFED..... ......ID 0,0-0,0 #7f0800ff app:id/viewpager}time =3893 ms
2020-08-06 10:04:47.893 7575-7575/com.gsma.rcs D/View: [ANR Warning]onMeasure time too long, this =android.widget.LinearLayout{127656f V.E...... ......I. 0,0-0,0}time =3902 ms
2020-08-06 10:04:47.894 7575-7575/com.gsma.rcs D/View: [ANR Warning]onMeasure time too long, this =android.support.v4.widget.DrawerLayout{188327c VFE...... ......I. 0,0-0,0}time =3904 ms
2020-08-06 10:04:47.896 7575-7575/com.gsma.rcs D/View: [ANR Warning]onMeasure time too long, this =android.support.v7.widget.ContentFrameLayout{e477705 V.E...... ......I. 0,0-0,0 #1020002 android:id/content}time =3905 ms
2020-08-06 10:04:47.897 7575-7575/com.gsma.rcs D/View: [ANR Warning]onMeasure time too long, this =android.support.v7.widget.ActionBarOverlayLayout{d8f635a V.E...... ......I. 0,0-0,0 #7f080098 app:id/decor_content_parent}time =3911 ms
2020-08-06 10:04:47.898 7575-7575/com.gsma.rcs D/View: [ANR Warning]onMeasure time too long, this =android.widget.FrameLayout{7eee98b V.E...... ......I. 0,0-0,0}time =3912 ms
2020-08-06 10:04:47.899 7575-7575/com.gsma.rcs D/View: [ANR Warning]onMeasure time too long, this =android.widget.LinearLayout{863fa68 V.E...... ......I. 0,0-0,0}time =3914 ms
2020-08-06 10:04:47.901 7575-7575/com.gsma.rcs D/View: [ANR Warning]onMeasure time too long, this =DecorView@4421afc[Provisioning]time =3916 ms
2020-08-06 10:04:47.940 7575-7575/com.gsma.rcs D/Surface: Surface::allocateBuffers(this=0x79a71bb000)
2020-08-06 10:04:47.945 7575-7605/com.gsma.rcs I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
2020-08-06 10:04:47.945 7575-7605/com.gsma.rcs I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
2020-08-06 10:04:47.945 7575-7605/com.gsma.rcs I/OpenGLRenderer: Initialized EGL, version 1.4
2020-08-06 10:04:47.945 7575-7605/com.gsma.rcs D/OpenGLRenderer: Swap behavior 2
2020-08-06 10:04:47.945 7575-7605/com.gsma.rcs I/mali: [DebugProp] GPU Debug-Mechanism Disable !
2020-08-06 10:04:47.946 7575-7605/com.gsma.rcs I/GED: [GT]_get_procNameprocess pid(7575)
2020-08-06 10:04:47.946 7575-7605/com.gsma.rcs I/GED: [GT]_getprocess name(com.gsma.rcs)
2020-08-06 10:04:47.947 7575-7605/com.gsma.rcs I/mali: [GT] ret(1) gt_status(00000000) aniso_debug_level(0) gt_aniso_max_level(16) ani so mask(00000001) tri mask(00000002)
2020-08-06 10:04:47.949 7575-7605/com.gsma.rcs D/Surface: Surface::connect(this=0x79a71bb000,api=1)
2020-08-06 10:04:47.950 7575-7605/com.gsma.rcs D/mali_winsys: EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000
2020-08-06 10:04:47.950 7575-7605/com.gsma.rcs I/libEGL: [MTK Game SDK] low_latency_mode(0) pid(-1) property(-1)
2020-08-06 10:04:48.909 7575-7575/com.gsma.rcs I/Choreographer: Skipped 296 frames!  The application may be doing too much work on its main thread.
2020-08-06 10:04:49.310 7575-7605/com.gsma.rcs E/gralloc: Arm Module v1.0
2020-08-06 10:04:49.311 7575-7605/com.gsma.rcs E/ion: ioctl c0044901 failed with code -1: Invalid argument
2020-08-06 10:04:49.305 7575-7575/com.gsma.rcs W/RenderThread: type=1400 audit(0.0:2579962): avc: denied { search } for name="clients" dev="debugfs" ino=1065 scontext=u:r:untrusted_app_25:s0:c512,c768 tcontext=u:object_r:debugfs_ion:s0 tclass=dir permissive=0
2020-08-06 10:04:49.341 7575-7605/com.gsma.rcs I/OpenGLRenderer: Davey! duration=5351ms; Flags=0, IntendedVsync=356951469297699, Vsync=356956381345771, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=356956390159506, AnimationStart=356956390262814, PerformTraversalsStart=356956390754583, DrawStart=356956405500737, SyncQueued=356956786301583, SyncStart=356956786501660, IssueDrawCommandsStart=356956786844353, SwapBuffers=356956820157583, FrameCompleted=356956821373045, DequeueBufferDuration=1363000, QueueBufferDuration=246000, 
2020-08-06 10:04:49.344 7575-7575/com.gsma.rcs W/Looper: Slow Looper main: doFrame is 4919ms late because of 2 msg, msg 1 took 4851ms (late=1ms h=android.view.Choreographer$FrameHandler c=android.view.Choreographer$FrameDisplayEventReceiver), msg 2 took 100ms (late=4842ms h=android.view.ViewRootImpl$ViewRootHandler c=android.support.v7.app.AppCompatDelegateImplV9$1)
2020-08-06 10:04:49.501 7575-7575/com.gsma.rcs I/Choreographer: Skipped 34 frames!  The application may be doing too much work on its main thread.
2020-08-06 10:04:49.619 7575-7575/com.gsma.rcs W/Looper: Slow Looper main: doFrame is 565ms late because of 7 msg, msg 1 took 433ms (late=4919ms h=android.view.Choreographer$FrameHandler c=android.view.Choreographer$FrameDisplayEventReceiver), msg 6 took 154ms (late=1417ms h=android.view.ViewRootImpl$ViewRootHandler w=6)
2020-08-06 10:04:50.923 7575-7605/com.gsma.rcs I/OpenGLRenderer: Davey! duration=1188ms; Flags=1, IntendedVsync=356957214950991, Vsync=356957214950991, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=356957215589968, AnimationStart=356957215677583, PerformTraversalsStart=356957215689660, DrawStart=356958129061276, SyncQueued=356958399456122, SyncStart=356958399561968, IssueDrawCommandsStart=356958400039199, SwapBuffers=356958402477353, FrameCompleted=356958403322584, DequeueBufferDuration=196000, QueueBufferDuration=355000, 
2020-08-06 10:04:51.445 7575-7601/com.gsma.rcs I/com.gsma.rcs: ProcessProfilingInfo new_methods=0 is saved saved_to_disk=0 resolve_classes_delay=8000
看来的确是没有了之前的问题
只不过出现了其他的一些小错误
2020-08-06 10:04:49.310 7575-7605/com.gsma.rcs E/gralloc: Arm Module v1.0
2020-08-06 10:04:49.311 7575-7605/com.gsma.rcs E/ion: ioctl c0044901 failed with code -1: Invalid argument
貌似影响不大的感觉。
而最早的一个error是:
2020-08-06 10:04:40.901 7575-7575/? W/main: type=1400 audit(0.0:2579956): avc: denied { dac_read_search } for capability=2 scontext=u:r:zygote:s0 tcontext=u:r:zygote:s0 tclass=capability permissive=0
。。。
2020-08-06 10:04:40.945 7575-7575/? E/libc: Access denied finding property "persist.vendor.sys.activitylog"
是之前遇到过的,暂无法解决,可以忽略。
那顺带也去试试:
【未解决】Android Studio去红米Note8Pro中调试rcsjta的RI的apk

转载请注明:在路上 » 【未解决】Android Studio去红米Note8Pro中调试rcsjta的core的apk

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
93 queries in 0.236 seconds, using 23.33MB memory