In a user build, adb currently goes offline when the screen locks, and after 12 hours.
You can disable the 12-hour timer using this script: https://gist.github.com/dhylands/6253999 On eng and user-debug builds, adb stays on all of the time. Enabling/Disabling other USB functions (USB tethering and/or USB Mass Storage) will also temporarily disable adb while the USB setting changes. This s typically for less than a second, but it will cause an adb session to be dropped. I've also filed a couple of bugs related to adb: https://bugzilla.mozilla.org/show_bug.cgi?id=1035437 - Add an adb wakelock https://bugzilla.mozilla.org/show_bug.cgi?id=1035423 - Add a property which allows adb to always stay enabled. I put these up as mentored bugs, so if anybody would like to tackle them, I'm happy to provide guidance. Dave Hylands ----- Original Message ----- > From: "A. Crespo" <[email protected]> > To: "Andreas Pehrson" <[email protected]> > Cc: "Dev B2G List" <[email protected]> > Sent: Sunday, July 20, 2014 1:54:32 PM > Subject: Re: [b2g] Device goes offline when building. > It seems to be an error related to ADB: > http://playingwithsid.blogspot.com.es/2013/05/android-device-offline-fixing-adb.html > I had the same issue with the Flatfish, by the way. I have fixed it using > VirtualBox and loading its usb by default. It's very strange. > 2014-07-20 22:21 GMT+02:00 Andreas Pehrson < [email protected] > : > > Then I'm not sure what it could be. I don't have a flame myself so I'm not > > aware of any specific issues there. > > > Check at what point it goes offline and maybe you can nail it down > > eventually. > > > Andreas Pehrson --- Software Engineer > > > (+47) 959 60 374 | [email protected] | www.telenordigital.com > > > On Sun, Jul 20, 2014 at 5:25 PM, A. Crespo < [email protected] > > > wrote: > > > > Hi Andreas, > > > > > > Of course, I had disabled the lock screen. But maybe may it be related to > > > it? > > > > > > Thanks. > > > > > > 2014-07-20 17:21 GMT+02:00 Andreas Pehrson < [email protected] > > > > : > > > > > > > Do you have a lock screen enabled on your device? Adb is turned off > > > > when > > > > the > > > > lock screen is activated. Turn it on again by turning on the screen and > > > > unlocking the lock screen. Turn it on permanently by disabling the lock > > > > screen. > > > > > > > > > > Andreas Pehrson --- Software Engineer > > > > > > > > > > (+47) 959 60 374 | [email protected] | www.telenordigital.com > > > > > > > > > > On Sun, Jul 20, 2014 at 4:15 PM, A. Crespo < [email protected] > > > > > wrote: > > > > > > > > > > > Hi, > > > > > > > > > > > > > > > I'm trying to build B2G for a Flame, but when I try to run build.sh, > > > > > I > > > > > get > > > > > the following error: "error: device offline". > > > > > > > > > > > > > > > After that, I need to reattach the device to the computer to get > > > > > again > > > > > access > > > > > by shell to the device. > > > > > > > > > > > > > > > My udev rules are the following rules: > > > > > > > > > > > > > > > http://paste.ubuntu.com/7825165/ > > > > > > > > > > > > > > > So why is the Flame going offline? > > > > > > > > > > > > > > > Best regards. > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > > > > > > > > > dev-b2g mailing list > > > > > > > > > > > > > > > [email protected] > > > > > > > > > > > > > > > https://lists.mozilla.org/listinfo/dev-b2g > > > > > > > > > > > _______________________________________________ > dev-b2g mailing list > [email protected] > https://lists.mozilla.org/listinfo/dev-b2g
_______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g
