ubuntu-phone team mailing list archive
-
ubuntu-phone team
-
Mailing list archive
-
Message #12609
Re: [BQ] no permission using adb
Hey guys you are great! So much interesting information :)
Oliver I used android-gadget-service when the screen was on and
unlocked.Note that I was not logged into device (adb shell) but I have
execute android-gadget-service from adb directly. Then display turns off
and also unlock the device adb lost the connection.
Maybe would I use android-gadget-service after logged (adb shell) in to
device?
Il giorno mar 5 mag 2015 alle ore 15:20 Mike Sheldon <mike@xxxxxxxxxxxxx>
ha scritto:
> Hi Alberto,
>
> On Tue, 2015-05-05 at 13:07 +0000, Alberto Pagliarini wrote:
> > Ehi thanks for the suggestions, "powerd-cli display on" should do the
> > work but...
> >
> >
> > Is it an expected behavior that when the display turns off adb loses
> > the connection to device and not recover it anymore?
> > It sounds like a bug to me
>
> ADB access is disabled deliberately when the device is locked for
> increased security (otherwise someone who's stolen your phone could
> access your data via ADB); however you can disable this behaviour by
> running:
>
> sudo touch /userdata/.adb_onlock
>
> (Directly on the phone)
>
> After which adb will always be available regardless of whether your
> phone is locked or not. This also gets performed automatically for you
> if you flash the phone with the --developer-mode option.
>
> Cheers,
> Mike.
>
> >
> >
> >
> > alberto
> >
> > Il giorno mar 5 mag 2015 alle ore 15:01 Dave Morley
> > <davmor2@xxxxxxxxxxxxx> ha scritto:
> > On Tue, 5 May 2015 14:54:41 +0200
> > Matthias Apitz <guru@xxxxxxxxxxx> wrote:
> >
> > > El día Tuesday, May 05, 2015 a las 12:45:03PM +0000, Alberto
> > > Pagliarini escribió:
> > >
> > > > Hi all,
> > > >
> > > > I have a BQ phone. and when I use it with usb tethering
> > enabled
> > > > through
> > > >
> > > > $ adb shell android-gadget-service enable rndis
> > > >
> > > > I have to maintain the display on because when the display
> > turns
> > > > off I haven't access to the phone via adb anymore
> > > >
> > > > $ adb devices
> > > >
> > > > returns
> > > >
> > > > List of devices attached
> > > > ???????????? no permissions
> > > >
> > > > I don't be able to recover the access neither if I kill
> > and restart
> > > > adb server with
> > > >
> > > > $ adb kill-server
> > > > $ adb start-server
> > > >
> > > > Some suggestions?
> > >
> > > Yes, enable ssh in the BQ and on your *nix System something
> > like:
> > >
> > > # ifconfig ue0 inet 10.42.0.19
> > > # ssh phablet@10.42.0.1
> > >
> > > (change 'ue0' for your interface name); needs ofc
> > installation of your
> > > RSA pub key in the BQ;
> > >
> > >
> > > matthias
> >
> > or install the terminal app on the phone and do powerd-cli
> > display on
> >
> > --
> > You Make It, I'll Break It!
> >
> > I Love My Job :)
> >
> > http://www.canonical.com
> > http://www.ubuntu.com
> > --
> > Mailing list: https://launchpad.net/~ubuntu-phone
> > Post to : ubuntu-phone@xxxxxxxxxxxxxxxxxxx
> > Unsubscribe : https://launchpad.net/~ubuntu-phone
> > More help : https://help.launchpad.net/ListHelp
> > --
> > Mailing list: https://launchpad.net/~ubuntu-phone
> > Post to : ubuntu-phone@xxxxxxxxxxxxxxxxxxx
> > Unsubscribe : https://launchpad.net/~ubuntu-phone
> > More help : https://help.launchpad.net/ListHelp
>
>
>
References