Starting and stopping service CPUInfoService

Post your questions and help other users.

Moderator: Martin

Post Reply
piskor
Posts: 16
Joined: 20 Dec 2016 13:03

Starting and stopping service CPUInfoService

Post by piskor » 17 Jan 2017 22:29

Hi all AM maniacs :)

This is my first post on forum and first problem.

I want to prepare flow for switching on and off developer option "Show CPU info" for showing this info on screen and I am stuck on "Start service" action.
What should be started or stopped after setting system global settings is described for example here https://github.com/NuclearAndroidProjec ... 1354-L1370
As I don't have developer skill I don't know what should be set on "Action" field. Should it be set to android.intent.action.RUN ?
I suppose "Explicit component" should be checked, "package name" set to: com.android.systemui and "Class name" to: com.android.systemui.CPUInfoService ?
Am I right? And what next? :)
Do I need to set "Flag list" or put something on "Extras"?

Please help me to understand this Start service action and set it properly

Best Regards
piskor
Regards, piskor

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Starting and stopping service CPUInfoService

Post by Martin » 20 Jan 2017 20:27

Hi,

The code on GitHub just sets the package name and class name so no action required. However I doubt that Automagic has the required permission to start or stop the service.
You could try to use action Execute Root Command with am startservice... (see the output of command am for a description of all available options).

Regards,
Martin

piskor
Posts: 16
Joined: 20 Dec 2016 13:03

Re: Starting and stopping service CPUInfoService

Post by piskor » 23 Jan 2017 08:27

Thank You Martin

I heard about am command, but didn't used it yet. I will try it.
I just thought it would be "nicer" to use built in "Start service" action :)

BR, piskor

/edit/
Flow ready. Works like a charm
Thanks one more time
Regards, piskor

Post Reply