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.jingdong.app.mall
com.taobao.taobao
com.xunmeng.pinduoduo
com.ss.android.article.news
com.sina.weibo
com.tencent.mobileqq
com.tencent.qqlive
com.smile.gifmaker
com.netease.cloudmusic
air.tv.douyu.android
com.autonavi.minimap
com.sankuai.meituan
com.tencent.mm
com.eg.android.AlipayGphone
com.ss.android.ugc.aweme.lite
com.kuaishou.nebula
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.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

View File

@ -9,7 +9,7 @@ def clear_all_apps():
try:
d.keyevent("HOME")
d.keyevent("HOME")
d.keyevent("MENU")
d.keyevent("312")
time.sleep(1)
if "com.miui.home:id/recents_container" not in d.dump_hierarchy():
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
mthp_stat=0
while getopts ":s:c:w:h:C:T" opt
while getopts ":s:c:w:h:kT" opt
do
case $opt in
s)
@ -14,7 +14,7 @@ do
c)
cycle=$OPTARG
;;
C)
k)
clear_background=1
;;
w)
@ -33,7 +33,7 @@ do
echo "-s: specify serial id of device"
echo "-c: specify applist startup cycle"
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"
exit 1
;;