最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

【已解决】安卓中支付宝的蚂蚁森林页面的activity名称是什么

支付宝 crifan 668浏览 0评论
折腾:
【未解决】用uiautomator2实现安卓手机打开支付宝自动收集蚂蚁森林能量
期间,继续去搞清楚安卓中支付宝的蚂蚁森林的页面的activity的名称
支付宝的刚启动后的页面:
当前页面名称,也最好去搞清楚
安卓 dumpsys activity 当前页面
Android 如何快速定位当前页面是哪个Activity or Fragment_cxcbupt-CSDN博客
此处确保支付宝已打开蚂蚁森林的页面:
不过:
~  adb shell dumpsys activity | grep "mFocusedActivity"
始终为空
adb shell dumpsys activity top
输出太多
adb shell dumpsys activity com.eg.android.AlipayGphone
也是输出太多。
支付宝启动后的首页:
[email protected]  ~  adb shell dumpsys activity | grep mResumedActivity
    mResumedActivity: ActivityRecord{1995243 u0 com.eg.android.AlipayGphone/.AlipayLogin t2402}
支付宝点击启动了蚂蚁森林后:
[email protected]  ~  adb shell dumpsys activity | grep mResumedActivity
    mResumedActivity: ActivityRecord{2ef6110 u0 com.eg.android.AlipayGphone/com.alipay.mobile.nebulax.integration.mpaas.activity.NebulaActivity$Main t2402}
另外:
~  adb shell "dumpsys window w | grep name="
      mSurface=Surface(name=RoundCorner)/@0x1e2f731
      mSurface=Surface(name=RoundCorner)/@0xcf65bea
       mAnimationIsEntrance=true      mSurface=Surface(name=NavigationBar)/@0x8a18a2
       mAnimationIsEntrance=true      mSurface=Surface(name=StatusBar)/@0x996f3c5
      mSurface=Surface(name=com.eg.android.AlipayGphone/com.alipay.mobile.nebulax.integration.mpaas.activity.NebulaActivity$Main)/@0xe564228
      mSurface=Surface(name=com.android.systemui.ImageWallpaper)/@0x21c84c
感觉就是:
com.alipay.mobile.nebulax.integration.mpaas.activity.NebulaActivity
或:
com.alipay.mobile.nebulax.integration.mpaas.activity.NebulaActivity$Main
另外参考
adb获取Android手机当前页面的Activity名_fengyulinde的博客-CSDN博客
去试试:
[email protected]  ~  adb shell dumpsys activity activities | grep "Running activities"
    Running activities (most recent first):
    Running activities (most recent first):
    Running activities (most recent first):
    Running activities (most recent first):
    Running activities (most recent first):
    Running activities (most recent first):
    Running activities (most recent first):
    Running activities (most recent first):
[email protected]  ~  adb shell dumpsys activity activities | grep "Running"
    Running activities (most recent first):
    Running activities (most recent first):
    Running activities (most recent first):
    Running activities (most recent first):
    Running activities (most recent first):
    Running activities (most recent first):
    Running activities (most recent first):
    Running activities (most recent first):
找不到。
去搜索
NebulaActivity
支付宝 NebulaActivity
支付宝小程序抓包与源码获取-热备资讯
“破解https验证
使用命令adb shell dumpsys activity | grep Focuse查看当前activity
mFocusedActivity: ActivityRecord{12d334a u0 com.eg.android.AlipayGphone/com.alipay.mobile.nebulax.integration.mpaas.activity.NebulaActivity$Lite1 t857}   mFocusedStack=ActivityStack{15c8721 stackId=1, 6 tasks} mLastFocusedStack=ActivityStack{15c8721 stackId=1, 6 tasks}
查看支付宝的manifest.xml,找到这个activity,发现它是运行在支付宝其他进程中的,所以用frIDA hook时一定要找对小程序的进程,这里是com.eg.android.AlipayGphone:lite1,否则就白忙活了。

不用找了,看来就是这个。
【总结】
此次目前是通过:
adb shell dumpsys activity | grep mResumedActivity
或:
adb shell "dumpsys window w | grep name="
基本上确定了:
支付宝的蚂蚁森林的activity的name是
com.alipay.mobile.nebulax.integration.mpaas.activity.NebulaActivity$Main

转载请注明:在路上 » 【已解决】安卓中支付宝的蚂蚁森林页面的activity名称是什么

发表我的评论
取消评论

表情

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

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
87 queries in 0.121 seconds, using 20.58MB memory