Skip to content

Commit

Permalink
Restart adbd if it exits without being stopped. JB#38630
Browse files Browse the repository at this point in the history
When adbd needs to switch identity based on root/unroot commands it
makes an exit and expects to be restarted. In android this would be
handled via actions bound to related property changes. But current
systemd unit configuration leaves the adbd service in failed state.

Add restart configuration for adbd.service.

Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
  • Loading branch information
spiiroin committed May 19, 2017
1 parent 35a7907 commit a70a8e0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sparse/lib/systemd/system/adbd.service
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ PartOf=adbd-prepare.service
[Service]
Environment=PATH=/sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin
ExecStart=/sbin/adbd
Restart=always

0 comments on commit a70a8e0

Please sign in to comment.