折腾:
【未解决】用uiautomator2实现安卓手机打开支付宝自动收集蚂蚁森林能量
期间,继续去搞清楚安卓中支付宝的蚂蚁森林的页面的activity的名称
支付宝的刚启动后的页面:
当前页面名称,也最好去搞清楚
安卓 dumpsys activity 当前页面
此处确保支付宝已打开蚂蚁森林的页面:
不过:
~ adb shell dumpsys activity | grep "mFocusedActivity"
始终为空
adb shell dumpsys activity top
输出太多
adb shell dumpsys activity com.eg.android.AlipayGphone
也是输出太多。
支付宝启动后的首页:
xxx@xxx ~ adb shell dumpsys activity | grep mResumedActivity mResumedActivity: ActivityRecord{1995243 u0 com.eg.android.AlipayGphone/.AlipayLogin t2402}
支付宝点击启动了蚂蚁森林后:
xxx@xxx ~ 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
?
另外参考
去试试:
xxx@xxx ~ 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): xxx@xxx ~ 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名称是什么