Signed-off-by: Wenchao Hao <haowenchao22@gmail.com>
This commit is contained in:
Wenchao Hao 2025-09-01 17:10:09 +08:00
parent 7c16407aad
commit 4e9d777d30
4 changed files with 5 additions and 30 deletions

25
applist
View File

@ -2,39 +2,14 @@ tv.danmaku.bili
com.xingin.xhs com.xingin.xhs
com.jingdong.app.mall com.jingdong.app.mall
com.taobao.taobao com.taobao.taobao
com.xunmeng.pinduoduo
com.ss.android.article.news com.ss.android.article.news
com.sina.weibo com.sina.weibo
com.tencent.mobileqq
com.tencent.qqlive
com.smile.gifmaker com.smile.gifmaker
com.netease.cloudmusic
air.tv.douyu.android air.tv.douyu.android
com.autonavi.minimap com.autonavi.minimap
com.sankuai.meituan
com.tencent.mm
com.eg.android.AlipayGphone
com.ss.android.ugc.aweme.lite com.ss.android.ugc.aweme.lite
com.kuaishou.nebula com.kuaishou.nebula
com.sup.android.superb com.sup.android.superb
com.baidu.searchbox
com.tencent.weread
com.tencent.tmgp.sgame
com.qiyi.video
com.UCMobile
com.ss.android.ugc.aweme com.ss.android.ugc.aweme
com.taobao.idlefish com.taobao.idlefish
com.happyelements.AndroidAnimal
com.android.deskclock
com.tencent.qqmusic
com.android.camera
com.tencent.mtt
com.dragon.read
com.baidu.tieba
com.miHoYo.Yuanshen
com.quark.browser
com.tencent.tmgp.pubgmhd
com.tencent.jkchess
com.kmxs.reader
com.ss.android.article.lite
com.duowan.kiwi com.duowan.kiwi

View File

@ -9,7 +9,7 @@ def clear_all_apps():
try: try:
d.keyevent("HOME") d.keyevent("HOME")
d.keyevent("HOME") d.keyevent("HOME")
d.keyevent("MENU") d.keyevent("312")
time.sleep(1) time.sleep(1)
if "com.miui.home:id/recents_container" not in d.dump_hierarchy(): if "com.miui.home:id/recents_container" not in d.dump_hierarchy():
continue continue

View File

@ -98,5 +98,5 @@ data_sources: {
} }
} }
} }
duration_ms: 80000 duration_ms: 20000

6
run.sh
View File

@ -5,7 +5,7 @@ wait=3
clear_background=0 clear_background=0
mthp_stat=0 mthp_stat=0
while getopts ":s:c:w:h:C:T" opt while getopts ":s:c:w:h:kT" opt
do do
case $opt in case $opt in
s) s)
@ -14,7 +14,7 @@ do
c) c)
cycle=$OPTARG cycle=$OPTARG
;; ;;
C) k)
clear_background=1 clear_background=1
;; ;;
w) w)
@ -33,7 +33,7 @@ do
echo "-s: specify serial id of device" echo "-s: specify serial id of device"
echo "-c: specify applist startup cycle" echo "-c: specify applist startup cycle"
echo "-w: specify wait time after app start, before start next app, default 10 s" echo "-w: specify wait time after app start, before start next app, default 10 s"
echo "-C: if to kill all background apps before start app" echo "-k: if to kill all background apps before start app"
echo "-T: if check app's mTHP status" echo "-T: if check app's mTHP status"
exit 1 exit 1
;; ;;