Merge lp:~mterry/unity8/new-adbd into lp:unity8

Proposed by Michael Terry
Status: Superseded
Proposed branch: lp:~mterry/unity8/new-adbd
Merge into: lp:unity8
Diff against target: 22 lines (+5/-6)
1 file modified
tools/unlock-device (+5/-6)
To merge this branch: bzr merge lp:~mterry/unity8/new-adbd
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Needs Fixing
Albert Astals Cid (community) Approve
Oliver Grawert Approve
Review via email: mp+232724@code.launchpad.net

This proposal has been superseded by a proposal from 2014-09-08.

Commit message

Add support to unlock-device for the new adbd coming down the pipeline.

Description of the change

Add support to unlock-device for the new adbd coming down the pipeline.

(This actually is reverting to old code that was working, but I mistakenly tried to update for new adbd only to realize that I was in fact breaking support for the new adbd. Whoops.)

While I was there, I bumped the wait from 20s to 30s. Not that I've noticed a problem with 20s. I just felt, you know, we have different devices of different speeds. I'd like a little extra buffer.

== Checklist ==

 * Are there any related MPs required for this MP to build/function as expected? Please list.
 - No

 * Did you perform an exploratory manual test run of your code change and any related functionality?
 - Yes

 * Did you make sure that your branch does not contain spurious tags?
 - Yes

 * If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?
 - NA

 * If you changed the UI, has there been a design review?
 - NA

To post a comment you must log in.
Revision history for this message
Oliver Grawert (ogra) wrote :

looks good ...

review: Approve
lp:~mterry/unity8/new-adbd updated
1227. By Michael Terry

fix comment

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Albert Astals Cid (aacid) wrote :

 * Did you perform an exploratory manual test run of the code change and any related functionality?
Yes

 * Did CI run pass?
popover borked test by SDK

review: Approve
Revision history for this message
Albert Astals Cid (aacid) wrote :

Actually it seems autopiloot tests failed too? I've triggered a rebuild, let's see what this run says.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)

Unmerged revisions

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tools/unlock-device'
2--- tools/unlock-device 2014-08-28 19:58:48 +0000
3+++ tools/unlock-device 2014-08-29 16:04:54 +0000
4@@ -19,13 +19,12 @@
5
6 eval "$WAIT_COMMAND"
7
8-# Force a sleep of twenty no matter what, since we may need to wait for unity8
9+# Force a sleep no matter what, since we may need to wait for unity8
10 # to finish coming up (it's hard to tell when the greeter is actually rendered)
11-sleep 20
12-
13-GDBUS_CMD="gdbus call --session --dest com.canonical.UnityGreeter --object-path / --method com.canonical.UnityGreeter.HideGreeter && echo Greeter unlocked"
14-
15-UNLOCK_OUTPUT=$(adb shell "if [ \"\$(id -u)\" = 0 ]; then sudo -u phablet -i $GDBUS_CMD; else $GDBUS_CMD; fi" 2>&1)
16+sleep 30
17+
18+# We need to go through sudo to get a proper environment for dbus set up
19+UNLOCK_OUTPUT=$(adb shell "sudo -u phablet -i gdbus call --session --dest com.canonical.UnityGreeter --object-path / --method com.canonical.UnityGreeter.HideGreeter && echo Greeter unlocked" 2>&1)
20 if echo "$UNLOCK_OUTPUT" | grep 'Greeter unlocked' >/dev/null; then
21 echo "I: Unlock passed"
22 exit 0

Subscribers

People subscribed via source and target branches