Hi
I'm trying to stop Navitel from my flow. I'm using action Kill App Process, but whatever signal I choose, on next launch Navitel says it crashed.
But when I rebooted device with Navitel running, it was stop correctly and there was no any errors on next Navitel launch.
I tried term, int, hup and kill.
Can you advice what signal to choose?
... or maybe there is any other way?
Kill signal
Moderator: Martin
Kill signal
Sorry for bad english, my native is russian.
Re: Kill signal
Hi,
Does it work when you use an action Execute Root Command: am force-stop com.navitel? You can use the [...]-button to select the command which allows to pick the package from an app list.
Regards,
Martin
Does it work when you use an action Execute Root Command: am force-stop com.navitel? You can use the [...]-button to select the command which allows to pick the package from an app list.
Regards,
Martin
Re: Kill signal
The app probably sets a flag when it is started and deletes the flag when the app is stopped using the regular exit/close button of the app. If this is the case, there's no way to kill the app without seeing this crash message.
You could try to use Control UI to automatically close the app (when screen is on and unlocked).
You could try to use Control UI to automatically close the app (when screen is on and unlocked).
Re: Kill signal
But why when I turn off my phone Navitel ends correctly?
Sorry for bad english, my native is russian.
Re: Kill signal
Hard to say what Navitel internally does exactly in this case but Navitel could listen for the shutdown event of the system and end Navitel properly.
Re: Kill signal
So can you tell me what signals are sent to Navitel when system shuts down and how to simulate it?
Sorry for bad english, my native is russian.
Re: Kill signal
The system sends a broadcast android.intent.action.ACTION_SHUTDOWN but it's documented that only the system can send the broadcast.
Maybe Execute Root Command with command am broadcast -a android.intent.action.ACTION_SHUTDOWN works.
Maybe Execute Root Command with command am broadcast -a android.intent.action.ACTION_SHUTDOWN works.
Re: Kill signal
Hmm... Sad
I thought I can send only to Navitel
I thought I can send only to Navitel
Sorry for bad english, my native is russian.