Skip to content

Commit

Permalink
Make sure adb mode has appsync to start adb, some more debug info for…
Browse files Browse the repository at this point in the history
… systemd appsync bit

Signed-off-by: Philippe De Swert <philippe.deswert@jollamobile.com>
  • Loading branch information
philippedeswert committed Jul 11, 2013
1 parent 48985af commit bbf16da
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/dyn-modes/adb_mode.ini
@@ -1,6 +1,7 @@
[mode]
name = adb_mode
module = none
appsync = 1
network = 1
network_interface = rndis0

Expand Down
5 changes: 5 additions & 0 deletions src/usb_moded-systemd.c
Expand Up @@ -64,6 +64,8 @@ int systemd_control_service(const char *name, const char *method)
DBusMessage *msg = NULL, *reply = NULL;
int ret = 1;

log_debug("Launchung %s, with systemd\n", name);

bus = get_systemd_dbus_connection();

msg = dbus_message_new_method_call("org.freedesktop.systemd1",
Expand All @@ -73,7 +75,10 @@ int systemd_control_service(const char *name, const char *method)
dbus_message_append_args (msg, DBUS_TYPE_STRING, &name, DBUS_TYPE_STRING, "isolate", DBUS_TYPE_INVALID);
reply = dbus_connection_send_with_reply_and_block(bus, msg, -1, &error);
if(reply)
{
ret = 0;
log_debug("systemd launch succesful\n");
}
dbus_message_unref(msg);
}

Expand Down

0 comments on commit bbf16da

Please sign in to comment.