Merge lp://staging/~charlesk/indicator-display/adb-key-auth into lp://staging/indicator-display/15.10
Status: | Merged |
---|---|
Approved by: | Xavi Garcia |
Approved revision: | 42 |
Merged at revision: | 18 |
Proposed branch: | lp://staging/~charlesk/indicator-display/adb-key-auth |
Merge into: | lp://staging/indicator-display/15.10 |
Diff against target: |
3348 lines (+2613/-310) 40 files modified
.bzr-builddeb/default.conf (+0/-2) CMakeLists.txt (+76/-60) cmake/FindGMock.cmake (+0/-10) cmake/GCov.cmake (+0/-51) cmake/GdbusCodegen.cmake (+0/-36) debian/control (+6/-0) po/POTFILES.in (+1/-0) src/CMakeLists.txt (+36/-28) src/adbd-client.cpp (+303/-0) src/adbd-client.h (+74/-0) src/dbus-names.h (+60/-0) src/greeter.cpp (+161/-0) src/greeter.h (+47/-0) src/indicator.cpp (+37/-0) src/indicator.h (+6/-7) src/main.cpp (+13/-0) src/rotation-lock.cpp (+1/-0) src/usb-manager.cpp (+180/-0) src/usb-manager.h (+48/-0) src/usb-monitor.cpp (+81/-0) src/usb-monitor.h (+52/-0) src/usb-snap.cpp (+250/-0) src/usb-snap.h (+42/-0) tests/CMakeLists.txt (+33/-33) tests/integration/CMakeLists.txt (+24/-0) tests/integration/usb-manager-test.cpp (+226/-0) tests/unit/CMakeLists.txt (+34/-0) tests/unit/adbd-client-test.cpp (+95/-0) tests/unit/rotation-lock-test.cpp (+3/-3) tests/unit/usb-snap-test.cpp (+143/-0) tests/utils/CMakeLists.txt (+17/-0) tests/utils/adbd-server.h (+150/-0) tests/utils/dbus-types.h (+42/-0) tests/utils/glib-fixture.h (+115/-64) tests/utils/gtest-qt-print-helpers.h (+45/-0) tests/utils/mock-greeter.h (+32/-0) tests/utils/mock-usb-monitor.h (+32/-0) tests/utils/qmain.cpp (+60/-0) tests/utils/qt-fixture.h (+74/-0) tests/utils/test-dbus-fixture.h (+14/-16) |
To merge this branch: | bzr merge lp://staging/~charlesk/indicator-display/adb-key-auth |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Charles Kerr (community) | Approve | ||
Matthew Paul Thomas (community) | design | Needs Fixing | |
Xavi Garcia | Approve | ||
PS Jenkins bot (community) | continuous-integration | Approve | |
Review via email:
|
Commit message
When a new device appears to ADB, prompt the user whether or not to allow the connection.
Description of the change
When a new device appears to ADB, prompt the user whether or not to allow the connection.
Reference java implementation @ http://
Basically, the ADBD daemon talks to the indicator via a local domain socket. ADBD sends a request string "PK" + the public key. The indicator's job is to decode the public key and present the resulting fingerprint to the user to allow or deny. Reference Android prompt: http://
The indicator returns the strings 'OK' or 'NO' back down the socket depending on the user's choice. If the user clicked the 'remember this' checkbox, we'll also append the public key on its own new line to the textfile "/data/
NB 1: unity-notifications doesn't yet have a checkbox action, so this is omitted from this MP. To honor the most common use case first, this first cut remembers the public key if the user allows the connection.
NB 2: this code is currently being used for testing. The single line in main.cpp 'g_setenv(
FAILED: Continuous integration, rev:37 jenkins. qa.ubuntu. com/job/ indicator- display- ci/22/ jenkins. qa.ubuntu. com/job/ indicator- display- wily-amd64- ci/5/console jenkins. qa.ubuntu. com/job/ indicator- display- wily-armhf- ci/5/console
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/indicator- display- ci/22/rebuild
http://