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

【未解决】调试运行Android项目rcsjta的其他几个apk看看是否启动了rcs的core的service

Service crifan 273浏览 0评论
折腾:
【未解决】Android项目rcsjta中如何才能运行到rcs的core的service
期间,突然想起来:
是不是此处的,其他的apk,是可以调试,然后运行到此处的core的start的?
去分别试试:
  • core
  • cts_provider
    • 不可用?没法调试?
  • cts_signature
  • extension
  • notification
  • provisioning
  • RI
  • settings
  • tts
看看效果。
Error running 'cts_provider': Default Activity not found
log
2020-08-11 10:23:44.581 32284-32284/? I/d.tests.sigtes: Late-enabling -Xcheck:jni
2020-08-11 10:23:44.616 32284-32284/? E/libc: Access denied finding property "persist.vendor.sys.activitylog"
2020-08-11 10:23:44.905 32284-32284/android.tests.sigtest I/libthemeutils: Theme: libthemeutil.so load success
2020-08-11 10:23:44.910 32284-32284/android.tests.sigtest W/ActivityThread: Application android.tests.sigtest is waiting for the debugger on port 8100...
2020-08-11 10:23:44.913 32284-32284/android.tests.sigtest I/System.out: Sending WAIT chunk
2020-08-11 10:23:45.714 32284-32284/android.tests.sigtest I/System.out: Debugger has connected
2020-08-11 10:23:45.714 32284-32284/android.tests.sigtest I/System.out: waiting for debugger to settle...
2020-08-11 10:23:45.914 32284-32284/android.tests.sigtest I/System.out: waiting for debugger to settle...
2020-08-11 10:23:46.115 32284-32284/android.tests.sigtest I/System.out: waiting for debugger to settle...
2020-08-11 10:23:46.316 32284-32284/android.tests.sigtest I/System.out: waiting for debugger to settle...
2020-08-11 10:23:46.516 32284-32284/android.tests.sigtest I/System.out: waiting for debugger to settle...
2020-08-11 10:23:46.716 32284-32284/android.tests.sigtest I/System.out: waiting for debugger to settle...
2020-08-11 10:23:46.917 32284-32284/android.tests.sigtest I/System.out: waiting for debugger to settle...
2020-08-11 10:23:47.117 32284-32284/android.tests.sigtest I/System.out: debugger has settled (1317)
2020-08-11 10:23:47.123 32284-32284/android.tests.sigtest I/d.tests.sigtes: The ClassLoaderContext is a special shared library.
2020-08-11 10:23:47.230 32284-32449/android.tests.sigtest I/d.tests.sigtes: The ClassLoaderContext is a special shared library.
2020-08-11 10:23:47.234 32284-32284/android.tests.sigtest W/Binder:intercep: type=1400 audit(0.0:3006190): avc: denied { getattr } for path="/data/data/com.miui.contentcatcher" dev="sdc46" ino=1359924 scontext=u:r:untrusted_app_27:s0:c512,c768 tcontext=u:object_r:system_app_data_file:s0 tclass=dir permissive=0
2020-08-11 10:23:47.248 32284-32449/android.tests.sigtest D/ViewContentFactory: initViewContentFetcherClass
2020-08-11 10:23:47.248 32284-32449/android.tests.sigtest D/ViewContentFactory: getInterceptorPackageInfo
2020-08-11 10:23:47.248 32284-32449/android.tests.sigtest W/d.tests.sigtes: Accessing hidden method Landroid/app/AppGlobals;->getInitialApplication()Landroid/app/Application; (light greylist, linking)
2020-08-11 10:23:47.249 32284-32449/android.tests.sigtest D/ViewContentFactory: getInitialApplication took 2ms
2020-08-11 10:23:47.250 32284-32449/android.tests.sigtest D/ViewContentFactory: packageInfo.packageName: com.miui.catcherpatch
2020-08-11 10:23:47.270 32284-32284/android.tests.sigtest W/Binder:intercep: type=1400 audit(0.0:3006191): avc: denied { getattr } for path="/data/data/com.miui.catcherpatch" dev="sdc46" ino=1360175 scontext=u:r:untrusted_app_27:s0:c512,c768 tcontext=u:object_r:system_app_data_file:s0 tclass=dir permissive=0
2020-08-11 10:23:47.278 32284-32449/android.tests.sigtest D/ViewContentFactory: initViewContentFetcherClass took 31ms
2020-08-11 10:23:47.279 32284-32449/android.tests.sigtest I/ContentCatcher: ViewContentFetcher : ViewContentFetcher
2020-08-11 10:23:47.279 32284-32449/android.tests.sigtest D/ViewContentFactory: createInterceptor took 32ms
2020-08-11 10:23:47.525 32284-32284/android.tests.sigtest I/SurfaceFactory: [static] sSurfaceFactory = com.mediatek.view.impl.SurfaceFactoryImpl@2acbfda
2020-08-11 10:23:47.538 32284-32284/android.tests.sigtest D/ViewRootImpl[SignatureTestActivity]: hardware acceleration = true , fakeHwAccelerated = false, sRendererDisabled = false, forceHwAccelerated = false, sSystemRendererDisabled = false
2020-08-11 10:23:47.546 32284-32284/android.tests.sigtest V/PhoneWindow: DecorView setVisiblity: visibility = 0, Parent = android.view.ViewRootImpl@57de501, this = DecorView@226ffa6[SignatureTestActivity]
2020-08-11 10:23:47.549 32284-32284/android.tests.sigtest W/Looper: Slow Looper main: Activity android.tests.sigtest/.SignatureTestActivity is 2260ms late (wall=378ms running=0ms ClientTransaction{ callbacks=[android.app.servertransaction.LaunchActivityItem] lifecycleRequest=android.app.servertransaction.ResumeActivityItem }) because of 1 msg, msg 1 took 2467ms (late=13ms h=android.app.ActivityThread$H w=110)
2020-08-11 10:23:47.556 32284-32284/android.tests.sigtest W/Looper: Slow Looper main: Activity android.tests.sigtest/.SignatureTestActivity is 2545ms late (wall=4ms running=0ms ClientTransaction{ callbacks=[android.app.servertransaction.ActivityConfigurationChangeItem] }) because of 4 msg, msg 1 took 2467ms (late=13ms h=android.app.ActivityThread$H w=110), msg 2 took 378ms (late=2260ms h=android.app.ActivityThread$H w=159)
2020-08-11 10:23:47.618 32284-32284/android.tests.sigtest D/Surface: Surface::allocateBuffers(this=0x799e092000)
2020-08-11 10:23:47.626 32284-32453/android.tests.sigtest I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
2020-08-11 10:23:47.626 32284-32453/android.tests.sigtest I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
2020-08-11 10:23:47.626 32284-32453/android.tests.sigtest I/OpenGLRenderer: Initialized EGL, version 1.4
2020-08-11 10:23:47.626 32284-32453/android.tests.sigtest D/OpenGLRenderer: Swap behavior 2
2020-08-11 10:23:47.626 32284-32453/android.tests.sigtest I/mali: [DebugProp] GPU Debug-Mechanism Disable !
2020-08-11 10:23:47.627 32284-32453/android.tests.sigtest I/GED: [GT]_get_procNameprocess pid(32284)
2020-08-11 10:23:47.627 32284-32453/android.tests.sigtest I/GED: [GT]_getprocess name(android.tests.sigtest)
2020-08-11 10:23:47.627 32284-32453/android.tests.sigtest 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-11 10:23:47.631 32284-32453/android.tests.sigtest D/Surface: Surface::connect(this=0x799e092000,api=1)
2020-08-11 10:23:47.632 32284-32453/android.tests.sigtest D/mali_winsys: EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000
2020-08-11 10:23:47.632 32284-32453/android.tests.sigtest I/libEGL: [MTK Game SDK] low_latency_mode(0) pid(-1) property(-1)
2020-08-11 10:23:47.691 32284-32453/android.tests.sigtest E/gralloc: Arm Module v1.0
2020-08-11 10:23:47.692 32284-32453/android.tests.sigtest E/ion: ioctl c0044901 failed with code -1: Invalid argument
2020-08-11 10:23:47.686 32284-32284/android.tests.sigtest W/RenderThread: type=1400 audit(0.0:3006192): avc: denied { search } for name="clients" dev="debugfs" ino=1065 scontext=u:r:untrusted_app_27:s0:c512,c768 tcontext=u:object_r:debugfs_ion:s0 tclass=dir permissive=0
2020-08-11 10:23:47.753 32284-32284/android.tests.sigtest W/[RCS]: Selected version=crane_1_6_1
2020-08-11 10:23:47.755 32284-32474/android.tests.sigtest W/[RCS]: Starts verifying RCS signatures
2020-08-11 10:23:49.611 32284-32284/android.tests.sigtest D/CTSSignatureTest: Send result
2020-08-11 10:23:49.611 32284-32284/android.tests.sigtest D/CTSSignatureTest: PASS
2020-08-11 10:23:49.614 32284-32284/android.tests.sigtest W/[RCS]: Ends verifying RCS signatures
2020-08-11 10:23:55.142 32284-32447/android.tests.sigtest I/d.tests.sigtes: ProcessProfilingInfo new_methods=78 is saved saved_to_disk=1 resolve_classes_delay=8000
手机中的界面
开始提示:
然后显示PASS:
但也没运行到断点。
log是:
2020-08-11 10:26:29.332 899-899/? I/mples.extensio: Late-enabling -Xcheck:jni
2020-08-11 10:26:29.364 899-899/? E/libc: Access denied finding property "persist.vendor.sys.activitylog"
2020-08-11 10:26:29.522 899-899/com.gsma.services.rcs.samples.extension I/libthemeutils: Theme: libthemeutil.so load success
2020-08-11 10:26:29.524 899-899/com.gsma.services.rcs.samples.extension W/ActivityThread: Application com.gsma.services.rcs.samples.extension is waiting for the debugger on port 8100...
2020-08-11 10:26:29.525 899-899/com.gsma.services.rcs.samples.extension I/System.out: Sending WAIT chunk
2020-08-11 10:26:30.325 899-899/com.gsma.services.rcs.samples.extension I/System.out: Debugger has connected
2020-08-11 10:26:30.326 899-899/com.gsma.services.rcs.samples.extension I/System.out: waiting for debugger to settle...
2020-08-11 10:26:30.526 899-899/com.gsma.services.rcs.samples.extension I/System.out: waiting for debugger to settle...
2020-08-11 10:26:30.726 899-899/com.gsma.services.rcs.samples.extension I/System.out: waiting for debugger to settle...
2020-08-11 10:26:30.926 899-899/com.gsma.services.rcs.samples.extension I/System.out: waiting for debugger to settle...
2020-08-11 10:26:31.127 899-899/com.gsma.services.rcs.samples.extension I/System.out: waiting for debugger to settle...
2020-08-11 10:26:31.327 899-899/com.gsma.services.rcs.samples.extension I/System.out: waiting for debugger to settle...
2020-08-11 10:26:31.528 899-899/com.gsma.services.rcs.samples.extension I/System.out: waiting for debugger to settle...
2020-08-11 10:26:31.728 899-899/com.gsma.services.rcs.samples.extension I/System.out: waiting for debugger to settle...
2020-08-11 10:26:31.928 899-899/com.gsma.services.rcs.samples.extension I/System.out: debugger has settled (1425)
2020-08-11 10:26:31.934 899-899/com.gsma.services.rcs.samples.extension I/mples.extensio: The ClassLoaderContext is a special shared library.
2020-08-11 10:26:32.034 899-1266/com.gsma.services.rcs.samples.extension I/mples.extensio: The ClassLoaderContext is a special shared library.
2020-08-11 10:26:32.042 899-899/com.gsma.services.rcs.samples.extension W/Binder:intercep: type=1400 audit(0.0:3018372): avc: denied { getattr } for path="/data/data/com.miui.contentcatcher" dev="sdc46" ino=1359924 scontext=u:r:untrusted_app_27:s0:c512,c768 tcontext=u:object_r:system_app_data_file:s0 tclass=dir permissive=0
2020-08-11 10:26:32.057 899-1266/com.gsma.services.rcs.samples.extension D/ViewContentFactory: initViewContentFetcherClass
2020-08-11 10:26:32.057 899-1266/com.gsma.services.rcs.samples.extension D/ViewContentFactory: getInterceptorPackageInfo
2020-08-11 10:26:32.057 899-1266/com.gsma.services.rcs.samples.extension W/mples.extensio: Accessing hidden method Landroid/app/AppGlobals;->getInitialApplication()Landroid/app/Application; (light greylist, linking)
2020-08-11 10:26:32.060 899-1266/com.gsma.services.rcs.samples.extension D/ViewContentFactory: getInitialApplication took 2ms
2020-08-11 10:26:32.060 899-1266/com.gsma.services.rcs.samples.extension D/ViewContentFactory: packageInfo.packageName: com.miui.catcherpatch
2020-08-11 10:26:32.082 899-899/com.gsma.services.rcs.samples.extension W/Binder:intercep: type=1400 audit(0.0:3018373): avc: denied { getattr } for path="/data/data/com.miui.catcherpatch" dev="sdc46" ino=1360175 scontext=u:r:untrusted_app_27:s0:c512,c768 tcontext=u:object_r:system_app_data_file:s0 tclass=dir permissive=0
2020-08-11 10:26:32.091 899-1266/com.gsma.services.rcs.samples.extension D/ViewContentFactory: initViewContentFetcherClass took 33ms
2020-08-11 10:26:32.091 899-1266/com.gsma.services.rcs.samples.extension I/ContentCatcher: ViewContentFetcher : ViewContentFetcher
2020-08-11 10:26:32.092 899-1266/com.gsma.services.rcs.samples.extension D/ViewContentFactory: createInterceptor took 34ms
2020-08-11 10:26:32.228 899-899/com.gsma.services.rcs.samples.extension I/SurfaceFactory: [static] sSurfaceFactory = com.mediatek.view.impl.SurfaceFactoryImpl@f2a534
2020-08-11 10:26:32.240 899-899/com.gsma.services.rcs.samples.extension D/ViewRootImpl[Main]: hardware acceleration = true , fakeHwAccelerated = false, sRendererDisabled = false, forceHwAccelerated = false, sSystemRendererDisabled = false
2020-08-11 10:26:32.246 899-899/com.gsma.services.rcs.samples.extension V/PhoneWindow: DecorView setVisiblity: visibility = 0, Parent = android.view.ViewRootImpl@e4925a3, this = DecorView@daee0a0[Main]
2020-08-11 10:26:32.250 899-899/com.gsma.services.rcs.samples.extension W/Looper: Slow Looper main: Activity com.gsma.services.rcs.samples.extension/.Main is 2452ms late (wall=272ms running=0ms ClientTransaction{ callbacks=[android.app.servertransaction.LaunchActivityItem] lifecycleRequest=android.app.servertransaction.ResumeActivityItem }) because of 1 msg, msg 1 took 2584ms (late=1ms h=android.app.ActivityThread$H w=110)
2020-08-11 10:26:32.300 899-899/com.gsma.services.rcs.samples.extension D/Surface: Surface::allocateBuffers(this=0x799e05f000)
2020-08-11 10:26:32.306 899-1267/com.gsma.services.rcs.samples.extension I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
2020-08-11 10:26:32.306 899-1267/com.gsma.services.rcs.samples.extension I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
2020-08-11 10:26:32.306 899-1267/com.gsma.services.rcs.samples.extension I/OpenGLRenderer: Initialized EGL, version 1.4
2020-08-11 10:26:32.307 899-1267/com.gsma.services.rcs.samples.extension D/OpenGLRenderer: Swap behavior 2
2020-08-11 10:26:32.307 899-1267/com.gsma.services.rcs.samples.extension I/mali: [DebugProp] GPU Debug-Mechanism Disable !
2020-08-11 10:26:32.308 899-1267/com.gsma.services.rcs.samples.extension I/GED: [GT]_get_procNameprocess pid(899)
2020-08-11 10:26:32.308 899-1267/com.gsma.services.rcs.samples.extension I/GED: [GT]_getprocess name(com.gsma.services.rcs.samples.extension)
2020-08-11 10:26:32.308 899-1267/com.gsma.services.rcs.samples.extension 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-11 10:26:32.312 899-1267/com.gsma.services.rcs.samples.extension D/Surface: Surface::connect(this=0x799e05f000,api=1)
2020-08-11 10:26:32.312 899-1267/com.gsma.services.rcs.samples.extension D/mali_winsys: EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000
2020-08-11 10:26:32.312 899-1267/com.gsma.services.rcs.samples.extension I/libEGL: [MTK Game SDK] low_latency_mode(0) pid(-1) property(-1)
2020-08-11 10:26:32.360 899-1267/com.gsma.services.rcs.samples.extension E/gralloc: Arm Module v1.0
2020-08-11 10:26:32.361 899-1267/com.gsma.services.rcs.samples.extension E/ion: ioctl c0044901 failed with code -1: Invalid argument
2020-08-11 10:26:32.358 899-899/com.gsma.services.rcs.samples.extension W/RenderThread: type=1400 audit(0.0:3018374): avc: denied { search } for name="clients" dev="debugfs" ino=1065 scontext=u:r:untrusted_app_27:s0:c512,c768 tcontext=u:object_r:debugfs_ion:s0 tclass=dir permissive=0
2020-08-11 10:26:39.950 899-1258/com.gsma.services.rcs.samples.extension I/mples.extensio: ProcessProfilingInfo new_methods=0 is saved saved_to_disk=0 resolve_classes_delay=8000
手机中界面
提示:
Capabilities extension demo
然后是:
log
2020-08-11 10:28:14.357 1792-1792/? I/ma.rcs.registr: Late-enabling -Xcheck:jni
2020-08-11 10:28:14.385 1792-1792/? E/libc: Access denied finding property "persist.vendor.sys.activitylog"
2020-08-11 10:28:14.465 1792-1792/com.gsma.rcs.registry I/libthemeutils: Theme: libthemeutil.so load success
2020-08-11 10:28:14.468 1792-1792/com.gsma.rcs.registry W/ActivityThread: Application com.gsma.rcs.registry is waiting for the debugger on port 8100...
2020-08-11 10:28:14.468 1792-1792/com.gsma.rcs.registry I/System.out: Sending WAIT chunk
2020-08-11 10:28:15.469 1792-1792/com.gsma.rcs.registry I/System.out: Debugger has connected
2020-08-11 10:28:15.469 1792-1792/com.gsma.rcs.registry I/System.out: waiting for debugger to settle...
2020-08-11 10:28:15.669 1792-1792/com.gsma.rcs.registry I/System.out: waiting for debugger to settle...
2020-08-11 10:28:15.870 1792-1792/com.gsma.rcs.registry I/System.out: waiting for debugger to settle...
2020-08-11 10:28:16.070 1792-1792/com.gsma.rcs.registry I/System.out: waiting for debugger to settle...
2020-08-11 10:28:16.271 1792-1792/com.gsma.rcs.registry I/System.out: waiting for debugger to settle...
2020-08-11 10:28:16.471 1792-1792/com.gsma.rcs.registry I/System.out: waiting for debugger to settle...
2020-08-11 10:28:16.671 1792-1792/com.gsma.rcs.registry I/System.out: waiting for debugger to settle...
2020-08-11 10:28:16.872 1792-1792/com.gsma.rcs.registry I/System.out: debugger has settled (1363)
2020-08-11 10:28:16.877 1792-1792/com.gsma.rcs.registry I/ma.rcs.registr: The ClassLoaderContext is a special shared library.
2020-08-11 10:28:17.008 1792-1913/com.gsma.rcs.registry I/ma.rcs.registr: The ClassLoaderContext is a special shared library.
2020-08-11 10:28:17.010 1792-1792/com.gsma.rcs.registry W/Binder:intercep: type=1400 audit(0.0:3030537): avc: denied { getattr } for path="/data/data/com.miui.contentcatcher" dev="sdc46" ino=1359924 scontext=u:r:untrusted_app_27:s0:c512,c768 tcontext=u:object_r:system_app_data_file:s0 tclass=dir permissive=0
2020-08-11 10:28:17.025 1792-1913/com.gsma.rcs.registry D/ViewContentFactory: initViewContentFetcherClass
2020-08-11 10:28:17.025 1792-1913/com.gsma.rcs.registry D/ViewContentFactory: getInterceptorPackageInfo
2020-08-11 10:28:17.025 1792-1913/com.gsma.rcs.registry W/ma.rcs.registr: Accessing hidden method Landroid/app/AppGlobals;->getInitialApplication()Landroid/app/Application; (light greylist, linking)
2020-08-11 10:28:17.027 1792-1913/com.gsma.rcs.registry D/ViewContentFactory: getInitialApplication took 2ms
2020-08-11 10:28:17.027 1792-1913/com.gsma.rcs.registry D/ViewContentFactory: packageInfo.packageName: com.miui.catcherpatch
2020-08-11 10:28:17.046 1792-1792/com.gsma.rcs.registry W/Binder:intercep: type=1400 audit(0.0:3030538): avc: denied { getattr } for path="/data/data/com.miui.catcherpatch" dev="sdc46" ino=1360175 scontext=u:r:untrusted_app_27:s0:c512,c768 tcontext=u:object_r:system_app_data_file:s0 tclass=dir permissive=0
2020-08-11 10:28:17.056 1792-1913/com.gsma.rcs.registry D/ViewContentFactory: initViewContentFetcherClass took 31ms
2020-08-11 10:28:17.057 1792-1913/com.gsma.rcs.registry I/ContentCatcher: ViewContentFetcher : ViewContentFetcher
2020-08-11 10:28:17.057 1792-1913/com.gsma.rcs.registry D/ViewContentFactory: createInterceptor took 32ms
2020-08-11 10:28:17.241 1792-1792/com.gsma.rcs.registry W/Looper: Slow Looper main: Activity com.gsma.rcs.registry/com.gsma.rcs.notif.LaunchServiceActivity is 2479ms late (wall=293ms running=0ms ClientTransaction{ callbacks=[android.app.servertransaction.LaunchActivityItem] lifecycleRequest=android.app.servertransaction.ResumeActivityItem }) because of 1 msg, msg 1 took 2532ms (h=android.app.ActivityThread$H w=110)
2020-08-11 10:28:17.264 1792-1792/com.gsma.rcs.registry D/[IMS]RcsServiceNotifManager: Service started
2020-08-11 10:28:17.271 1792-1792/com.gsma.rcs.registry W/Notification: Use of stream types is deprecated for operations other than volume control
2020-08-11 10:28:17.271 1792-1792/com.gsma.rcs.registry W/Notification: See the documentation of setSound() for what to use instead with android.media.AudioAttributes to qualify your playback use case
2020-08-11 10:28:17.277 1792-1792/com.gsma.rcs.registry D/[IMS]RcsServiceNotifManager: Try to connect to service API
2020-08-11 10:28:17.280 1792-1792/com.gsma.rcs.registry D/[RCS][RcsServiceControl]: isServiceStarted: Request()
2020-08-11 10:28:17.282 1792-1792/com.gsma.rcs.registry D/[RCS][RcsServiceControl]: Waiting for result for com.gsma.services.rcs.action.GET_SERVICE_STARTING_STATE during max 2000ms
2020-08-11 10:28:17.291 1792-1792/com.gsma.rcs.registry E/[IMS]RcsServiceNotifManager: Cannot connect service API
    com.gsma.services.rcs.RcsGenericException: Failed to get result for com.gsma.services.rcs.action.GET_SERVICE_STARTING_STATE!
        at com.gsma.services.rcs.RcsServiceControl.queryRcsStackByIntent(RcsServiceControl.java:194)
        at com.gsma.services.rcs.RcsServiceControl.isServiceStarted(RcsServiceControl.java:328)
        at com.gsma.rcs.notif.RcsServiceNotifManager.connectToService(RcsServiceNotifManager.java:99)
        at com.gsma.rcs.notif.RcsServiceNotifManager.onCreate(RcsServiceNotifManager.java:77)
        at android.app.ActivityThread.handleCreateService(ActivityThread.java:3599)
        at android.app.ActivityThread.access$1500(ActivityThread.java:207)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1717)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loop(Looper.java:201)
        at android.app.ActivityThread.main(ActivityThread.java:6831)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:927)
