Prevent automated starting of Android app due to “machine learning” (Samsung's PkgPredictorService)

一曲冷凌霜 提交于 2021-02-08 01:22:37

问题


I am the developer of an app and it's available and working well since about two years.

Only on recent Samsung devices the app gets randomly started by the system after the user closed it via its exit button. This exit button stops all services and activities and kills the app via Android's "killProcess"-method,so it's not a simple restart of a crashed app. It's an utility-app which runs in the background and if the user closes it, it must stop and stay closed because it produces a lot of traffic in the background. Maybe there's something I can add to the manifest-file?

Samsung's "PkgPredictorService: [com.samsung.android.nextapp.IPkgPredictor]" seems to silently start my app based on "machine learning":

    165668  08-17 18:41:58.843  4971  5299 D PkgPredictorService-NapPreloadController: preload pkg: [] type: ml
    165669  08-17 18:41:58.843  4971  5299 D PkgPredictorService-NapPreloadController: Sent pkg = eu.abc.pro type: ml
    165670  08-17 18:41:58.844  4971  5665 D ActivityManager: [ML] packageName : eu.abc.pro uid : 0 type : ml
    165672  08-17 18:41:58.844  4971  5665 D ActivityManager: [ML]launchEmptyProcess packageName :eu.abc.pro, userId : 0, type :ml
    165674  08-17 18:41:58.847  4971  5665 I ApplicationPolicy: isApplicationExternalStorageWhitelisted:eu.abc.pro user:0
    165676  08-17 18:41:58.847  4971  5665 D ActivityManager: package  eu.abc.pro, user - 0 is SDcard whitelisted
    165677  08-17 18:41:58.847  4971  5665 I ApplicationPolicy: isApplicationExternalStorageBlacklisted:eu.abc.pro user:0
    165679  08-17 18:41:58.847  4971  5665 I ApplicationPolicy: isApplicationExternalStorageBlacklisted:eu.abc.pro user:0
    165684  08-17 18:41:58.848  4971  4971 D PkgPredictorService-NapPreloadController: Get reply pkgName = eu.abc.pro type = ml uid = 0
    165686  08-17 18:41:58.864  4971  5048 I ActivityManager: Start proc 18318:eu.abc.pro/u0a447 for mllaunch {eu.abc.pro/eu.abc.activities.MainActivity}

I don't want the app to get started without user interaction!

How can I disable/prevent that any machine learning algorithm starts my app automatically?

来源:https://stackoverflow.com/questions/63579509/prevent-automated-starting-of-android-app-due-to-machine-learning-samsungs-p

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!