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

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

红米 crifan 357浏览 0评论
折腾:
【未解决】Android Studio去红米Note8Pro中调试rcsjta的core的apk
期间,顺带也去试试,红米Note8Pro中,调试和运行RI,是否会有错误日志
以及运行RI的apk,是否会有报错
首次也会弹框提醒USB安装:
以及:
Waiting for debugger
首次运行期间,也会申请各种权限:
结果运行后发现:
也会出现 RCS服务不可用的问题:
然后去看看log日志如何
2020-08-06 10:17:44.389 10088-10088/? W/main: type=1400 audit(0.0:2599357): 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:17:44.393 10088-10088/? I/chatty: uid=10169(com.gsma.rcs.ri) com.gsma.rcs.r identical 2 lines
2020-08-06 10:17:44.393 10088-10088/? W/main: type=1400 audit(0.0:2599360): 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:17:44.401 10088-10088/? I/com.gsma.rcs.r: Late-enabling -Xcheck:jni
2020-08-06 10:17:44.421 10088-10088/? E/libc: Access denied finding property "persist.vendor.sys.activitylog"
2020-08-06 10:17:44.417 10088-10088/? W/re-initialized>: type=1400 audit(0.0:2599361): 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:17:44.498 10088-10088/com.gsma.rcs.ri I/libthemeutils: Theme: libthemeutil.so load success
2020-08-06 10:17:44.500 10088-10088/com.gsma.rcs.ri W/ActivityThread: Application com.gsma.rcs.ri is waiting for the debugger on port 8100...
2020-08-06 10:17:44.500 10088-10088/com.gsma.rcs.ri I/System.out: Sending WAIT chunk
2020-08-06 10:17:45.501 10088-10088/com.gsma.rcs.ri I/System.out: Debugger has connected
2020-08-06 10:17:45.501 10088-10088/com.gsma.rcs.ri I/System.out: waiting for debugger to settle...
2020-08-06 10:17:45.701 10088-10088/com.gsma.rcs.ri I/System.out: waiting for debugger to settle...
2020-08-06 10:17:45.902 10088-10088/com.gsma.rcs.ri I/System.out: waiting for debugger to settle...
2020-08-06 10:17:46.102 10088-10088/com.gsma.rcs.ri I/System.out: waiting for debugger to settle...
2020-08-06 10:17:46.302 10088-10088/com.gsma.rcs.ri I/System.out: waiting for debugger to settle...
2020-08-06 10:17:46.503 10088-10088/com.gsma.rcs.ri I/chatty: uid=10169(com.gsma.rcs.ri) identical 1 line
2020-08-06 10:17:46.703 10088-10088/com.gsma.rcs.ri I/System.out: waiting for debugger to settle...
2020-08-06 10:17:46.904 10088-10088/com.gsma.rcs.ri I/System.out: debugger has settled (1415)
2020-08-06 10:17:46.910 10088-10088/com.gsma.rcs.ri I/com.gsma.rcs.r: The ClassLoaderContext is a special shared library.
2020-08-06 10:17:46.986 10088-10088/com.gsma.rcs.ri I/GMPM: App measurement is starting up, version: 8487
2020-08-06 10:17:46.986 10088-10088/com.gsma.rcs.ri I/GMPM: To enable debug logging run: adb shell setprop log.tag.GMPM VERBOSE
2020-08-06 10:17:47.004 10088-10088/com.gsma.rcs.ri D/OpenSSLLib: OpensslErr:Module:12(177:); file:external/boringssl/src/crypto/asn1/asn1_lib.c ;Line:168;Function:ASN1_get_object
2020-08-06 10:17:47.020 10088-10088/com.gsma.rcs.ri E/GMPM: GoogleService failed to initialize, status: 10, Missing an expected resource: 'R.string.google_app_id' for initializing Google services.  Possible causes are missing google-services.json or com.google.gms.google-services gradle plugin.
2020-08-06 10:17:47.020 10088-10088/com.gsma.rcs.ri E/GMPM: Scheduler not set. Not logging error/warn.
2020-08-06 10:17:47.033 10088-10117/com.gsma.rcs.ri E/GMPM: Uploading is not possible. App measurement disabled
2020-08-06 10:17:47.204 10088-10121/com.gsma.rcs.ri I/com.gsma.rcs.r: The ClassLoaderContext is a special shared library.
2020-08-06 10:17:47.209 10088-10088/com.gsma.rcs.ri W/Binder:intercep: type=1400 audit(0.0:2599364): 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:17:47.228 10088-10121/com.gsma.rcs.ri D/ViewContentFactory: initViewContentFetcherClass
2020-08-06 10:17:47.228 10088-10121/com.gsma.rcs.ri D/ViewContentFactory: getInterceptorPackageInfo
2020-08-06 10:17:47.228 10088-10121/com.gsma.rcs.ri W/com.gsma.rcs.r: Accessing hidden method Landroid/app/AppGlobals;->getInitialApplication()Landroid/app/Application; (light greylist, linking)
2020-08-06 10:17:47.230 10088-10121/com.gsma.rcs.ri D/ViewContentFactory: getInitialApplication took 1ms
2020-08-06 10:17:47.230 10088-10121/com.gsma.rcs.ri D/ViewContentFactory: packageInfo.packageName: com.miui.catcherpatch
2020-08-06 10:17:47.249 10088-10088/com.gsma.rcs.ri W/Binder:intercep: type=1400 audit(0.0:2599365): 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:17:47.260 10088-10121/com.gsma.rcs.ri D/ViewContentFactory: initViewContentFetcherClass took 31ms
2020-08-06 10:17:47.260 10088-10121/com.gsma.rcs.ri I/ContentCatcher: ViewContentFetcher : ViewContentFetcher
2020-08-06 10:17:47.260 10088-10121/com.gsma.rcs.ri D/ViewContentFactory: createInterceptor took 32ms
2020-08-06 10:17:47.406 10088-10088/com.gsma.rcs.ri D/[RI][PermissionsActivity]: All permissions are granted
2020-08-06 10:17:47.408 10088-10088/com.gsma.rcs.ri I/Timeline: Timeline: Activity_launch_request time:357734887
2020-08-06 10:17:47.436 10088-10088/com.gsma.rcs.ri W/Looper: Slow Looper main: Activity com.gsma.rcs.ri/.permissions.PermissionsActivity is 2642ms late (wall=292ms running=0ms ClientTransaction{ callbacks=[android.app.servertransaction.LaunchActivityItem] lifecycleRequest=android.app.servertransaction.ResumeActivityItem }) because of 1 msg, msg 1 took 2702ms (late=1ms h=android.app.ActivityThread$H w=110)
2020-08-06 10:17:47.438 10088-10088/com.gsma.rcs.ri D/[RI][RcsServiceNotifManager]: Service started
2020-08-06 10:17:47.445 10088-10088/com.gsma.rcs.ri W/Notification: Use of stream types is deprecated for operations other than volume control
2020-08-06 10:17:47.445 10088-10088/com.gsma.rcs.ri W/Notification: See the documentation of setSound() for what to use instead with android.media.AudioAttributes to qualify your playback use case
2020-08-06 10:17:47.465 10088-10088/com.gsma.rcs.ri D/[RI][RcsServiceNotifManager]: Try to connect to service API
2020-08-06 10:17:47.468 10088-10088/com.gsma.rcs.ri W/[RI][RcsServiceNotifManager]: Cannot connect service API: Failed to get result for com.gsma.services.rcs.action.GET_SERVICE_STARTING_STATE!
2020-08-06 10:17:47.469 10088-10088/com.gsma.rcs.ri D/[RI][RcsServiceNotifManager]: Set timer to retry API connection
2020-08-06 10:17:47.485 10088-10088/com.gsma.rcs.ri W/ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@2acbfda
2020-08-06 10:17:47.500 10088-10121/com.gsma.rcs.ri D/ViewContentFactory: initViewContentFetcherClass
2020-08-06 10:17:47.501 10088-10121/com.gsma.rcs.ri I/ContentCatcher: ViewContentFetcher : ViewContentFetcher
2020-08-06 10:17:47.501 10088-10121/com.gsma.rcs.ri D/ViewContentFactory: createInterceptor took 0ms
2020-08-06 10:17:47.617 10088-10088/com.gsma.rcs.ri W/[RI][RI]: Country code is '+86'
2020-08-06 10:17:47.649 10088-10088/com.gsma.rcs.ri I/SurfaceFactory: [static] sSurfaceFactory = com.mediatek.view.impl.SurfaceFactoryImpl@6b9ced7
2020-08-06 10:17:47.662 10088-10088/com.gsma.rcs.ri D/ViewRootImpl[RI]: hardware acceleration = true , fakeHwAccelerated = false, sRendererDisabled = false, forceHwAccelerated = false, sSystemRendererDisabled = false
2020-08-06 10:17:47.669 10088-10088/com.gsma.rcs.ri V/PhoneWindow: DecorView setVisiblity: visibility = 0, Parent = android.view.ViewRootImpl@b4449e2, this = DecorView@1628173[RI]
2020-08-06 10:17:47.721 10088-10088/com.gsma.rcs.ri D/Surface: Surface::allocateBuffers(this=0x79a71eb000)
2020-08-06 10:17:47.730 10088-10127/com.gsma.rcs.ri I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
2020-08-06 10:17:47.730 10088-10127/com.gsma.rcs.ri I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
2020-08-06 10:17:47.730 10088-10127/com.gsma.rcs.ri I/OpenGLRenderer: Initialized EGL, version 1.4
2020-08-06 10:17:47.730 10088-10127/com.gsma.rcs.ri D/OpenGLRenderer: Swap behavior 2
2020-08-06 10:17:47.730 10088-10127/com.gsma.rcs.ri I/mali: [DebugProp] GPU Debug-Mechanism Disable !
2020-08-06 10:17:47.732 10088-10127/com.gsma.rcs.ri I/GED: [GT]_get_procNameprocess pid(10088)
2020-08-06 10:17:47.732 10088-10127/com.gsma.rcs.ri I/GED: [GT]_getprocess name(com.gsma.rcs.ri)
2020-08-06 10:17:47.732 10088-10127/com.gsma.rcs.ri 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:17:47.734 10088-10127/com.gsma.rcs.ri D/Surface: Surface::connect(this=0x79a71eb000,api=1)
2020-08-06 10:17:47.735 10088-10127/com.gsma.rcs.ri D/mali_winsys: EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000
2020-08-06 10:17:47.735 10088-10127/com.gsma.rcs.ri I/libEGL: [MTK Game SDK] low_latency_mode(0) pid(-1) property(-1)
2020-08-06 10:17:47.779 10088-10127/com.gsma.rcs.ri E/gralloc: Arm Module v1.0
2020-08-06 10:17:47.773 10088-10088/com.gsma.rcs.ri W/RenderThread: type=1400 audit(0.0:2599366): 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:17:47.780 10088-10127/com.gsma.rcs.ri E/ion: ioctl c0044901 failed with code -1: Invalid argument
2020-08-06 10:17:56.569 10088-10115/com.gsma.rcs.ri I/com.gsma.rcs.r: ProcessProfilingInfo new_methods=0 is saved saved_to_disk=0 resolve_classes_delay=8000
2020-08-06 10:17:56.619 10088-10088/com.gsma.rcs.ri W/[CNX][ConnectionManager]: Cannot connect service API: Failed to get result for com.gsma.services.rcs.action.GET_SERVICE_STARTING_STATE!
2020-08-06 10:17:56.622 10088-10088/com.gsma.rcs.ri D/[CNX][ConnectionManager]: Set timer to retry API connection
2020-08-06 10:17:56.629 10088-10143/com.gsma.rcs.ri D/[RI][RcsServiceNotifManager]: Try to connect to service API
2020-08-06 10:17:56.632 10088-10143/com.gsma.rcs.ri W/[RI][RcsServiceNotifManager]: Cannot connect service API: Failed to get result for com.gsma.services.rcs.action.GET_SERVICE_STARTING_STATE!
2020-08-06 10:17:56.634 10088-10143/com.gsma.rcs.ri D/[RI][RcsServiceNotifManager]: Set timer to retry API connection
2020-08-06 10:18:01.630 10088-10146/com.gsma.rcs.ri W/[CNX][ConnectionManager]: Cannot connect service API: Failed to get result for com.gsma.services.rcs.action.GET_SERVICE_STARTING_STATE!
2020-08-06 10:18:01.632 10088-10146/com.gsma.rcs.ri D/[CNX][ConnectionManager]: Set timer to retry API connection
2020-08-06 10:18:01.638 10088-10147/com.gsma.rcs.ri D/[RI][RcsServiceNotifManager]: Try to connect to service API
2020-08-06 10:18:01.644 10088-10147/com.gsma.rcs.ri W/[RI][RcsServiceNotifManager]: Cannot connect service API: Failed to get result for com.gsma.services.rcs.action.GET_SERVICE_STARTING_STATE!
2020-08-06 10:18:01.647 10088-10147/com.gsma.rcs.ri D/[RI][RcsServiceNotifManager]: Set timer to retry API connection

