Page 1 of 1

Starting and stopping service CPUInfoService

Posted: 17 Jan 2017 22:29
by piskor
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

Re: Starting and stopping service CPUInfoService

Posted: 20 Jan 2017 20:27
by Martin
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

Re: Starting and stopping service CPUInfoService

Posted: 23 Jan 2017 08:27
by piskor
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