У меня есть приложение с двумя процессами.Давайте назовем их Главным и Удаленным.У обоих есть услуги.Сервис Main process - это приоритетный сервис (с уведомлением).Удаленная служба привязана к основному процессу, но сама не является передним планом (без уведомления, без вызова startForeground).
Вопрос в том, будет ли Android рассматривать удаленный сервис передним планом, поскольку он связан с процессом переднего плана?
Я пытался найти эту информацию в adb, но насколько я могу судить о нейтам нет:
* ServiceRecord{eb553a7 u0 com.example.app/.remote.remoteProcess.ipcCommunication.RemoteProcessService}
intent={cmp=com.example.app/.remote.remoteProcess.ipcCommunication.RemoteProcessService}
packageName=com.example.app
processName=com.example.app:remote
baseDir=/data/app/com.example.app-2/base.apk
dataDir=/data/user/0/com.example.app
app=ProcessRecord{d194a7f 11618:com.example.app:remote/u0a222}
createTime=-8m5s459ms startingBgTimeout=--
lastActivity=-45s353ms restartTime=-7m29s395ms createdFromFg=true
startRequested=true delayedStop=false stopIfKilled=false callStart=true lastStartId=11
Bindings:
* IntentBindRecord{608134d CREATE}:
intent={cmp=com.example.app/.remote.remoteProcess.ipcCommunication.RemoteProcessService}
binder=android.os.BinderProxy@1dfde02
requested=true received=true hasBound=true doRebind=false
* Client AppBindRecord{9825313 ProcessRecord{8cb8fdb 11552:com.example.app/u0a222}}
Per-process Connections:
ConnectionRecord{40c25cb u0 CR com.example.app/.remote.remoteProcess.ipcCommunication.RemoteProcessService:@5a6e89a}
All Connections:
ConnectionRecord{40c25cb u0 CR com.example.app/.remote.remoteProcess.ipcCommunication.RemoteProcessService:@5a6e89a}