我有一个安卓应用程序,它有一个前台服务。
该服务还将一个持续的通知发布到抽屉,因为
前台服务必须显示通知。
它开始粘稠的:
public int onStartCommand(Intent intent, int flags, int startId) {
...
return START_STICKY;
}
所以Android会继续这样做的
如果该服务的进程在启动时被终止,则将其保留在启动状态(.)中。稍后,系统将尝试重新创建服务。
然而,由于一些未知的原因,Finsky有时会阻止这样做:
12-02 20:06:27.276 D/CCodecBuffers(23988): [c2.android.aac.decoder#777:1D-Input.Impl[N]] codec released a buffer owned by client (index 0)
12-02 20:06:27.393 I/Finsky ( 4126): [2664] aliq.b(1): Attempting to stop application: net.MYAPP.android
12-02 20:06:27.396 I/ActivityManager( 1245): Force stopping net.MYAPP.android appid=10222 user=0: from pid 4126
12-02 20:06:27.397 I/ActivityManager( 1245): Killing 30598:net.MYAPP.android/u0a222 (adj 200): stop net.MYAPP.android
12-02 20:06:27.400 W/ActivityManager( 1245): Scheduling restart of crashed service net.MYAPP.android/.MYAPPService in 1000ms
12-02 20:06:27.403 I/ActivityManager( 1245): Force stopping service ServiceRecord{ace11d1 u0 net.MYAPP.android/.MYAPPService}
12-02 20:06:27.406 I/EdgeLightingManager( 1245): isCallingUserSupported : callingUserId=0, mUserId=0, isDualAppId=false
12-02 20:06:27.406 I/EdgeLightingManager( 1245): hideForNotification : packageName = net.MYAPP.android
12-02 20:06:27.406 I/EdgeLightingPolicyManager:NotificationGroup( 1245): remove : sbn : StatusBarNotification(pkg=net.MYAPP.android user=UserHandle{0} id=1337 tag=null key=0|net.MYAPP.android|1337|null|10222: Notification(channel=MYAPP_SYSTEM_NOTIFICATION pri=0 contentView=null vibrate=null sound=null tick defaults=0x0 flags=0x272 color=0x00000000 groupKey=MYAPP_SYSTEM_NOTIFICATION vis=PRIVATE semFlags=0x8 semPriority=0 semMissedCount=0))
12-02 20:06:27.406 I/EdgeLightingPolicyManager.NotificationGroup( 1245): group notification count : 1
12-02 20:06:27.406 I/EdgeLightingManager( 1245): hideForNotification : isInteractive is true
12-02 20:06:27.406 W/Finsky ( 4126): [2664] alqs.a(41): Unwanted app (MUwS) without is_muws flag was returned with verdict POTENTIALLY_UNWANTED on autoscan: net.MYAPP.android
12-02 20:06:27.410 D/SamsungAlarmManager( 1245): Remove alarm for next reason : android.intent.action.PACKAGE_RESTARTED : package: net.MYAPP.android
我的应用程序还没有上传到商店,它还在开发阶段。
芬斯基实际上是什么样的应用程序?
芬斯基似乎只是认为这是多余的,因为ActivityManager
正在计划重新启动我崩溃的服务。我的服务崩溃了,因为Finksy
试图停止应用程序,而ActivityManager
强制停止应用程序。
我认为应该找出根本原因,即:,为什么芬斯基一开始就试图停止我的应用程序?
发布于 2021-07-21 22:50:44
我有同样的问题,申请被强制在同一时间每天停止。在设备日志(由shell检索到设备,然后是logcat)中,有一条日志写着“Finsky: 414 afha.j(1):试图停止应用程序”,我不得不转到Play Store -> Play Protect ->扫描应用程序并关闭这个启动。修复了这个问题,我的应用程序不再被强制停止。显然,Google Play Store认为我的应用程序是一个不想要的应用程序,而强制阻止它。
https://stackoverflow.com/questions/65113504
复制相似问题