2020-08-11 10:28:17.308 1792-1792/com.gsma.rcs.registry W/Looper: Slow Looper main: Activity com.gsma.rcs.registry/com.gsma.rcs.notif.LaunchServiceActivity is 306ms late (wall=12ms running=0ms ClientTransaction{ lifecycleRequest=android.app.servertransaction.PauseActivityItem }) because of 4 msg, msg 1 took 293ms (late=2479ms h=android.app.ActivityThread$H w=159)
2020-08-11 10:28:24.925 1792-1911/com.gsma.rcs.registry I/ma.rcs.registr: ProcessProfilingInfo new_methods=73 is saved saved_to_disk=1 resolve_classes_delay=8000
中间有报错:
app中
开始提示:
界面是:
开始提示时还能看到:
后来就没有界面,因为发现启动服务失败:
2020-08-11 10:29:18.876 2547-2547/com.gsma.rcs.registry E/[IMS]RcsServiceNotifManager: Cannot connect service API
    com.gsma.services.rcs.RcsGenericException: Failed to get result for com.gsma.services.rcs.action.GET_SERVICE_STARTING_STATE!
app退出了。
log
2020-08-11 10:31:02.130 3915-3915/? I/tp.provisionin: Late-enabling -Xcheck:jni
2020-08-11 10:31:02.157 3915-3915/? E/libc: Access denied finding property "persist.vendor.sys.activitylog"
2020-08-11 10:31:02.271 3915-3915/com.gsma.rcs.tools.http.provisioning I/libthemeutils: Theme: libthemeutil.so load success
2020-08-11 10:31:02.273 3915-3915/com.gsma.rcs.tools.http.provisioning W/ActivityThread: Application com.gsma.rcs.tools.http.provisioning is waiting for the debugger on port 8100...
2020-08-11 10:31:02.273 3915-3915/com.gsma.rcs.tools.http.provisioning I/System.out: Sending WAIT chunk
2020-08-11 10:31:03.274 3915-3915/com.gsma.rcs.tools.http.provisioning I/System.out: Debugger has connected
2020-08-11 10:31:03.274 3915-3915/com.gsma.rcs.tools.http.provisioning I/System.out: waiting for debugger to settle...
2020-08-11 10:31:03.474 3915-3915/com.gsma.rcs.tools.http.provisioning I/System.out: waiting for debugger to settle...
2020-08-11 10:31:03.675 3915-3915/com.gsma.rcs.tools.http.provisioning I/System.out: waiting for debugger to settle...
2020-08-11 10:31:03.875 3915-3915/com.gsma.rcs.tools.http.provisioning I/System.out: waiting for debugger to settle...
2020-08-11 10:31:04.076 3915-3915/com.gsma.rcs.tools.http.provisioning I/System.out: waiting for debugger to settle...
2020-08-11 10:31:04.276 3915-3915/com.gsma.rcs.tools.http.provisioning I/System.out: waiting for debugger to settle...
2020-08-11 10:31:04.476 3915-3915/com.gsma.rcs.tools.http.provisioning I/System.out: waiting for debugger to settle...
2020-08-11 10:31:04.677 3915-3915/com.gsma.rcs.tools.http.provisioning I/System.out: debugger has settled (1373)
2020-08-11 10:31:04.683 3915-3915/com.gsma.rcs.tools.http.provisioning I/tp.provisionin: The ClassLoaderContext is a special shared library.
2020-08-11 10:31:04.749 3915-3915/com.gsma.rcs.tools.http.provisioning I/tp.provisionin: Waiting for a blocking GC ClassLinker
2020-08-11 10:31:04.793 3915-4075/com.gsma.rcs.tools.http.provisioning I/tp.provisionin: The ClassLoaderContext is a special shared library.
2020-08-11 10:31:04.794 3915-3915/com.gsma.rcs.tools.http.provisioning W/Binder:intercep: type=1400 audit(0.0:3044038): avc: denied { getattr } for path="/data/data/com.miui.contentcatcher" dev="sdc46" ino=1359924 scontext=u:r:untrusted_app_27:s0:c512,c768 tcontext=u:object_r:system_app_data_file:s0 tclass=dir permissive=0
2020-08-11 10:31:04.808 3915-4075/com.gsma.rcs.tools.http.provisioning D/ViewContentFactory: initViewContentFetcherClass
2020-08-11 10:31:04.808 3915-4075/com.gsma.rcs.tools.http.provisioning D/ViewContentFactory: getInterceptorPackageInfo
2020-08-11 10:31:04.808 3915-4075/com.gsma.rcs.tools.http.provisioning W/tp.provisionin: Accessing hidden method Landroid/app/AppGlobals;->getInitialApplication()Landroid/app/Application; (light greylist, linking)
2020-08-11 10:31:04.810 3915-4075/com.gsma.rcs.tools.http.provisioning D/ViewContentFactory: getInitialApplication took 1ms
2020-08-11 10:31:04.810 3915-4075/com.gsma.rcs.tools.http.provisioning D/ViewContentFactory: packageInfo.packageName: com.miui.catcherpatch
2020-08-11 10:31:04.826 3915-3915/com.gsma.rcs.tools.http.provisioning W/Binder:intercep: type=1400 audit(0.0:3044039): avc: denied { getattr } for path="/data/data/com.miui.catcherpatch" dev="sdc46" ino=1360175 scontext=u:r:untrusted_app_27:s0:c512,c768 tcontext=u:object_r:system_app_data_file:s0 tclass=dir permissive=0
2020-08-11 10:31:04.837 3915-4075/com.gsma.rcs.tools.http.provisioning D/ViewContentFactory: initViewContentFetcherClass took 28ms
2020-08-11 10:31:04.837 3915-4075/com.gsma.rcs.tools.http.provisioning I/ContentCatcher: ViewContentFetcher : ViewContentFetcher
2020-08-11 10:31:04.837 3915-4075/com.gsma.rcs.tools.http.provisioning D/ViewContentFactory: createInterceptor took 29ms
2020-08-11 10:31:05.104 3915-3915/com.gsma.rcs.tools.http.provisioning I/SurfaceFactory: [static] sSurfaceFactory = com.mediatek.view.impl.SurfaceFactoryImpl@59ebd93
2020-08-11 10:31:05.117 3915-3915/com.gsma.rcs.tools.http.provisioning D/ViewRootImpl[ProvisioningTemplateActivity]: hardware acceleration = true , fakeHwAccelerated = false, sRendererDisabled = false, forceHwAccelerated = false, sSystemRendererDisabled = false
2020-08-11 10:31:05.123 3915-3915/com.gsma.rcs.tools.http.provisioning V/PhoneWindow: DecorView setVisiblity: visibility = 0, Parent = android.view.ViewRootImpl@43f24ce, this = DecorView@16d9fef[ProvisioningTemplateActivity]
2020-08-11 10:31:05.126 3915-3915/com.gsma.rcs.tools.http.provisioning W/Looper: Slow Looper main: Activity com.gsma.rcs.tools.http.provisioning/.ProvisioningTemplateActivity is 2449ms late (wall=403ms running=0ms ClientTransaction{ callbacks=[android.app.servertransaction.LaunchActivityItem] lifecycleRequest=android.app.servertransaction.ResumeActivityItem }) because of 1 msg, msg 1 took 2530ms (late=1ms h=android.app.ActivityThread$H w=110)
2020-08-11 10:31:05.190 3915-3915/com.gsma.rcs.tools.http.provisioning D/Surface: Surface::allocateBuffers(this=0x79ab1a2000)
2020-08-11 10:31:05.195 3915-4076/com.gsma.rcs.tools.http.provisioning I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
2020-08-11 10:31:05.195 3915-4076/com.gsma.rcs.tools.http.provisioning I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
2020-08-11 10:31:05.195 3915-4076/com.gsma.rcs.tools.http.provisioning I/OpenGLRenderer: Initialized EGL, version 1.4
2020-08-11 10:31:05.195 3915-4076/com.gsma.rcs.tools.http.provisioning D/OpenGLRenderer: Swap behavior 2
2020-08-11 10:31:05.195 3915-4076/com.gsma.rcs.tools.http.provisioning I/mali: [DebugProp] GPU Debug-Mechanism Disable !
2020-08-11 10:31:05.197 3915-4076/com.gsma.rcs.tools.http.provisioning I/GED: [GT]_get_procNameprocess pid(3915)
2020-08-11 10:31:05.197 3915-4076/com.gsma.rcs.tools.http.provisioning I/GED: [GT]_getprocess name(com.gsma.rcs.tools.http.provisioning)
2020-08-11 10:31:05.197 3915-4076/com.gsma.rcs.tools.http.provisioning 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-11 10:31:05.200 3915-4076/com.gsma.rcs.tools.http.provisioning D/Surface: Surface::connect(this=0x79ab1a2000,api=1)
2020-08-11 10:31:05.201 3915-4076/com.gsma.rcs.tools.http.provisioning D/mali_winsys: EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000
2020-08-11 10:31:05.201 3915-4076/com.gsma.rcs.tools.http.provisioning I/libEGL: [MTK Game SDK] low_latency_mode(0) pid(-1) property(-1)
2020-08-11 10:31:05.263 3915-4076/com.gsma.rcs.tools.http.provisioning E/gralloc: Arm Module v1.0
2020-08-11 10:31:05.264 3915-4076/com.gsma.rcs.tools.http.provisioning E/ion: ioctl c0044901 failed with code -1: Invalid argument
2020-08-11 10:31:05.258 3915-3915/com.gsma.rcs.tools.http.provisioning W/RenderThread: type=1400 audit(0.0:3044040): avc: denied { search } for name="clients" dev="debugfs" ino=1065 scontext=u:r:untrusted_app_27:s0:c512,c768 tcontext=u:object_r:debugfs_ion:s0 tclass=dir permissive=0
2020-08-11 10:31:12.697 3915-4072/com.gsma.rcs.tools.http.provisioning I/tp.provisionin: ProcessProfilingInfo new_methods=0 is saved saved_to_disk=0 resolve_classes_delay=8000
app界面:
开始提示:
然后是
后记:
点击后弹框申请权限:
访问设备上的照片、媒体内容和文件。
点击允许后,出错了:
后记:
【未解决】rcsjta中provisioning即RCS template运行报错:IOException occurred Unable to resolve host config.rcs.mnc009.mcc460.pub.3gppnetwork.org
log
没有logcat,只有console的log
08/11 10:33:04: Launching 'tts' on Xiaomi Redmi Note 8 Pro.
$ adb shell am start -n "com.orangelabs.rcs.tts/com.orangelabs.rcs.tts.Main" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -D
Waiting for application to come online: com.orangelabs.rcs.tts | com.orangelabs.rcs.tts.test
Waiting for application to come online: com.orangelabs.rcs.tts | com.orangelabs.rcs.tts.test
Connected to process 4817 on device 'xiaomi-redmi_note_8_pro-hmucaei75ptk7szs'.
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
I/libthemeutils: Theme: libthemeutil.so load success
W/ActivityThread: Application com.orangelabs.rcs.tts is waiting for the debugger on port 8100...
I/System.out: Sending WAIT chunk
Connecting to com.orangelabs.rcs.tts
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
I/libthemeutils: Theme: libthemeutil.so load success
W/ActivityThread: Application com.orangelabs.rcs.tts is waiting for the debugger on port 8100...
I/System.out: Sending WAIT chunk
I/System.out: Debugger has connected
    waiting for debugger to settle...
