$ luna-atlas --cat activity

Activity Manager luna-send commands.

The activity manager: scheduled and triggered background jobs. 66 methods in 14 services.

66methods
14services
43documented
37public
0flagged dangerous

open Activity Manager in the catalog ↗

Services

servicemethodswhat it does
com.webos.service.activitymanager36Activity Manager: monitors system events and runs actions in response, and schedules work periodically or at set times; apps create,…
com.palm.activitymanager7Legacy ActivityManager: schedules, tracks and arbitrates background activities (jobs), letting clients create, start, adopt, complete,…
com.example.activityexample5SDK sample service demonstrating the ActivityManager: creating timers and alarms and handling their fired/cancel callbacks. Example code,…
com.webos.service.sportsalert5Sports-alert service driven by Activity Manager: fetches account, authentication, event, locale and settings data to deliver sports…
com.webos.app.music.preview2Music-preview helper that queries connected-device status and lists devices via the Activity Manager.
com.webos.app.photovideo.preview2Helper for the photo/video preview app that lists connected storage devices and reports their status via ActivityManager callbacks.
com.webos.service.activityPolicyMgr2Activity policy manager: grants and releases scheduling authority between activities. Narrow arbitration role based on its two methods.
com.webos.app.igallery.preview1Appears to back the image-gallery preview app: creates gallery database and account folders, lists view themes, and reports status via the…
com.webos.pmlogd1PmLog logging daemon: collects and backs up system logs, forces log rotation, manages the log whitelist, and toggles developer logging.
com.webos.service.dmpautotest1Auto-test helper exposing a single ActivityManager callback; appears to support automated DMP testing. Opaque/.
com.webos.service.dmrautotest1DLNA/DMR media-renderer auto-test helper; exposes an activity callback. Opaque beyond that.
com.webos.service.hybridtvmanager1Hybrid-TV manager: handles hybrid broadcast-broadband state, user agreements, ACR first-run settings, and teletext display and messaging.
com.webos.service.prs1Program recommendation service (PRS): manages recommended-channel lists and reports playback, scheduled recordings/watches and…
com.webos.service.universalqcard1Universal QCard helper: reports status, invokes and handles alert clicks for QCards. Opaque/.

Documented methods to start with

Public and SSAP methods from LG's documentation, none flagged dangerous. Each opens in the catalog with its full parameter table. Run them on a rooted TV or in Developer Mode.

adopt publiccom.palm.activitymanager

Registers an app or service as willing to take over as the Activity parent.

params: activityId, activityName, wait, subscribe, detailedEvents

$ luna-send -n 1 -f luna://com.palm.activitymanager/adopt '{}'
cancel publiccom.palm.activitymanager

Terminates the specified Activity and sends a cancel event to all subscribers.

params: activityId, activityName

$ luna-send -n 1 -f luna://com.palm.activitymanager/cancel '{}'
complete publiccom.palm.activitymanager

Parent ends the Activity and optionally restarts it with new attributes.

params: activityId, activityName, restart, callback, schedule, trigger, metadata

$ luna-send -n 1 -f luna://com.palm.activitymanager/complete '{}'
create publiccom.palm.activitymanager

Creates a new Activity and returns its ID.

params: activity, subscribe, detailedEvents, start, replace

$ luna-send -n 1 -f luna://com.palm.activitymanager/create '{}'
release publiccom.palm.activitymanager

Parent frees an Activity and notifies other subscribers.

params: activityId, activityName

$ luna-send -n 1 -f luna://com.palm.activitymanager/release '{}'
start publiccom.palm.activitymanager

Moves an Activity from init to eligible-to-run, or resumes a paused one.

params: activityId, activityName

$ luna-send -n 1 -f luna://com.palm.activitymanager/start '{}'
stop publiccom.palm.activitymanager

Stops an Activity and sends a stop event to all subscribers.

params: activityId, activityName

$ luna-send -n 1 -f luna://com.palm.activitymanager/stop '{}'
addFocus publiccom.webos.service.activitymanager

Add a focus to the target Activity and remove a focus from source Activity. If a focus is added successfully, addFocus will generate "focus" events for subscribers of the target Activity.

params: activityId, activityName, targetActivityId

$ luna-send -n 1 -f luna://com.webos.service.activitymanager/addFocus '{}'
adopt publiccom.webos.service.activitymanager

The Activity Manager considers the creator of the Activity as a parent. Therefore, the creator of the activity does not need to adopt the Activity to be a parent. An app or a service registers its willingness to become…

params: activityId, activityName, wait, subscribe, detailedEvents

$ luna-send -n 1 -f luna://com.webos.service.activitymanager/adopt '{}'
callback/scheduledwakeup publiccom.webos.service.activitymanager

A callback method indicating the scheduled time of the activities. Note: Do not use this method in your application or service. This method is only called by sleepd (com.webos.service.alarm) service.

$ luna-send -n 1 -f luna://com.webos.service.activitymanager/callback/scheduledwakeup '{}'
cancel publiccom.webos.service.activitymanager

Terminate the specified Activity and send a "cancel" event to all subscribers to this Activity. This method succeeds if the Activity exists.

params: activityId, activityName

$ luna-send -n 1 -f luna://com.webos.service.activitymanager/cancel '{}'
complete publiccom.webos.service.activitymanager

