Tornaco / Thanox

I am thanos! 😈 👌
https://tornaco.github.io/Thanox-Docs/
Apache License 2.0
2.1k stars 88 forks source link

一键清理会清理已允许后台运行的软件 #129

Open zy10010 opened 4 years ago

zy10010 commented 4 years ago

问题:开机后或者待机20min左右,一键清理以及设置的锁屏自动清理会清理已勾选后台运行及后台自启软件 复现方式:重启开机后等待1min,点击一键清理即出现,软件被清理后再次点击不复现,但待机20min左右,上述情况复现(已使用进程锁锁后台,软件后台正常运行,内存剩余充足) 版本:thanox 1.2.0 1.2.1 系统:android 9 日志: 1587428589471|W|ThanosS|PkgPool app: AppInfo(pkgName=com.eg.android.AlipayGphone, appLabel=支付宝, versionCode=242, versionName=10.1.90.9255, flags=1, uid=10137, debuggable=false, minSdkVersion=18, targetSdkVersion=28, state=1, idle=false, isDummy=false, isSelected=false, payload=null) 1587428609854|W|ThanosS|getContentProviderImpl fail resolve provider for name: com.alipay.setting, providerInfo is null 1587428609881|W|ThanosS|getContentProviderImpl fail resolve provider for name: com.alipay.setting, providerInfo is null 1587428616445|W|ThanosS|getContentProviderImpl fail resolve provider for name: com.facebook.katana.provider.AttributionIdProvider, providerInfo is null 1587428620051|W|ThanosS|getContentProviderImpl fail resolve provider for name: com.alipay.setting, providerInfo is null 1587428622325|W|ThanosS|getContentProviderImpl fail resolve provider for name: com.tencent.mm.coolassist.debugprovider, providerInfo is null 1587428635091|W|ThanosS|getContentProviderImpl fail resolve provider for name: com.alipay.setting, providerInfo is null 1587428642652|W|ThanosS|InvokeTargetProxy invokeMethod fail: method: ensureNotStartingBackground class: class github.tornaco.android.thanos.services.app.ActiveServicesProxy$ServiceMapProxy java.lang.NoSuchMethodError: com.android.server.am.ActiveServices$ServiceMap#ensureNotStartingBackground(com.android.server.am.ServiceRecord)#bestmatch 1587428722672|W|ThanosS|protectedWhitelistEnabled: true 1587428723138|W|ThanosS|protectedWhitelistEnabled: true 1587428724223|W|ThanosS|protectedWhitelistEnabled: true 1587428746620|W|ThanosS|cleanUpBgTasksAnyway 1587428746622|W|ThanosS|disableAllSmartFreezePkgs 1587428746624|W|ThanosS|bgAnywayTaskCleaner Cleaning up background tasks: [net.oneplus.launcher, github.tornaco.android.thanos, com.xiaomi.hm.health, com.oneplus.ifaaservice, com.jozein.xedgepro, com.eg.android.AlipayGphone, com.tencent.mm, com.oneplus.config, com.tencent.soter.soterserver, com.topjohnwu.magisk, com.android.dialer, com.ted.number, com.oneplus.deskclock, com.android.mms, com.qualcomm.qti.simsettings, com.android.settings, com.oneplus.simcontacts, org.codeaurora.bluetooth, net.oneplus.odm, com.google.android.webview, com.qualcomm.qti.smcinvokepkgmgr, com.baidu.input_yijia, com.android.traceur, com.android.contacts, cn.oneplus.nvbackup, com.oneplus.dirac.simplemanager, me.seasonyuu.xposed.networkspeedindicator.h2os, com.android.printspooler, net.oneplus.provider.appcategoryprovider, com.qualcomm.qti.poweroffalarm, com.oneplus.findmyphoneutils, com.oneplus.findmyphone, com.amap.android.ams, com.oneplus.aod, net.oneplus.commonlogtool, com.oneplus.opbugreportlite, com.oneplus, com.android.se, com.oneplus.permissionutil, com.qualcomm.timeservice, com.oneplus.skin, com.oneplus.sms.smscplugger, com.oneplus.diagnoseManager, com.coloros.mcs, se.dirac.acs, com.redteamobile.virtual.softsim, com.quicinc.cne.CNEService, com.dsi.ant.server, com.qualcomm.location] 1587428746624|W|ThanosS|Package net.oneplus.launcher is not restricted, ignore. 1587428746624|W|ThanosS|Package github.tornaco.android.thanos is @front, ignore. 1587428746625|W|ThanosS|Package com.xiaomi.hm.health is not restricted, ignore. 1587428746626|W|ThanosS|bgAnywayTaskCleaner Clean up background task: com.oneplus.ifaaservice 1587428746626|W|ThanosS|bgAnywayTaskCleaner Clean up background task: com.jozein.xedgepro 1587428746626|W|ThanosS|Package com.eg.android.AlipayGphone is not restricted, ignore.

Tornaco commented 4 years ago

@zy10010 测试的是哪个App被错误的清理了。日志能给全量文件吗? 只看到日志里清理了这俩哥:

1587428746626|W|ThanosS|bgAnywayTaskCleaner Clean up background task: com.oneplus.ifaaservice
1587428746626|W|ThanosS|bgAnywayTaskCleaner Clean up background task: com.jozein.xedgepro
zy10010 commented 4 years ago

thanox-core.log 分别测试了三款软件,分别是 小米运动:com.xiaomi.hm.health, 支付宝:com.eg.android.AlipayGphone, 网易云:com.netease.cloudmusic, 网易云未开乖巧,结果保留未清理

Tornaco commented 4 years ago
1587652078965|W|ThanosS|Package com.xiaomi.hm.health is not restricted, ignore.
1587652078965|W|ThanosS|Package com.eg.android.AlipayGphone is not restricted, ignore.

@zy10010 日志显示这几个App未被清理,不在清理名单中,被忽略了。是不是还有其他清理软件?

如果是Thanox清理的话,日志中会出现Clean up background task XXX,可以检查下。

zy10010 commented 4 years ago

1587652078963|W|ThanosS|disableAllSmartFreezePkgs 1587652078964|W|ThanosS|bgAnywayTaskCleaner Cleaning up background tasks: [com.netease.cloudmusic, github.tornaco.android.thanos, net.oneplus.launcher, com.eg.android.AlipayGphone, com.xiaomi.hm.health, com.oneplus.ifaaservice,

1587652078964|W|ThanosS|Package com.netease.cloudmusic is not restricted, ignore. 1587652078965|W|ThanosS|Package com.eg.android.AlipayGphone is not restricted, ignore. 1587652078965|W|ThanosS|Package com.xiaomi.hm.health is not restricted, ignore. 1587652078965|W|ThanosS|bgAnywayTaskCleaner Clean up background task: com.oneplus.ifaaservice

来源于上传的日志,显示路过忽略了,但还是把进程清理了,我乖巧保留了 KEEP com.netease.cloudmusic/com.netease.cloudmusic.service.PlayNannyService KEEP com.netease.cloudmusic/com.netease.cloudmusic.service.PlayService KEEP com.xiaomi.hm.health/com.xiaomi.hm.health.ui.smartplay.NotificationAccessService KEEP com.xiaomi.hm.health/com.xiaomi.hm.health.device.service.HMCoreService KEEP com.eg.android.AlipayGphone/com.alipay.android.launcher.service.LauncherService

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 9 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.