Connected to the target VM, address: 'localhost:8602', transport: 'socket'
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/System.out: debugger has settled (1306)
I/ngelabs.rcs.tt: The ClassLoaderContext is a special shared library.
I/ngelabs.rcs.tt: The ClassLoaderContext is a special shared library.
W/Binder:intercep: type=1400 audit(0.0:3070913): avc: denied { getattr } for path="/data/data/com.miui.contentcatcher" dev="sdc46" ino=1359924 scontext=u:r:untrusted_app_27:s0:c512,c768 tcontext=u:object_r:system_app_data_file:s0 tclass=dir permissive=0
D/ViewContentFactory: initViewContentFetcherClass
    getInterceptorPackageInfo
W/ngelabs.rcs.tt: Accessing hidden method Landroid/app/AppGlobals;->getInitialApplication()Landroid/app/Application; (light greylist, linking)
D/ViewContentFactory: getInitialApplication took 1ms
    packageInfo.packageName: com.miui.catcherpatch
W/Binder:intercep: type=1400 audit(0.0:3070914): avc: denied { getattr } for path="/data/data/com.miui.catcherpatch" dev="sdc46" ino=1360175 scontext=u:r:untrusted_app_27:s0:c512,c768 tcontext=u:object_r:system_app_data_file:s0 tclass=dir permissive=0
D/ViewContentFactory: initViewContentFetcherClass took 29ms
I/ContentCatcher: ViewContentFetcher : ViewContentFetcher
D/ViewContentFactory: createInterceptor took 30ms
D/AndroidRuntime: Shutting down VM
E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.orangelabs.rcs.tts, PID: 4817
    java.lang.RuntimeException: Unable to resume activity {com.orangelabs.rcs.tts/com.orangelabs.rcs.tts.Main}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.preference.CheckBoxPreference.setChecked(boolean)' on a null object reference
        at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3859)
        at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3891)
        at android.app.servertransaction.ResumeActivityItem.execute(ResumeActivityItem.java:51)
        at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:150)
        at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:73)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1859)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loop(Looper.java:201)
        at android.app.ActivityThread.main(ActivityThread.java:6831)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:927)
     Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.preference.CheckBoxPreference.setChecked(boolean)' on a null object reference
        at com.orangelabs.rcs.tts.Main.onResume(Main.java:94)
        at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1412)
        at android.app.Activity.performResume(Activity.java:7400)
        at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3851)
        at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3891) 
        at android.app.servertransaction.ResumeActivityItem.execute(ResumeActivityItem.java:51) 
        at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:150) 
        at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:73) 
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1859) 
        at android.os.Handler.dispatchMessage(Handler.java:106) 
        at android.os.Looper.loop(Looper.java:201) 
        at android.app.ActivityThread.main(ActivityThread.java:6831) 
        at java.lang.reflect.Method.invoke(Native Method) 
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547) 
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:927) 
E/MQSEventManagerDelegate: failed to get MQSService.
Disconnected from the target VM, address: 'localhost:8602', transport: 'socket'
手机中提示:
然后开始调试:
然后弹框申请权限:
后来可以看到报错了:
导致app崩溃,就看不到app界面了。
截止目前,所有的app都已安装过
虽然个别出错了,不过其他多数可以启动
桌面中图标是:
但是:都没有启动rcs的core的service
断点都没运行到。
目前看来,所有的调试目标 多个apk 都没有调试和运行到 rcs的core的service。
只能回头去研究代码,看看到底哪里调用到的。

转载请注明:在路上 » 【未解决】调试运行Android项目rcsjta的其他几个apk看看是否启动了rcs的core的service

发表我的评论
取消评论

表情

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

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
83 queries in 0.125 seconds, using 21.78MB memory