Terminate the specified Activity and optionally restart it with(or without) new callback, schedule or trigger. Only the Activity's parent can call this method. Other subscribers to the Activity receive a "complete"…

params: activityId, activityName, restart, callback, schedule, trigger, metadata

$ luna-send -n 1 -f luna://com.webos.service.activitymanager/complete '{}'
create publiccom.webos.service.activitymanager

Note: The 'creator' in Activity object can be set only by configurator. Create a new Activity and return its ID. Each of created Activities must have a unique name. Activities can be scheduled to run at a specific time…

params: activity, subscribe, detailedEvents, start, replace

$ luna-send -n 1 -f luna://com.webos.service.activitymanager/create '{}'
devel/concurrency publiccom.webos.service.activitymanager

Set background Activity concurrency level for the Activity Manager.

params: level, unlimited

$ luna-send -n 1 -f luna://com.webos.service.activitymanager/devel/concurrency '{}'
devel/evict publiccom.webos.service.activitymanager

Evict one or all Activities from the background queue.

params: activityId, evictAll

$ luna-send -n 1 -f luna://com.webos.service.activitymanager/devel/evict '{}'
devel/priorityControl publiccom.webos.service.activitymanager

Enable or disable priority control.

params: enabled

$ luna-send -n 1 -f luna://com.webos.service.activitymanager/devel/priorityControl '{}'
devel/run publiccom.webos.service.activitymanager

Run one or all Activities that are in ready queue.

params: activityId, runAll

$ luna-send -n 1 -f luna://com.webos.service.activitymanager/devel/run '{}'
disable publiccom.webos.service.activitymanager

Disable scheduling new Activities.

$ luna-send -n 1 -f luna://com.webos.service.activitymanager/disable '{}'
enable publiccom.webos.service.activitymanager

Enable scheduling new Activities.

$ luna-send -n 1 -f luna://com.webos.service.activitymanager/enable '{}'
focus publiccom.webos.service.activitymanager

Focus to target Activity. All currently focused Activities will be lost their focus. If requester is not privileged, this call will fail. Appropriate "focused" and "unfocused" events will be generated to subscribers of…

params: activityId, activityName

$ luna-send -n 1 -f luna://com.webos.service.activitymanager/focus '{}'
getActivityInfo publiccom.webos.service.activitymanager

Gets information of Activities. If activityId or activityName is given, getActivityInfo only returns information about that activity. Conversely, if activityId or activityName is not given, getActivityInfo returns all…

params: activityId, activityName, subscribers, details, current

$ luna-send -n 1 -f luna://com.webos.service.activitymanager/getActivityInfo '{}'
getDetails publiccom.webos.service.activitymanager

Gets details of an activity. Note: Use the 'getActivityInfo' method instead.

params: activityId, activityName, current, internal

$ luna-send -n 1 -f luna://com.webos.service.activitymanager/getDetails '{}'
getManagerInfo publiccom.webos.service.activitymanager

Gets Activity Manager related information such as: Activity Manager state - queued and leaked activities List of activities for which power is currently locked Supported requirements

$ luna-send -n 1 -f luna://com.webos.service.activitymanager/getManagerInfo '{}'
info publiccom.webos.service.activitymanager

Get Activity Manager related information such as Activity Manager state - queued and leaked Activities, list of Activities for which power is currently locked, and supported requirements. Note: Use the 'getManagerInfo'…

$ luna-send -n 1 -f luna://com.webos.service.activitymanager/info '{}'
join publiccom.webos.service.activitymanager

Subscribe to receive events from the specified Activity. Note: Use the 'am-monitor' tool instead.

params: activityId, activityName, subscribe, detailedEvent

$ luna-send -n 1 -f luna://com.webos.service.activitymanager/join '{}'
list publiccom.webos.service.activitymanager

List Activities that are in running or waiting state. Note: Use the 'getActivityInfo' method instead.

params: details, subscribers, current, internal

$ luna-send -n 1 -f luna://com.webos.service.activitymanager/list '{}'
monitor publiccom.webos.service.activitymanager

Return a current status of the specified Activity. If the caller chooses to subscribe, the method returns the Activity's state when it is changed. Note: Use the 'am-monitor' tool instead.

params: activityId, activityName, subscribe, detailedEvents

$ luna-send -n 1 -f luna://com.webos.service.activitymanager/monitor '{}'
pause publiccom.webos.service.activitymanager

Suspend the work on the specified Activity and place the Activity in pause state. NOTE: An activity can be paused only if it is in the unsatisfied state. Use the getActivityInfo method to check the state of an activity.

params: activityId, activityName

$ luna-send -n 1 -f luna://com.webos.service.activitymanager/pause '{}'
release publiccom.webos.service.activitymanager

Allow a parent to free an Activity and notify other subscribers. The Activity is cancelled unless one of its non-parent subscribers adopts it and becomes the new parent. For a completely safe transfer, a subscribing…

params: activityId, activityName

$ luna-send -n 1 -f luna://com.webos.service.activitymanager/release '{}'
start publiccom.webos.service.activitymanager

Attempt to start the specified Activity, either moving its state from 'created' to 'starting', or from 'paused' to 'resuming'.

params: activityId, activityName

$ luna-send -n 1 -f luna://com.webos.service.activitymanager/start '{}'
Before you run anything. Methods marked dangerous can change, reset or break things on the TV. Running one from here is exactly as safe as typing the same luna-send yourself. See dangerous.md.

Other categories