也还是有些错误的日志的
此处明显是:
2020-08-06 10:18:06.642 10088-10148/com.gsma.rcs.ri W/[CNX][ConnectionManager]: Cannot connect service API: Failed to get result for com.gsma.services.rcs.action.GET_SERVICE_STARTING_STATE!
2020-08-06 10:18:06.644 10088-10148/com.gsma.rcs.ri D/[CNX][ConnectionManager]: Set timer to retry API connection
2020-08-06 10:18:06.650 10088-10149/com.gsma.rcs.ri D/[RI][RcsServiceNotifManager]: Try to connect to service API
2020-08-06 10:18:06.658 10088-10149/com.gsma.rcs.ri W/[RI][RcsServiceNotifManager]: Cannot connect service API: Failed to get result for com.gsma.services.rcs.action.GET_SERVICE_STARTING_STATE!
表示连不上RCS的service的api
然后设置了个计时器重连,问题依旧。
最后知道报错:
2020-08-06 10:18:06.658 10088-10149/com.gsma.rcs.ri E/[RI][RcsServiceNotifManager]: Maximum attempts to connect API is reached
超过最大尝试次数。
而前面的一些error的地方有:
2020-08-06 10:17:44.421 10088-10088/? E/libc: Access denied finding property "persist.vendor.sys.activitylog"
-》这个不足为奇,之前就遇到
其前面一个相关log是:
2020-08-06 10:17:44.393 10088-10088/? W/main: type=1400 audit(0.0:2599360): 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:17:47.020 10088-10088/com.gsma.rcs.ri E/GMPM: GoogleService failed to initialize, status: 10, Missing an expected resource: 'R.string.google_app_id' for initializing Google services.  Possible causes are missing google-services.json or com.google.gms.google-services gradle plugin.
2020-08-06 10:17:47.020 10088-10088/com.gsma.rcs.ri E/GMPM: Scheduler not set. Not logging error/warn.
2020-08-06 10:17:47.033 10088-10117/com.gsma.rcs.ri E/GMPM: Uploading is not possible. App measurement disabled
是和谷歌服务相关的错误
初始化失败。
2020-08-06 10:17:47.779 10088-10127/com.gsma.rcs.ri E/gralloc: Arm Module v1.0
2020-08-06 10:17:47.780 10088-10127/com.gsma.rcs.ri E/ion: ioctl c0044901 failed with code -1: Invalid argument
这个错误,之前core的初始化时候,也遇到过。
目前感觉:其他一些error都不是大问题。
倒是这个和RCS service的api多次尝试去连接 是需要重点关注的
然后去:
【未解决】rcsjta的RI启动报错:Cannot connect service API Failed to get result for com.gsma.services.rcs.action.GET_SERVICE_STARTING_STATE
另外去对比了:
小米9 和 红米Note8Pro 的 RI的log
差异也不小

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

发表我的评论
取消评论

表情

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

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
90 queries in 0.188 seconds, using 23.31MB memory