blob: ac2f0211ad8e3e1c5e5178f1aa32b4d5b9385982 [file] [log] [blame]
Alex Vakulenko2bddadd2014-03-27 13:23:46 -07001<?xml version="1.0" encoding="utf-8" ?>
Amin Hassanieb463ee2019-06-20 19:23:03 -07002<!--
3 Copyright (C) 2019 The Android Open Source Project
4
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
8
9 http://www.apache.org/licenses/LICENSE-2.0
10
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16!-->
Timothy Jennison08d49312015-03-04 13:46:40 -050017<node name="/org/chromium/UpdateEngine">
Andrew de los Reyes4e9b9f42010-04-26 15:06:43 -070018 <interface name="org.chromium.UpdateEngineInterface">
19 <annotation name="org.freedesktop.DBus.GLib.CSymbol"
Alex Deymo455eb532014-09-25 22:54:56 -070020 value="update_engine_service" />
Alex Deymo36dc2f32013-08-29 15:45:06 -070021 <annotation name="org.freedesktop.DBus.GLib.ClientCSymbol"
Alex Deymo455eb532014-09-25 22:54:56 -070022 value="update_engine_client" />
Darin Petkov296889c2010-07-23 16:20:54 -070023 <method name="AttemptUpdate">
Alex Deymo455eb532014-09-25 22:54:56 -070024 <arg type="s" name="app_version" direction="in" />
25 <arg type="s" name="omaha_url" direction="in" />
Darin Petkov296889c2010-07-23 16:20:54 -070026 </method>
David Zeuthen75a4c3e2013-09-06 11:36:59 -070027 <!-- TODO(zeuthen,chromium:286399): Rename to AttemptUpdate and
28 update Chrome and other users of the AttemptUpdate() method
29 in lockstep.
30 -->
31 <method name="AttemptUpdateWithFlags">
Alex Deymo455eb532014-09-25 22:54:56 -070032 <arg type="s" name="app_version" direction="in" />
33 <arg type="s" name="omaha_url" direction="in" />
Alex Deymod6deb1d2015-08-28 15:54:37 -070034 <!-- See AttemptUpdateFlags enum in update_engine/dbus-constants.h. -->
Alex Deymo455eb532014-09-25 22:54:56 -070035 <arg type="i" name="flags" direction="in" />
David Zeuthen75a4c3e2013-09-06 11:36:59 -070036 </method>
Xiaochu Liu88d90382018-08-29 16:09:11 -070037 <method name="AttemptInstall">
Amin Hassanifab175a2020-04-17 11:20:50 -070038 <arg type="s" name="omaha_url" direction="in" />
39 <arg type="as" name="dlc_ids" direction="in">
Amin Hassani3bab1772019-06-21 14:58:25 -070040 <tp:docstring>
Amin Hassanifab175a2020-04-17 11:20:50 -070041 The list of DLC IDs that needs to be installed.
Amin Hassani3bab1772019-06-21 14:58:25 -070042 </tp:docstring>
Amin Hassani3bab1772019-06-21 14:58:25 -070043 </arg>
Xiaochu Liu88d90382018-08-29 16:09:11 -070044 </method>
Chris Sosad317e402013-06-12 13:47:09 -070045 <method name="AttemptRollback">
Alex Deymo455eb532014-09-25 22:54:56 -070046 <arg type="b" name="powerwash" direction="in" />
Chris Sosad317e402013-06-12 13:47:09 -070047 </method>
Alex Vakulenko59e253e2014-02-24 10:40:21 -080048 <method name="CanRollback">
49 <arg type="b" name="can_rollback" direction="out" />
50 </method>
Jay Srinivasanc1ba09a2012-08-14 14:15:57 -070051 <method name="ResetStatus">
52 </method>
Andrewa8d7df32020-03-15 20:10:01 -070053 <method name="SetDlcActiveValue">
54 <arg type="b" name="is_active" direction="in">
55 <tp:docstring>
56 If the DLC is being set to active or inactive.
57 </tp:docstring>
58 </arg>
59 <arg type="s" name="dlc_id" direction="in">
60 <tp:docstring>
61 The ID of the DLC module that will be set to active/inactive.
62 </tp:docstring>
63 </arg>
64 </method>
Amin Hassanieb463ee2019-06-20 19:23:03 -070065 <method name="GetStatusAdvanced">
66 <arg type="ay" name="status" direction="out">
67 <tp:docstring>
68 The current status serialized in a protobuf.
69 </tp:docstring>
70 <annotation name="org.chromium.DBus.Argument.ProtobufClass"
71 value="update_engine::StatusResult"/>
72 </arg>
73 </method>
Jay Srinivasanae4697c2013-03-18 17:08:08 -070074 <method name="RebootIfNeeded">
75 </method>
Jay Srinivasanae4697c2013-03-18 17:08:08 -070076 <method name="SetChannel">
Alex Deymo455eb532014-09-25 22:54:56 -070077 <arg type="s" name="target_channel" direction="in" />
78 <arg type="b" name="is_powerwash_allowed" direction="in" />
Jay Srinivasanae4697c2013-03-18 17:08:08 -070079 </method>
80 <method name="GetChannel">
Alex Deymo455eb532014-09-25 22:54:56 -070081 <arg type="b" name="get_current_channel" direction="in" />
Jay Srinivasanae4697c2013-03-18 17:08:08 -070082 <arg type="s" name="channel" direction="out" />
83 </method>
Alex Deymo5b5fa8b2016-10-06 15:40:49 -070084 <method name="SetCohortHint">
85 <arg type="s" name="cohort_hint" direction="in" />
86 </method>
87 <method name="GetCohortHint">
88 <arg type="s" name="cohort_hint" direction="out" />
89 </method>
Alex Deymo5fdf7762013-07-17 20:01:40 -070090 <method name="SetP2PUpdatePermission">
91 <annotation name="org.freedesktop.DBus.GLib.CSymbol"
Alex Deymo455eb532014-09-25 22:54:56 -070092 value="update_engine_service_set_p2p_update_permission" />
Alex Deymo36dc2f32013-08-29 15:45:06 -070093 <annotation name="org.freedesktop.DBus.GLib.ClientCSymbol"
Alex Deymo455eb532014-09-25 22:54:56 -070094 value="update_engine_client_set_p2p_update_permission" />
95 <arg type="b" name="enabled" direction="in" />
Alex Deymo5fdf7762013-07-17 20:01:40 -070096 </method>
97 <method name="GetP2PUpdatePermission">
98 <annotation name="org.freedesktop.DBus.GLib.CSymbol"
Alex Deymo455eb532014-09-25 22:54:56 -070099 value="update_engine_service_get_p2p_update_permission" />
Alex Deymo36dc2f32013-08-29 15:45:06 -0700100 <annotation name="org.freedesktop.DBus.GLib.ClientCSymbol"
Alex Deymo455eb532014-09-25 22:54:56 -0700101 value="update_engine_client_get_p2p_update_permission" />
Alex Deymo5fdf7762013-07-17 20:01:40 -0700102 <arg type="b" name="enabled" direction="out" />
103 </method>
Alex Deymof4867c42013-06-28 14:41:39 -0700104 <method name="SetUpdateOverCellularPermission">
Alex Deymo455eb532014-09-25 22:54:56 -0700105 <arg type="b" name="allowed" direction="in" />
Alex Deymof4867c42013-06-28 14:41:39 -0700106 </method>
Weidong Guo421ff332017-04-17 10:08:38 -0700107 <method name="SetUpdateOverCellularTarget">
108 <arg type="s" name="target_version" direction="in" />
109 <arg type="x" name="target_size" direction="in" />
110 </method>
Alex Deymof4867c42013-06-28 14:41:39 -0700111 <method name="GetUpdateOverCellularPermission">
112 <arg type="b" name="allowed" direction="out" />
113 </method>
David Zeuthen3c55abd2013-10-14 12:48:03 -0700114 <method name="GetDurationSinceUpdate">
115 <arg type="x" name="usec_wallclock" direction="out" />
116 </method>
Amin Hassanieb463ee2019-06-20 19:23:03 -0700117 <signal name="StatusUpdateAdvanced">
118 <arg type="ay" name="status" direction="out">
119 <tp:docstring>
120 The current status serialized in a protobuf.
121 </tp:docstring>
122 <annotation name="org.chromium.DBus.Argument.ProtobufClass"
123 value="update_engine::StatusResult"/>
124 </arg>
125 </signal>
Alex Vakulenkodea2eac2014-03-14 15:56:59 -0700126 <method name="GetPrevVersion">
127 <arg type="s" name="prev_version" direction="out" />
128 </method>
Alex Vakulenko2bddadd2014-03-27 13:23:46 -0700129 <method name="GetRollbackPartition">
130 <arg type="s" name="rollback_partition_name" direction="out" />
131 </method>
Shuqian Zhao29971732016-02-05 11:29:32 -0800132 <method name="GetLastAttemptError">
133 <arg type="i" name="last_attempt_error" direction="out" />
134 </method>
Andrew de los Reyes4e9b9f42010-04-26 15:06:43 -0700135 </interface>
136</node>