adb goes offline after switching from passcode to passphrase

Bug #1370691 reported by Bill Filler
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
android-tools (Ubuntu)
Incomplete
High
Oliver Grawert

Bug Description

krillin rtm image 46
- setup phone with passcode security and turn on developer mode
- then run adb devices from desktop and you can see online status and connect
- now go to system settings and change your security from passcode to passphrase
- reboot

Expected results:
adb devices should show online still

Actual results:
adb devices shows offline and you can't connect, even after reboots

Switching security back to passcode makes adb start working again

Tags: rtm14
Bill Filler (bfiller)
Changed in android (Ubuntu):
importance: Undecided → High
tags: added: rtm14
Revision history for this message
Michael Terry (mterry) wrote :

Ogra, do you have any ideas why it would depend on the type? In both cases the shadow file should have contents. The only difference *should* be an AccountsService hint field.

Revision history for this message
Bill Filler (bfiller) wrote :

I used "phablet" as my passphrase. I've heard that is what causes problems..

affects: android (Ubuntu) → android-tools (Ubuntu)
Changed in android-tools (Ubuntu):
assignee: nobody → Oliver Grawert (ogra)
Revision history for this message
Oliver Grawert (ogra) wrote :

i can not reproduce this at all, the "phablet" match is gone since before image 100, are you sure your session was fullly up ? adbd only starts after lightdm now and until that point adb devices will show "offline"
doing a run with multiple changes from password to PIN and back, also involving the password "phablet" can be seen below ... you can see the "offline" state once during boot ...

Mike: no, the code only watches /var/lib/extrausers/shadow for changes via inotify, in case it changes it restarts adbd

---- snip ----

ogra@anubis:~/Devel/branches/ubuntu-archive-tools$ adb devices
List of devices attached
JB016625 device

ogra@anubis:~/Devel/branches/ubuntu-archive-tools$ adb shell
phablet@ubuntu-phablet:~$ logout
ogra@anubis:~/Devel/branches/ubuntu-archive-tools$ adb reboot
ogra@anubis:~/Devel/branches/ubuntu-archive-tools$ adb devices
List of devices attached
JB016625 device

ogra@anubis:~/Devel/branches/ubuntu-archive-tools$ adb shell
phablet@ubuntu-phablet:~$ logout
ogra@anubis:~/Devel/branches/ubuntu-archive-tools$ adb devices
List of devices attached
JB016625 device

ogra@anubis:~/Devel/branches/ubuntu-archive-tools$ adb shell
phablet@ubuntu-phablet:~$ logout
ogra@anubis:~/Devel/branches/ubuntu-archive-tools$ adb reboot
ogra@anubis:~/Devel/branches/ubuntu-archive-tools$ adb devices
List of devices attached
JB016625 offline

ogra@anubis:~/Devel/branches/ubuntu-archive-tools$ adb shell
phablet@ubuntu-phablet:~$ logout
ogra@anubis:~/Devel/branches/ubuntu-archive-tools$ adb devices
List of devices attached
JB016625 device

ogra@anubis:~/Devel/branches/ubuntu-archive-tools$

--- snap ---

Revision history for this message
Oliver Grawert (ogra) wrote :

oh, i just noticed teh age of this bug ... it might actually have been from the time where the password "phablet" was still blocking, bill can you verify this is gone for you ?

Changed in android-tools (Ubuntu):
status: New → Incomplete
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.