Le 10/07/2014 11:37, Frederik Braun a écrit : > Hi, > > I noticed that a lot of flash scripts just fail because my device is > locked or in another kind of unexpected state. > > I usually get this and unlock the device, but I'd also argue that this > is a tiny bug in your scripts :) > > You could always do something like this: > > echo "Waiting for device.." > # this blocks your shell script until adb finds the device: > adb wait-for-device > >
but sometimes we use adb only to reboot the phone in fastboot mode :) If it's already in fastboot mode (for example: it's bricked and you want to unbrick), then maybe you don't want this. That said, it's also easy to edit the script and comment the line if necessary.
signature.asc
Description: OpenPGP digital signature
_______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g
