← Back to team overview

ubuntu-phone team mailing list archive

Re: How to enable adbd service

 

Hello David,
Thanks for the suggestion, I will write to Alan,
I have a suggestion for the troubleshooting section of the porting guide.
Please add information about the kernel's console parameter, similar to the
one in https://wiki.ubuntu.com/Touch/ContainerArchitecture:

> People that are porting their devices to the Ubuntu Touch container model
> should take into account that Ubuntus upstart is used as init system.
> Upstart likes to have an actually existing device as /dev/console. Many
> Android kernels do not provide this as default or even have something like console=none
> or console=ram hardcoded in their boot commandline arguments. Such
> drawbacks in the kernel or commandline need to be fixed to be able to use
> this model properly (here <http://paste.ubuntu.com/5939625/> is for
> example a kernel patch used on the i9100 image to change the behavior of
> CONFIG_CMDLINE_EXTEND ... now using this option appends the kernel cmdline
> to the bootloader one instead of pre-pending, this way console=tty1 can
> be handed over as the last cmdline argument and with CONFIG_VT_CONSOLE
> and CONFIG_HW_CONSOLE set in the kernel config upstart is now happy).
>

Thank you,
Vladislav

2015-03-14 6:35 GMT-04:00 David Planella <david.planella@xxxxxxxxxx>:

> Thanks a lot ogra for the detailed instructions. I thought this would be
> something worth having in the troubleshooting section of the porting guide,
> so I went ahead and added it:
>
>
> https://developer.ubuntu.com/en/start/ubuntu-for-devices/porting-new-device/#troubleshooting
>
> If anyone has got any other porting tips and tricks, do mention them in
> the list and we'll add them to the guide too!
>
> Vladislav, feel free to get in touch with Alan Pope to get your Photon Q
> port added to the list of ports, which we revamped after publishing the new
> porting guide:
>
>
> https://docs.google.com/a/canonical.com/spreadsheets/d/1uUHF463g4f4L5ljWZf0l7b4VAevM-twHag4ZoEd_TNc/edit#gid=0
>
> Keep up the good work!
>
> Cheers,
> David.
>
> On Sat, Mar 14, 2015 at 3:55 AM, Vladislav Evgeniev <v.evgeniev@xxxxxxxxx>
> wrote:
>
>> Great, thank you!
>>
>> 2015-03-13 9:36 GMT-04:00 Oliver Grawert <ogra@xxxxxxxxxx>:
>>
>> hi,
>>> Am Freitag, den 13.03.2015, 09:17 -0400 schrieb Vladislav Evgeniev:
>>> > Hello,
>>> >
>>> > Can someone please tell me how to enable the adbd service?
>>> >
>>> > I'm working on a port for Photon Q. My image boots, but there's no
>>> > graphics. Unfortunately adbd is not running and I cannot connect to
>>> > the phone. The last_kmsg contains a line, complaining that adbd cannot
>>> > be found, but I think that this message comes from android and adbd is
>>> > intentionally disabled there.
>>> > Is it possible to enable adbd in Ubuntu from the makefiles or I have
>>> > to repackage the boot.img?
>>> >
>>> adbd in ubuntu lives in the ubuntu rootfs, not on the android side ...
>>> for security reasons teh adbd binary in ubuntu has a check if the screen
>>> is unlocked and if there is a password set for the "phablet" user ...
>>>
>>> indeed this is a blocker for porting ... if your UI does not come up
>>> there is no lock screen to check against :)
>>>
>>> i have an unlocked adbd binary at
>>> http://people.canonical.com/~ogra/adbd
>>>
>>> you can put that into /usr/bin/adbd on the rootfs and do the following:
>>>
>>> echo "start on startup" >/etc/init/android-tools-adbd.override
>>>
>>> that should bring up adbd as soon as your system switched to the rootfs.
>>>
>>> ciao
>>>         oli
>>>
>>>
>>> --
>>> 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