首页 > 其他分享 >原创 andrid8.0以及以上获取顶层任务中activity失效的解决方法

原创 andrid8.0以及以上获取顶层任务中activity失效的解决方法

时间:2022-11-24 13:04:31浏览次数:42  
标签:顶层 andrid8.0 u0 Hist ActivityRecord activity android com


1/某些activity 手机端都未必能获取,手机端一般是使用的无障碍服务实现的,
2/8.0 以前的命令find 已经无法找到了。

C:\Users\Administrator>adb shell dumpsys activity|findstr  /n /e "Hist.*#0:.*}"
3293: Hist #0: ActivityRecord{dea3d63 u0 com.huawei.android.dsdscardmanager/.HWCardManagerActivity t1893}
3313: Hist #0: ActivityRecord{28778b4 u0 com.tencent.mobileqq/.activity.SplashActivity t1799}
3324: Hist #0: ActivityRecord{13b102 u0 com.xposed.antforest/.MainActivity t1890}
3335: Hist #0: ActivityRecord{8ceb704 u0 cn.qssq666.q.plus/cn.qssq666.common.QPlusMainActivity t1894}
3352: Hist #0: ActivityRecord{d403dd0 u0 net.dinglisch.android.taskerm/.Main t1871}
3363: Hist #0: ActivityRecord{c535f98 u0 cn.qssq666.fixengine/.MainActivity t1892}
3374: Hist #0: ActivityRecord{530d618 u0 org.autojs.autojs/.ui.main.MainActivity_ t1856}
3385: Hist #0: ActivityRecord{464f2 u0 com.android.contacts/.activities.DialtactsActivity t1846}
3399: Hist #0: ActivityRecord{a9e1ae1 u0 com.tencent.mm/.ui.LauncherUI t1800}
3413: Hist #0: ActivityRecord{6e94ed9 u0 com.huawei.health/.MainActivity t1839}
3426: Hist #0: ActivityRecord{477eb32 u0 com.tencent.mobileqq/cooperation.qwallet.plugin.QWalletPluginProxyActivity t1832}
3436: Hist #0: ActivityRecord{22f53da u0 com.android.incallui/.InCallActivity t1847}
3486: Hist #0: ActivityRecord{1bb0769 u0 com.huawei.android.launcher/.unihome.UniHomeLauncher t1795}
3505: Hist #0: ActivityRecord{68f6d36 u0 com.android.systemui/.recents.RecentsActivity t1801}

C:\Users\Administrator>

这里 第一个就是最顶层的。

标签:顶层,andrid8.0,u0,Hist,ActivityRecord,activity,android,com
From: https://blog.51cto.com/u_15458814/5883457

相关文章